1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 VALID_JVM_FEATURES 658 JVM_FEATURES_custom 659 JVM_FEATURES_zero 660 JVM_FEATURES_minimal 661 JVM_FEATURES_core 662 JVM_FEATURES_client 663 JVM_FEATURES_server 664 INCLUDE_GRAAL 665 STLPORT_LIB 666 LIBZIP_CAN_USE_MMAP 667 LIBDL 668 LIBM 669 USE_EXTERNAL_LCMS 670 LCMS_LIBS 671 LCMS_CFLAGS 672 USE_EXTERNAL_LIBZ 673 USE_EXTERNAL_LIBPNG 674 PNG_LIBS 675 PNG_CFLAGS 676 USE_EXTERNAL_LIBGIF 677 USE_EXTERNAL_LIBJPEG 678 LIBFFI_LIB_FILE 679 ENABLE_LIBFFI_BUNDLING 680 LIBFFI_LIBS 681 LIBFFI_CFLAGS 682 ALSA_LIBS 683 ALSA_CFLAGS 684 FREETYPE_LICENSE 685 FREETYPE_BUNDLE_LIB_PATH 686 FREETYPE_LIBS 687 FREETYPE_CFLAGS 688 CUPS_CFLAGS 689 X_EXTRA_LIBS 690 X_LIBS 691 X_PRE_LIBS 692 X_CFLAGS 693 XMKMF 694 MSVCP_DLL 695 MSVCR_DLL 696 LIBCXX 697 FIXPATH_DETACH_FLAG 698 FIXPATH 699 BUILD_GTEST 700 ENABLE_CDS 701 ENABLE_AOT 702 GCOV_ENABLED 703 ZIP_EXTERNAL_DEBUG_SYMBOLS 704 COPY_DEBUG_SYMBOLS 705 COMPILE_WITH_DEBUG_SYMBOLS 706 CFLAGS_WARNINGS_ARE_ERRORS 707 BUILD_CC_DISABLE_WARNING_PREFIX 708 DISABLE_WARNING_PREFIX 709 WARNINGS_AS_ERRORS 710 COMPILER_SUPPORTS_TARGET_BITS_FLAG 711 LDFLAGS_TESTEXE 712 LDFLAGS_TESTLIB 713 CXXFLAGS_TESTEXE 714 CXXFLAGS_TESTLIB 715 CFLAGS_TESTEXE 716 CFLAGS_TESTLIB 717 OPENJDK_BUILD_JVM_LIBS 718 OPENJDK_BUILD_JVM_ASFLAGS 719 OPENJDK_BUILD_JVM_LDFLAGS 720 OPENJDK_BUILD_JVM_CFLAGS 721 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK 722 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 723 OPENJDK_BUILD_LDFLAGS_CXX_JDK 724 OPENJDK_BUILD_JDKEXE_LIBS 725 OPENJDK_BUILD_JDKLIB_LIBS 726 OPENJDK_BUILD_LDFLAGS_JDKEXE 727 OPENJDK_BUILD_LDFLAGS_JDKLIB 728 OPENJDK_BUILD_CXXFLAGS_JDKEXE 729 OPENJDK_BUILD_CXXFLAGS_JDKLIB 730 OPENJDK_BUILD_CFLAGS_JDKEXE 731 OPENJDK_BUILD_CFLAGS_JDKLIB 732 OPENJDK_BUILD_CXXSTD_CXXFLAG 733 JVM_LIBS 734 JVM_ASFLAGS 735 JVM_LDFLAGS 736 JVM_CFLAGS 737 LDFLAGS_NO_EXEC_STACK 738 LDFLAGS_HASH_STYLE 739 LDFLAGS_CXX_JDK 740 JDKEXE_LIBS 741 JDKLIB_LIBS 742 LDFLAGS_JDKEXE 743 LDFLAGS_JDKLIB 744 CXXFLAGS_JDKEXE 745 CXXFLAGS_JDKLIB 746 CFLAGS_JDKEXE 747 CFLAGS_JDKLIB 748 MACOSX_VERSION_MAX 749 MACOSX_VERSION_MIN 750 CXXSTD_CXXFLAG 751 JDK_ARCH_ABI_PROP_NAME 752 CXX_O_FLAG_SIZE 753 CXX_O_FLAG_NONE 754 CXX_O_FLAG_DEBUG 755 CXX_O_FLAG_NORM 756 CXX_O_FLAG_HI 757 CXX_O_FLAG_HIGHEST 758 CXX_O_FLAG_HIGHEST_JVM 759 C_O_FLAG_SIZE 760 C_O_FLAG_NONE 761 C_O_FLAG_DEBUG 762 C_O_FLAG_NORM 763 C_O_FLAG_HI 764 C_O_FLAG_HIGHEST 765 C_O_FLAG_HIGHEST_JVM 766 JVM_CFLAGS_SYMBOLS 767 CXXFLAGS_DEBUG_SYMBOLS 768 CFLAGS_DEBUG_SYMBOLS 769 CXX_FLAG_DEPS 770 C_FLAG_DEPS 771 SHARED_LIBRARY_FLAGS 772 SET_SHARED_LIBRARY_MAPFILE 773 SET_SHARED_LIBRARY_NAME 774 SET_SHARED_LIBRARY_ORIGIN 775 SET_EXECUTABLE_ORIGIN 776 CXX_FLAG_REORDER 777 C_FLAG_REORDER 778 JVM_RCFLAGS 779 RC_FLAGS 780 AR_OUT_OPTION 781 LD_OUT_OPTION 782 EXE_OUT_OPTION 783 CC_OUT_OPTION 784 STRIPFLAGS 785 ARFLAGS 786 COMPILER_BINDCMD_FILE_FLAG 787 COMPILER_COMMAND_FILE_FLAG 788 COMPILER_TARGET_BITS_FLAG 789 JIB_JAR 790 JT_HOME 791 JTREGEXE 792 HOTSPOT_TOOLCHAIN_TYPE 793 USING_BROKEN_SUSE_LD 794 PACKAGE_PATH 795 BUILD_AS 796 BUILD_LDCXX 797 BUILD_LD 798 BUILD_STRIP 799 BUILD_OBJCOPY 800 BUILD_AR 801 BUILD_NM 802 BUILD_CXX 803 BUILD_CC 804 BUILD_SYSROOT_LDFLAGS 805 BUILD_SYSROOT_CFLAGS 806 ac_ct_OBJDUMP 807 OBJDUMP 808 ac_ct_OBJCOPY 809 OBJCOPY 810 ac_ct_NM 811 ac_ct_STRIP 812 GNM 813 NM 814 STRIP 815 MSBUILD 816 DUMPBIN 817 RC 818 MT 819 LIPO 820 ac_ct_AR 821 AR 822 AS 823 LDCXX 824 LD 825 CXXCPP 826 CPP 827 CXX_VERSION_NUMBER 828 CC_VERSION_NUMBER 829 ac_ct_CXX 830 CXXFLAGS 831 CXX 832 TOOLCHAIN_PATH_CXX 833 POTENTIAL_CXX 834 OBJEXT 835 EXEEXT 836 ac_ct_CC 837 CPPFLAGS 838 LDFLAGS 839 CFLAGS 840 CC 841 TOOLCHAIN_PATH_CC 842 POTENTIAL_CC 843 TOOLCHAIN_VERSION 844 VS_LIB 845 VS_INCLUDE 846 VS_PATH 847 CYGWIN_LINK 848 SYSROOT_LDFLAGS 849 SYSROOT_CFLAGS 850 EXTRA_LDFLAGS 851 EXTRA_CXXFLAGS 852 EXTRA_CFLAGS 853 EXE_SUFFIX 854 OBJ_SUFFIX 855 STATIC_LIBRARY 856 SHARED_LIBRARY 857 STATIC_LIBRARY_SUFFIX 858 SHARED_LIBRARY_SUFFIX 859 LIBRARY_PREFIX 860 TOOLCHAIN_TYPE 861 STATIC_BUILD 862 IMPORT_MODULES_MAKE 863 IMPORT_MODULES_SRC 864 IMPORT_MODULES_MAN 865 IMPORT_MODULES_LEGAL 866 IMPORT_MODULES_CONF 867 IMPORT_MODULES_LIBS 868 IMPORT_MODULES_CMDS 869 IMPORT_MODULES_CLASSES 870 EXTERNAL_BUILDJDK 871 BUILD_JDK 872 CREATE_BUILDJDK 873 JLINK 874 JMOD 875 JAVAC_FLAGS 876 BOOT_JDK_MODULAR 877 BOOT_JDK_SOURCETARGET 878 JARSIGNER 879 JAR 880 JAVAH 881 JAVAC 882 JAVA 883 BOOT_JDK 884 JAVA_CHECK 885 JAVAC_CHECK 886 VERSION_IS_GA 887 VERSION_SHORT 888 VERSION_STRING 889 VERSION_NUMBER_FOUR_POSITIONS 890 VERSION_NUMBER 891 VERSION_OPT 892 VERSION_BUILD 893 VERSION_PRE 894 VERSION_PATCH 895 VERSION_SECURITY 896 VERSION_MINOR 897 VERSION_MAJOR 898 MACOSX_BUNDLE_ID_BASE 899 MACOSX_BUNDLE_NAME_BASE 900 HOTSPOT_VM_DISTRO 901 COMPANY_NAME 902 JDK_RC_PLATFORM_NAME 903 PRODUCT_SUFFIX 904 PRODUCT_NAME 905 LAUNCHER_NAME 906 JLINK_KEEP_PACKAGED_MODULES 907 COPYRIGHT_YEAR 908 COMPRESS_JARS 909 INCLUDE_SA 910 UNLIMITED_CRYPTO 911 CACERTS_FILE 912 ENABLE_FULL_DOCS 913 ENABLE_HEADLESS_ONLY 914 DEFAULT_MAKE_TARGET 915 OS_VERSION_MICRO 916 OS_VERSION_MINOR 917 OS_VERSION_MAJOR 918 PKG_CONFIG 919 BASH_ARGS 920 SETFILE 921 CODESIGN 922 XATTR 923 DSYMUTIL 924 IS_GNU_TIME 925 PATCH 926 DTRACE 927 FLOCK 928 TIME 929 STAT 930 HG 931 DOT 932 READELF 933 OTOOL 934 LDD 935 ZIPEXE 936 UNZIP 937 TAR_SUPPORTS_TRANSFORM 938 TAR_INCLUDE_PARAM 939 TAR_CREATE_EXTRA_PARAM 940 TAR_TYPE 941 FIND_DELETE 942 OUTPUT_SYNC 943 OUTPUT_SYNC_SUPPORTED 944 CHECK_TOOLSDIR_MAKE 945 CHECK_TOOLSDIR_GMAKE 946 CHECK_MAKE 947 CHECK_GMAKE 948 MAKE 949 PKGHANDLER 950 CONFIGURESUPPORT_OUTPUTDIR 951 OUTPUTDIR 952 CONF_NAME 953 SPEC 954 SDKROOT 955 XCODEBUILD 956 JVM_VARIANT_MAIN 957 VALID_JVM_VARIANTS 958 JVM_VARIANTS 959 DEBUG_LEVEL 960 HOTSPOT_DEBUG_LEVEL 961 JDK_VARIANT 962 USERNAME 963 CANONICAL_TOPDIR 964 ORIGINAL_TOPDIR 965 TOPDIR 966 PATH_SEP 967 HOTSPOT_BUILD_CPU_DEFINE 968 HOTSPOT_BUILD_CPU_ARCH 969 HOTSPOT_BUILD_CPU 970 HOTSPOT_BUILD_OS_TYPE 971 HOTSPOT_BUILD_OS 972 OPENJDK_BUILD_BUNDLE_PLATFORM 973 OPENJDK_BUILD_OS_EXPORT_DIR 974 OPENJDK_BUILD_CPU_OSARCH 975 OPENJDK_BUILD_CPU_ISADIR 976 OPENJDK_BUILD_CPU_LEGACY_LIB 977 OPENJDK_BUILD_CPU_LEGACY 978 HOTSPOT_TARGET_CPU_DEFINE 979 HOTSPOT_TARGET_CPU_ARCH 980 HOTSPOT_TARGET_CPU 981 HOTSPOT_TARGET_OS_TYPE 982 HOTSPOT_TARGET_OS 983 DEFINE_CROSS_COMPILE_ARCH 984 OPENJDK_TARGET_BUNDLE_PLATFORM 985 OPENJDK_TARGET_OS_EXPORT_DIR 986 OPENJDK_TARGET_CPU_OSARCH 987 OPENJDK_TARGET_CPU_ISADIR 988 OPENJDK_TARGET_CPU_LEGACY_LIB 989 OPENJDK_TARGET_CPU_LEGACY 990 RELEASE_FILE_OS_ARCH 991 RELEASE_FILE_OS_NAME 992 OPENJDK_MODULE_TARGET_PLATFORM 993 COMPILE_TYPE 994 OPENJDK_TARGET_CPU_ENDIAN 995 OPENJDK_TARGET_CPU_BITS 996 OPENJDK_TARGET_CPU_ARCH 997 OPENJDK_TARGET_CPU 998 OPENJDK_TARGET_OS_ENV 999 OPENJDK_TARGET_OS_TYPE 1000 OPENJDK_TARGET_OS 1001 OPENJDK_BUILD_CPU_ENDIAN 1002 OPENJDK_BUILD_CPU_BITS 1003 OPENJDK_BUILD_CPU_ARCH 1004 OPENJDK_BUILD_CPU 1005 OPENJDK_BUILD_OS_ENV 1006 OPENJDK_BUILD_OS_TYPE 1007 OPENJDK_BUILD_OS 1008 OPENJDK_BUILD_AUTOCONF_NAME 1009 OPENJDK_TARGET_AUTOCONF_NAME 1010 target_os 1011 target_vendor 1012 target_cpu 1013 target 1014 host_os 1015 host_vendor 1016 host_cpu 1017 host 1018 build_os 1019 build_vendor 1020 build_cpu 1021 build 1022 PANDOC 1023 NICE 1024 CPIO 1025 DF 1026 READLINK 1027 CYGPATH 1028 SED 1029 FGREP 1030 EGREP 1031 GREP 1032 AWK 1033 XARGS 1034 WHICH 1035 WC 1036 UNIQ 1037 UNAME 1038 TR 1039 TOUCH 1040 TEE 1041 TAR 1042 TAIL 1043 SORT 1044 SH 1045 RMDIR 1046 RM 1047 PRINTF 1048 NAWK 1049 MV 1050 MKTEMP 1051 MKDIR 1052 LS 1053 LN 1054 GZIP 1055 GUNZIP 1056 HEAD 1057 FIND 1058 FILE 1059 EXPR 1060 ECHO 1061 DIRNAME 1062 DIFF 1063 DATE 1064 CUT 1065 CP 1066 COMM 1067 CMP 1068 CHMOD 1069 CAT 1070 BASH 1071 BASENAME 1072 DATE_WHEN_CONFIGURED 1073 ORIGINAL_PATH 1074 CONFIGURE_COMMAND_LINE 1075 target_alias 1076 host_alias 1077 build_alias 1078 LIBS 1079 ECHO_T 1080 ECHO_N 1081 ECHO_C 1082 DEFS 1083 mandir 1084 localedir 1085 libdir 1086 psdir 1087 pdfdir 1088 dvidir 1089 htmldir 1090 infodir 1091 docdir 1092 oldincludedir 1093 includedir 1094 localstatedir 1095 sharedstatedir 1096 sysconfdir 1097 datadir 1098 datarootdir 1099 libexecdir 1100 sbindir 1101 bindir 1102 program_transform_name 1103 prefix 1104 exec_prefix 1105 PACKAGE_URL 1106 PACKAGE_BUGREPORT 1107 PACKAGE_STRING 1108 PACKAGE_VERSION 1109 PACKAGE_TARNAME 1110 PACKAGE_NAME 1111 PATH_SEPARATOR 1112 SHELL' 1113 ac_subst_files='' 1114 ac_user_opts=' 1115 enable_option_checking 1116 with_target_bits 1117 enable_openjdk_only 1118 with_custom_make_dir 1119 with_jdk_variant 1120 enable_debug 1121 with_debug_level 1122 with_jvm_variants 1123 with_cpu_port 1124 with_devkit 1125 with_sys_root 1126 with_sysroot 1127 with_tools_dir 1128 with_toolchain_path 1129 with_extra_path 1130 with_sdk_name 1131 with_conf_name 1132 with_output_base_dir 1133 with_output_sync 1134 with_default_make_target 1135 enable_headless_only 1136 enable_full_docs 1137 with_cacerts_file 1138 enable_unlimited_crypto 1139 with_copyright_year 1140 enable_keep_packaged_modules 1141 with_milestone 1142 with_update_version 1143 with_user_release_suffix 1144 with_build_number 1145 with_version_string 1146 with_version_pre 1147 with_version_opt 1148 with_version_build 1149 with_version_major 1150 with_version_minor 1151 with_version_security 1152 with_version_patch 1153 with_boot_jdk 1154 with_build_jdk 1155 with_import_modules 1156 enable_static_build 1157 with_toolchain_type 1158 with_extra_cflags 1159 with_extra_cxxflags 1160 with_extra_ldflags 1161 with_toolchain_version 1162 with_build_devkit 1163 with_jtreg 1164 with_jib 1165 with_abi_profile 1166 with_macosx_version_max 1167 enable_warnings_as_errors 1168 with_native_debug_symbols 1169 enable_debug_symbols 1170 enable_zip_debug_info 1171 enable_native_coverage 1172 enable_dtrace 1173 enable_aot 1174 enable_cds 1175 enable_hotspot_gtest 1176 with_stdc__lib 1177 with_msvcr_dll 1178 with_msvcp_dll 1179 with_x 1180 with_cups 1181 with_cups_include 1182 with_freetype 1183 with_freetype_include 1184 with_freetype_lib 1185 with_freetype_src 1186 enable_freetype_bundling 1187 with_freetype_license 1188 with_alsa 1189 with_alsa_include 1190 with_alsa_lib 1191 with_libffi 1192 with_libffi_include 1193 with_libffi_lib 1194 enable_libffi_bundling 1195 with_libjpeg 1196 with_giflib 1197 with_libpng 1198 with_zlib 1199 with_lcms 1200 with_dxsdk 1201 with_dxsdk_lib 1202 with_dxsdk_include 1203 with_jvm_features 1204 with_jvm_interpreter 1205 enable_jtreg_failure_handler 1206 enable_generate_classlist 1207 with_num_cores 1208 with_memory_size 1209 with_jobs 1210 with_test_jobs 1211 with_boot_jdk_jvmargs 1212 with_sjavac_server_java 1213 enable_sjavac 1214 enable_javac_server 1215 enable_icecc 1216 enable_precompiled_headers 1217 enable_ccache 1218 with_ccache_dir 1219 ' 1220 ac_precious_vars='build_alias 1221 host_alias 1222 target_alias 1223 BASENAME 1224 BASH 1225 CAT 1226 CHMOD 1227 CMP 1228 COMM 1229 CP 1230 CUT 1231 DATE 1232 DIFF 1233 DIRNAME 1234 ECHO 1235 EXPR 1236 FILE 1237 FIND 1238 HEAD 1239 GUNZIP 1240 GZIP 1241 LN 1242 LS 1243 MKDIR 1244 MKTEMP 1245 MV 1246 NAWK 1247 PRINTF 1248 RM 1249 RMDIR 1250 SH 1251 SORT 1252 TAIL 1253 TAR 1254 TEE 1255 TOUCH 1256 TR 1257 UNAME 1258 UNIQ 1259 WC 1260 WHICH 1261 XARGS 1262 AWK 1263 GREP 1264 EGREP 1265 FGREP 1266 SED 1267 CYGPATH 1268 READLINK 1269 DF 1270 CPIO 1271 NICE 1272 PANDOC 1273 MAKE 1274 UNZIP 1275 ZIPEXE 1276 LDD 1277 OTOOL 1278 READELF 1279 DOT 1280 HG 1281 STAT 1282 TIME 1283 FLOCK 1284 DTRACE 1285 PATCH 1286 DSYMUTIL 1287 XATTR 1288 CODESIGN 1289 SETFILE 1290 PKG_CONFIG 1291 JAVA 1292 JAVAC 1293 JAVAH 1294 JAR 1295 JARSIGNER 1296 CC 1297 CFLAGS 1298 LDFLAGS 1299 LIBS 1300 CPPFLAGS 1301 CXX 1302 CXXFLAGS 1303 CCC 1304 CPP 1305 CXXCPP 1306 AS 1307 AR 1308 LIPO 1309 STRIP 1310 NM 1311 GNM 1312 OBJCOPY 1313 OBJDUMP 1314 BUILD_CC 1315 BUILD_CXX 1316 BUILD_NM 1317 BUILD_AR 1318 BUILD_OBJCOPY 1319 BUILD_STRIP 1320 JTREGEXE 1321 XMKMF 1322 FREETYPE_CFLAGS 1323 FREETYPE_LIBS 1324 ALSA_CFLAGS 1325 ALSA_LIBS 1326 LIBFFI_CFLAGS 1327 LIBFFI_LIBS 1328 PNG_CFLAGS 1329 PNG_LIBS 1330 LCMS_CFLAGS 1331 LCMS_LIBS 1332 ICECC_CMD 1333 ICECC_CREATE_ENV 1334 ICECC_WRAPPER 1335 CCACHE' 1336 1337 1338 # Initialize some variables set by options. 1339 ac_init_help= 1340 ac_init_version=false 1341 ac_unrecognized_opts= 1342 ac_unrecognized_sep= 1343 # The variables have the same names as the options, with 1344 # dashes changed to underlines. 1345 cache_file=/dev/null 1346 exec_prefix=NONE 1347 no_create= 1348 no_recursion= 1349 prefix=NONE 1350 program_prefix=NONE 1351 program_suffix=NONE 1352 program_transform_name=s,x,x, 1353 silent= 1354 site= 1355 srcdir= 1356 verbose= 1357 x_includes=NONE 1358 x_libraries=NONE 1359 1360 # Installation directory options. 1361 # These are left unexpanded so users can "make install exec_prefix=/foo" 1362 # and all the variables that are supposed to be based on exec_prefix 1363 # by default will actually change. 1364 # Use braces instead of parens because sh, perl, etc. also accept them. 1365 # (The list follows the same order as the GNU Coding Standards.) 1366 bindir='${exec_prefix}/bin' 1367 sbindir='${exec_prefix}/sbin' 1368 libexecdir='${exec_prefix}/libexec' 1369 datarootdir='${prefix}/share' 1370 datadir='${datarootdir}' 1371 sysconfdir='${prefix}/etc' 1372 sharedstatedir='${prefix}/com' 1373 localstatedir='${prefix}/var' 1374 includedir='${prefix}/include' 1375 oldincludedir='/usr/include' 1376 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1377 infodir='${datarootdir}/info' 1378 htmldir='${docdir}' 1379 dvidir='${docdir}' 1380 pdfdir='${docdir}' 1381 psdir='${docdir}' 1382 libdir='${exec_prefix}/lib' 1383 localedir='${datarootdir}/locale' 1384 mandir='${datarootdir}/man' 1385 1386 ac_prev= 1387 ac_dashdash= 1388 for ac_option 1389 do 1390 # If the previous option needs an argument, assign it. 1391 if test -n "$ac_prev"; then 1392 eval $ac_prev=\$ac_option 1393 ac_prev= 1394 continue 1395 fi 1396 1397 case $ac_option in 1398 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1399 *=) ac_optarg= ;; 1400 *) ac_optarg=yes ;; 1401 esac 1402 1403 # Accept the important Cygnus configure options, so we can diagnose typos. 1404 1405 case $ac_dashdash$ac_option in 1406 --) 1407 ac_dashdash=yes ;; 1408 1409 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1410 ac_prev=bindir ;; 1411 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1412 bindir=$ac_optarg ;; 1413 1414 -build | --build | --buil | --bui | --bu) 1415 ac_prev=build_alias ;; 1416 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1417 build_alias=$ac_optarg ;; 1418 1419 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1420 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1421 ac_prev=cache_file ;; 1422 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1423 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1424 cache_file=$ac_optarg ;; 1425 1426 --config-cache | -C) 1427 cache_file=config.cache ;; 1428 1429 -datadir | --datadir | --datadi | --datad) 1430 ac_prev=datadir ;; 1431 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1432 datadir=$ac_optarg ;; 1433 1434 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1435 | --dataroo | --dataro | --datar) 1436 ac_prev=datarootdir ;; 1437 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1438 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1439 datarootdir=$ac_optarg ;; 1440 1441 -disable-* | --disable-*) 1442 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1443 # Reject names that are not valid shell variable names. 1444 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1445 as_fn_error $? "invalid feature name: $ac_useropt" 1446 ac_useropt_orig=$ac_useropt 1447 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1448 case $ac_user_opts in 1449 *" 1450 "enable_$ac_useropt" 1451 "*) ;; 1452 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1453 ac_unrecognized_sep=', ';; 1454 esac 1455 eval enable_$ac_useropt=no ;; 1456 1457 -docdir | --docdir | --docdi | --doc | --do) 1458 ac_prev=docdir ;; 1459 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1460 docdir=$ac_optarg ;; 1461 1462 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1463 ac_prev=dvidir ;; 1464 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1465 dvidir=$ac_optarg ;; 1466 1467 -enable-* | --enable-*) 1468 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1469 # Reject names that are not valid shell variable names. 1470 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1471 as_fn_error $? "invalid feature name: $ac_useropt" 1472 ac_useropt_orig=$ac_useropt 1473 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1474 case $ac_user_opts in 1475 *" 1476 "enable_$ac_useropt" 1477 "*) ;; 1478 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1479 ac_unrecognized_sep=', ';; 1480 esac 1481 eval enable_$ac_useropt=\$ac_optarg ;; 1482 1483 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1484 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1485 | --exec | --exe | --ex) 1486 ac_prev=exec_prefix ;; 1487 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1488 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1489 | --exec=* | --exe=* | --ex=*) 1490 exec_prefix=$ac_optarg ;; 1491 1492 -gas | --gas | --ga | --g) 1493 # Obsolete; use --with-gas. 1494 with_gas=yes ;; 1495 1496 -help | --help | --hel | --he | -h) 1497 ac_init_help=long ;; 1498 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1499 ac_init_help=recursive ;; 1500 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1501 ac_init_help=short ;; 1502 1503 -host | --host | --hos | --ho) 1504 ac_prev=host_alias ;; 1505 -host=* | --host=* | --hos=* | --ho=*) 1506 host_alias=$ac_optarg ;; 1507 1508 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1509 ac_prev=htmldir ;; 1510 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1511 | --ht=*) 1512 htmldir=$ac_optarg ;; 1513 1514 -includedir | --includedir | --includedi | --included | --include \ 1515 | --includ | --inclu | --incl | --inc) 1516 ac_prev=includedir ;; 1517 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1518 | --includ=* | --inclu=* | --incl=* | --inc=*) 1519 includedir=$ac_optarg ;; 1520 1521 -infodir | --infodir | --infodi | --infod | --info | --inf) 1522 ac_prev=infodir ;; 1523 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1524 infodir=$ac_optarg ;; 1525 1526 -libdir | --libdir | --libdi | --libd) 1527 ac_prev=libdir ;; 1528 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1529 libdir=$ac_optarg ;; 1530 1531 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1532 | --libexe | --libex | --libe) 1533 ac_prev=libexecdir ;; 1534 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1535 | --libexe=* | --libex=* | --libe=*) 1536 libexecdir=$ac_optarg ;; 1537 1538 -localedir | --localedir | --localedi | --localed | --locale) 1539 ac_prev=localedir ;; 1540 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1541 localedir=$ac_optarg ;; 1542 1543 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1544 | --localstate | --localstat | --localsta | --localst | --locals) 1545 ac_prev=localstatedir ;; 1546 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1547 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1548 localstatedir=$ac_optarg ;; 1549 1550 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1551 ac_prev=mandir ;; 1552 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1553 mandir=$ac_optarg ;; 1554 1555 -nfp | --nfp | --nf) 1556 # Obsolete; use --without-fp. 1557 with_fp=no ;; 1558 1559 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1560 | --no-cr | --no-c | -n) 1561 no_create=yes ;; 1562 1563 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1564 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1565 no_recursion=yes ;; 1566 1567 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1568 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1569 | --oldin | --oldi | --old | --ol | --o) 1570 ac_prev=oldincludedir ;; 1571 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1572 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1573 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1574 oldincludedir=$ac_optarg ;; 1575 1576 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1577 ac_prev=prefix ;; 1578 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1579 prefix=$ac_optarg ;; 1580 1581 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1582 | --program-pre | --program-pr | --program-p) 1583 ac_prev=program_prefix ;; 1584 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1585 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1586 program_prefix=$ac_optarg ;; 1587 1588 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1589 | --program-suf | --program-su | --program-s) 1590 ac_prev=program_suffix ;; 1591 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1592 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1593 program_suffix=$ac_optarg ;; 1594 1595 -program-transform-name | --program-transform-name \ 1596 | --program-transform-nam | --program-transform-na \ 1597 | --program-transform-n | --program-transform- \ 1598 | --program-transform | --program-transfor \ 1599 | --program-transfo | --program-transf \ 1600 | --program-trans | --program-tran \ 1601 | --progr-tra | --program-tr | --program-t) 1602 ac_prev=program_transform_name ;; 1603 -program-transform-name=* | --program-transform-name=* \ 1604 | --program-transform-nam=* | --program-transform-na=* \ 1605 | --program-transform-n=* | --program-transform-=* \ 1606 | --program-transform=* | --program-transfor=* \ 1607 | --program-transfo=* | --program-transf=* \ 1608 | --program-trans=* | --program-tran=* \ 1609 | --progr-tra=* | --program-tr=* | --program-t=*) 1610 program_transform_name=$ac_optarg ;; 1611 1612 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1613 ac_prev=pdfdir ;; 1614 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1615 pdfdir=$ac_optarg ;; 1616 1617 -psdir | --psdir | --psdi | --psd | --ps) 1618 ac_prev=psdir ;; 1619 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1620 psdir=$ac_optarg ;; 1621 1622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1623 | -silent | --silent | --silen | --sile | --sil) 1624 silent=yes ;; 1625 1626 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1627 ac_prev=sbindir ;; 1628 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1629 | --sbi=* | --sb=*) 1630 sbindir=$ac_optarg ;; 1631 1632 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1633 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1634 | --sharedst | --shareds | --shared | --share | --shar \ 1635 | --sha | --sh) 1636 ac_prev=sharedstatedir ;; 1637 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1638 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1639 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1640 | --sha=* | --sh=*) 1641 sharedstatedir=$ac_optarg ;; 1642 1643 -site | --site | --sit) 1644 ac_prev=site ;; 1645 -site=* | --site=* | --sit=*) 1646 site=$ac_optarg ;; 1647 1648 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1649 ac_prev=srcdir ;; 1650 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1651 srcdir=$ac_optarg ;; 1652 1653 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1654 | --syscon | --sysco | --sysc | --sys | --sy) 1655 ac_prev=sysconfdir ;; 1656 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1657 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1658 sysconfdir=$ac_optarg ;; 1659 1660 -target | --target | --targe | --targ | --tar | --ta | --t) 1661 ac_prev=target_alias ;; 1662 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1663 target_alias=$ac_optarg ;; 1664 1665 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1666 verbose=yes ;; 1667 1668 -version | --version | --versio | --versi | --vers | -V) 1669 ac_init_version=: ;; 1670 1671 -with-* | --with-*) 1672 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1673 # Reject names that are not valid shell variable names. 1674 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1675 as_fn_error $? "invalid package name: $ac_useropt" 1676 ac_useropt_orig=$ac_useropt 1677 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1678 case $ac_user_opts in 1679 *" 1680 "with_$ac_useropt" 1681 "*) ;; 1682 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1683 ac_unrecognized_sep=', ';; 1684 esac 1685 eval with_$ac_useropt=\$ac_optarg ;; 1686 1687 -without-* | --without-*) 1688 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1689 # Reject names that are not valid shell variable names. 1690 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1691 as_fn_error $? "invalid package name: $ac_useropt" 1692 ac_useropt_orig=$ac_useropt 1693 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1694 case $ac_user_opts in 1695 *" 1696 "with_$ac_useropt" 1697 "*) ;; 1698 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1699 ac_unrecognized_sep=', ';; 1700 esac 1701 eval with_$ac_useropt=no ;; 1702 1703 --x) 1704 # Obsolete; use --with-x. 1705 with_x=yes ;; 1706 1707 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1708 | --x-incl | --x-inc | --x-in | --x-i) 1709 ac_prev=x_includes ;; 1710 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1711 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1712 x_includes=$ac_optarg ;; 1713 1714 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1715 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1716 ac_prev=x_libraries ;; 1717 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1718 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1719 x_libraries=$ac_optarg ;; 1720 1721 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1722 Try \`$0 --help' for more information" 1723 ;; 1724 1725 *=*) 1726 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1727 # Reject names that are not valid shell variable names. 1728 case $ac_envvar in #( 1729 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1730 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1731 esac 1732 eval $ac_envvar=\$ac_optarg 1733 export $ac_envvar ;; 1734 1735 *) 1736 # FIXME: should be removed in autoconf 3.0. 1737 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1738 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1739 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1740 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1741 ;; 1742 1743 esac 1744 done 1745 1746 if test -n "$ac_prev"; then 1747 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1748 as_fn_error $? "missing argument to $ac_option" 1749 fi 1750 1751 if test -n "$ac_unrecognized_opts"; then 1752 case $enable_option_checking in 1753 no) ;; 1754 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1755 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1756 esac 1757 fi 1758 1759 # Check all directory arguments for consistency. 1760 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1761 datadir sysconfdir sharedstatedir localstatedir includedir \ 1762 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1763 libdir localedir mandir 1764 do 1765 eval ac_val=\$$ac_var 1766 # Remove trailing slashes. 1767 case $ac_val in 1768 */ ) 1769 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1770 eval $ac_var=\$ac_val;; 1771 esac 1772 # Be sure to have absolute directory names. 1773 case $ac_val in 1774 [\\/$]* | ?:[\\/]* ) continue;; 1775 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1776 esac 1777 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1778 done 1779 1780 # There might be people who depend on the old broken behavior: `$host' 1781 # used to hold the argument of --host etc. 1782 # FIXME: To remove some day. 1783 build=$build_alias 1784 host=$host_alias 1785 target=$target_alias 1786 1787 # FIXME: To remove some day. 1788 if test "x$host_alias" != x; then 1789 if test "x$build_alias" = x; then 1790 cross_compiling=maybe 1791 elif test "x$build_alias" != "x$host_alias"; then 1792 cross_compiling=yes 1793 fi 1794 fi 1795 1796 ac_tool_prefix= 1797 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1798 1799 test "$silent" = yes && exec 6>/dev/null 1800 1801 1802 ac_pwd=`pwd` && test -n "$ac_pwd" && 1803 ac_ls_di=`ls -di .` && 1804 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1805 as_fn_error $? "working directory cannot be determined" 1806 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1807 as_fn_error $? "pwd does not report name of working directory" 1808 1809 1810 # Find the source files, if location was not specified. 1811 if test -z "$srcdir"; then 1812 ac_srcdir_defaulted=yes 1813 # Try the directory containing this script, then the parent directory. 1814 ac_confdir=`$as_dirname -- "$as_myself" || 1815 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1816 X"$as_myself" : 'X\(//\)[^/]' \| \ 1817 X"$as_myself" : 'X\(//\)$' \| \ 1818 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1819 $as_echo X"$as_myself" | 1820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1821 s//\1/ 1822 q 1823 } 1824 /^X\(\/\/\)[^/].*/{ 1825 s//\1/ 1826 q 1827 } 1828 /^X\(\/\/\)$/{ 1829 s//\1/ 1830 q 1831 } 1832 /^X\(\/\).*/{ 1833 s//\1/ 1834 q 1835 } 1836 s/.*/./; q'` 1837 srcdir=$ac_confdir 1838 if test ! -r "$srcdir/$ac_unique_file"; then 1839 srcdir=.. 1840 fi 1841 else 1842 ac_srcdir_defaulted=no 1843 fi 1844 if test ! -r "$srcdir/$ac_unique_file"; then 1845 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1846 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1847 fi 1848 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1849 ac_abs_confdir=`( 1850 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1851 pwd)` 1852 # When building in place, set srcdir=. 1853 if test "$ac_abs_confdir" = "$ac_pwd"; then 1854 srcdir=. 1855 fi 1856 # Remove unnecessary trailing slashes from srcdir. 1857 # Double slashes in file names in object file debugging info 1858 # mess up M-x gdb in Emacs. 1859 case $srcdir in 1860 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1861 esac 1862 for ac_var in $ac_precious_vars; do 1863 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1864 eval ac_env_${ac_var}_value=\$${ac_var} 1865 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1866 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1867 done 1868 1869 # 1870 # Report the --help message. 1871 # 1872 if test "$ac_init_help" = "long"; then 1873 # Omit some internal or obsolete options to make the list less imposing. 1874 # This message is too long to be a string in the A/UX 3.1 sh. 1875 cat <<_ACEOF 1876 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1877 1878 Usage: $0 [OPTION]... [VAR=VALUE]... 1879 1880 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1881 VAR=VALUE. See below for descriptions of some of the useful variables. 1882 1883 Defaults for the options are specified in brackets. 1884 1885 Configuration: 1886 -h, --help display this help and exit 1887 --help=short display options specific to this package 1888 --help=recursive display the short help of all the included packages 1889 -V, --version display version information and exit 1890 -q, --quiet, --silent do not print \`checking ...' messages 1891 --cache-file=FILE cache test results in FILE [disabled] 1892 -C, --config-cache alias for \`--cache-file=config.cache' 1893 -n, --no-create do not create output files 1894 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1895 1896 Installation directories: 1897 --prefix=PREFIX install architecture-independent files in PREFIX 1898 [$ac_default_prefix] 1899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1900 [PREFIX] 1901 1902 By default, \`make install' will install all the files in 1903 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1904 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1905 for instance \`--prefix=\$HOME'. 1906 1907 For better control, use the options below. 1908 1909 Fine tuning of the installation directories: 1910 --bindir=DIR user executables [EPREFIX/bin] 1911 --sbindir=DIR system admin executables [EPREFIX/sbin] 1912 --libexecdir=DIR program executables [EPREFIX/libexec] 1913 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1914 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1915 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1916 --libdir=DIR object code libraries [EPREFIX/lib] 1917 --includedir=DIR C header files [PREFIX/include] 1918 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1919 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1920 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1921 --infodir=DIR info documentation [DATAROOTDIR/info] 1922 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1923 --mandir=DIR man documentation [DATAROOTDIR/man] 1924 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1925 --htmldir=DIR html documentation [DOCDIR] 1926 --dvidir=DIR dvi documentation [DOCDIR] 1927 --pdfdir=DIR pdf documentation [DOCDIR] 1928 --psdir=DIR ps documentation [DOCDIR] 1929 _ACEOF 1930 1931 cat <<\_ACEOF 1932 1933 X features: 1934 --x-includes=DIR X include files are in DIR 1935 --x-libraries=DIR X library files are in DIR 1936 1937 System types: 1938 --build=BUILD configure for building on BUILD [guessed] 1939 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1940 --target=TARGET configure for building compilers for TARGET [HOST] 1941 _ACEOF 1942 fi 1943 1944 if test -n "$ac_init_help"; then 1945 case $ac_init_help in 1946 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1947 esac 1948 cat <<\_ACEOF 1949 1950 Optional Features: 1951 --disable-option-checking ignore unrecognized --enable/--with options 1952 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1953 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1954 --enable-openjdk-only suppress building custom source even if present 1955 [disabled] 1956 --enable-debug set the debug level to fastdebug (shorthand for 1957 --with-debug-level=fastdebug) [disabled] 1958 --enable-headless-only only build headless (no GUI) support [disabled] 1959 --enable-full-docs build complete documentation [enabled if all tools 1960 found] 1961 --disable-unlimited-crypto 1962 Disable unlimited crypto policy [enabled] 1963 --disable-keep-packaged-modules 1964 Do not keep packaged modules in jdk image [enable] 1965 --enable-static-build enable static library build [disabled] 1966 --disable-warnings-as-errors 1967 do not consider native warnings to be an error 1968 [enabled] 1969 --enable-debug-symbols Deprecated. Option is kept for backwards 1970 compatibility and is ignored 1971 --enable-zip-debug-info Deprecated. Option is kept for backwards 1972 compatibility and is ignored 1973 --enable-native-coverage 1974 enable native compilation with code coverage 1975 data[disabled] 1976 --enable-dtrace[=yes/no/auto] 1977 enable dtrace. Default is auto, where dtrace is 1978 enabled if all dependencies are present. 1979 --enable-aot[=yes/no/auto] 1980 enable ahead of time compilation feature. Default is 1981 auto, where aot is enabled if all dependencies are 1982 present. 1983 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 1984 Default is yes. 1985 --disable-hotspot-gtest Disables building of the Hotspot unit tests 1986 --disable-freetype-bundling 1987 disable bundling of the freetype library with the 1988 build result [enabled on Windows or when using 1989 --with-freetype, disabled otherwise] 1990 --enable-libffi-bundling 1991 enable bundling of libffi.so to make the built JDK 1992 runnable on more systems 1993 --enable-jtreg-failure-handler 1994 forces build of the jtreg failure handler to be 1995 enabled, missing dependencies become fatal errors. 1996 Default is auto, where the failure handler is built 1997 if all dependencies are present and otherwise just 1998 disabled. 1999 --disable-generate-classlist 2000 forces enabling or disabling of the generation of a 2001 CDS classlist at build time. Default is to generate 2002 it when either the server or client JVMs are built 2003 and enable-cds is true. 2004 --enable-sjavac use sjavac to do fast incremental compiles 2005 [disabled] 2006 --disable-javac-server disable javac server [enabled] 2007 --enable-icecc enable distribted compilation of native code using 2008 icecc/icecream [disabled] 2009 --disable-precompiled-headers 2010 disable using precompiled headers when compiling C++ 2011 [enabled] 2012 --enable-ccache enable using ccache to speed up recompilations 2013 [disabled] 2014 2015 Optional Packages: 2016 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2017 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2018 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2019 support it), e.g. --with-target-bits=32 [guessed] 2020 --with-custom-make-dir Deprecated. Option is kept for backwards 2021 compatibility and is ignored 2022 --with-jdk-variant JDK variant to build (normal) [normal] 2023 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2024 optimized) [release] 2025 --with-jvm-variants JVM variants (separated by commas) to build 2026 (server,client,minimal,core,zero,custom) [server] 2027 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2028 (arm64,aarch64) [aarch64] 2029 --with-devkit use this devkit for compilers, tools and resources 2030 --with-sys-root alias for --with-sysroot for backwards compatability 2031 --with-sysroot use this directory as sysroot 2032 --with-tools-dir alias for --with-toolchain-path for backwards 2033 compatibility 2034 --with-toolchain-path prepend these directories when searching for 2035 toolchain binaries (compilers etc) 2036 --with-extra-path prepend these directories to the default path 2037 --with-sdk-name use the platform SDK of the given name. [macosx] 2038 --with-conf-name use this as the name of the configuration [generated 2039 from important configuration options] 2040 --with-output-base-dir override the default output base directory [./build] 2041 --with-output-sync set make output sync type if supported by make. 2042 [recurse] 2043 --with-default-make-target 2044 set the default make target [exploded-image] 2045 --with-cacerts-file specify alternative cacerts file 2046 --with-copyright-year Set copyright year value for build [current year] 2047 --with-milestone Deprecated. Option is kept for backwards 2048 compatibility and is ignored 2049 --with-update-version Deprecated. Option is kept for backwards 2050 compatibility and is ignored 2051 --with-user-release-suffix 2052 Deprecated. Option is kept for backwards 2053 compatibility and is ignored 2054 --with-build-number Deprecated. Option is kept for backwards 2055 compatibility and is ignored 2056 --with-version-string Set version string [calculated] 2057 --with-version-pre Set the base part of the version 'PRE' field 2058 (pre-release identifier) ['internal'] 2059 --with-version-opt Set version 'OPT' field (build metadata) 2060 [<timestamp>.<user>.<dirname>] 2061 --with-version-build Set version 'BUILD' field (build number) [not 2062 specified] 2063 --with-version-major Set version 'MAJOR' field (first number) [current 2064 source value] 2065 --with-version-minor Set version 'MINOR' field (second number) [current 2066 source value] 2067 --with-version-security Set version 'SECURITY' field (third number) [current 2068 source value] 2069 --with-version-patch Set version 'PATCH' field (fourth number) [not 2070 specified] 2071 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2072 --with-build-jdk path to JDK of same version as is being built[the 2073 newly built JDK] 2074 --with-import-modules import a set of prebuilt modules either as a zip 2075 file or an exploded directory 2076 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2077 to show possible values [platform dependent] 2078 --with-extra-cflags extra flags to be used when compiling jdk c-files 2079 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2080 --with-extra-ldflags extra flags to be used when linking jdk 2081 --with-toolchain-version 2082 the version of the toolchain to look for, use 2083 '--help' to show possible values [platform 2084 dependent] 2085 --with-build-devkit Devkit to use for the build platform toolchain 2086 --with-jtreg Regression Test Harness [probed] 2087 --with-jib Jib dependency management tool [not used] 2088 --with-abi-profile specify ABI profile for ARM builds 2089 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2090 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2091 [toolchain dependent] 2092 --with-macosx-version-max 2093 error on use of newer functionality. [macosx] 2094 --with-native-debug-symbols 2095 set the native debug symbol configuration (none, 2096 internal, external, zipped) [varying] 2097 --with-stdc++lib=<static>,<dynamic>,<default> 2098 force linking of the C++ runtime on Linux to either 2099 static or dynamic, default is static with dynamic as 2100 fallback 2101 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2102 (Windows only) [probed] 2103 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2104 (Windows only) [probed] 2105 --with-x use the X Window System 2106 --with-cups specify prefix directory for the cups package 2107 (expecting the headers under PATH/include) 2108 --with-cups-include specify directory for the cups include files 2109 --with-freetype specify prefix directory for the freetype package 2110 (expecting the libraries under PATH/lib and the 2111 headers under PATH/include) 2112 --with-freetype-include specify directory for the freetype include files 2113 --with-freetype-lib specify directory for the freetype library 2114 --with-freetype-src specify directory with freetype sources to 2115 automatically build the library (experimental, 2116 Windows-only) 2117 --with-freetype-license if bundling freetype, also bundle this license file 2118 --with-alsa specify prefix directory for the alsa package 2119 (expecting the libraries under PATH/lib and the 2120 headers under PATH/include) 2121 --with-alsa-include specify directory for the alsa include files 2122 --with-alsa-lib specify directory for the alsa library 2123 --with-libffi specify prefix directory for the libffi package 2124 (expecting the libraries under PATH/lib and the 2125 headers under PATH/include) 2126 --with-libffi-include specify directory for the libffi include files 2127 --with-libffi-lib specify directory for the libffi library 2128 --with-libjpeg use libjpeg from build system or OpenJDK source 2129 (system, bundled) [bundled] 2130 --with-giflib use giflib from build system or OpenJDK source 2131 (system, bundled) [bundled] 2132 --with-libpng use libpng from build system or OpenJDK source 2133 (system, bundled) [bundled] 2134 --with-zlib use zlib from build system or OpenJDK source 2135 (system, bundled) [bundled] 2136 --with-lcms use lcms2 from build system or OpenJDK source 2137 (system, bundled) [bundled] 2138 --with-dxsdk Deprecated. Option is kept for backwards 2139 compatibility and is ignored 2140 --with-dxsdk-lib Deprecated. Option is kept for backwards 2141 compatibility and is ignored 2142 --with-dxsdk-include Deprecated. Option is kept for backwards 2143 compatibility and is ignored 2144 --with-jvm-features additional JVM features to enable (separated by 2145 comma), use '--help' to show possible values [none] 2146 --with-jvm-interpreter Deprecated. Option is kept for backwards 2147 compatibility and is ignored 2148 --with-num-cores number of cores in the build system, e.g. 2149 --with-num-cores=8 [probed] 2150 --with-memory-size memory (in MB) available in the build system, e.g. 2151 --with-memory-size=1024 [probed] 2152 --with-jobs number of parallel jobs to let make run [calculated 2153 based on cores and memory] 2154 --with-test-jobs number of parallel tests jobs to run [based on build 2155 jobs] 2156 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2157 invocations of boot JDK, overriding the default 2158 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2159 -enableassertions" 2160 --with-sjavac-server-java 2161 use this java binary for running the sjavac 2162 background server [Boot JDK java] 2163 --with-ccache-dir where to store ccache files [~/.ccache] 2164 2165 Some influential environment variables: 2166 BASENAME Override default value for BASENAME 2167 BASH Override default value for BASH 2168 CAT Override default value for CAT 2169 CHMOD Override default value for CHMOD 2170 CMP Override default value for CMP 2171 COMM Override default value for COMM 2172 CP Override default value for CP 2173 CUT Override default value for CUT 2174 DATE Override default value for DATE 2175 DIFF Override default value for DIFF 2176 DIRNAME Override default value for DIRNAME 2177 ECHO Override default value for ECHO 2178 EXPR Override default value for EXPR 2179 FILE Override default value for FILE 2180 FIND Override default value for FIND 2181 HEAD Override default value for HEAD 2182 GUNZIP Override default value for GUNZIP 2183 GZIP Override default value for GZIP 2184 LN Override default value for LN 2185 LS Override default value for LS 2186 MKDIR Override default value for MKDIR 2187 MKTEMP Override default value for MKTEMP 2188 MV Override default value for MV 2189 NAWK Override default value for NAWK 2190 PRINTF Override default value for PRINTF 2191 RM Override default value for RM 2192 RMDIR Override default value for RMDIR 2193 SH Override default value for SH 2194 SORT Override default value for SORT 2195 TAIL Override default value for TAIL 2196 TAR Override default value for TAR 2197 TEE Override default value for TEE 2198 TOUCH Override default value for TOUCH 2199 TR Override default value for TR 2200 UNAME Override default value for UNAME 2201 UNIQ Override default value for UNIQ 2202 WC Override default value for WC 2203 WHICH Override default value for WHICH 2204 XARGS Override default value for XARGS 2205 AWK Override default value for AWK 2206 GREP Override default value for GREP 2207 EGREP Override default value for EGREP 2208 FGREP Override default value for FGREP 2209 SED Override default value for SED 2210 CYGPATH Override default value for CYGPATH 2211 READLINK Override default value for READLINK 2212 DF Override default value for DF 2213 CPIO Override default value for CPIO 2214 NICE Override default value for NICE 2215 PANDOC Override default value for PANDOC 2216 MAKE Override default value for MAKE 2217 UNZIP Override default value for UNZIP 2218 ZIPEXE Override default value for ZIPEXE 2219 LDD Override default value for LDD 2220 OTOOL Override default value for OTOOL 2221 READELF Override default value for READELF 2222 DOT Override default value for DOT 2223 HG Override default value for HG 2224 STAT Override default value for STAT 2225 TIME Override default value for TIME 2226 FLOCK Override default value for FLOCK 2227 DTRACE Override default value for DTRACE 2228 PATCH Override default value for PATCH 2229 DSYMUTIL Override default value for DSYMUTIL 2230 XATTR Override default value for XATTR 2231 CODESIGN Override default value for CODESIGN 2232 SETFILE Override default value for SETFILE 2233 PKG_CONFIG path to pkg-config utility 2234 JAVA Override default value for JAVA 2235 JAVAC Override default value for JAVAC 2236 JAVAH Override default value for JAVAH 2237 JAR Override default value for JAR 2238 JARSIGNER Override default value for JARSIGNER 2239 CC C compiler command 2240 CFLAGS C compiler flags 2241 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2242 nonstandard directory <lib dir> 2243 LIBS libraries to pass to the linker, e.g. -l<library> 2244 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2245 you have headers in a nonstandard directory <include dir> 2246 CXX C++ compiler command 2247 CXXFLAGS C++ compiler flags 2248 CPP C preprocessor 2249 CXXCPP C++ preprocessor 2250 AS Override default value for AS 2251 AR Override default value for AR 2252 LIPO Override default value for LIPO 2253 STRIP Override default value for STRIP 2254 NM Override default value for NM 2255 GNM Override default value for GNM 2256 OBJCOPY Override default value for OBJCOPY 2257 OBJDUMP Override default value for OBJDUMP 2258 BUILD_CC Override default value for BUILD_CC 2259 BUILD_CXX Override default value for BUILD_CXX 2260 BUILD_NM Override default value for BUILD_NM 2261 BUILD_AR Override default value for BUILD_AR 2262 BUILD_OBJCOPY 2263 Override default value for BUILD_OBJCOPY 2264 BUILD_STRIP Override default value for BUILD_STRIP 2265 JTREGEXE Override default value for JTREGEXE 2266 XMKMF Path to xmkmf, Makefile generator for X Window System 2267 FREETYPE_CFLAGS 2268 C compiler flags for FREETYPE, overriding pkg-config 2269 FREETYPE_LIBS 2270 linker flags for FREETYPE, overriding pkg-config 2271 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2272 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2273 LIBFFI_CFLAGS 2274 C compiler flags for LIBFFI, overriding pkg-config 2275 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2276 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2277 PNG_LIBS linker flags for PNG, overriding pkg-config 2278 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2279 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2280 ICECC_CMD Override default value for ICECC_CMD 2281 ICECC_CREATE_ENV 2282 Override default value for ICECC_CREATE_ENV 2283 ICECC_WRAPPER 2284 Override default value for ICECC_WRAPPER 2285 CCACHE Override default value for CCACHE 2286 2287 Use these variables to override the choices made by `configure' or to help 2288 it to find libraries and programs with nonstandard names/locations. 2289 2290 Report bugs to <build-dev@openjdk.java.net>. 2291 OpenJDK home page: <http://openjdk.java.net>. 2292 _ACEOF 2293 ac_status=$? 2294 fi 2295 2296 if test "$ac_init_help" = "recursive"; then 2297 # If there are subdirs, report their specific --help. 2298 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2299 test -d "$ac_dir" || 2300 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2301 continue 2302 ac_builddir=. 2303 2304 case "$ac_dir" in 2305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2306 *) 2307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2308 # A ".." for each directory in $ac_dir_suffix. 2309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2310 case $ac_top_builddir_sub in 2311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2313 esac ;; 2314 esac 2315 ac_abs_top_builddir=$ac_pwd 2316 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2317 # for backward compatibility: 2318 ac_top_builddir=$ac_top_build_prefix 2319 2320 case $srcdir in 2321 .) # We are building in place. 2322 ac_srcdir=. 2323 ac_top_srcdir=$ac_top_builddir_sub 2324 ac_abs_top_srcdir=$ac_pwd ;; 2325 [\\/]* | ?:[\\/]* ) # Absolute name. 2326 ac_srcdir=$srcdir$ac_dir_suffix; 2327 ac_top_srcdir=$srcdir 2328 ac_abs_top_srcdir=$srcdir ;; 2329 *) # Relative name. 2330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2331 ac_top_srcdir=$ac_top_build_prefix$srcdir 2332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2333 esac 2334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2335 2336 cd "$ac_dir" || { ac_status=$?; continue; } 2337 # Check for guested configure. 2338 if test -f "$ac_srcdir/configure.gnu"; then 2339 echo && 2340 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2341 elif test -f "$ac_srcdir/configure"; then 2342 echo && 2343 $SHELL "$ac_srcdir/configure" --help=recursive 2344 else 2345 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2346 fi || ac_status=$? 2347 cd "$ac_pwd" || { ac_status=$?; break; } 2348 done 2349 fi 2350 2351 test -n "$ac_init_help" && exit $ac_status 2352 if $ac_init_version; then 2353 cat <<\_ACEOF 2354 OpenJDK configure jdk9 2355 generated by GNU Autoconf 2.69 2356 2357 Copyright (C) 2012 Free Software Foundation, Inc. 2358 This configure script is free software; the Free Software Foundation 2359 gives unlimited permission to copy, distribute and modify it. 2360 _ACEOF 2361 exit 2362 fi 2363 2364 ## ------------------------ ## 2365 ## Autoconf initialization. ## 2366 ## ------------------------ ## 2367 2368 # ac_fn_c_try_compile LINENO 2369 # -------------------------- 2370 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2371 ac_fn_c_try_compile () 2372 { 2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2374 rm -f conftest.$ac_objext 2375 if { { ac_try="$ac_compile" 2376 case "(($ac_try" in 2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2378 *) ac_try_echo=$ac_try;; 2379 esac 2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2381 $as_echo "$ac_try_echo"; } >&5 2382 (eval "$ac_compile") 2>conftest.err 2383 ac_status=$? 2384 if test -s conftest.err; then 2385 grep -v '^ *+' conftest.err >conftest.er1 2386 cat conftest.er1 >&5 2387 mv -f conftest.er1 conftest.err 2388 fi 2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2390 test $ac_status = 0; } && { 2391 test -z "$ac_c_werror_flag" || 2392 test ! -s conftest.err 2393 } && test -s conftest.$ac_objext; then : 2394 ac_retval=0 2395 else 2396 $as_echo "$as_me: failed program was:" >&5 2397 sed 's/^/| /' conftest.$ac_ext >&5 2398 2399 ac_retval=1 2400 fi 2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2402 as_fn_set_status $ac_retval 2403 2404 } # ac_fn_c_try_compile 2405 2406 # ac_fn_cxx_try_compile LINENO 2407 # ---------------------------- 2408 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2409 ac_fn_cxx_try_compile () 2410 { 2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2412 rm -f conftest.$ac_objext 2413 if { { ac_try="$ac_compile" 2414 case "(($ac_try" in 2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2416 *) ac_try_echo=$ac_try;; 2417 esac 2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2419 $as_echo "$ac_try_echo"; } >&5 2420 (eval "$ac_compile") 2>conftest.err 2421 ac_status=$? 2422 if test -s conftest.err; then 2423 grep -v '^ *+' conftest.err >conftest.er1 2424 cat conftest.er1 >&5 2425 mv -f conftest.er1 conftest.err 2426 fi 2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2428 test $ac_status = 0; } && { 2429 test -z "$ac_cxx_werror_flag" || 2430 test ! -s conftest.err 2431 } && test -s conftest.$ac_objext; then : 2432 ac_retval=0 2433 else 2434 $as_echo "$as_me: failed program was:" >&5 2435 sed 's/^/| /' conftest.$ac_ext >&5 2436 2437 ac_retval=1 2438 fi 2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2440 as_fn_set_status $ac_retval 2441 2442 } # ac_fn_cxx_try_compile 2443 2444 # ac_fn_c_try_cpp LINENO 2445 # ---------------------- 2446 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2447 ac_fn_c_try_cpp () 2448 { 2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2450 if { { ac_try="$ac_cpp conftest.$ac_ext" 2451 case "(($ac_try" in 2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2453 *) ac_try_echo=$ac_try;; 2454 esac 2455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2456 $as_echo "$ac_try_echo"; } >&5 2457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2458 ac_status=$? 2459 if test -s conftest.err; then 2460 grep -v '^ *+' conftest.err >conftest.er1 2461 cat conftest.er1 >&5 2462 mv -f conftest.er1 conftest.err 2463 fi 2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2465 test $ac_status = 0; } > conftest.i && { 2466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2467 test ! -s conftest.err 2468 }; then : 2469 ac_retval=0 2470 else 2471 $as_echo "$as_me: failed program was:" >&5 2472 sed 's/^/| /' conftest.$ac_ext >&5 2473 2474 ac_retval=1 2475 fi 2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2477 as_fn_set_status $ac_retval 2478 2479 } # ac_fn_c_try_cpp 2480 2481 # ac_fn_cxx_try_cpp LINENO 2482 # ------------------------ 2483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2484 ac_fn_cxx_try_cpp () 2485 { 2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2487 if { { ac_try="$ac_cpp conftest.$ac_ext" 2488 case "(($ac_try" in 2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2490 *) ac_try_echo=$ac_try;; 2491 esac 2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2493 $as_echo "$ac_try_echo"; } >&5 2494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2495 ac_status=$? 2496 if test -s conftest.err; then 2497 grep -v '^ *+' conftest.err >conftest.er1 2498 cat conftest.er1 >&5 2499 mv -f conftest.er1 conftest.err 2500 fi 2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2502 test $ac_status = 0; } > conftest.i && { 2503 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2504 test ! -s conftest.err 2505 }; then : 2506 ac_retval=0 2507 else 2508 $as_echo "$as_me: failed program was:" >&5 2509 sed 's/^/| /' conftest.$ac_ext >&5 2510 2511 ac_retval=1 2512 fi 2513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2514 as_fn_set_status $ac_retval 2515 2516 } # ac_fn_cxx_try_cpp 2517 2518 # ac_fn_c_try_link LINENO 2519 # ----------------------- 2520 # Try to link conftest.$ac_ext, and return whether this succeeded. 2521 ac_fn_c_try_link () 2522 { 2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2524 rm -f conftest.$ac_objext conftest$ac_exeext 2525 if { { ac_try="$ac_link" 2526 case "(($ac_try" in 2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2528 *) ac_try_echo=$ac_try;; 2529 esac 2530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2531 $as_echo "$ac_try_echo"; } >&5 2532 (eval "$ac_link") 2>conftest.err 2533 ac_status=$? 2534 if test -s conftest.err; then 2535 grep -v '^ *+' conftest.err >conftest.er1 2536 cat conftest.er1 >&5 2537 mv -f conftest.er1 conftest.err 2538 fi 2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2540 test $ac_status = 0; } && { 2541 test -z "$ac_c_werror_flag" || 2542 test ! -s conftest.err 2543 } && test -s conftest$ac_exeext && { 2544 test "$cross_compiling" = yes || 2545 test -x conftest$ac_exeext 2546 }; then : 2547 ac_retval=0 2548 else 2549 $as_echo "$as_me: failed program was:" >&5 2550 sed 's/^/| /' conftest.$ac_ext >&5 2551 2552 ac_retval=1 2553 fi 2554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2556 # interfere with the next link command; also delete a directory that is 2557 # left behind by Apple's compiler. We do this before executing the actions. 2558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2560 as_fn_set_status $ac_retval 2561 2562 } # ac_fn_c_try_link 2563 2564 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2565 # --------------------------------------------------------- 2566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2567 # the include files in INCLUDES and setting the cache variable VAR 2568 # accordingly. 2569 ac_fn_cxx_check_header_mongrel () 2570 { 2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2572 if eval \${$3+:} false; then : 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2574 $as_echo_n "checking for $2... " >&6; } 2575 if eval \${$3+:} false; then : 2576 $as_echo_n "(cached) " >&6 2577 fi 2578 eval ac_res=\$$3 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2580 $as_echo "$ac_res" >&6; } 2581 else 2582 # Is the header compilable? 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2584 $as_echo_n "checking $2 usability... " >&6; } 2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2586 /* end confdefs.h. */ 2587 $4 2588 #include <$2> 2589 _ACEOF 2590 if ac_fn_cxx_try_compile "$LINENO"; then : 2591 ac_header_compiler=yes 2592 else 2593 ac_header_compiler=no 2594 fi 2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2597 $as_echo "$ac_header_compiler" >&6; } 2598 2599 # Is the header present? 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2601 $as_echo_n "checking $2 presence... " >&6; } 2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2603 /* end confdefs.h. */ 2604 #include <$2> 2605 _ACEOF 2606 if ac_fn_cxx_try_cpp "$LINENO"; then : 2607 ac_header_preproc=yes 2608 else 2609 ac_header_preproc=no 2610 fi 2611 rm -f conftest.err conftest.i conftest.$ac_ext 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2613 $as_echo "$ac_header_preproc" >&6; } 2614 2615 # So? What about this header? 2616 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2617 yes:no: ) 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2622 ;; 2623 no:yes:* ) 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2634 ( $as_echo "## ----------------------------------------- ## 2635 ## Report this to build-dev@openjdk.java.net ## 2636 ## ----------------------------------------- ##" 2637 ) | sed "s/^/$as_me: WARNING: /" >&2 2638 ;; 2639 esac 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2641 $as_echo_n "checking for $2... " >&6; } 2642 if eval \${$3+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644 else 2645 eval "$3=\$ac_header_compiler" 2646 fi 2647 eval ac_res=\$$3 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2649 $as_echo "$ac_res" >&6; } 2650 fi 2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2652 2653 } # ac_fn_cxx_check_header_mongrel 2654 2655 # ac_fn_cxx_try_run LINENO 2656 # ------------------------ 2657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2658 # that executables *can* be run. 2659 ac_fn_cxx_try_run () 2660 { 2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2662 if { { ac_try="$ac_link" 2663 case "(($ac_try" in 2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2665 *) ac_try_echo=$ac_try;; 2666 esac 2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2668 $as_echo "$ac_try_echo"; } >&5 2669 (eval "$ac_link") 2>&5 2670 ac_status=$? 2671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2673 { { case "(($ac_try" in 2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2675 *) ac_try_echo=$ac_try;; 2676 esac 2677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2678 $as_echo "$ac_try_echo"; } >&5 2679 (eval "$ac_try") 2>&5 2680 ac_status=$? 2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2682 test $ac_status = 0; }; }; then : 2683 ac_retval=0 2684 else 2685 $as_echo "$as_me: program exited with status $ac_status" >&5 2686 $as_echo "$as_me: failed program was:" >&5 2687 sed 's/^/| /' conftest.$ac_ext >&5 2688 2689 ac_retval=$ac_status 2690 fi 2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2693 as_fn_set_status $ac_retval 2694 2695 } # ac_fn_cxx_try_run 2696 2697 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2698 # --------------------------------------------------------- 2699 # Tests whether HEADER exists and can be compiled using the include files in 2700 # INCLUDES, setting the cache variable VAR accordingly. 2701 ac_fn_cxx_check_header_compile () 2702 { 2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2705 $as_echo_n "checking for $2... " >&6; } 2706 if eval \${$3+:} false; then : 2707 $as_echo_n "(cached) " >&6 2708 else 2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2710 /* end confdefs.h. */ 2711 $4 2712 #include <$2> 2713 _ACEOF 2714 if ac_fn_cxx_try_compile "$LINENO"; then : 2715 eval "$3=yes" 2716 else 2717 eval "$3=no" 2718 fi 2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2720 fi 2721 eval ac_res=\$$3 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2723 $as_echo "$ac_res" >&6; } 2724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2725 2726 } # ac_fn_cxx_check_header_compile 2727 2728 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2729 # ---------------------------------------------- 2730 # Tries to find the compile-time value of EXPR in a program that includes 2731 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2732 # computed 2733 ac_fn_cxx_compute_int () 2734 { 2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2736 if test "$cross_compiling" = yes; then 2737 # Depending upon the size, compute the lo and hi bounds. 2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2739 /* end confdefs.h. */ 2740 $4 2741 int 2742 main () 2743 { 2744 static int test_array [1 - 2 * !(($2) >= 0)]; 2745 test_array [0] = 0; 2746 return test_array [0]; 2747 2748 ; 2749 return 0; 2750 } 2751 _ACEOF 2752 if ac_fn_cxx_try_compile "$LINENO"; then : 2753 ac_lo=0 ac_mid=0 2754 while :; do 2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2756 /* end confdefs.h. */ 2757 $4 2758 int 2759 main () 2760 { 2761 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2762 test_array [0] = 0; 2763 return test_array [0]; 2764 2765 ; 2766 return 0; 2767 } 2768 _ACEOF 2769 if ac_fn_cxx_try_compile "$LINENO"; then : 2770 ac_hi=$ac_mid; break 2771 else 2772 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2773 if test $ac_lo -le $ac_mid; then 2774 ac_lo= ac_hi= 2775 break 2776 fi 2777 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2778 fi 2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2780 done 2781 else 2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2783 /* end confdefs.h. */ 2784 $4 2785 int 2786 main () 2787 { 2788 static int test_array [1 - 2 * !(($2) < 0)]; 2789 test_array [0] = 0; 2790 return test_array [0]; 2791 2792 ; 2793 return 0; 2794 } 2795 _ACEOF 2796 if ac_fn_cxx_try_compile "$LINENO"; then : 2797 ac_hi=-1 ac_mid=-1 2798 while :; do 2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2800 /* end confdefs.h. */ 2801 $4 2802 int 2803 main () 2804 { 2805 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2806 test_array [0] = 0; 2807 return test_array [0]; 2808 2809 ; 2810 return 0; 2811 } 2812 _ACEOF 2813 if ac_fn_cxx_try_compile "$LINENO"; then : 2814 ac_lo=$ac_mid; break 2815 else 2816 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2817 if test $ac_mid -le $ac_hi; then 2818 ac_lo= ac_hi= 2819 break 2820 fi 2821 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2822 fi 2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2824 done 2825 else 2826 ac_lo= ac_hi= 2827 fi 2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2829 fi 2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2831 # Binary search between lo and hi bounds. 2832 while test "x$ac_lo" != "x$ac_hi"; do 2833 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835 /* end confdefs.h. */ 2836 $4 2837 int 2838 main () 2839 { 2840 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2841 test_array [0] = 0; 2842 return test_array [0]; 2843 2844 ; 2845 return 0; 2846 } 2847 _ACEOF 2848 if ac_fn_cxx_try_compile "$LINENO"; then : 2849 ac_hi=$ac_mid 2850 else 2851 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2852 fi 2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2854 done 2855 case $ac_lo in #(( 2856 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2857 '') ac_retval=1 ;; 2858 esac 2859 else 2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861 /* end confdefs.h. */ 2862 $4 2863 static long int longval () { return $2; } 2864 static unsigned long int ulongval () { return $2; } 2865 #include <stdio.h> 2866 #include <stdlib.h> 2867 int 2868 main () 2869 { 2870 2871 FILE *f = fopen ("conftest.val", "w"); 2872 if (! f) 2873 return 1; 2874 if (($2) < 0) 2875 { 2876 long int i = longval (); 2877 if (i != ($2)) 2878 return 1; 2879 fprintf (f, "%ld", i); 2880 } 2881 else 2882 { 2883 unsigned long int i = ulongval (); 2884 if (i != ($2)) 2885 return 1; 2886 fprintf (f, "%lu", i); 2887 } 2888 /* Do not output a trailing newline, as this causes \r\n confusion 2889 on some platforms. */ 2890 return ferror (f) || fclose (f) != 0; 2891 2892 ; 2893 return 0; 2894 } 2895 _ACEOF 2896 if ac_fn_cxx_try_run "$LINENO"; then : 2897 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2898 else 2899 ac_retval=1 2900 fi 2901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2902 conftest.$ac_objext conftest.beam conftest.$ac_ext 2903 rm -f conftest.val 2904 2905 fi 2906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2907 as_fn_set_status $ac_retval 2908 2909 } # ac_fn_cxx_compute_int 2910 2911 # ac_fn_cxx_try_link LINENO 2912 # ------------------------- 2913 # Try to link conftest.$ac_ext, and return whether this succeeded. 2914 ac_fn_cxx_try_link () 2915 { 2916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2917 rm -f conftest.$ac_objext conftest$ac_exeext 2918 if { { ac_try="$ac_link" 2919 case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922 esac 2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2924 $as_echo "$ac_try_echo"; } >&5 2925 (eval "$ac_link") 2>conftest.err 2926 ac_status=$? 2927 if test -s conftest.err; then 2928 grep -v '^ *+' conftest.err >conftest.er1 2929 cat conftest.er1 >&5 2930 mv -f conftest.er1 conftest.err 2931 fi 2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2933 test $ac_status = 0; } && { 2934 test -z "$ac_cxx_werror_flag" || 2935 test ! -s conftest.err 2936 } && test -s conftest$ac_exeext && { 2937 test "$cross_compiling" = yes || 2938 test -x conftest$ac_exeext 2939 }; then : 2940 ac_retval=0 2941 else 2942 $as_echo "$as_me: failed program was:" >&5 2943 sed 's/^/| /' conftest.$ac_ext >&5 2944 2945 ac_retval=1 2946 fi 2947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2949 # interfere with the next link command; also delete a directory that is 2950 # left behind by Apple's compiler. We do this before executing the actions. 2951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2953 as_fn_set_status $ac_retval 2954 2955 } # ac_fn_cxx_try_link 2956 2957 # ac_fn_cxx_check_func LINENO FUNC VAR 2958 # ------------------------------------ 2959 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2960 ac_fn_cxx_check_func () 2961 { 2962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2964 $as_echo_n "checking for $2... " >&6; } 2965 if eval \${$3+:} false; then : 2966 $as_echo_n "(cached) " >&6 2967 else 2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2969 /* end confdefs.h. */ 2970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2971 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2972 #define $2 innocuous_$2 2973 2974 /* System header to define __stub macros and hopefully few prototypes, 2975 which can conflict with char $2 (); below. 2976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2977 <limits.h> exists even on freestanding compilers. */ 2978 2979 #ifdef __STDC__ 2980 # include <limits.h> 2981 #else 2982 # include <assert.h> 2983 #endif 2984 2985 #undef $2 2986 2987 /* Override any GCC internal prototype to avoid an error. 2988 Use char because int might match the return type of a GCC 2989 builtin and then its argument prototype would still apply. */ 2990 #ifdef __cplusplus 2991 extern "C" 2992 #endif 2993 char $2 (); 2994 /* The GNU C library defines this for functions which it implements 2995 to always fail with ENOSYS. Some functions are actually named 2996 something starting with __ and the normal name is an alias. */ 2997 #if defined __stub_$2 || defined __stub___$2 2998 choke me 2999 #endif 3000 3001 int 3002 main () 3003 { 3004 return $2 (); 3005 ; 3006 return 0; 3007 } 3008 _ACEOF 3009 if ac_fn_cxx_try_link "$LINENO"; then : 3010 eval "$3=yes" 3011 else 3012 eval "$3=no" 3013 fi 3014 rm -f core conftest.err conftest.$ac_objext \ 3015 conftest$ac_exeext conftest.$ac_ext 3016 fi 3017 eval ac_res=\$$3 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3019 $as_echo "$ac_res" >&6; } 3020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3021 3022 } # ac_fn_cxx_check_func 3023 3024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3025 # ------------------------------------------------------- 3026 # Tests whether HEADER exists and can be compiled using the include files in 3027 # INCLUDES, setting the cache variable VAR accordingly. 3028 ac_fn_c_check_header_compile () 3029 { 3030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3032 $as_echo_n "checking for $2... " >&6; } 3033 if eval \${$3+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035 else 3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037 /* end confdefs.h. */ 3038 $4 3039 #include <$2> 3040 _ACEOF 3041 if ac_fn_c_try_compile "$LINENO"; then : 3042 eval "$3=yes" 3043 else 3044 eval "$3=no" 3045 fi 3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3047 fi 3048 eval ac_res=\$$3 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3050 $as_echo "$ac_res" >&6; } 3051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3052 3053 } # ac_fn_c_check_header_compile 3054 cat >config.log <<_ACEOF 3055 This file contains any messages produced by compilers while 3056 running configure, to aid debugging if configure makes a mistake. 3057 3058 It was created by OpenJDK $as_me jdk9, which was 3059 generated by GNU Autoconf 2.69. Invocation command line was 3060 3061 $ $0 $@ 3062 3063 _ACEOF 3064 exec 5>>config.log 3065 { 3066 cat <<_ASUNAME 3067 ## --------- ## 3068 ## Platform. ## 3069 ## --------- ## 3070 3071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3072 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3073 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3074 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3075 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3076 3077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3079 3080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3083 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3087 3088 _ASUNAME 3089 3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091 for as_dir in $PATH 3092 do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 $as_echo "PATH: $as_dir" 3096 done 3097 IFS=$as_save_IFS 3098 3099 } >&5 3100 3101 cat >&5 <<_ACEOF 3102 3103 3104 ## ----------- ## 3105 ## Core tests. ## 3106 ## ----------- ## 3107 3108 _ACEOF 3109 3110 3111 # Keep a trace of the command line. 3112 # Strip out --no-create and --no-recursion so they do not pile up. 3113 # Strip out --silent because we don't want to record it for future runs. 3114 # Also quote any args containing shell meta-characters. 3115 # Make two passes to allow for proper duplicate-argument suppression. 3116 ac_configure_args= 3117 ac_configure_args0= 3118 ac_configure_args1= 3119 ac_must_keep_next=false 3120 for ac_pass in 1 2 3121 do 3122 for ac_arg 3123 do 3124 case $ac_arg in 3125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3127 | -silent | --silent | --silen | --sile | --sil) 3128 continue ;; 3129 *\'*) 3130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3131 esac 3132 case $ac_pass in 3133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3134 2) 3135 as_fn_append ac_configure_args1 " '$ac_arg'" 3136 if test $ac_must_keep_next = true; then 3137 ac_must_keep_next=false # Got value, back to normal. 3138 else 3139 case $ac_arg in 3140 *=* | --config-cache | -C | -disable-* | --disable-* \ 3141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3143 | -with-* | --with-* | -without-* | --without-* | --x) 3144 case "$ac_configure_args0 " in 3145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3146 esac 3147 ;; 3148 -* ) ac_must_keep_next=true ;; 3149 esac 3150 fi 3151 as_fn_append ac_configure_args " '$ac_arg'" 3152 ;; 3153 esac 3154 done 3155 done 3156 { ac_configure_args0=; unset ac_configure_args0;} 3157 { ac_configure_args1=; unset ac_configure_args1;} 3158 3159 # When interrupted or exit'd, cleanup temporary files, and complete 3160 # config.log. We remove comments because anyway the quotes in there 3161 # would cause problems or look ugly. 3162 # WARNING: Use '\'' to represent an apostrophe within the trap. 3163 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3164 trap 'exit_status=$? 3165 # Save into config.log some information that might help in debugging. 3166 { 3167 echo 3168 3169 $as_echo "## ---------------- ## 3170 ## Cache variables. ## 3171 ## ---------------- ##" 3172 echo 3173 # The following way of writing the cache mishandles newlines in values, 3174 ( 3175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3176 eval ac_val=\$$ac_var 3177 case $ac_val in #( 3178 *${as_nl}*) 3179 case $ac_var in #( 3180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3182 esac 3183 case $ac_var in #( 3184 _ | IFS | as_nl) ;; #( 3185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3186 *) { eval $ac_var=; unset $ac_var;} ;; 3187 esac ;; 3188 esac 3189 done 3190 (set) 2>&1 | 3191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3192 *${as_nl}ac_space=\ *) 3193 sed -n \ 3194 "s/'\''/'\''\\\\'\'''\''/g; 3195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3196 ;; #( 3197 *) 3198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3199 ;; 3200 esac | 3201 sort 3202 ) 3203 echo 3204 3205 $as_echo "## ----------------- ## 3206 ## Output variables. ## 3207 ## ----------------- ##" 3208 echo 3209 for ac_var in $ac_subst_vars 3210 do 3211 eval ac_val=\$$ac_var 3212 case $ac_val in 3213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3214 esac 3215 $as_echo "$ac_var='\''$ac_val'\''" 3216 done | sort 3217 echo 3218 3219 if test -n "$ac_subst_files"; then 3220 $as_echo "## ------------------- ## 3221 ## File substitutions. ## 3222 ## ------------------- ##" 3223 echo 3224 for ac_var in $ac_subst_files 3225 do 3226 eval ac_val=\$$ac_var 3227 case $ac_val in 3228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3229 esac 3230 $as_echo "$ac_var='\''$ac_val'\''" 3231 done | sort 3232 echo 3233 fi 3234 3235 if test -s confdefs.h; then 3236 $as_echo "## ----------- ## 3237 ## confdefs.h. ## 3238 ## ----------- ##" 3239 echo 3240 cat confdefs.h 3241 echo 3242 fi 3243 test "$ac_signal" != 0 && 3244 $as_echo "$as_me: caught signal $ac_signal" 3245 $as_echo "$as_me: exit $exit_status" 3246 } >&5 3247 rm -f core *.core core.conftest.* && 3248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3249 exit $exit_status 3250 ' 0 3251 for ac_signal in 1 2 13 15; do 3252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3253 done 3254 ac_signal=0 3255 3256 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3257 rm -f -r conftest* confdefs.h 3258 3259 $as_echo "/* confdefs.h */" > confdefs.h 3260 3261 # Predefined preprocessor variables. 3262 3263 cat >>confdefs.h <<_ACEOF 3264 #define PACKAGE_NAME "$PACKAGE_NAME" 3265 _ACEOF 3266 3267 cat >>confdefs.h <<_ACEOF 3268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3269 _ACEOF 3270 3271 cat >>confdefs.h <<_ACEOF 3272 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3273 _ACEOF 3274 3275 cat >>confdefs.h <<_ACEOF 3276 #define PACKAGE_STRING "$PACKAGE_STRING" 3277 _ACEOF 3278 3279 cat >>confdefs.h <<_ACEOF 3280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3281 _ACEOF 3282 3283 cat >>confdefs.h <<_ACEOF 3284 #define PACKAGE_URL "$PACKAGE_URL" 3285 _ACEOF 3286 3287 3288 # Let the site file select an alternate cache file if it wants to. 3289 # Prefer an explicitly selected file to automatically selected ones. 3290 ac_site_file1=NONE 3291 ac_site_file2=NONE 3292 if test -n "$CONFIG_SITE"; then 3293 # We do not want a PATH search for config.site. 3294 case $CONFIG_SITE in #(( 3295 -*) ac_site_file1=./$CONFIG_SITE;; 3296 */*) ac_site_file1=$CONFIG_SITE;; 3297 *) ac_site_file1=./$CONFIG_SITE;; 3298 esac 3299 elif test "x$prefix" != xNONE; then 3300 ac_site_file1=$prefix/share/config.site 3301 ac_site_file2=$prefix/etc/config.site 3302 else 3303 ac_site_file1=$ac_default_prefix/share/config.site 3304 ac_site_file2=$ac_default_prefix/etc/config.site 3305 fi 3306 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3307 do 3308 test "x$ac_site_file" = xNONE && continue 3309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3311 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3312 sed 's/^/| /' "$ac_site_file" >&5 3313 . "$ac_site_file" \ 3314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3316 as_fn_error $? "failed to load site script $ac_site_file 3317 See \`config.log' for more details" "$LINENO" 5; } 3318 fi 3319 done 3320 3321 if test -r "$cache_file"; then 3322 # Some versions of bash will fail to source /dev/null (special files 3323 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3326 $as_echo "$as_me: loading cache $cache_file" >&6;} 3327 case $cache_file in 3328 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3329 *) . "./$cache_file";; 3330 esac 3331 fi 3332 else 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3334 $as_echo "$as_me: creating cache $cache_file" >&6;} 3335 >$cache_file 3336 fi 3337 3338 # Check that the precious variables saved in the cache have kept the same 3339 # value. 3340 ac_cache_corrupted=false 3341 for ac_var in $ac_precious_vars; do 3342 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3343 eval ac_new_set=\$ac_env_${ac_var}_set 3344 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3345 eval ac_new_val=\$ac_env_${ac_var}_value 3346 case $ac_old_set,$ac_new_set in 3347 set,) 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3349 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3350 ac_cache_corrupted=: ;; 3351 ,set) 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3353 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3354 ac_cache_corrupted=: ;; 3355 ,);; 3356 *) 3357 if test "x$ac_old_val" != "x$ac_new_val"; then 3358 # differences in whitespace do not lead to failure. 3359 ac_old_val_w=`echo x $ac_old_val` 3360 ac_new_val_w=`echo x $ac_new_val` 3361 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3363 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3364 ac_cache_corrupted=: 3365 else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3367 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3368 eval $ac_var=\$ac_old_val 3369 fi 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3371 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3373 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3374 fi;; 3375 esac 3376 # Pass precious variables to config.status. 3377 if test "$ac_new_set" = set; then 3378 case $ac_new_val in 3379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3380 *) ac_arg=$ac_var=$ac_new_val ;; 3381 esac 3382 case " $ac_configure_args " in 3383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3384 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3385 esac 3386 fi 3387 done 3388 if $ac_cache_corrupted; then 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3392 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3393 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3394 fi 3395 ## -------------------- ## 3396 ## Main body of script. ## 3397 ## -------------------- ## 3398 3399 ac_ext=c 3400 ac_cpp='$CPP $CPPFLAGS' 3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3404 3405 3406 3407 ac_aux_dir= 3408 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do 3409 if test -f "$ac_dir/install-sh"; then 3410 ac_aux_dir=$ac_dir 3411 ac_install_sh="$ac_aux_dir/install-sh -c" 3412 break 3413 elif test -f "$ac_dir/install.sh"; then 3414 ac_aux_dir=$ac_dir 3415 ac_install_sh="$ac_aux_dir/install.sh -c" 3416 break 3417 elif test -f "$ac_dir/shtool"; then 3418 ac_aux_dir=$ac_dir 3419 ac_install_sh="$ac_aux_dir/shtool install -c" 3420 break 3421 fi 3422 done 3423 if test -z "$ac_aux_dir"; then 3424 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5 3425 fi 3426 3427 # These three variables are undocumented and unsupported, 3428 # and are intended to be withdrawn in a future Autoconf release. 3429 # They can cause serious problems if a builder's source tree is in a directory 3430 # whose full name contains unusual characters. 3431 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3432 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3433 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3434 3435 3436 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3437 3438 # 3439 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3440 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3441 # 3442 # This code is free software; you can redistribute it and/or modify it 3443 # under the terms of the GNU General Public License version 2 only, as 3444 # published by the Free Software Foundation. Oracle designates this 3445 # particular file as subject to the "Classpath" exception as provided 3446 # by Oracle in the LICENSE file that accompanied this code. 3447 # 3448 # This code is distributed in the hope that it will be useful, but WITHOUT 3449 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3450 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3451 # version 2 for more details (a copy is included in the LICENSE file that 3452 # accompanied this code). 3453 # 3454 # You should have received a copy of the GNU General Public License version 3455 # 2 along with this work; if not, write to the Free Software Foundation, 3456 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3457 # 3458 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3459 # or visit www.oracle.com if you need additional information or have any 3460 # questions. 3461 # 3462 3463 # 3464 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3465 # 3466 # This program is free software; you can redistribute it and/or modify 3467 # it under the terms of the GNU General Public License as published by 3468 # the Free Software Foundation; either version 2 of the License, or 3469 # (at your option) any later version. 3470 # 3471 # This program is distributed in the hope that it will be useful, but 3472 # WITHOUT ANY WARRANTY; without even the implied warranty of 3473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3474 # General Public License for more details. 3475 # 3476 # You should have received a copy of the GNU General Public License 3477 # along with this program; if not, write to the Free Software 3478 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3479 # 3480 # As a special exception to the GNU General Public License, if you 3481 # distribute this file as part of a program that contains a 3482 # configuration script generated by Autoconf, you may include it under 3483 # the same distribution terms that you use for the rest of that program. 3484 3485 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3486 # ---------------------------------- 3487 # PKG_PROG_PKG_CONFIG 3488 3489 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3490 # 3491 # Check to see whether a particular set of modules exists. Similar 3492 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3493 # 3494 # 3495 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3496 # this or PKG_CHECK_MODULES is called, or make sure to call 3497 # PKG_CHECK_EXISTS manually 3498 # -------------------------------------------------------------- 3499 3500 3501 3502 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3503 # --------------------------------------------- 3504 # _PKG_CONFIG 3505 3506 # _PKG_SHORT_ERRORS_SUPPORTED 3507 # ----------------------------- 3508 # _PKG_SHORT_ERRORS_SUPPORTED 3509 3510 3511 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3512 # [ACTION-IF-NOT-FOUND]) 3513 # 3514 # 3515 # Note that if there is a possibility the first call to 3516 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3517 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3518 # 3519 # 3520 # -------------------------------------------------------------- 3521 # PKG_CHECK_MODULES 3522 3523 3524 # Include these first... 3525 # 3526 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3527 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3528 # 3529 # This code is free software; you can redistribute it and/or modify it 3530 # under the terms of the GNU General Public License version 2 only, as 3531 # published by the Free Software Foundation. Oracle designates this 3532 # particular file as subject to the "Classpath" exception as provided 3533 # by Oracle in the LICENSE file that accompanied this code. 3534 # 3535 # This code is distributed in the hope that it will be useful, but WITHOUT 3536 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3537 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3538 # version 2 for more details (a copy is included in the LICENSE file that 3539 # accompanied this code). 3540 # 3541 # You should have received a copy of the GNU General Public License version 3542 # 2 along with this work; if not, write to the Free Software Foundation, 3543 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3544 # 3545 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3546 # or visit www.oracle.com if you need additional information or have any 3547 # questions. 3548 # 3549 3550 # Create a function/macro that takes a series of named arguments. The call is 3551 # similar to AC_DEFUN, but the setup of the function looks like this: 3552 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3553 # ... do something 3554 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3555 # ]) 3556 # A star (*) in front of a named argument means that it is required and it's 3557 # presence will be verified. To pass e.g. the first value as a normal indexed 3558 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3559 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3560 # "ARG_FOO". 3561 # 3562 # The generated function can be called like this: 3563 # MYFUNC(FOO: [foo-val], 3564 # BAR: [ 3565 # $ECHO hello world 3566 # ]) 3567 # Note that the argument value must start on the same line as the argument name. 3568 # 3569 # Argument 1: Name of the function to define 3570 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3571 # Argument 3: Argument array to treat as named, typically $@ 3572 # Argument 4: The main function body 3573 3574 3575 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3576 # If so, then append $1 to $2 \ 3577 # Also set JVM_ARG_OK to true/false depending on outcome. 3578 3579 3580 # Appends a string to a path variable, only adding the : when needed. 3581 3582 3583 # Prepends a string to a path variable, only adding the : when needed. 3584 3585 3586 # This will make sure the given variable points to a full and proper 3587 # path. This means: 3588 # 1) There will be no spaces in the path. On unix platforms, 3589 # spaces in the path will result in an error. On Windows, 3590 # the path will be rewritten using short-style to be space-free. 3591 # 2) The path will be absolute, and it will be in unix-style (on 3592 # cygwin). 3593 # $1: The name of the variable to fix 3594 3595 3596 # This will make sure the given variable points to a executable 3597 # with a full and proper path. This means: 3598 # 1) There will be no spaces in the path. On unix platforms, 3599 # spaces in the path will result in an error. On Windows, 3600 # the path will be rewritten using short-style to be space-free. 3601 # 2) The path will be absolute, and it will be in unix-style (on 3602 # cygwin). 3603 # Any arguments given to the executable is preserved. 3604 # If the input variable does not have a directory specification, then 3605 # it need to be in the PATH. 3606 # $1: The name of the variable to fix 3607 3608 3609 3610 3611 # Register a --with argument but mark it as deprecated 3612 # $1: The name of the with argument to deprecate, not including --with- 3613 3614 3615 # Register a --enable argument but mark it as deprecated 3616 # $1: The name of the with argument to deprecate, not including --enable- 3617 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3618 # $3: Messages to user. 3619 3620 3621 3622 3623 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3624 # $1: variable to check 3625 3626 3627 # Check that there are no unprocessed overridden variables left. 3628 # If so, they are an incorrect argument and we will exit with an error. 3629 3630 3631 # Setup a tool for the given variable. If correctly specified by the user, 3632 # use that value, otherwise search for the tool using the supplied code snippet. 3633 # $1: variable to set 3634 # $2: code snippet to call to look for the tool 3635 # $3: code snippet to call if variable was used to find tool 3636 3637 3638 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3639 # $1: variable to set 3640 # $2: executable name (or list of names) to look for 3641 # $3: [path] 3642 3643 3644 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3645 # $1: variable to set 3646 # $2: executable name (or list of names) to look for 3647 3648 3649 # Like BASIC_PATH_PROGS but fails if no tool was found. 3650 # $1: variable to set 3651 # $2: executable name (or list of names) to look for 3652 # $3: [path] 3653 3654 3655 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3656 # $1: variable to set 3657 # $2: autoconf macro to call to look for the special tool 3658 3659 3660 # Setup the most fundamental tools that relies on not much else to set up, 3661 # but is used by much of the early bootstrap code. 3662 3663 3664 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3665 3666 3667 # Evaluates platform specific overrides for devkit variables. 3668 # $1: Name of variable 3669 3670 3671 3672 3673 3674 3675 #%%% Simple tools %%% 3676 3677 # Check if we have found a usable version of make 3678 # $1: the path to a potential make binary (or empty) 3679 # $2: the description on how we found this 3680 3681 3682 3683 3684 # Goes looking for a usable version of GNU make. 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 # Check if build directory is on local disk. If not possible to determine, 3696 # we prefer to claim it's local. 3697 # Argument 1: directory to test 3698 # Argument 2: what to do if it is on local disk 3699 # Argument 3: what to do otherwise (remote disk or failure) 3700 3701 3702 # Check that source files have basic read permissions set. This might 3703 # not be the case in cygwin in certain conditions. 3704 3705 3706 3707 3708 # Check for support for specific options in bash 3709 3710 3711 ################################################################################ 3712 # 3713 # Default make target 3714 # 3715 3716 3717 # Code to run after AC_OUTPUT 3718 3719 3720 # 3721 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3722 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3723 # 3724 # This code is free software; you can redistribute it and/or modify it 3725 # under the terms of the GNU General Public License version 2 only, as 3726 # published by the Free Software Foundation. Oracle designates this 3727 # particular file as subject to the "Classpath" exception as provided 3728 # by Oracle in the LICENSE file that accompanied this code. 3729 # 3730 # This code is distributed in the hope that it will be useful, but WITHOUT 3731 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3732 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3733 # version 2 for more details (a copy is included in the LICENSE file that 3734 # accompanied this code). 3735 # 3736 # You should have received a copy of the GNU General Public License version 3737 # 2 along with this work; if not, write to the Free Software Foundation, 3738 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3739 # 3740 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3741 # or visit www.oracle.com if you need additional information or have any 3742 # questions. 3743 # 3744 3745 3746 3747 3748 3749 # Helper function which possibly converts a path using DOS-style short mode. 3750 # If so, the updated path is stored in $new_path. 3751 # $1: The path to check 3752 3753 3754 # Helper function which possibly converts a path using DOS-style short mode. 3755 # If so, the updated path is stored in $new_path. 3756 # $1: The path to check 3757 3758 3759 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3760 # and could probably be heavily simplified. However, all changes in this 3761 # area tend to need lot of testing in different scenarios, and in lack of 3762 # proper unit testing, cleaning this up has not been deemed worth the effort 3763 # at the moment. 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3774 3775 3776 3777 3778 # ... then the rest 3779 # 3780 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3781 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3782 # 3783 # This code is free software; you can redistribute it and/or modify it 3784 # under the terms of the GNU General Public License version 2 only, as 3785 # published by the Free Software Foundation. Oracle designates this 3786 # particular file as subject to the "Classpath" exception as provided 3787 # by Oracle in the LICENSE file that accompanied this code. 3788 # 3789 # This code is distributed in the hope that it will be useful, but WITHOUT 3790 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3791 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3792 # version 2 for more details (a copy is included in the LICENSE file that 3793 # accompanied this code). 3794 # 3795 # You should have received a copy of the GNU General Public License version 3796 # 2 along with this work; if not, write to the Free Software Foundation, 3797 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3798 # 3799 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3800 # or visit www.oracle.com if you need additional information or have any 3801 # questions. 3802 # 3803 3804 ######################################################################## 3805 # This file handles detection of the Boot JDK. The Boot JDK detection 3806 # process has been developed as a response to solve a complex real-world 3807 # problem. Initially, it was simple, but it has grown as platform after 3808 # platform, idiosyncracy after idiosyncracy has been supported. 3809 # 3810 # The basic idea is this: 3811 # 1) You need an acceptable *) JDK to use as a Boot JDK 3812 # 2) There are several ways to locate a JDK, that are mostly platform 3813 # dependent **) 3814 # 3) You can have multiple JDKs installed 3815 # 4) If possible, configure should try to dig out an acceptable JDK 3816 # automatically, without having to resort to command-line options 3817 # 3818 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3819 # javac) and not a JRE, etc. 3820 # 3821 # **) On Windows we typically use a well-known path. 3822 # On MacOSX we typically use the tool java_home. 3823 # On Linux we typically find javac in the $PATH, and then follow a 3824 # chain of symlinks that often ends up in a real JDK. 3825 # 3826 # This leads to the code where we check in different ways to locate a 3827 # JDK, and if one is found, check if it is acceptable. If not, we print 3828 # our reasons for rejecting it (useful when debugging non-working 3829 # configure situations) and continue checking the next one. 3830 ######################################################################## 3831 3832 # Execute the check given as argument, and verify the result 3833 # If the Boot JDK was previously found, do nothing 3834 # $1 A command line (typically autoconf macro) to execute 3835 3836 3837 # Test: Is bootjdk explicitly set by command line arguments? 3838 3839 3840 # Test: Is $JAVA_HOME set? 3841 3842 3843 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3844 3845 3846 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3847 # $1: Argument to the java_home binary (optional) 3848 3849 3850 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3851 3852 3853 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3854 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3855 # $1 = Path to directory containing jdk installations. 3856 # $2 = String to append to the found JDK directory to get the proper JDK home 3857 3858 3859 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3860 # environmental variable as base for where to look. 3861 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3862 3863 3864 # Test: Is there a JDK installed in default, well-known locations? 3865 3866 3867 # Check that a command-line tool in the Boot JDK is correct 3868 # $1 = name of variable to assign 3869 # $2 = name of binary 3870 3871 3872 ############################################################################### 3873 # 3874 # We need a Boot JDK to bootstrap the build. 3875 # 3876 3877 3878 3879 3880 3881 # BUILD_JDK: the location of the latest JDK that can run 3882 # on the host system and supports the target class file version 3883 # generated in this JDK build. This variable should only be 3884 # used after the launchers are built. 3885 # 3886 3887 # Execute the check given as argument, and verify the result. 3888 # If the JDK was previously found, do nothing. 3889 # $1 A command line (typically autoconf macro) to execute 3890 3891 3892 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3893 # is different than the host system doing the build (e.g. cross-compilation), 3894 # a special BUILD_JDK is built as part of the build process. An external 3895 # prebuilt BUILD_JDK can also be supplied. 3896 3897 3898 # 3899 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3900 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3901 # 3902 # This code is free software; you can redistribute it and/or modify it 3903 # under the terms of the GNU General Public License version 2 only, as 3904 # published by the Free Software Foundation. Oracle designates this 3905 # particular file as subject to the "Classpath" exception as provided 3906 # by Oracle in the LICENSE file that accompanied this code. 3907 # 3908 # This code is distributed in the hope that it will be useful, but WITHOUT 3909 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3910 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3911 # version 2 for more details (a copy is included in the LICENSE file that 3912 # accompanied this code). 3913 # 3914 # You should have received a copy of the GNU General Public License version 3915 # 2 along with this work; if not, write to the Free Software Foundation, 3916 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3917 # 3918 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3919 # or visit www.oracle.com if you need additional information or have any 3920 # questions. 3921 # 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 ################################################################################ 3940 # 3941 # Runs icecc-create-env once and prints the error if it fails 3942 # 3943 # $1: arguments to icecc-create-env 3944 # $2: log file 3945 # 3946 3947 3948 ################################################################################ 3949 # 3950 # Optionally enable distributed compilation of native code using icecc/icecream 3951 # 3952 3953 3954 3955 3956 3957 3958 3959 # 3960 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3962 # 3963 # This code is free software; you can redistribute it and/or modify it 3964 # under the terms of the GNU General Public License version 2 only, as 3965 # published by the Free Software Foundation. Oracle designates this 3966 # particular file as subject to the "Classpath" exception as provided 3967 # by Oracle in the LICENSE file that accompanied this code. 3968 # 3969 # This code is distributed in the hope that it will be useful, but WITHOUT 3970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3971 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3972 # version 2 for more details (a copy is included in the LICENSE file that 3973 # accompanied this code). 3974 # 3975 # You should have received a copy of the GNU General Public License version 3976 # 2 along with this work; if not, write to the Free Software Foundation, 3977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3978 # 3979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3980 # or visit www.oracle.com if you need additional information or have any 3981 # questions. 3982 # 3983 3984 ################################################################################ 3985 # 3986 # Setup ABI profile (for arm) 3987 # 3988 3989 3990 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 3991 # corresponding configure arguments instead 3992 3993 3994 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 3995 # that configure can use them while detecting compilers. 3996 # TOOLCHAIN_TYPE is available here. 3997 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 3998 3999 4000 4001 4002 4003 4004 # Documentation on common flags used for solstudio in HIGHEST. 4005 # 4006 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4007 # done with care, there are some assumptions below that need to 4008 # be understood about the use of pointers, and IEEE behavior. 4009 # 4010 # -fns: Use non-standard floating point mode (not IEEE 754) 4011 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4012 # -fsingle: Use single precision floating point with 'float' 4013 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4014 # (Source with excessing pointer casting and data access with mixed 4015 # pointer types are not recommended) 4016 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4017 # (If you expect perfect errno behavior, do not use this) 4018 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4019 # -xrestrict: Pointer parameters to functions do not overlap 4020 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4021 # If you pass in multiple pointers to the same data, do not use this) 4022 # -xlibmil: Inline some library routines 4023 # (If you expect perfect errno behavior, do not use this) 4024 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4025 # (If you expect perfect errno behavior, do not use this) 4026 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4027 4028 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4029 # Bug? 4030 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4031 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4032 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4033 #fi 4034 4035 4036 4037 4038 4039 4040 ################################################################################ 4041 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4042 # conditionals against. 4043 # $2 - Optional prefix for each variable defined. 4044 4045 4046 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4047 # IF_FALSE: [RUN-IF-FALSE]) 4048 # ------------------------------------------------------------ 4049 # Check that the C compiler supports an argument 4050 4051 4052 4053 4054 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4055 # IF_FALSE: [RUN-IF-FALSE]) 4056 # ------------------------------------------------------------ 4057 # Check that the C++ compiler supports an argument 4058 4059 4060 4061 4062 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4063 # IF_FALSE: [RUN-IF-FALSE]) 4064 # ------------------------------------------------------------ 4065 # Check that the C and C++ compilers support an argument 4066 4067 4068 4069 4070 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4071 # IF_FALSE: [RUN-IF-FALSE]) 4072 # ------------------------------------------------------------ 4073 # Check that the linker support an argument 4074 4075 4076 4077 4078 4079 4080 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4081 # Arguments: 4082 # $1 - Optional prefix for each variable defined. 4083 4084 4085 # 4086 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4087 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4088 # 4089 # This code is free software; you can redistribute it and/or modify it 4090 # under the terms of the GNU General Public License version 2 only, as 4091 # published by the Free Software Foundation. Oracle designates this 4092 # particular file as subject to the "Classpath" exception as provided 4093 # by Oracle in the LICENSE file that accompanied this code. 4094 # 4095 # This code is distributed in the hope that it will be useful, but WITHOUT 4096 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4097 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4098 # version 2 for more details (a copy is included in the LICENSE file that 4099 # accompanied this code). 4100 # 4101 # You should have received a copy of the GNU General Public License version 4102 # 2 along with this work; if not, write to the Free Software Foundation, 4103 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4104 # 4105 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4106 # or visit www.oracle.com if you need additional information or have any 4107 # questions. 4108 # 4109 4110 4111 4112 4113 4114 cygwin_help() { 4115 case $1 in 4116 unzip) 4117 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4118 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4119 ;; 4120 zip) 4121 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4122 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4123 ;; 4124 make) 4125 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4126 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4127 ;; 4128 freetype) 4129 HELP_MSG=" 4130 The freetype library can now be build during the configure process. 4131 Download the freetype sources and unpack them into an arbitrary directory: 4132 4133 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4134 tar -xzf freetype-2.5.3.tar.gz 4135 4136 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4137 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4138 builds or into '<freetype_src>/lib32' for 32-bit builds. 4139 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4140 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4141 4142 Alternatively you can unpack the sources like this to use the default directory: 4143 4144 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4145 ;; 4146 esac 4147 } 4148 4149 msys_help() { 4150 PKGHANDLER_COMMAND="" 4151 } 4152 4153 apt_help() { 4154 case $1 in 4155 reduced) 4156 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4157 devkit) 4158 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4159 openjdk) 4160 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4161 alsa) 4162 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4163 cups) 4164 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4165 freetype) 4166 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4167 ffi) 4168 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4169 x11) 4170 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4171 ccache) 4172 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4173 dtrace) 4174 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4175 esac 4176 } 4177 4178 yum_help() { 4179 case $1 in 4180 devkit) 4181 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4182 openjdk) 4183 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4184 alsa) 4185 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4186 cups) 4187 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4188 freetype) 4189 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4190 x11) 4191 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4192 ccache) 4193 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4194 esac 4195 } 4196 4197 brew_help() { 4198 case $1 in 4199 openjdk) 4200 PKGHANDLER_COMMAND="brew cask install java" ;; 4201 freetype) 4202 PKGHANDLER_COMMAND="brew install freetype" ;; 4203 ccache) 4204 PKGHANDLER_COMMAND="brew install ccache" ;; 4205 esac 4206 } 4207 4208 port_help() { 4209 PKGHANDLER_COMMAND="" 4210 } 4211 4212 pkgutil_help() { 4213 PKGHANDLER_COMMAND="" 4214 } 4215 4216 pkgadd_help() { 4217 PKGHANDLER_COMMAND="" 4218 } 4219 4220 # This function will check if we're called from the "configure" wrapper while 4221 # printing --help. If so, we will print out additional information that can 4222 # only be extracted within the autoconf script, and then exit. This must be 4223 # called at the very beginning in configure.ac. 4224 4225 4226 4227 4228 4229 4230 # 4231 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4232 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4233 # 4234 # This code is free software; you can redistribute it and/or modify it 4235 # under the terms of the GNU General Public License version 2 only, as 4236 # published by the Free Software Foundation. Oracle designates this 4237 # particular file as subject to the "Classpath" exception as provided 4238 # by Oracle in the LICENSE file that accompanied this code. 4239 # 4240 # This code is distributed in the hope that it will be useful, but WITHOUT 4241 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4242 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4243 # version 2 for more details (a copy is included in the LICENSE file that 4244 # accompanied this code). 4245 # 4246 # You should have received a copy of the GNU General Public License version 4247 # 2 along with this work; if not, write to the Free Software Foundation, 4248 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4249 # 4250 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4251 # or visit www.oracle.com if you need additional information or have any 4252 # questions. 4253 # 4254 4255 # All valid JVM features, regardless of platform 4256 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \ 4257 graal vm-structs jni-check services management all-gcs nmt cds \ 4258 static-build link-time-opt aot" 4259 4260 # All valid JVM variants 4261 VALID_JVM_VARIANTS="server client minimal core zero custom" 4262 4263 ############################################################################### 4264 # Check if the specified JVM variant should be built. To be used in shell if 4265 # constructs, like this: 4266 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4267 # 4268 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4269 4270 # Definition kept in one line to allow inlining in if statements. 4271 # Additional [] needed to keep m4 from mangling shell constructs. 4272 4273 4274 ############################################################################### 4275 # Check if the specified JVM features are explicitly enabled. To be used in 4276 # shell if constructs, like this: 4277 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4278 # 4279 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4280 4281 # Definition kept in one line to allow inlining in if statements. 4282 # Additional [] needed to keep m4 from mangling shell constructs. 4283 4284 4285 ############################################################################### 4286 # Check which variants of the JVM that we want to build. Available variants are: 4287 # server: normal interpreter, and a tiered C1/C2 compiler 4288 # client: normal interpreter, and C1 (no C2 compiler) 4289 # minimal: reduced form of client with optional features stripped out 4290 # core: normal interpreter only, no compiler 4291 # zero: C++ based interpreter only, no compiler 4292 # custom: baseline JVM with no default features 4293 # 4294 4295 4296 ############################################################################### 4297 # Check if dtrace should be enabled and has all prerequisites present. 4298 # 4299 4300 4301 ################################################################################ 4302 # Check if AOT should be enabled 4303 # 4304 4305 4306 ################################################################################ 4307 # Allow to disable CDS 4308 # 4309 4310 4311 ############################################################################### 4312 # Set up all JVM features for each JVM variant. 4313 # 4314 4315 4316 ############################################################################### 4317 # Validate JVM features once all setup is complete, including custom setup. 4318 # 4319 4320 4321 ################################################################################ 4322 # 4323 # Specify which sources will be used to build the 64-bit ARM port 4324 # 4325 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4326 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4327 # 4328 4329 4330 4331 ################################################################################ 4332 # Check if gtest should be built 4333 # 4334 4335 4336 # 4337 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4338 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4339 # 4340 # This code is free software; you can redistribute it and/or modify it 4341 # under the terms of the GNU General Public License version 2 only, as 4342 # published by the Free Software Foundation. Oracle designates this 4343 # particular file as subject to the "Classpath" exception as provided 4344 # by Oracle in the LICENSE file that accompanied this code. 4345 # 4346 # This code is distributed in the hope that it will be useful, but WITHOUT 4347 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4348 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4349 # version 2 for more details (a copy is included in the LICENSE file that 4350 # accompanied this code). 4351 # 4352 # You should have received a copy of the GNU General Public License version 4353 # 2 along with this work; if not, write to the Free Software Foundation, 4354 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4355 # 4356 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4357 # or visit www.oracle.com if you need additional information or have any 4358 # questions. 4359 # 4360 4361 ############################################################################### 4362 # Check which variant of the JDK that we want to build. 4363 # Currently we have: 4364 # normal: standard edition 4365 # but the custom make system may add other variants 4366 # 4367 # Effectively the JDK variant gives a name to a specific set of 4368 # modules to compile into the JDK. 4369 4370 4371 ############################################################################### 4372 # Set the debug level 4373 # release: no debug information, all optimizations, no asserts. 4374 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4375 # fastdebug: debug information (-g), all optimizations, all asserts 4376 # slowdebug: debug information (-g), no optimizations, all asserts 4377 4378 4379 ############################################################################### 4380 # 4381 # Should we build only OpenJDK even if closed sources are present? 4382 # 4383 4384 4385 4386 4387 ############################################################################### 4388 # 4389 # Enable or disable the elliptic curve crypto implementation 4390 # 4391 4392 4393 4394 4395 ################################################################################ 4396 # 4397 # Gcov coverage data for hotspot 4398 # 4399 4400 4401 ################################################################################ 4402 # 4403 # Static build support. When enabled will generate static 4404 # libraries instead of shared libraries for all JDK libs. 4405 # 4406 4407 4408 ################################################################################ 4409 # 4410 # jlink options. 4411 # We always keep packaged modules in JDK image. 4412 # 4413 4414 4415 ################################################################################ 4416 # 4417 # Check if building of the jtreg failure handler should be enabled. 4418 # 4419 4420 4421 ################################################################################ 4422 # 4423 # Enable or disable generation of the classlist at build time 4424 # 4425 4426 4427 # 4428 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4429 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4430 # 4431 # This code is free software; you can redistribute it and/or modify it 4432 # under the terms of the GNU General Public License version 2 only, as 4433 # published by the Free Software Foundation. Oracle designates this 4434 # particular file as subject to the "Classpath" exception as provided 4435 # by Oracle in the LICENSE file that accompanied this code. 4436 # 4437 # This code is distributed in the hope that it will be useful, but WITHOUT 4438 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4439 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4440 # version 2 for more details (a copy is included in the LICENSE file that 4441 # accompanied this code). 4442 # 4443 # You should have received a copy of the GNU General Public License version 4444 # 2 along with this work; if not, write to the Free Software Foundation, 4445 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4446 # 4447 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4448 # or visit www.oracle.com if you need additional information or have any 4449 # questions. 4450 # 4451 4452 ############################################################################### 4453 # 4454 # Setup version numbers 4455 # 4456 4457 # Verify that a given string represents a valid version number, and assign it 4458 # to a variable. 4459 4460 # Argument 1: the variable to assign to 4461 # Argument 2: the value given by the user 4462 4463 4464 4465 4466 # 4467 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4468 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4469 # 4470 # This code is free software; you can redistribute it and/or modify it 4471 # under the terms of the GNU General Public License version 2 only, as 4472 # published by the Free Software Foundation. Oracle designates this 4473 # particular file as subject to the "Classpath" exception as provided 4474 # by Oracle in the LICENSE file that accompanied this code. 4475 # 4476 # This code is distributed in the hope that it will be useful, but WITHOUT 4477 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4478 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4479 # version 2 for more details (a copy is included in the LICENSE file that 4480 # accompanied this code). 4481 # 4482 # You should have received a copy of the GNU General Public License version 4483 # 2 along with this work; if not, write to the Free Software Foundation, 4484 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4485 # 4486 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4487 # or visit www.oracle.com if you need additional information or have any 4488 # questions. 4489 # 4490 4491 # Major library component reside in separate files. 4492 # 4493 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4494 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4495 # 4496 # This code is free software; you can redistribute it and/or modify it 4497 # under the terms of the GNU General Public License version 2 only, as 4498 # published by the Free Software Foundation. Oracle designates this 4499 # particular file as subject to the "Classpath" exception as provided 4500 # by Oracle in the LICENSE file that accompanied this code. 4501 # 4502 # This code is distributed in the hope that it will be useful, but WITHOUT 4503 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4504 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4505 # version 2 for more details (a copy is included in the LICENSE file that 4506 # accompanied this code). 4507 # 4508 # You should have received a copy of the GNU General Public License version 4509 # 2 along with this work; if not, write to the Free Software Foundation, 4510 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4511 # 4512 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4513 # or visit www.oracle.com if you need additional information or have any 4514 # questions. 4515 # 4516 4517 ################################################################################ 4518 # Setup alsa (Advanced Linux Sound Architecture) 4519 ################################################################################ 4520 4521 4522 # 4523 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4524 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4525 # 4526 # This code is free software; you can redistribute it and/or modify it 4527 # under the terms of the GNU General Public License version 2 only, as 4528 # published by the Free Software Foundation. Oracle designates this 4529 # particular file as subject to the "Classpath" exception as provided 4530 # by Oracle in the LICENSE file that accompanied this code. 4531 # 4532 # This code is distributed in the hope that it will be useful, but WITHOUT 4533 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4534 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4535 # version 2 for more details (a copy is included in the LICENSE file that 4536 # accompanied this code). 4537 # 4538 # You should have received a copy of the GNU General Public License version 4539 # 2 along with this work; if not, write to the Free Software Foundation, 4540 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4541 # 4542 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4543 # or visit www.oracle.com if you need additional information or have any 4544 # questions. 4545 # 4546 4547 ################################################################################ 4548 # Setup bundled libraries. 4549 # 4550 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4551 # OpenJDK repository. Default is to use these libraries as bundled, but they 4552 # might be replaced by en external version by the user. 4553 ################################################################################ 4554 4555 4556 ################################################################################ 4557 # Setup libjpeg 4558 ################################################################################ 4559 4560 4561 ################################################################################ 4562 # Setup giflib 4563 ################################################################################ 4564 4565 4566 ################################################################################ 4567 # Setup libpng 4568 ################################################################################ 4569 4570 4571 ################################################################################ 4572 # Setup zlib 4573 ################################################################################ 4574 4575 4576 ################################################################################ 4577 # Setup lcms (Little CMS) 4578 ################################################################################ 4579 4580 4581 # 4582 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4583 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4584 # 4585 # This code is free software; you can redistribute it and/or modify it 4586 # under the terms of the GNU General Public License version 2 only, as 4587 # published by the Free Software Foundation. Oracle designates this 4588 # particular file as subject to the "Classpath" exception as provided 4589 # by Oracle in the LICENSE file that accompanied this code. 4590 # 4591 # This code is distributed in the hope that it will be useful, but WITHOUT 4592 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4593 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4594 # version 2 for more details (a copy is included in the LICENSE file that 4595 # accompanied this code). 4596 # 4597 # You should have received a copy of the GNU General Public License version 4598 # 2 along with this work; if not, write to the Free Software Foundation, 4599 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4600 # 4601 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4602 # or visit www.oracle.com if you need additional information or have any 4603 # questions. 4604 # 4605 4606 ################################################################################ 4607 # Setup cups (Common Unix Printing System) 4608 ################################################################################ 4609 4610 4611 # 4612 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4613 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4614 # 4615 # This code is free software; you can redistribute it and/or modify it 4616 # under the terms of the GNU General Public License version 2 only, as 4617 # published by the Free Software Foundation. Oracle designates this 4618 # particular file as subject to the "Classpath" exception as provided 4619 # by Oracle in the LICENSE file that accompanied this code. 4620 # 4621 # This code is distributed in the hope that it will be useful, but WITHOUT 4622 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4623 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4624 # version 2 for more details (a copy is included in the LICENSE file that 4625 # accompanied this code). 4626 # 4627 # You should have received a copy of the GNU General Public License version 4628 # 2 along with this work; if not, write to the Free Software Foundation, 4629 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4630 # 4631 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4632 # or visit www.oracle.com if you need additional information or have any 4633 # questions. 4634 # 4635 4636 ################################################################################ 4637 # Setup libffi (Foreign Function Interface) 4638 ################################################################################ 4639 4640 4641 # 4642 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4643 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4644 # 4645 # This code is free software; you can redistribute it and/or modify it 4646 # under the terms of the GNU General Public License version 2 only, as 4647 # published by the Free Software Foundation. Oracle designates this 4648 # particular file as subject to the "Classpath" exception as provided 4649 # by Oracle in the LICENSE file that accompanied this code. 4650 # 4651 # This code is distributed in the hope that it will be useful, but WITHOUT 4652 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4653 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4654 # version 2 for more details (a copy is included in the LICENSE file that 4655 # accompanied this code). 4656 # 4657 # You should have received a copy of the GNU General Public License version 4658 # 2 along with this work; if not, write to the Free Software Foundation, 4659 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4660 # 4661 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4662 # or visit www.oracle.com if you need additional information or have any 4663 # questions. 4664 # 4665 4666 ################################################################################ 4667 # Build the freetype lib from source 4668 ################################################################################ 4669 4670 4671 ################################################################################ 4672 # Check if a potential freeype library match is correct and usable 4673 ################################################################################ 4674 4675 4676 ################################################################################ 4677 # Setup freetype (The FreeType2 font rendering library) 4678 ################################################################################ 4679 4680 4681 # 4682 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4683 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4684 # 4685 # This code is free software; you can redistribute it and/or modify it 4686 # under the terms of the GNU General Public License version 2 only, as 4687 # published by the Free Software Foundation. Oracle designates this 4688 # particular file as subject to the "Classpath" exception as provided 4689 # by Oracle in the LICENSE file that accompanied this code. 4690 # 4691 # This code is distributed in the hope that it will be useful, but WITHOUT 4692 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4693 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4694 # version 2 for more details (a copy is included in the LICENSE file that 4695 # accompanied this code). 4696 # 4697 # You should have received a copy of the GNU General Public License version 4698 # 2 along with this work; if not, write to the Free Software Foundation, 4699 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4700 # 4701 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4702 # or visit www.oracle.com if you need additional information or have any 4703 # questions. 4704 # 4705 4706 ################################################################################ 4707 # Setup the standard C/C++ runtime libraries. 4708 # 4709 # Most importantly, determine if stdc++ should be linked statically or 4710 # dynamically. 4711 ################################################################################ 4712 4713 4714 # 4715 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4716 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4717 # 4718 # This code is free software; you can redistribute it and/or modify it 4719 # under the terms of the GNU General Public License version 2 only, as 4720 # published by the Free Software Foundation. Oracle designates this 4721 # particular file as subject to the "Classpath" exception as provided 4722 # by Oracle in the LICENSE file that accompanied this code. 4723 # 4724 # This code is distributed in the hope that it will be useful, but WITHOUT 4725 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4726 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4727 # version 2 for more details (a copy is included in the LICENSE file that 4728 # accompanied this code). 4729 # 4730 # You should have received a copy of the GNU General Public License version 4731 # 2 along with this work; if not, write to the Free Software Foundation, 4732 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4733 # 4734 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4735 # or visit www.oracle.com if you need additional information or have any 4736 # questions. 4737 # 4738 4739 ################################################################################ 4740 # Setup X11 Windows system 4741 ################################################################################ 4742 4743 4744 4745 ################################################################################ 4746 # Determine which libraries are needed for this configuration 4747 ################################################################################ 4748 4749 4750 ################################################################################ 4751 # Parse library options, and setup needed libraries 4752 ################################################################################ 4753 4754 4755 ################################################################################ 4756 # Setup various libraries, typically small system libraries 4757 ################################################################################ 4758 4759 4760 ################################################################################ 4761 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4762 # redistribute it in the test image. 4763 ################################################################################ 4764 4765 4766 4767 # 4768 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4769 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4770 # 4771 # This code is free software; you can redistribute it and/or modify it 4772 # under the terms of the GNU General Public License version 2 only, as 4773 # published by the Free Software Foundation. Oracle designates this 4774 # particular file as subject to the "Classpath" exception as provided 4775 # by Oracle in the LICENSE file that accompanied this code. 4776 # 4777 # This code is distributed in the hope that it will be useful, but WITHOUT 4778 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4779 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4780 # version 2 for more details (a copy is included in the LICENSE file that 4781 # accompanied this code). 4782 # 4783 # You should have received a copy of the GNU General Public License version 4784 # 2 along with this work; if not, write to the Free Software Foundation, 4785 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4786 # 4787 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4788 # or visit www.oracle.com if you need additional information or have any 4789 # questions. 4790 # 4791 4792 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4793 # Converts autoconf style CPU name to OpenJDK style, into 4794 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4795 4796 4797 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4798 # Converts autoconf style OS name to OpenJDK style, into 4799 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4800 4801 4802 # Expects $host_os $host_cpu $build_os and $build_cpu 4803 # and $with_target_bits to have been setup! 4804 # 4805 # Translate the standard triplet(quadruplet) definition 4806 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4807 # OPENJDK_BUILD_OS, etc. 4808 4809 4810 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4811 # accordingly. Must be done after setting up build and target system, but before 4812 # doing anything else with these values. 4813 4814 4815 # Setup the legacy variables, for controlling the old makefiles. 4816 # 4817 4818 4819 # $1 - Either TARGET or BUILD to setup the variables for. 4820 4821 4822 4823 4824 4825 4826 #%%% Build and target systems %%% 4827 4828 4829 4830 4831 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4832 # Add -mX to various FLAGS variables. 4833 4834 4835 4836 4837 4838 4839 # 4840 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4841 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4842 # 4843 # This code is free software; you can redistribute it and/or modify it 4844 # under the terms of the GNU General Public License version 2 only, as 4845 # published by the Free Software Foundation. Oracle designates this 4846 # particular file as subject to the "Classpath" exception as provided 4847 # by Oracle in the LICENSE file that accompanied this code. 4848 # 4849 # This code is distributed in the hope that it will be useful, but WITHOUT 4850 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4851 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4852 # version 2 for more details (a copy is included in the LICENSE file that 4853 # accompanied this code). 4854 # 4855 # You should have received a copy of the GNU General Public License version 4856 # 2 along with this work; if not, write to the Free Software Foundation, 4857 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4858 # 4859 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4860 # or visit www.oracle.com if you need additional information or have any 4861 # questions. 4862 # 4863 4864 4865 4866 ################################################################################ 4867 # Define a mechanism for importing extra prebuilt modules 4868 # 4869 4870 4871 4872 # 4873 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4874 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4875 # 4876 # This code is free software; you can redistribute it and/or modify it 4877 # under the terms of the GNU General Public License version 2 only, as 4878 # published by the Free Software Foundation. Oracle designates this 4879 # particular file as subject to the "Classpath" exception as provided 4880 # by Oracle in the LICENSE file that accompanied this code. 4881 # 4882 # This code is distributed in the hope that it will be useful, but WITHOUT 4883 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4884 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4885 # version 2 for more details (a copy is included in the LICENSE file that 4886 # accompanied this code). 4887 # 4888 # You should have received a copy of the GNU General Public License version 4889 # 2 along with this work; if not, write to the Free Software Foundation, 4890 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4891 # 4892 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4893 # or visit www.oracle.com if you need additional information or have any 4894 # questions. 4895 # 4896 4897 ######################################################################## 4898 # This file is responsible for detecting, verifying and setting up the 4899 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4900 # proper paths to the binaries, but it will not setup any flags. 4901 # 4902 # The binaries used is determined by the toolchain type, which is the family of 4903 # compilers and related tools that are used. 4904 ######################################################################## 4905 4906 4907 # All valid toolchains, regardless of platform (used by help.m4) 4908 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4909 4910 # These toolchains are valid on different platforms 4911 VALID_TOOLCHAINS_linux="gcc clang" 4912 VALID_TOOLCHAINS_solaris="solstudio" 4913 VALID_TOOLCHAINS_macosx="gcc clang" 4914 VALID_TOOLCHAINS_aix="xlc" 4915 VALID_TOOLCHAINS_windows="microsoft" 4916 4917 # Toolchain descriptions 4918 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4919 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4920 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4921 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4922 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4923 4924 # Minimum supported versions, empty means unspecified 4925 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4926 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 4927 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 4928 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4929 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4930 4931 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4932 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4933 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4934 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4935 4936 4937 # Check if the configured compiler (C and C++) is of a specific version or 4938 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4939 # 4940 # Arguments: 4941 # VERSION: The version string to check against the found version 4942 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4943 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4944 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4945 4946 4947 4948 4949 # Setup a number of variables describing how native output files are 4950 # named on this platform/toolchain. 4951 4952 4953 # Determine which toolchain type to use, and make sure it is valid for this 4954 # platform. Setup various information about the selected toolchain. 4955 4956 4957 # Before we start detecting the toolchain executables, we might need some 4958 # special setup, e.g. additional paths etc. 4959 4960 4961 # Restore path, etc 4962 4963 4964 # Check if a compiler is of the toolchain type we expect, and save the version 4965 # information from it. If the compiler does not match the expected type, 4966 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4967 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4968 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4969 # 4970 # $1 = compiler to test (CC or CXX) 4971 # $2 = human readable name of compiler (C or C++) 4972 4973 4974 # Try to locate the given C or C++ compiler in the path, or otherwise. 4975 # 4976 # $1 = compiler to test (CC or CXX) 4977 # $2 = human readable name of compiler (C or C++) 4978 # $3 = compiler name to search for 4979 4980 4981 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4982 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4983 # archiver (AR). Verify that the compilers are correct according to the 4984 # toolchain type. 4985 4986 4987 # Setup additional tools that is considered a part of the toolchain, but not the 4988 # core part. Many of these are highly platform-specific and do not exist, 4989 # and/or are not needed on all platforms. 4990 4991 4992 # Setup the build tools (i.e, the compiler and linker used to build programs 4993 # that should be run on the build platform, not the target platform, as a build 4994 # helper). Since the non-cross-compile case uses the normal, target compilers 4995 # for this, we can only do this after these have been setup. 4996 4997 4998 # Do some additional checks on the detected tools. 4999 5000 5001 # Setup the JTReg Regression Test Harness. 5002 5003 5004 # Setup the JIB dependency resolver 5005 5006 5007 # 5008 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5009 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5010 # 5011 # This code is free software; you can redistribute it and/or modify it 5012 # under the terms of the GNU General Public License version 2 only, as 5013 # published by the Free Software Foundation. Oracle designates this 5014 # particular file as subject to the "Classpath" exception as provided 5015 # by Oracle in the LICENSE file that accompanied this code. 5016 # 5017 # This code is distributed in the hope that it will be useful, but WITHOUT 5018 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5019 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5020 # version 2 for more details (a copy is included in the LICENSE file that 5021 # accompanied this code). 5022 # 5023 # You should have received a copy of the GNU General Public License version 5024 # 2 along with this work; if not, write to the Free Software Foundation, 5025 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5026 # 5027 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5028 # or visit www.oracle.com if you need additional information or have any 5029 # questions. 5030 # 5031 5032 ################################################################################ 5033 # The order of these defines the priority by which we try to find them. 5034 VALID_VS_VERSIONS="2013 2012 2010" 5035 5036 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5037 VS_VERSION_INTERNAL_2010=100 5038 VS_MSVCR_2010=msvcr100.dll 5039 # We don't use msvcp on Visual Studio 2010 5040 #VS_MSVCP_2010=msvcp100.dll 5041 VS_ENVVAR_2010="VS100COMNTOOLS" 5042 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5043 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5044 VS_VS_PLATFORM_NAME_2010="v100" 5045 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5046 5047 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5048 VS_VERSION_INTERNAL_2012=110 5049 VS_MSVCR_2012=msvcr110.dll 5050 VS_MSVCP_2012=msvcp110.dll 5051 VS_ENVVAR_2012="VS110COMNTOOLS" 5052 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5053 VS_SDK_INSTALLDIR_2012= 5054 VS_VS_PLATFORM_NAME_2012="v110" 5055 VS_SDK_PLATFORM_NAME_2012= 5056 5057 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5058 VS_VERSION_INTERNAL_2013=120 5059 VS_MSVCR_2013=msvcr120.dll 5060 VS_MSVCP_2013=msvcp120.dll 5061 VS_ENVVAR_2013="VS120COMNTOOLS" 5062 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5063 VS_SDK_INSTALLDIR_2013= 5064 VS_VS_PLATFORM_NAME_2013="v120" 5065 VS_SDK_PLATFORM_NAME_2013= 5066 5067 ################################################################################ 5068 5069 5070 5071 ################################################################################ 5072 5073 5074 5075 ################################################################################ 5076 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5077 # build environment and assigns it to VS_ENV_CMD 5078 5079 5080 ################################################################################ 5081 5082 5083 5084 ################################################################################ 5085 # Check if the VS env variables were setup prior to running configure. 5086 # If not, then find vcvarsall.bat and run it automatically, and integrate 5087 # the set env variables into the spec file. 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 # This line needs to be here, verbatim, after all includes and the dummy hook 5103 # definitions. It is replaced with custom functionality when building 5104 # custom sources. 5105 #CUSTOM_AUTOCONF_INCLUDE 5106 5107 # Do not change or remove the following line, it is needed for consistency checks: 5108 DATE_WHEN_GENERATED=1507993389 5109 5110 ############################################################################### 5111 # 5112 # Initialization / Boot-strapping 5113 # 5114 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5115 # thus it jumps back and forth, each time gaining something needed later on. 5116 # 5117 ############################################################################### 5118 5119 # If we are requested to print additional help, do that and then exit. 5120 # This must be the very first call. 5121 5122 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5123 5124 # Print available toolchains 5125 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5126 $PRINTF "Which are valid to use depends on the build platform.\n" 5127 for toolchain in $VALID_TOOLCHAINS_all; do 5128 # Use indirect variable referencing 5129 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5130 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5131 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5132 done 5133 $PRINTF "\n" 5134 5135 # Print available jvm features 5136 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5137 $PRINTF "Which are valid to use depends on the target platform.\n " 5138 $PRINTF "%s " $VALID_JVM_FEATURES 5139 $PRINTF "\n" 5140 5141 # And now exit directly 5142 exit 0 5143 fi 5144 5145 5146 # Basic initialization that must happen first of all in the normal process. 5147 5148 # Save the original command line. This is passed to us by the wrapper configure script. 5149 5150 # Save the path variable before it gets changed 5151 ORIGINAL_PATH="$PATH" 5152 5153 DATE_WHEN_CONFIGURED=`LANG=C date` 5154 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5156 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5158 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5159 5160 5161 # Start with tools that do not need have cross compilation support 5162 # and can be expected to be found in the default PATH. These tools are 5163 # used by configure. 5164 5165 # First are all the simple required tools. 5166 5167 5168 5169 # Publish this variable in the help. 5170 5171 5172 if [ -z "${BASENAME+x}" ]; then 5173 # The variable is not set by user, try to locate tool using the code snippet 5174 for ac_prog in basename 5175 do 5176 # Extract the first word of "$ac_prog", so it can be a program name with args. 5177 set dummy $ac_prog; ac_word=$2 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5179 $as_echo_n "checking for $ac_word... " >&6; } 5180 if ${ac_cv_path_BASENAME+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182 else 5183 case $BASENAME in 5184 [\\/]* | ?:[\\/]*) 5185 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5186 ;; 5187 *) 5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5189 for as_dir in $PATH 5190 do 5191 IFS=$as_save_IFS 5192 test -z "$as_dir" && as_dir=. 5193 for ac_exec_ext in '' $ac_executable_extensions; do 5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5195 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5197 break 2 5198 fi 5199 done 5200 done 5201 IFS=$as_save_IFS 5202 5203 ;; 5204 esac 5205 fi 5206 BASENAME=$ac_cv_path_BASENAME 5207 if test -n "$BASENAME"; then 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5209 $as_echo "$BASENAME" >&6; } 5210 else 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5212 $as_echo "no" >&6; } 5213 fi 5214 5215 5216 test -n "$BASENAME" && break 5217 done 5218 5219 else 5220 # The variable is set, but is it from the command line or the environment? 5221 5222 # Try to remove the string !BASENAME! from our list. 5223 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5224 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5225 # If it failed, the variable was not from the command line. Ignore it, 5226 # but warn the user (except for BASH, which is always set by the calling BASH). 5227 if test "xBASENAME" != xBASH; then 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5229 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5230 fi 5231 # Try to locate tool using the code snippet 5232 for ac_prog in basename 5233 do 5234 # Extract the first word of "$ac_prog", so it can be a program name with args. 5235 set dummy $ac_prog; ac_word=$2 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5237 $as_echo_n "checking for $ac_word... " >&6; } 5238 if ${ac_cv_path_BASENAME+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240 else 5241 case $BASENAME in 5242 [\\/]* | ?:[\\/]*) 5243 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5244 ;; 5245 *) 5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247 for as_dir in $PATH 5248 do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_exec_ext in '' $ac_executable_extensions; do 5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5253 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5255 break 2 5256 fi 5257 done 5258 done 5259 IFS=$as_save_IFS 5260 5261 ;; 5262 esac 5263 fi 5264 BASENAME=$ac_cv_path_BASENAME 5265 if test -n "$BASENAME"; then 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5267 $as_echo "$BASENAME" >&6; } 5268 else 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5270 $as_echo "no" >&6; } 5271 fi 5272 5273 5274 test -n "$BASENAME" && break 5275 done 5276 5277 else 5278 # If it succeeded, then it was overridden by the user. We will use it 5279 # for the tool. 5280 5281 # First remove it from the list of overridden variables, so we can test 5282 # for unknown variables in the end. 5283 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5284 5285 # Check if we try to supply an empty value 5286 if test "x$BASENAME" = x; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5288 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5290 $as_echo_n "checking for BASENAME... " >&6; } 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5292 $as_echo "disabled" >&6; } 5293 else 5294 # Check if the provided tool contains a complete path. 5295 tool_specified="$BASENAME" 5296 tool_basename="${tool_specified##*/}" 5297 if test "x$tool_basename" = "x$tool_specified"; then 5298 # A command without a complete path is provided, search $PATH. 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5300 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5301 # Extract the first word of "$tool_basename", so it can be a program name with args. 5302 set dummy $tool_basename; ac_word=$2 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5304 $as_echo_n "checking for $ac_word... " >&6; } 5305 if ${ac_cv_path_BASENAME+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307 else 5308 case $BASENAME in 5309 [\\/]* | ?:[\\/]*) 5310 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5311 ;; 5312 *) 5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314 for as_dir in $PATH 5315 do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_exec_ext in '' $ac_executable_extensions; do 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5320 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5322 break 2 5323 fi 5324 done 5325 done 5326 IFS=$as_save_IFS 5327 5328 ;; 5329 esac 5330 fi 5331 BASENAME=$ac_cv_path_BASENAME 5332 if test -n "$BASENAME"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5334 $as_echo "$BASENAME" >&6; } 5335 else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337 $as_echo "no" >&6; } 5338 fi 5339 5340 5341 if test "x$BASENAME" = x; then 5342 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5343 fi 5344 else 5345 # Otherwise we believe it is a complete path. Use it as it is. 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5347 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5349 $as_echo_n "checking for BASENAME... " >&6; } 5350 if test ! -x "$tool_specified"; then 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5352 $as_echo "not found" >&6; } 5353 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5354 fi 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5356 $as_echo "$tool_specified" >&6; } 5357 fi 5358 fi 5359 fi 5360 5361 fi 5362 5363 5364 5365 if test "x$BASENAME" = x; then 5366 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5367 fi 5368 5369 5370 5371 5372 5373 # Publish this variable in the help. 5374 5375 5376 if [ -z "${BASH+x}" ]; then 5377 # The variable is not set by user, try to locate tool using the code snippet 5378 for ac_prog in bash 5379 do 5380 # Extract the first word of "$ac_prog", so it can be a program name with args. 5381 set dummy $ac_prog; ac_word=$2 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5383 $as_echo_n "checking for $ac_word... " >&6; } 5384 if ${ac_cv_path_BASH+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386 else 5387 case $BASH in 5388 [\\/]* | ?:[\\/]*) 5389 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5390 ;; 5391 *) 5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393 for as_dir in $PATH 5394 do 5395 IFS=$as_save_IFS 5396 test -z "$as_dir" && as_dir=. 5397 for ac_exec_ext in '' $ac_executable_extensions; do 5398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5399 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5401 break 2 5402 fi 5403 done 5404 done 5405 IFS=$as_save_IFS 5406 5407 ;; 5408 esac 5409 fi 5410 BASH=$ac_cv_path_BASH 5411 if test -n "$BASH"; then 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5413 $as_echo "$BASH" >&6; } 5414 else 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5416 $as_echo "no" >&6; } 5417 fi 5418 5419 5420 test -n "$BASH" && break 5421 done 5422 5423 else 5424 # The variable is set, but is it from the command line or the environment? 5425 5426 # Try to remove the string !BASH! from our list. 5427 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5428 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5429 # If it failed, the variable was not from the command line. Ignore it, 5430 # but warn the user (except for BASH, which is always set by the calling BASH). 5431 if test "xBASH" != xBASH; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5433 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5434 fi 5435 # Try to locate tool using the code snippet 5436 for ac_prog in bash 5437 do 5438 # Extract the first word of "$ac_prog", so it can be a program name with args. 5439 set dummy $ac_prog; ac_word=$2 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5441 $as_echo_n "checking for $ac_word... " >&6; } 5442 if ${ac_cv_path_BASH+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444 else 5445 case $BASH in 5446 [\\/]* | ?:[\\/]*) 5447 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5448 ;; 5449 *) 5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5451 for as_dir in $PATH 5452 do 5453 IFS=$as_save_IFS 5454 test -z "$as_dir" && as_dir=. 5455 for ac_exec_ext in '' $ac_executable_extensions; do 5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5457 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5459 break 2 5460 fi 5461 done 5462 done 5463 IFS=$as_save_IFS 5464 5465 ;; 5466 esac 5467 fi 5468 BASH=$ac_cv_path_BASH 5469 if test -n "$BASH"; then 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5471 $as_echo "$BASH" >&6; } 5472 else 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5474 $as_echo "no" >&6; } 5475 fi 5476 5477 5478 test -n "$BASH" && break 5479 done 5480 5481 else 5482 # If it succeeded, then it was overridden by the user. We will use it 5483 # for the tool. 5484 5485 # First remove it from the list of overridden variables, so we can test 5486 # for unknown variables in the end. 5487 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5488 5489 # Check if we try to supply an empty value 5490 if test "x$BASH" = x; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5492 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5494 $as_echo_n "checking for BASH... " >&6; } 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5496 $as_echo "disabled" >&6; } 5497 else 5498 # Check if the provided tool contains a complete path. 5499 tool_specified="$BASH" 5500 tool_basename="${tool_specified##*/}" 5501 if test "x$tool_basename" = "x$tool_specified"; then 5502 # A command without a complete path is provided, search $PATH. 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5504 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5505 # Extract the first word of "$tool_basename", so it can be a program name with args. 5506 set dummy $tool_basename; ac_word=$2 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5508 $as_echo_n "checking for $ac_word... " >&6; } 5509 if ${ac_cv_path_BASH+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511 else 5512 case $BASH in 5513 [\\/]* | ?:[\\/]*) 5514 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5515 ;; 5516 *) 5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5518 for as_dir in $PATH 5519 do 5520 IFS=$as_save_IFS 5521 test -z "$as_dir" && as_dir=. 5522 for ac_exec_ext in '' $ac_executable_extensions; do 5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5524 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5526 break 2 5527 fi 5528 done 5529 done 5530 IFS=$as_save_IFS 5531 5532 ;; 5533 esac 5534 fi 5535 BASH=$ac_cv_path_BASH 5536 if test -n "$BASH"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5538 $as_echo "$BASH" >&6; } 5539 else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541 $as_echo "no" >&6; } 5542 fi 5543 5544 5545 if test "x$BASH" = x; then 5546 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5547 fi 5548 else 5549 # Otherwise we believe it is a complete path. Use it as it is. 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5551 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5553 $as_echo_n "checking for BASH... " >&6; } 5554 if test ! -x "$tool_specified"; then 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5556 $as_echo "not found" >&6; } 5557 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5558 fi 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5560 $as_echo "$tool_specified" >&6; } 5561 fi 5562 fi 5563 fi 5564 5565 fi 5566 5567 5568 5569 if test "x$BASH" = x; then 5570 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5571 fi 5572 5573 5574 5575 5576 5577 # Publish this variable in the help. 5578 5579 5580 if [ -z "${CAT+x}" ]; then 5581 # The variable is not set by user, try to locate tool using the code snippet 5582 for ac_prog in cat 5583 do 5584 # Extract the first word of "$ac_prog", so it can be a program name with args. 5585 set dummy $ac_prog; ac_word=$2 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5587 $as_echo_n "checking for $ac_word... " >&6; } 5588 if ${ac_cv_path_CAT+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590 else 5591 case $CAT in 5592 [\\/]* | ?:[\\/]*) 5593 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5594 ;; 5595 *) 5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5597 for as_dir in $PATH 5598 do 5599 IFS=$as_save_IFS 5600 test -z "$as_dir" && as_dir=. 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5603 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5605 break 2 5606 fi 5607 done 5608 done 5609 IFS=$as_save_IFS 5610 5611 ;; 5612 esac 5613 fi 5614 CAT=$ac_cv_path_CAT 5615 if test -n "$CAT"; then 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5617 $as_echo "$CAT" >&6; } 5618 else 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5620 $as_echo "no" >&6; } 5621 fi 5622 5623 5624 test -n "$CAT" && break 5625 done 5626 5627 else 5628 # The variable is set, but is it from the command line or the environment? 5629 5630 # Try to remove the string !CAT! from our list. 5631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5633 # If it failed, the variable was not from the command line. Ignore it, 5634 # but warn the user (except for BASH, which is always set by the calling BASH). 5635 if test "xCAT" != xBASH; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5637 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5638 fi 5639 # Try to locate tool using the code snippet 5640 for ac_prog in cat 5641 do 5642 # Extract the first word of "$ac_prog", so it can be a program name with args. 5643 set dummy $ac_prog; ac_word=$2 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5645 $as_echo_n "checking for $ac_word... " >&6; } 5646 if ${ac_cv_path_CAT+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648 else 5649 case $CAT in 5650 [\\/]* | ?:[\\/]*) 5651 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5652 ;; 5653 *) 5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5655 for as_dir in $PATH 5656 do 5657 IFS=$as_save_IFS 5658 test -z "$as_dir" && as_dir=. 5659 for ac_exec_ext in '' $ac_executable_extensions; do 5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5661 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5663 break 2 5664 fi 5665 done 5666 done 5667 IFS=$as_save_IFS 5668 5669 ;; 5670 esac 5671 fi 5672 CAT=$ac_cv_path_CAT 5673 if test -n "$CAT"; then 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5675 $as_echo "$CAT" >&6; } 5676 else 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5678 $as_echo "no" >&6; } 5679 fi 5680 5681 5682 test -n "$CAT" && break 5683 done 5684 5685 else 5686 # If it succeeded, then it was overridden by the user. We will use it 5687 # for the tool. 5688 5689 # First remove it from the list of overridden variables, so we can test 5690 # for unknown variables in the end. 5691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5692 5693 # Check if we try to supply an empty value 5694 if test "x$CAT" = x; then 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5696 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5698 $as_echo_n "checking for CAT... " >&6; } 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5700 $as_echo "disabled" >&6; } 5701 else 5702 # Check if the provided tool contains a complete path. 5703 tool_specified="$CAT" 5704 tool_basename="${tool_specified##*/}" 5705 if test "x$tool_basename" = "x$tool_specified"; then 5706 # A command without a complete path is provided, search $PATH. 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5708 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5709 # Extract the first word of "$tool_basename", so it can be a program name with args. 5710 set dummy $tool_basename; ac_word=$2 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5712 $as_echo_n "checking for $ac_word... " >&6; } 5713 if ${ac_cv_path_CAT+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715 else 5716 case $CAT in 5717 [\\/]* | ?:[\\/]*) 5718 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5719 ;; 5720 *) 5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722 for as_dir in $PATH 5723 do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5728 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5730 break 2 5731 fi 5732 done 5733 done 5734 IFS=$as_save_IFS 5735 5736 ;; 5737 esac 5738 fi 5739 CAT=$ac_cv_path_CAT 5740 if test -n "$CAT"; then 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5742 $as_echo "$CAT" >&6; } 5743 else 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5745 $as_echo "no" >&6; } 5746 fi 5747 5748 5749 if test "x$CAT" = x; then 5750 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5751 fi 5752 else 5753 # Otherwise we believe it is a complete path. Use it as it is. 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5755 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5757 $as_echo_n "checking for CAT... " >&6; } 5758 if test ! -x "$tool_specified"; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5760 $as_echo "not found" >&6; } 5761 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5762 fi 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5764 $as_echo "$tool_specified" >&6; } 5765 fi 5766 fi 5767 fi 5768 5769 fi 5770 5771 5772 5773 if test "x$CAT" = x; then 5774 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5775 fi 5776 5777 5778 5779 5780 5781 # Publish this variable in the help. 5782 5783 5784 if [ -z "${CHMOD+x}" ]; then 5785 # The variable is not set by user, try to locate tool using the code snippet 5786 for ac_prog in chmod 5787 do 5788 # Extract the first word of "$ac_prog", so it can be a program name with args. 5789 set dummy $ac_prog; ac_word=$2 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5791 $as_echo_n "checking for $ac_word... " >&6; } 5792 if ${ac_cv_path_CHMOD+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794 else 5795 case $CHMOD in 5796 [\\/]* | ?:[\\/]*) 5797 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5798 ;; 5799 *) 5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801 for as_dir in $PATH 5802 do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5807 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811 done 5812 done 5813 IFS=$as_save_IFS 5814 5815 ;; 5816 esac 5817 fi 5818 CHMOD=$ac_cv_path_CHMOD 5819 if test -n "$CHMOD"; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5821 $as_echo "$CHMOD" >&6; } 5822 else 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5824 $as_echo "no" >&6; } 5825 fi 5826 5827 5828 test -n "$CHMOD" && break 5829 done 5830 5831 else 5832 # The variable is set, but is it from the command line or the environment? 5833 5834 # Try to remove the string !CHMOD! from our list. 5835 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5836 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5837 # If it failed, the variable was not from the command line. Ignore it, 5838 # but warn the user (except for BASH, which is always set by the calling BASH). 5839 if test "xCHMOD" != xBASH; then 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5841 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5842 fi 5843 # Try to locate tool using the code snippet 5844 for ac_prog in chmod 5845 do 5846 # Extract the first word of "$ac_prog", so it can be a program name with args. 5847 set dummy $ac_prog; ac_word=$2 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849 $as_echo_n "checking for $ac_word... " >&6; } 5850 if ${ac_cv_path_CHMOD+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852 else 5853 case $CHMOD in 5854 [\\/]* | ?:[\\/]*) 5855 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5856 ;; 5857 *) 5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5859 for as_dir in $PATH 5860 do 5861 IFS=$as_save_IFS 5862 test -z "$as_dir" && as_dir=. 5863 for ac_exec_ext in '' $ac_executable_extensions; do 5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5865 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5867 break 2 5868 fi 5869 done 5870 done 5871 IFS=$as_save_IFS 5872 5873 ;; 5874 esac 5875 fi 5876 CHMOD=$ac_cv_path_CHMOD 5877 if test -n "$CHMOD"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5879 $as_echo "$CHMOD" >&6; } 5880 else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882 $as_echo "no" >&6; } 5883 fi 5884 5885 5886 test -n "$CHMOD" && break 5887 done 5888 5889 else 5890 # If it succeeded, then it was overridden by the user. We will use it 5891 # for the tool. 5892 5893 # First remove it from the list of overridden variables, so we can test 5894 # for unknown variables in the end. 5895 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5896 5897 # Check if we try to supply an empty value 5898 if test "x$CHMOD" = x; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5900 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5902 $as_echo_n "checking for CHMOD... " >&6; } 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5904 $as_echo "disabled" >&6; } 5905 else 5906 # Check if the provided tool contains a complete path. 5907 tool_specified="$CHMOD" 5908 tool_basename="${tool_specified##*/}" 5909 if test "x$tool_basename" = "x$tool_specified"; then 5910 # A command without a complete path is provided, search $PATH. 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5912 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5913 # Extract the first word of "$tool_basename", so it can be a program name with args. 5914 set dummy $tool_basename; ac_word=$2 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916 $as_echo_n "checking for $ac_word... " >&6; } 5917 if ${ac_cv_path_CHMOD+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919 else 5920 case $CHMOD in 5921 [\\/]* | ?:[\\/]*) 5922 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5923 ;; 5924 *) 5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5926 for as_dir in $PATH 5927 do 5928 IFS=$as_save_IFS 5929 test -z "$as_dir" && as_dir=. 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5932 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5934 break 2 5935 fi 5936 done 5937 done 5938 IFS=$as_save_IFS 5939 5940 ;; 5941 esac 5942 fi 5943 CHMOD=$ac_cv_path_CHMOD 5944 if test -n "$CHMOD"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5946 $as_echo "$CHMOD" >&6; } 5947 else 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949 $as_echo "no" >&6; } 5950 fi 5951 5952 5953 if test "x$CHMOD" = x; then 5954 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5955 fi 5956 else 5957 # Otherwise we believe it is a complete path. Use it as it is. 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5959 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5961 $as_echo_n "checking for CHMOD... " >&6; } 5962 if test ! -x "$tool_specified"; then 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5964 $as_echo "not found" >&6; } 5965 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5966 fi 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5968 $as_echo "$tool_specified" >&6; } 5969 fi 5970 fi 5971 fi 5972 5973 fi 5974 5975 5976 5977 if test "x$CHMOD" = x; then 5978 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5979 fi 5980 5981 5982 5983 5984 5985 # Publish this variable in the help. 5986 5987 5988 if [ -z "${CMP+x}" ]; then 5989 # The variable is not set by user, try to locate tool using the code snippet 5990 for ac_prog in cmp 5991 do 5992 # Extract the first word of "$ac_prog", so it can be a program name with args. 5993 set dummy $ac_prog; ac_word=$2 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5995 $as_echo_n "checking for $ac_word... " >&6; } 5996 if ${ac_cv_path_CMP+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998 else 5999 case $CMP in 6000 [\\/]* | ?:[\\/]*) 6001 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6002 ;; 6003 *) 6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005 for as_dir in $PATH 6006 do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6011 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015 done 6016 done 6017 IFS=$as_save_IFS 6018 6019 ;; 6020 esac 6021 fi 6022 CMP=$ac_cv_path_CMP 6023 if test -n "$CMP"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6025 $as_echo "$CMP" >&6; } 6026 else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028 $as_echo "no" >&6; } 6029 fi 6030 6031 6032 test -n "$CMP" && break 6033 done 6034 6035 else 6036 # The variable is set, but is it from the command line or the environment? 6037 6038 # Try to remove the string !CMP! from our list. 6039 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6040 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6041 # If it failed, the variable was not from the command line. Ignore it, 6042 # but warn the user (except for BASH, which is always set by the calling BASH). 6043 if test "xCMP" != xBASH; then 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6045 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6046 fi 6047 # Try to locate tool using the code snippet 6048 for ac_prog in cmp 6049 do 6050 # Extract the first word of "$ac_prog", so it can be a program name with args. 6051 set dummy $ac_prog; ac_word=$2 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6053 $as_echo_n "checking for $ac_word... " >&6; } 6054 if ${ac_cv_path_CMP+:} false; then : 6055 $as_echo_n "(cached) " >&6 6056 else 6057 case $CMP in 6058 [\\/]* | ?:[\\/]*) 6059 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6060 ;; 6061 *) 6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6063 for as_dir in $PATH 6064 do 6065 IFS=$as_save_IFS 6066 test -z "$as_dir" && as_dir=. 6067 for ac_exec_ext in '' $ac_executable_extensions; do 6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6069 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6071 break 2 6072 fi 6073 done 6074 done 6075 IFS=$as_save_IFS 6076 6077 ;; 6078 esac 6079 fi 6080 CMP=$ac_cv_path_CMP 6081 if test -n "$CMP"; then 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6083 $as_echo "$CMP" >&6; } 6084 else 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6086 $as_echo "no" >&6; } 6087 fi 6088 6089 6090 test -n "$CMP" && break 6091 done 6092 6093 else 6094 # If it succeeded, then it was overridden by the user. We will use it 6095 # for the tool. 6096 6097 # First remove it from the list of overridden variables, so we can test 6098 # for unknown variables in the end. 6099 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6100 6101 # Check if we try to supply an empty value 6102 if test "x$CMP" = x; then 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6104 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6106 $as_echo_n "checking for CMP... " >&6; } 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6108 $as_echo "disabled" >&6; } 6109 else 6110 # Check if the provided tool contains a complete path. 6111 tool_specified="$CMP" 6112 tool_basename="${tool_specified##*/}" 6113 if test "x$tool_basename" = "x$tool_specified"; then 6114 # A command without a complete path is provided, search $PATH. 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6116 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6117 # Extract the first word of "$tool_basename", so it can be a program name with args. 6118 set dummy $tool_basename; ac_word=$2 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120 $as_echo_n "checking for $ac_word... " >&6; } 6121 if ${ac_cv_path_CMP+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123 else 6124 case $CMP in 6125 [\\/]* | ?:[\\/]*) 6126 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6127 ;; 6128 *) 6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130 for as_dir in $PATH 6131 do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6136 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140 done 6141 done 6142 IFS=$as_save_IFS 6143 6144 ;; 6145 esac 6146 fi 6147 CMP=$ac_cv_path_CMP 6148 if test -n "$CMP"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6150 $as_echo "$CMP" >&6; } 6151 else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153 $as_echo "no" >&6; } 6154 fi 6155 6156 6157 if test "x$CMP" = x; then 6158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6159 fi 6160 else 6161 # Otherwise we believe it is a complete path. Use it as it is. 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6163 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6165 $as_echo_n "checking for CMP... " >&6; } 6166 if test ! -x "$tool_specified"; then 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6168 $as_echo "not found" >&6; } 6169 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6170 fi 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6172 $as_echo "$tool_specified" >&6; } 6173 fi 6174 fi 6175 fi 6176 6177 fi 6178 6179 6180 6181 if test "x$CMP" = x; then 6182 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6183 fi 6184 6185 6186 6187 6188 6189 # Publish this variable in the help. 6190 6191 6192 if [ -z "${COMM+x}" ]; then 6193 # The variable is not set by user, try to locate tool using the code snippet 6194 for ac_prog in comm 6195 do 6196 # Extract the first word of "$ac_prog", so it can be a program name with args. 6197 set dummy $ac_prog; ac_word=$2 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6199 $as_echo_n "checking for $ac_word... " >&6; } 6200 if ${ac_cv_path_COMM+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202 else 6203 case $COMM in 6204 [\\/]* | ?:[\\/]*) 6205 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6206 ;; 6207 *) 6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209 for as_dir in $PATH 6210 do 6211 IFS=$as_save_IFS 6212 test -z "$as_dir" && as_dir=. 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6215 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219 done 6220 done 6221 IFS=$as_save_IFS 6222 6223 ;; 6224 esac 6225 fi 6226 COMM=$ac_cv_path_COMM 6227 if test -n "$COMM"; then 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6229 $as_echo "$COMM" >&6; } 6230 else 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6232 $as_echo "no" >&6; } 6233 fi 6234 6235 6236 test -n "$COMM" && break 6237 done 6238 6239 else 6240 # The variable is set, but is it from the command line or the environment? 6241 6242 # Try to remove the string !COMM! from our list. 6243 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6244 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6245 # If it failed, the variable was not from the command line. Ignore it, 6246 # but warn the user (except for BASH, which is always set by the calling BASH). 6247 if test "xCOMM" != xBASH; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6249 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6250 fi 6251 # Try to locate tool using the code snippet 6252 for ac_prog in comm 6253 do 6254 # Extract the first word of "$ac_prog", so it can be a program name with args. 6255 set dummy $ac_prog; ac_word=$2 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257 $as_echo_n "checking for $ac_word... " >&6; } 6258 if ${ac_cv_path_COMM+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260 else 6261 case $COMM in 6262 [\\/]* | ?:[\\/]*) 6263 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6264 ;; 6265 *) 6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6267 for as_dir in $PATH 6268 do 6269 IFS=$as_save_IFS 6270 test -z "$as_dir" && as_dir=. 6271 for ac_exec_ext in '' $ac_executable_extensions; do 6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6273 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6275 break 2 6276 fi 6277 done 6278 done 6279 IFS=$as_save_IFS 6280 6281 ;; 6282 esac 6283 fi 6284 COMM=$ac_cv_path_COMM 6285 if test -n "$COMM"; then 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6287 $as_echo "$COMM" >&6; } 6288 else 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6290 $as_echo "no" >&6; } 6291 fi 6292 6293 6294 test -n "$COMM" && break 6295 done 6296 6297 else 6298 # If it succeeded, then it was overridden by the user. We will use it 6299 # for the tool. 6300 6301 # First remove it from the list of overridden variables, so we can test 6302 # for unknown variables in the end. 6303 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6304 6305 # Check if we try to supply an empty value 6306 if test "x$COMM" = x; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6308 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6310 $as_echo_n "checking for COMM... " >&6; } 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6312 $as_echo "disabled" >&6; } 6313 else 6314 # Check if the provided tool contains a complete path. 6315 tool_specified="$COMM" 6316 tool_basename="${tool_specified##*/}" 6317 if test "x$tool_basename" = "x$tool_specified"; then 6318 # A command without a complete path is provided, search $PATH. 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6320 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6321 # Extract the first word of "$tool_basename", so it can be a program name with args. 6322 set dummy $tool_basename; 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_COMM+:} false; then : 6326 $as_echo_n "(cached) " >&6 6327 else 6328 case $COMM in 6329 [\\/]* | ?:[\\/]*) 6330 ac_cv_path_COMM="$COMM" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6340 ac_cv_path_COMM="$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 COMM=$ac_cv_path_COMM 6352 if test -n "$COMM"; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6354 $as_echo "$COMM" >&6; } 6355 else 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357 $as_echo "no" >&6; } 6358 fi 6359 6360 6361 if test "x$COMM" = x; then 6362 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6363 fi 6364 else 6365 # Otherwise we believe it is a complete path. Use it as it is. 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6367 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6369 $as_echo_n "checking for COMM... " >&6; } 6370 if test ! -x "$tool_specified"; then 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6372 $as_echo "not found" >&6; } 6373 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6374 fi 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6376 $as_echo "$tool_specified" >&6; } 6377 fi 6378 fi 6379 fi 6380 6381 fi 6382 6383 6384 6385 if test "x$COMM" = x; then 6386 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6387 fi 6388 6389 6390 6391 6392 6393 # Publish this variable in the help. 6394 6395 6396 if [ -z "${CP+x}" ]; then 6397 # The variable is not set by user, try to locate tool using the code snippet 6398 for ac_prog in cp 6399 do 6400 # Extract the first word of "$ac_prog", so it can be a program name with args. 6401 set dummy $ac_prog; ac_word=$2 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403 $as_echo_n "checking for $ac_word... " >&6; } 6404 if ${ac_cv_path_CP+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406 else 6407 case $CP in 6408 [\\/]* | ?:[\\/]*) 6409 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6410 ;; 6411 *) 6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6413 for as_dir in $PATH 6414 do 6415 IFS=$as_save_IFS 6416 test -z "$as_dir" && as_dir=. 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6419 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423 done 6424 done 6425 IFS=$as_save_IFS 6426 6427 ;; 6428 esac 6429 fi 6430 CP=$ac_cv_path_CP 6431 if test -n "$CP"; then 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6433 $as_echo "$CP" >&6; } 6434 else 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6436 $as_echo "no" >&6; } 6437 fi 6438 6439 6440 test -n "$CP" && break 6441 done 6442 6443 else 6444 # The variable is set, but is it from the command line or the environment? 6445 6446 # Try to remove the string !CP! from our list. 6447 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6448 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6449 # If it failed, the variable was not from the command line. Ignore it, 6450 # but warn the user (except for BASH, which is always set by the calling BASH). 6451 if test "xCP" != xBASH; then 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6453 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6454 fi 6455 # Try to locate tool using the code snippet 6456 for ac_prog in cp 6457 do 6458 # Extract the first word of "$ac_prog", so it can be a program name with args. 6459 set dummy $ac_prog; ac_word=$2 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6461 $as_echo_n "checking for $ac_word... " >&6; } 6462 if ${ac_cv_path_CP+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464 else 6465 case $CP in 6466 [\\/]* | ?:[\\/]*) 6467 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6468 ;; 6469 *) 6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471 for as_dir in $PATH 6472 do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6477 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481 done 6482 done 6483 IFS=$as_save_IFS 6484 6485 ;; 6486 esac 6487 fi 6488 CP=$ac_cv_path_CP 6489 if test -n "$CP"; then 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6491 $as_echo "$CP" >&6; } 6492 else 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6494 $as_echo "no" >&6; } 6495 fi 6496 6497 6498 test -n "$CP" && break 6499 done 6500 6501 else 6502 # If it succeeded, then it was overridden by the user. We will use it 6503 # for the tool. 6504 6505 # First remove it from the list of overridden variables, so we can test 6506 # for unknown variables in the end. 6507 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6508 6509 # Check if we try to supply an empty value 6510 if test "x$CP" = x; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6512 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6514 $as_echo_n "checking for CP... " >&6; } 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6516 $as_echo "disabled" >&6; } 6517 else 6518 # Check if the provided tool contains a complete path. 6519 tool_specified="$CP" 6520 tool_basename="${tool_specified##*/}" 6521 if test "x$tool_basename" = "x$tool_specified"; then 6522 # A command without a complete path is provided, search $PATH. 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6524 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6525 # Extract the first word of "$tool_basename", so it can be a program name with args. 6526 set dummy $tool_basename; ac_word=$2 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6528 $as_echo_n "checking for $ac_word... " >&6; } 6529 if ${ac_cv_path_CP+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531 else 6532 case $CP in 6533 [\\/]* | ?:[\\/]*) 6534 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6535 ;; 6536 *) 6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6538 for as_dir in $PATH 6539 do 6540 IFS=$as_save_IFS 6541 test -z "$as_dir" && as_dir=. 6542 for ac_exec_ext in '' $ac_executable_extensions; do 6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6544 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6546 break 2 6547 fi 6548 done 6549 done 6550 IFS=$as_save_IFS 6551 6552 ;; 6553 esac 6554 fi 6555 CP=$ac_cv_path_CP 6556 if test -n "$CP"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6558 $as_echo "$CP" >&6; } 6559 else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561 $as_echo "no" >&6; } 6562 fi 6563 6564 6565 if test "x$CP" = x; then 6566 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6567 fi 6568 else 6569 # Otherwise we believe it is a complete path. Use it as it is. 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6571 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6573 $as_echo_n "checking for CP... " >&6; } 6574 if test ! -x "$tool_specified"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6576 $as_echo "not found" >&6; } 6577 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6578 fi 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6580 $as_echo "$tool_specified" >&6; } 6581 fi 6582 fi 6583 fi 6584 6585 fi 6586 6587 6588 6589 if test "x$CP" = x; then 6590 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6591 fi 6592 6593 6594 6595 6596 6597 # Publish this variable in the help. 6598 6599 6600 if [ -z "${CUT+x}" ]; then 6601 # The variable is not set by user, try to locate tool using the code snippet 6602 for ac_prog in cut 6603 do 6604 # Extract the first word of "$ac_prog", so it can be a program name with args. 6605 set dummy $ac_prog; ac_word=$2 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6607 $as_echo_n "checking for $ac_word... " >&6; } 6608 if ${ac_cv_path_CUT+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610 else 6611 case $CUT in 6612 [\\/]* | ?:[\\/]*) 6613 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6614 ;; 6615 *) 6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617 for as_dir in $PATH 6618 do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6623 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627 done 6628 done 6629 IFS=$as_save_IFS 6630 6631 ;; 6632 esac 6633 fi 6634 CUT=$ac_cv_path_CUT 6635 if test -n "$CUT"; then 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6637 $as_echo "$CUT" >&6; } 6638 else 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6640 $as_echo "no" >&6; } 6641 fi 6642 6643 6644 test -n "$CUT" && break 6645 done 6646 6647 else 6648 # The variable is set, but is it from the command line or the environment? 6649 6650 # Try to remove the string !CUT! from our list. 6651 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6652 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6653 # If it failed, the variable was not from the command line. Ignore it, 6654 # but warn the user (except for BASH, which is always set by the calling BASH). 6655 if test "xCUT" != xBASH; then 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6657 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6658 fi 6659 # Try to locate tool using the code snippet 6660 for ac_prog in cut 6661 do 6662 # Extract the first word of "$ac_prog", so it can be a program name with args. 6663 set dummy $ac_prog; ac_word=$2 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665 $as_echo_n "checking for $ac_word... " >&6; } 6666 if ${ac_cv_path_CUT+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668 else 6669 case $CUT in 6670 [\\/]* | ?:[\\/]*) 6671 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6672 ;; 6673 *) 6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675 for as_dir in $PATH 6676 do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6681 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685 done 6686 done 6687 IFS=$as_save_IFS 6688 6689 ;; 6690 esac 6691 fi 6692 CUT=$ac_cv_path_CUT 6693 if test -n "$CUT"; then 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6695 $as_echo "$CUT" >&6; } 6696 else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6698 $as_echo "no" >&6; } 6699 fi 6700 6701 6702 test -n "$CUT" && break 6703 done 6704 6705 else 6706 # If it succeeded, then it was overridden by the user. We will use it 6707 # for the tool. 6708 6709 # First remove it from the list of overridden variables, so we can test 6710 # for unknown variables in the end. 6711 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6712 6713 # Check if we try to supply an empty value 6714 if test "x$CUT" = x; then 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6716 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6718 $as_echo_n "checking for CUT... " >&6; } 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6720 $as_echo "disabled" >&6; } 6721 else 6722 # Check if the provided tool contains a complete path. 6723 tool_specified="$CUT" 6724 tool_basename="${tool_specified##*/}" 6725 if test "x$tool_basename" = "x$tool_specified"; then 6726 # A command without a complete path is provided, search $PATH. 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6728 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6729 # Extract the first word of "$tool_basename", so it can be a program name with args. 6730 set dummy $tool_basename; ac_word=$2 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6732 $as_echo_n "checking for $ac_word... " >&6; } 6733 if ${ac_cv_path_CUT+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735 else 6736 case $CUT in 6737 [\\/]* | ?:[\\/]*) 6738 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6739 ;; 6740 *) 6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6742 for as_dir in $PATH 6743 do 6744 IFS=$as_save_IFS 6745 test -z "$as_dir" && as_dir=. 6746 for ac_exec_ext in '' $ac_executable_extensions; do 6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6748 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6750 break 2 6751 fi 6752 done 6753 done 6754 IFS=$as_save_IFS 6755 6756 ;; 6757 esac 6758 fi 6759 CUT=$ac_cv_path_CUT 6760 if test -n "$CUT"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6762 $as_echo "$CUT" >&6; } 6763 else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765 $as_echo "no" >&6; } 6766 fi 6767 6768 6769 if test "x$CUT" = x; then 6770 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6771 fi 6772 else 6773 # Otherwise we believe it is a complete path. Use it as it is. 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6775 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6777 $as_echo_n "checking for CUT... " >&6; } 6778 if test ! -x "$tool_specified"; then 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6780 $as_echo "not found" >&6; } 6781 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6782 fi 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6784 $as_echo "$tool_specified" >&6; } 6785 fi 6786 fi 6787 fi 6788 6789 fi 6790 6791 6792 6793 if test "x$CUT" = x; then 6794 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6795 fi 6796 6797 6798 6799 6800 6801 # Publish this variable in the help. 6802 6803 6804 if [ -z "${DATE+x}" ]; then 6805 # The variable is not set by user, try to locate tool using the code snippet 6806 for ac_prog in date 6807 do 6808 # Extract the first word of "$ac_prog", so it can be a program name with args. 6809 set dummy $ac_prog; ac_word=$2 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6811 $as_echo_n "checking for $ac_word... " >&6; } 6812 if ${ac_cv_path_DATE+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814 else 6815 case $DATE in 6816 [\\/]* | ?:[\\/]*) 6817 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6818 ;; 6819 *) 6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6821 for as_dir in $PATH 6822 do 6823 IFS=$as_save_IFS 6824 test -z "$as_dir" && as_dir=. 6825 for ac_exec_ext in '' $ac_executable_extensions; do 6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6827 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6829 break 2 6830 fi 6831 done 6832 done 6833 IFS=$as_save_IFS 6834 6835 ;; 6836 esac 6837 fi 6838 DATE=$ac_cv_path_DATE 6839 if test -n "$DATE"; then 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6841 $as_echo "$DATE" >&6; } 6842 else 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844 $as_echo "no" >&6; } 6845 fi 6846 6847 6848 test -n "$DATE" && break 6849 done 6850 6851 else 6852 # The variable is set, but is it from the command line or the environment? 6853 6854 # Try to remove the string !DATE! from our list. 6855 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6856 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6857 # If it failed, the variable was not from the command line. Ignore it, 6858 # but warn the user (except for BASH, which is always set by the calling BASH). 6859 if test "xDATE" != xBASH; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6861 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6862 fi 6863 # Try to locate tool using the code snippet 6864 for ac_prog in date 6865 do 6866 # Extract the first word of "$ac_prog", so it can be a program name with args. 6867 set dummy $ac_prog; ac_word=$2 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869 $as_echo_n "checking for $ac_word... " >&6; } 6870 if ${ac_cv_path_DATE+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872 else 6873 case $DATE in 6874 [\\/]* | ?:[\\/]*) 6875 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6876 ;; 6877 *) 6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6879 for as_dir in $PATH 6880 do 6881 IFS=$as_save_IFS 6882 test -z "$as_dir" && as_dir=. 6883 for ac_exec_ext in '' $ac_executable_extensions; do 6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6885 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6887 break 2 6888 fi 6889 done 6890 done 6891 IFS=$as_save_IFS 6892 6893 ;; 6894 esac 6895 fi 6896 DATE=$ac_cv_path_DATE 6897 if test -n "$DATE"; then 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6899 $as_echo "$DATE" >&6; } 6900 else 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6902 $as_echo "no" >&6; } 6903 fi 6904 6905 6906 test -n "$DATE" && break 6907 done 6908 6909 else 6910 # If it succeeded, then it was overridden by the user. We will use it 6911 # for the tool. 6912 6913 # First remove it from the list of overridden variables, so we can test 6914 # for unknown variables in the end. 6915 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6916 6917 # Check if we try to supply an empty value 6918 if test "x$DATE" = x; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6920 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6922 $as_echo_n "checking for DATE... " >&6; } 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6924 $as_echo "disabled" >&6; } 6925 else 6926 # Check if the provided tool contains a complete path. 6927 tool_specified="$DATE" 6928 tool_basename="${tool_specified##*/}" 6929 if test "x$tool_basename" = "x$tool_specified"; then 6930 # A command without a complete path is provided, search $PATH. 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6932 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6933 # Extract the first word of "$tool_basename", so it can be a program name with args. 6934 set dummy $tool_basename; ac_word=$2 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6936 $as_echo_n "checking for $ac_word... " >&6; } 6937 if ${ac_cv_path_DATE+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939 else 6940 case $DATE in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946 for as_dir in $PATH 6947 do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956 done 6957 done 6958 IFS=$as_save_IFS 6959 6960 ;; 6961 esac 6962 fi 6963 DATE=$ac_cv_path_DATE 6964 if test -n "$DATE"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6966 $as_echo "$DATE" >&6; } 6967 else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969 $as_echo "no" >&6; } 6970 fi 6971 6972 6973 if test "x$DATE" = x; then 6974 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6975 fi 6976 else 6977 # Otherwise we believe it is a complete path. Use it as it is. 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6979 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6981 $as_echo_n "checking for DATE... " >&6; } 6982 if test ! -x "$tool_specified"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6984 $as_echo "not found" >&6; } 6985 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6986 fi 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6988 $as_echo "$tool_specified" >&6; } 6989 fi 6990 fi 6991 fi 6992 6993 fi 6994 6995 6996 6997 if test "x$DATE" = x; then 6998 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6999 fi 7000 7001 7002 7003 7004 7005 # Publish this variable in the help. 7006 7007 7008 if [ -z "${DIFF+x}" ]; then 7009 # The variable is not set by user, try to locate tool using the code snippet 7010 for ac_prog in gdiff diff 7011 do 7012 # Extract the first word of "$ac_prog", so it can be a program name with args. 7013 set dummy $ac_prog; ac_word=$2 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7015 $as_echo_n "checking for $ac_word... " >&6; } 7016 if ${ac_cv_path_DIFF+:} false; then : 7017 $as_echo_n "(cached) " >&6 7018 else 7019 case $DIFF in 7020 [\\/]* | ?:[\\/]*) 7021 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7022 ;; 7023 *) 7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7025 for as_dir in $PATH 7026 do 7027 IFS=$as_save_IFS 7028 test -z "$as_dir" && as_dir=. 7029 for ac_exec_ext in '' $ac_executable_extensions; do 7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7031 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7033 break 2 7034 fi 7035 done 7036 done 7037 IFS=$as_save_IFS 7038 7039 ;; 7040 esac 7041 fi 7042 DIFF=$ac_cv_path_DIFF 7043 if test -n "$DIFF"; then 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7045 $as_echo "$DIFF" >&6; } 7046 else 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7048 $as_echo "no" >&6; } 7049 fi 7050 7051 7052 test -n "$DIFF" && break 7053 done 7054 7055 else 7056 # The variable is set, but is it from the command line or the environment? 7057 7058 # Try to remove the string !DIFF! from our list. 7059 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7060 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7061 # If it failed, the variable was not from the command line. Ignore it, 7062 # but warn the user (except for BASH, which is always set by the calling BASH). 7063 if test "xDIFF" != xBASH; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7065 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7066 fi 7067 # Try to locate tool using the code snippet 7068 for ac_prog in gdiff diff 7069 do 7070 # Extract the first word of "$ac_prog", so it can be a program name with args. 7071 set dummy $ac_prog; ac_word=$2 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7073 $as_echo_n "checking for $ac_word... " >&6; } 7074 if ${ac_cv_path_DIFF+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076 else 7077 case $DIFF in 7078 [\\/]* | ?:[\\/]*) 7079 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7080 ;; 7081 *) 7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7083 for as_dir in $PATH 7084 do 7085 IFS=$as_save_IFS 7086 test -z "$as_dir" && as_dir=. 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7089 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093 done 7094 done 7095 IFS=$as_save_IFS 7096 7097 ;; 7098 esac 7099 fi 7100 DIFF=$ac_cv_path_DIFF 7101 if test -n "$DIFF"; then 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7103 $as_echo "$DIFF" >&6; } 7104 else 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7106 $as_echo "no" >&6; } 7107 fi 7108 7109 7110 test -n "$DIFF" && break 7111 done 7112 7113 else 7114 # If it succeeded, then it was overridden by the user. We will use it 7115 # for the tool. 7116 7117 # First remove it from the list of overridden variables, so we can test 7118 # for unknown variables in the end. 7119 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7120 7121 # Check if we try to supply an empty value 7122 if test "x$DIFF" = x; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7124 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7126 $as_echo_n "checking for DIFF... " >&6; } 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7128 $as_echo "disabled" >&6; } 7129 else 7130 # Check if the provided tool contains a complete path. 7131 tool_specified="$DIFF" 7132 tool_basename="${tool_specified##*/}" 7133 if test "x$tool_basename" = "x$tool_specified"; then 7134 # A command without a complete path is provided, search $PATH. 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7136 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7137 # Extract the first word of "$tool_basename", so it can be a program name with args. 7138 set dummy $tool_basename; ac_word=$2 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7140 $as_echo_n "checking for $ac_word... " >&6; } 7141 if ${ac_cv_path_DIFF+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143 else 7144 case $DIFF in 7145 [\\/]* | ?:[\\/]*) 7146 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7147 ;; 7148 *) 7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150 for as_dir in $PATH 7151 do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7156 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160 done 7161 done 7162 IFS=$as_save_IFS 7163 7164 ;; 7165 esac 7166 fi 7167 DIFF=$ac_cv_path_DIFF 7168 if test -n "$DIFF"; then 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7170 $as_echo "$DIFF" >&6; } 7171 else 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7173 $as_echo "no" >&6; } 7174 fi 7175 7176 7177 if test "x$DIFF" = x; then 7178 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7179 fi 7180 else 7181 # Otherwise we believe it is a complete path. Use it as it is. 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7183 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7185 $as_echo_n "checking for DIFF... " >&6; } 7186 if test ! -x "$tool_specified"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7188 $as_echo "not found" >&6; } 7189 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7190 fi 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7192 $as_echo "$tool_specified" >&6; } 7193 fi 7194 fi 7195 fi 7196 7197 fi 7198 7199 7200 7201 if test "x$DIFF" = x; then 7202 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7203 fi 7204 7205 7206 7207 7208 7209 # Publish this variable in the help. 7210 7211 7212 if [ -z "${DIRNAME+x}" ]; then 7213 # The variable is not set by user, try to locate tool using the code snippet 7214 for ac_prog in dirname 7215 do 7216 # Extract the first word of "$ac_prog", so it can be a program name with args. 7217 set dummy $ac_prog; ac_word=$2 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7219 $as_echo_n "checking for $ac_word... " >&6; } 7220 if ${ac_cv_path_DIRNAME+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222 else 7223 case $DIRNAME in 7224 [\\/]* | ?:[\\/]*) 7225 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7226 ;; 7227 *) 7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229 for as_dir in $PATH 7230 do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7235 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239 done 7240 done 7241 IFS=$as_save_IFS 7242 7243 ;; 7244 esac 7245 fi 7246 DIRNAME=$ac_cv_path_DIRNAME 7247 if test -n "$DIRNAME"; then 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7249 $as_echo "$DIRNAME" >&6; } 7250 else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252 $as_echo "no" >&6; } 7253 fi 7254 7255 7256 test -n "$DIRNAME" && break 7257 done 7258 7259 else 7260 # The variable is set, but is it from the command line or the environment? 7261 7262 # Try to remove the string !DIRNAME! from our list. 7263 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7264 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7265 # If it failed, the variable was not from the command line. Ignore it, 7266 # but warn the user (except for BASH, which is always set by the calling BASH). 7267 if test "xDIRNAME" != xBASH; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7269 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7270 fi 7271 # Try to locate tool using the code snippet 7272 for ac_prog in dirname 7273 do 7274 # Extract the first word of "$ac_prog", so it can be a program name with args. 7275 set dummy $ac_prog; ac_word=$2 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277 $as_echo_n "checking for $ac_word... " >&6; } 7278 if ${ac_cv_path_DIRNAME+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280 else 7281 case $DIRNAME in 7282 [\\/]* | ?:[\\/]*) 7283 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7284 ;; 7285 *) 7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287 for as_dir in $PATH 7288 do 7289 IFS=$as_save_IFS 7290 test -z "$as_dir" && as_dir=. 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7293 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297 done 7298 done 7299 IFS=$as_save_IFS 7300 7301 ;; 7302 esac 7303 fi 7304 DIRNAME=$ac_cv_path_DIRNAME 7305 if test -n "$DIRNAME"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7307 $as_echo "$DIRNAME" >&6; } 7308 else 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310 $as_echo "no" >&6; } 7311 fi 7312 7313 7314 test -n "$DIRNAME" && break 7315 done 7316 7317 else 7318 # If it succeeded, then it was overridden by the user. We will use it 7319 # for the tool. 7320 7321 # First remove it from the list of overridden variables, so we can test 7322 # for unknown variables in the end. 7323 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7324 7325 # Check if we try to supply an empty value 7326 if test "x$DIRNAME" = x; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7328 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7330 $as_echo_n "checking for DIRNAME... " >&6; } 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7332 $as_echo "disabled" >&6; } 7333 else 7334 # Check if the provided tool contains a complete path. 7335 tool_specified="$DIRNAME" 7336 tool_basename="${tool_specified##*/}" 7337 if test "x$tool_basename" = "x$tool_specified"; then 7338 # A command without a complete path is provided, search $PATH. 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7340 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7341 # Extract the first word of "$tool_basename", so it can be a program name with args. 7342 set dummy $tool_basename; ac_word=$2 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7344 $as_echo_n "checking for $ac_word... " >&6; } 7345 if ${ac_cv_path_DIRNAME+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347 else 7348 case $DIRNAME in 7349 [\\/]* | ?:[\\/]*) 7350 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7351 ;; 7352 *) 7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354 for as_dir in $PATH 7355 do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7360 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7362 break 2 7363 fi 7364 done 7365 done 7366 IFS=$as_save_IFS 7367 7368 ;; 7369 esac 7370 fi 7371 DIRNAME=$ac_cv_path_DIRNAME 7372 if test -n "$DIRNAME"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7374 $as_echo "$DIRNAME" >&6; } 7375 else 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7377 $as_echo "no" >&6; } 7378 fi 7379 7380 7381 if test "x$DIRNAME" = x; then 7382 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7383 fi 7384 else 7385 # Otherwise we believe it is a complete path. Use it as it is. 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7387 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7389 $as_echo_n "checking for DIRNAME... " >&6; } 7390 if test ! -x "$tool_specified"; then 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7392 $as_echo "not found" >&6; } 7393 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7394 fi 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7396 $as_echo "$tool_specified" >&6; } 7397 fi 7398 fi 7399 fi 7400 7401 fi 7402 7403 7404 7405 if test "x$DIRNAME" = x; then 7406 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7407 fi 7408 7409 7410 7411 7412 7413 # Publish this variable in the help. 7414 7415 7416 if [ -z "${ECHO+x}" ]; then 7417 # The variable is not set by user, try to locate tool using the code snippet 7418 for ac_prog in echo 7419 do 7420 # Extract the first word of "$ac_prog", so it can be a program name with args. 7421 set dummy $ac_prog; ac_word=$2 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423 $as_echo_n "checking for $ac_word... " >&6; } 7424 if ${ac_cv_path_ECHO+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426 else 7427 case $ECHO in 7428 [\\/]* | ?:[\\/]*) 7429 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7430 ;; 7431 *) 7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433 for as_dir in $PATH 7434 do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_exec_ext in '' $ac_executable_extensions; do 7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7439 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7441 break 2 7442 fi 7443 done 7444 done 7445 IFS=$as_save_IFS 7446 7447 ;; 7448 esac 7449 fi 7450 ECHO=$ac_cv_path_ECHO 7451 if test -n "$ECHO"; then 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7453 $as_echo "$ECHO" >&6; } 7454 else 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7456 $as_echo "no" >&6; } 7457 fi 7458 7459 7460 test -n "$ECHO" && break 7461 done 7462 7463 else 7464 # The variable is set, but is it from the command line or the environment? 7465 7466 # Try to remove the string !ECHO! from our list. 7467 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7468 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7469 # If it failed, the variable was not from the command line. Ignore it, 7470 # but warn the user (except for BASH, which is always set by the calling BASH). 7471 if test "xECHO" != xBASH; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7473 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7474 fi 7475 # Try to locate tool using the code snippet 7476 for ac_prog in echo 7477 do 7478 # Extract the first word of "$ac_prog", so it can be a program name with args. 7479 set dummy $ac_prog; ac_word=$2 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481 $as_echo_n "checking for $ac_word... " >&6; } 7482 if ${ac_cv_path_ECHO+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484 else 7485 case $ECHO in 7486 [\\/]* | ?:[\\/]*) 7487 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7488 ;; 7489 *) 7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491 for as_dir in $PATH 7492 do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7497 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501 done 7502 done 7503 IFS=$as_save_IFS 7504 7505 ;; 7506 esac 7507 fi 7508 ECHO=$ac_cv_path_ECHO 7509 if test -n "$ECHO"; then 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7511 $as_echo "$ECHO" >&6; } 7512 else 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7514 $as_echo "no" >&6; } 7515 fi 7516 7517 7518 test -n "$ECHO" && break 7519 done 7520 7521 else 7522 # If it succeeded, then it was overridden by the user. We will use it 7523 # for the tool. 7524 7525 # First remove it from the list of overridden variables, so we can test 7526 # for unknown variables in the end. 7527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7528 7529 # Check if we try to supply an empty value 7530 if test "x$ECHO" = x; then 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7532 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7534 $as_echo_n "checking for ECHO... " >&6; } 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7536 $as_echo "disabled" >&6; } 7537 else 7538 # Check if the provided tool contains a complete path. 7539 tool_specified="$ECHO" 7540 tool_basename="${tool_specified##*/}" 7541 if test "x$tool_basename" = "x$tool_specified"; then 7542 # A command without a complete path is provided, search $PATH. 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7544 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7545 # Extract the first word of "$tool_basename", so it can be a program name with args. 7546 set dummy $tool_basename; ac_word=$2 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548 $as_echo_n "checking for $ac_word... " >&6; } 7549 if ${ac_cv_path_ECHO+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551 else 7552 case $ECHO in 7553 [\\/]* | ?:[\\/]*) 7554 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7555 ;; 7556 *) 7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558 for as_dir in $PATH 7559 do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568 done 7569 done 7570 IFS=$as_save_IFS 7571 7572 ;; 7573 esac 7574 fi 7575 ECHO=$ac_cv_path_ECHO 7576 if test -n "$ECHO"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7578 $as_echo "$ECHO" >&6; } 7579 else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581 $as_echo "no" >&6; } 7582 fi 7583 7584 7585 if test "x$ECHO" = x; then 7586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7587 fi 7588 else 7589 # Otherwise we believe it is a complete path. Use it as it is. 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7591 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7593 $as_echo_n "checking for ECHO... " >&6; } 7594 if test ! -x "$tool_specified"; then 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7596 $as_echo "not found" >&6; } 7597 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7598 fi 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7600 $as_echo "$tool_specified" >&6; } 7601 fi 7602 fi 7603 fi 7604 7605 fi 7606 7607 7608 7609 if test "x$ECHO" = x; then 7610 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7611 fi 7612 7613 7614 7615 7616 7617 # Publish this variable in the help. 7618 7619 7620 if [ -z "${EXPR+x}" ]; then 7621 # The variable is not set by user, try to locate tool using the code snippet 7622 for ac_prog in expr 7623 do 7624 # Extract the first word of "$ac_prog", so it can be a program name with args. 7625 set dummy $ac_prog; ac_word=$2 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7627 $as_echo_n "checking for $ac_word... " >&6; } 7628 if ${ac_cv_path_EXPR+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630 else 7631 case $EXPR in 7632 [\\/]* | ?:[\\/]*) 7633 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7634 ;; 7635 *) 7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637 for as_dir in $PATH 7638 do 7639 IFS=$as_save_IFS 7640 test -z "$as_dir" && as_dir=. 7641 for ac_exec_ext in '' $ac_executable_extensions; do 7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7643 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7645 break 2 7646 fi 7647 done 7648 done 7649 IFS=$as_save_IFS 7650 7651 ;; 7652 esac 7653 fi 7654 EXPR=$ac_cv_path_EXPR 7655 if test -n "$EXPR"; then 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7657 $as_echo "$EXPR" >&6; } 7658 else 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7660 $as_echo "no" >&6; } 7661 fi 7662 7663 7664 test -n "$EXPR" && break 7665 done 7666 7667 else 7668 # The variable is set, but is it from the command line or the environment? 7669 7670 # Try to remove the string !EXPR! from our list. 7671 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7672 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7673 # If it failed, the variable was not from the command line. Ignore it, 7674 # but warn the user (except for BASH, which is always set by the calling BASH). 7675 if test "xEXPR" != xBASH; then 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7677 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7678 fi 7679 # Try to locate tool using the code snippet 7680 for ac_prog in expr 7681 do 7682 # Extract the first word of "$ac_prog", so it can be a program name with args. 7683 set dummy $ac_prog; ac_word=$2 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7685 $as_echo_n "checking for $ac_word... " >&6; } 7686 if ${ac_cv_path_EXPR+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688 else 7689 case $EXPR in 7690 [\\/]* | ?:[\\/]*) 7691 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7692 ;; 7693 *) 7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7695 for as_dir in $PATH 7696 do 7697 IFS=$as_save_IFS 7698 test -z "$as_dir" && as_dir=. 7699 for ac_exec_ext in '' $ac_executable_extensions; do 7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7701 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7703 break 2 7704 fi 7705 done 7706 done 7707 IFS=$as_save_IFS 7708 7709 ;; 7710 esac 7711 fi 7712 EXPR=$ac_cv_path_EXPR 7713 if test -n "$EXPR"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7715 $as_echo "$EXPR" >&6; } 7716 else 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7718 $as_echo "no" >&6; } 7719 fi 7720 7721 7722 test -n "$EXPR" && break 7723 done 7724 7725 else 7726 # If it succeeded, then it was overridden by the user. We will use it 7727 # for the tool. 7728 7729 # First remove it from the list of overridden variables, so we can test 7730 # for unknown variables in the end. 7731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7732 7733 # Check if we try to supply an empty value 7734 if test "x$EXPR" = x; then 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7736 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7738 $as_echo_n "checking for EXPR... " >&6; } 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7740 $as_echo "disabled" >&6; } 7741 else 7742 # Check if the provided tool contains a complete path. 7743 tool_specified="$EXPR" 7744 tool_basename="${tool_specified##*/}" 7745 if test "x$tool_basename" = "x$tool_specified"; then 7746 # A command without a complete path is provided, search $PATH. 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7748 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7749 # Extract the first word of "$tool_basename", so it can be a program name with args. 7750 set dummy $tool_basename; ac_word=$2 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7752 $as_echo_n "checking for $ac_word... " >&6; } 7753 if ${ac_cv_path_EXPR+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755 else 7756 case $EXPR in 7757 [\\/]* | ?:[\\/]*) 7758 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7759 ;; 7760 *) 7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762 for as_dir in $PATH 7763 do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772 done 7773 done 7774 IFS=$as_save_IFS 7775 7776 ;; 7777 esac 7778 fi 7779 EXPR=$ac_cv_path_EXPR 7780 if test -n "$EXPR"; then 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7782 $as_echo "$EXPR" >&6; } 7783 else 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7785 $as_echo "no" >&6; } 7786 fi 7787 7788 7789 if test "x$EXPR" = x; then 7790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7791 fi 7792 else 7793 # Otherwise we believe it is a complete path. Use it as it is. 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7795 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7797 $as_echo_n "checking for EXPR... " >&6; } 7798 if test ! -x "$tool_specified"; then 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7800 $as_echo "not found" >&6; } 7801 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7802 fi 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7804 $as_echo "$tool_specified" >&6; } 7805 fi 7806 fi 7807 fi 7808 7809 fi 7810 7811 7812 7813 if test "x$EXPR" = x; then 7814 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7815 fi 7816 7817 7818 7819 7820 7821 # Publish this variable in the help. 7822 7823 7824 if [ -z "${FILE+x}" ]; then 7825 # The variable is not set by user, try to locate tool using the code snippet 7826 for ac_prog in file 7827 do 7828 # Extract the first word of "$ac_prog", so it can be a program name with args. 7829 set dummy $ac_prog; ac_word=$2 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7831 $as_echo_n "checking for $ac_word... " >&6; } 7832 if ${ac_cv_path_FILE+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834 else 7835 case $FILE in 7836 [\\/]* | ?:[\\/]*) 7837 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7838 ;; 7839 *) 7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841 for as_dir in $PATH 7842 do 7843 IFS=$as_save_IFS 7844 test -z "$as_dir" && as_dir=. 7845 for ac_exec_ext in '' $ac_executable_extensions; do 7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7847 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7849 break 2 7850 fi 7851 done 7852 done 7853 IFS=$as_save_IFS 7854 7855 ;; 7856 esac 7857 fi 7858 FILE=$ac_cv_path_FILE 7859 if test -n "$FILE"; then 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7861 $as_echo "$FILE" >&6; } 7862 else 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7864 $as_echo "no" >&6; } 7865 fi 7866 7867 7868 test -n "$FILE" && break 7869 done 7870 7871 else 7872 # The variable is set, but is it from the command line or the environment? 7873 7874 # Try to remove the string !FILE! from our list. 7875 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7876 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7877 # If it failed, the variable was not from the command line. Ignore it, 7878 # but warn the user (except for BASH, which is always set by the calling BASH). 7879 if test "xFILE" != xBASH; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7881 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7882 fi 7883 # Try to locate tool using the code snippet 7884 for ac_prog in file 7885 do 7886 # Extract the first word of "$ac_prog", so it can be a program name with args. 7887 set dummy $ac_prog; ac_word=$2 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7889 $as_echo_n "checking for $ac_word... " >&6; } 7890 if ${ac_cv_path_FILE+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892 else 7893 case $FILE in 7894 [\\/]* | ?:[\\/]*) 7895 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7896 ;; 7897 *) 7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899 for as_dir in $PATH 7900 do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7905 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909 done 7910 done 7911 IFS=$as_save_IFS 7912 7913 ;; 7914 esac 7915 fi 7916 FILE=$ac_cv_path_FILE 7917 if test -n "$FILE"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7919 $as_echo "$FILE" >&6; } 7920 else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922 $as_echo "no" >&6; } 7923 fi 7924 7925 7926 test -n "$FILE" && break 7927 done 7928 7929 else 7930 # If it succeeded, then it was overridden by the user. We will use it 7931 # for the tool. 7932 7933 # First remove it from the list of overridden variables, so we can test 7934 # for unknown variables in the end. 7935 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7936 7937 # Check if we try to supply an empty value 7938 if test "x$FILE" = x; then 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7940 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7942 $as_echo_n "checking for FILE... " >&6; } 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7944 $as_echo "disabled" >&6; } 7945 else 7946 # Check if the provided tool contains a complete path. 7947 tool_specified="$FILE" 7948 tool_basename="${tool_specified##*/}" 7949 if test "x$tool_basename" = "x$tool_specified"; then 7950 # A command without a complete path is provided, search $PATH. 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7952 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7953 # Extract the first word of "$tool_basename", so it can be a program name with args. 7954 set dummy $tool_basename; ac_word=$2 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7956 $as_echo_n "checking for $ac_word... " >&6; } 7957 if ${ac_cv_path_FILE+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959 else 7960 case $FILE in 7961 [\\/]* | ?:[\\/]*) 7962 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7963 ;; 7964 *) 7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966 for as_dir in $PATH 7967 do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976 done 7977 done 7978 IFS=$as_save_IFS 7979 7980 ;; 7981 esac 7982 fi 7983 FILE=$ac_cv_path_FILE 7984 if test -n "$FILE"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7986 $as_echo "$FILE" >&6; } 7987 else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989 $as_echo "no" >&6; } 7990 fi 7991 7992 7993 if test "x$FILE" = x; then 7994 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7995 fi 7996 else 7997 # Otherwise we believe it is a complete path. Use it as it is. 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7999 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8001 $as_echo_n "checking for FILE... " >&6; } 8002 if test ! -x "$tool_specified"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8004 $as_echo "not found" >&6; } 8005 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8006 fi 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8008 $as_echo "$tool_specified" >&6; } 8009 fi 8010 fi 8011 fi 8012 8013 fi 8014 8015 8016 8017 if test "x$FILE" = x; then 8018 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8019 fi 8020 8021 8022 8023 8024 8025 # Publish this variable in the help. 8026 8027 8028 if [ -z "${FIND+x}" ]; then 8029 # The variable is not set by user, try to locate tool using the code snippet 8030 for ac_prog in find 8031 do 8032 # Extract the first word of "$ac_prog", so it can be a program name with args. 8033 set dummy $ac_prog; ac_word=$2 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8035 $as_echo_n "checking for $ac_word... " >&6; } 8036 if ${ac_cv_path_FIND+:} false; then : 8037 $as_echo_n "(cached) " >&6 8038 else 8039 case $FIND in 8040 [\\/]* | ?:[\\/]*) 8041 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8042 ;; 8043 *) 8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8045 for as_dir in $PATH 8046 do 8047 IFS=$as_save_IFS 8048 test -z "$as_dir" && as_dir=. 8049 for ac_exec_ext in '' $ac_executable_extensions; do 8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8051 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8053 break 2 8054 fi 8055 done 8056 done 8057 IFS=$as_save_IFS 8058 8059 ;; 8060 esac 8061 fi 8062 FIND=$ac_cv_path_FIND 8063 if test -n "$FIND"; then 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8065 $as_echo "$FIND" >&6; } 8066 else 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8068 $as_echo "no" >&6; } 8069 fi 8070 8071 8072 test -n "$FIND" && break 8073 done 8074 8075 else 8076 # The variable is set, but is it from the command line or the environment? 8077 8078 # Try to remove the string !FIND! from our list. 8079 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8080 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8081 # If it failed, the variable was not from the command line. Ignore it, 8082 # but warn the user (except for BASH, which is always set by the calling BASH). 8083 if test "xFIND" != xBASH; then 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8085 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8086 fi 8087 # Try to locate tool using the code snippet 8088 for ac_prog in find 8089 do 8090 # Extract the first word of "$ac_prog", so it can be a program name with args. 8091 set dummy $ac_prog; ac_word=$2 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8093 $as_echo_n "checking for $ac_word... " >&6; } 8094 if ${ac_cv_path_FIND+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096 else 8097 case $FIND in 8098 [\\/]* | ?:[\\/]*) 8099 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8100 ;; 8101 *) 8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8103 for as_dir in $PATH 8104 do 8105 IFS=$as_save_IFS 8106 test -z "$as_dir" && as_dir=. 8107 for ac_exec_ext in '' $ac_executable_extensions; do 8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8109 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8111 break 2 8112 fi 8113 done 8114 done 8115 IFS=$as_save_IFS 8116 8117 ;; 8118 esac 8119 fi 8120 FIND=$ac_cv_path_FIND 8121 if test -n "$FIND"; then 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8123 $as_echo "$FIND" >&6; } 8124 else 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8126 $as_echo "no" >&6; } 8127 fi 8128 8129 8130 test -n "$FIND" && break 8131 done 8132 8133 else 8134 # If it succeeded, then it was overridden by the user. We will use it 8135 # for the tool. 8136 8137 # First remove it from the list of overridden variables, so we can test 8138 # for unknown variables in the end. 8139 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8140 8141 # Check if we try to supply an empty value 8142 if test "x$FIND" = x; then 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8144 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8146 $as_echo_n "checking for FIND... " >&6; } 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8148 $as_echo "disabled" >&6; } 8149 else 8150 # Check if the provided tool contains a complete path. 8151 tool_specified="$FIND" 8152 tool_basename="${tool_specified##*/}" 8153 if test "x$tool_basename" = "x$tool_specified"; then 8154 # A command without a complete path is provided, search $PATH. 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8156 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8157 # Extract the first word of "$tool_basename", so it can be a program name with args. 8158 set dummy $tool_basename; ac_word=$2 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8160 $as_echo_n "checking for $ac_word... " >&6; } 8161 if ${ac_cv_path_FIND+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163 else 8164 case $FIND in 8165 [\\/]* | ?:[\\/]*) 8166 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8167 ;; 8168 *) 8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8170 for as_dir in $PATH 8171 do 8172 IFS=$as_save_IFS 8173 test -z "$as_dir" && as_dir=. 8174 for ac_exec_ext in '' $ac_executable_extensions; do 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8176 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8178 break 2 8179 fi 8180 done 8181 done 8182 IFS=$as_save_IFS 8183 8184 ;; 8185 esac 8186 fi 8187 FIND=$ac_cv_path_FIND 8188 if test -n "$FIND"; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8190 $as_echo "$FIND" >&6; } 8191 else 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8193 $as_echo "no" >&6; } 8194 fi 8195 8196 8197 if test "x$FIND" = x; then 8198 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8199 fi 8200 else 8201 # Otherwise we believe it is a complete path. Use it as it is. 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8203 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8205 $as_echo_n "checking for FIND... " >&6; } 8206 if test ! -x "$tool_specified"; then 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8208 $as_echo "not found" >&6; } 8209 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8210 fi 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8212 $as_echo "$tool_specified" >&6; } 8213 fi 8214 fi 8215 fi 8216 8217 fi 8218 8219 8220 8221 if test "x$FIND" = x; then 8222 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8223 fi 8224 8225 8226 8227 8228 8229 # Publish this variable in the help. 8230 8231 8232 if [ -z "${HEAD+x}" ]; then 8233 # The variable is not set by user, try to locate tool using the code snippet 8234 for ac_prog in head 8235 do 8236 # Extract the first word of "$ac_prog", so it can be a program name with args. 8237 set dummy $ac_prog; ac_word=$2 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8239 $as_echo_n "checking for $ac_word... " >&6; } 8240 if ${ac_cv_path_HEAD+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242 else 8243 case $HEAD in 8244 [\\/]* | ?:[\\/]*) 8245 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8246 ;; 8247 *) 8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8249 for as_dir in $PATH 8250 do 8251 IFS=$as_save_IFS 8252 test -z "$as_dir" && as_dir=. 8253 for ac_exec_ext in '' $ac_executable_extensions; do 8254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8255 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8257 break 2 8258 fi 8259 done 8260 done 8261 IFS=$as_save_IFS 8262 8263 ;; 8264 esac 8265 fi 8266 HEAD=$ac_cv_path_HEAD 8267 if test -n "$HEAD"; then 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8269 $as_echo "$HEAD" >&6; } 8270 else 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8272 $as_echo "no" >&6; } 8273 fi 8274 8275 8276 test -n "$HEAD" && break 8277 done 8278 8279 else 8280 # The variable is set, but is it from the command line or the environment? 8281 8282 # Try to remove the string !HEAD! from our list. 8283 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8284 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8285 # If it failed, the variable was not from the command line. Ignore it, 8286 # but warn the user (except for BASH, which is always set by the calling BASH). 8287 if test "xHEAD" != xBASH; then 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8289 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8290 fi 8291 # Try to locate tool using the code snippet 8292 for ac_prog in head 8293 do 8294 # Extract the first word of "$ac_prog", so it can be a program name with args. 8295 set dummy $ac_prog; ac_word=$2 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8297 $as_echo_n "checking for $ac_word... " >&6; } 8298 if ${ac_cv_path_HEAD+:} false; then : 8299 $as_echo_n "(cached) " >&6 8300 else 8301 case $HEAD in 8302 [\\/]* | ?:[\\/]*) 8303 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8304 ;; 8305 *) 8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8307 for as_dir in $PATH 8308 do 8309 IFS=$as_save_IFS 8310 test -z "$as_dir" && as_dir=. 8311 for ac_exec_ext in '' $ac_executable_extensions; do 8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8313 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8315 break 2 8316 fi 8317 done 8318 done 8319 IFS=$as_save_IFS 8320 8321 ;; 8322 esac 8323 fi 8324 HEAD=$ac_cv_path_HEAD 8325 if test -n "$HEAD"; then 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8327 $as_echo "$HEAD" >&6; } 8328 else 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8330 $as_echo "no" >&6; } 8331 fi 8332 8333 8334 test -n "$HEAD" && break 8335 done 8336 8337 else 8338 # If it succeeded, then it was overridden by the user. We will use it 8339 # for the tool. 8340 8341 # First remove it from the list of overridden variables, so we can test 8342 # for unknown variables in the end. 8343 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8344 8345 # Check if we try to supply an empty value 8346 if test "x$HEAD" = x; then 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8348 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8350 $as_echo_n "checking for HEAD... " >&6; } 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8352 $as_echo "disabled" >&6; } 8353 else 8354 # Check if the provided tool contains a complete path. 8355 tool_specified="$HEAD" 8356 tool_basename="${tool_specified##*/}" 8357 if test "x$tool_basename" = "x$tool_specified"; then 8358 # A command without a complete path is provided, search $PATH. 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8360 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8361 # Extract the first word of "$tool_basename", so it can be a program name with args. 8362 set dummy $tool_basename; ac_word=$2 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8364 $as_echo_n "checking for $ac_word... " >&6; } 8365 if ${ac_cv_path_HEAD+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367 else 8368 case $HEAD in 8369 [\\/]* | ?:[\\/]*) 8370 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8371 ;; 8372 *) 8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8374 for as_dir in $PATH 8375 do 8376 IFS=$as_save_IFS 8377 test -z "$as_dir" && as_dir=. 8378 for ac_exec_ext in '' $ac_executable_extensions; do 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8380 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8382 break 2 8383 fi 8384 done 8385 done 8386 IFS=$as_save_IFS 8387 8388 ;; 8389 esac 8390 fi 8391 HEAD=$ac_cv_path_HEAD 8392 if test -n "$HEAD"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8394 $as_echo "$HEAD" >&6; } 8395 else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8397 $as_echo "no" >&6; } 8398 fi 8399 8400 8401 if test "x$HEAD" = x; then 8402 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8403 fi 8404 else 8405 # Otherwise we believe it is a complete path. Use it as it is. 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8407 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8409 $as_echo_n "checking for HEAD... " >&6; } 8410 if test ! -x "$tool_specified"; then 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8412 $as_echo "not found" >&6; } 8413 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8414 fi 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8416 $as_echo "$tool_specified" >&6; } 8417 fi 8418 fi 8419 fi 8420 8421 fi 8422 8423 8424 8425 if test "x$HEAD" = x; then 8426 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8427 fi 8428 8429 8430 8431 8432 8433 # Publish this variable in the help. 8434 8435 8436 if [ -z "${GUNZIP+x}" ]; then 8437 # The variable is not set by user, try to locate tool using the code snippet 8438 for ac_prog in gunzip 8439 do 8440 # Extract the first word of "$ac_prog", so it can be a program name with args. 8441 set dummy $ac_prog; ac_word=$2 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8443 $as_echo_n "checking for $ac_word... " >&6; } 8444 if ${ac_cv_path_GUNZIP+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446 else 8447 case $GUNZIP in 8448 [\\/]* | ?:[\\/]*) 8449 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8450 ;; 8451 *) 8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8453 for as_dir in $PATH 8454 do 8455 IFS=$as_save_IFS 8456 test -z "$as_dir" && as_dir=. 8457 for ac_exec_ext in '' $ac_executable_extensions; do 8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8459 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8461 break 2 8462 fi 8463 done 8464 done 8465 IFS=$as_save_IFS 8466 8467 ;; 8468 esac 8469 fi 8470 GUNZIP=$ac_cv_path_GUNZIP 8471 if test -n "$GUNZIP"; then 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8473 $as_echo "$GUNZIP" >&6; } 8474 else 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8476 $as_echo "no" >&6; } 8477 fi 8478 8479 8480 test -n "$GUNZIP" && break 8481 done 8482 8483 else 8484 # The variable is set, but is it from the command line or the environment? 8485 8486 # Try to remove the string !GUNZIP! from our list. 8487 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8488 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8489 # If it failed, the variable was not from the command line. Ignore it, 8490 # but warn the user (except for BASH, which is always set by the calling BASH). 8491 if test "xGUNZIP" != xBASH; then 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8493 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8494 fi 8495 # Try to locate tool using the code snippet 8496 for ac_prog in gunzip 8497 do 8498 # Extract the first word of "$ac_prog", so it can be a program name with args. 8499 set dummy $ac_prog; ac_word=$2 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8501 $as_echo_n "checking for $ac_word... " >&6; } 8502 if ${ac_cv_path_GUNZIP+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504 else 8505 case $GUNZIP in 8506 [\\/]* | ?:[\\/]*) 8507 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8508 ;; 8509 *) 8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8511 for as_dir in $PATH 8512 do 8513 IFS=$as_save_IFS 8514 test -z "$as_dir" && as_dir=. 8515 for ac_exec_ext in '' $ac_executable_extensions; do 8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8517 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8519 break 2 8520 fi 8521 done 8522 done 8523 IFS=$as_save_IFS 8524 8525 ;; 8526 esac 8527 fi 8528 GUNZIP=$ac_cv_path_GUNZIP 8529 if test -n "$GUNZIP"; then 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8531 $as_echo "$GUNZIP" >&6; } 8532 else 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8534 $as_echo "no" >&6; } 8535 fi 8536 8537 8538 test -n "$GUNZIP" && break 8539 done 8540 8541 else 8542 # If it succeeded, then it was overridden by the user. We will use it 8543 # for the tool. 8544 8545 # First remove it from the list of overridden variables, so we can test 8546 # for unknown variables in the end. 8547 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8548 8549 # Check if we try to supply an empty value 8550 if test "x$GUNZIP" = x; then 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8552 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8554 $as_echo_n "checking for GUNZIP... " >&6; } 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8556 $as_echo "disabled" >&6; } 8557 else 8558 # Check if the provided tool contains a complete path. 8559 tool_specified="$GUNZIP" 8560 tool_basename="${tool_specified##*/}" 8561 if test "x$tool_basename" = "x$tool_specified"; then 8562 # A command without a complete path is provided, search $PATH. 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8564 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8565 # Extract the first word of "$tool_basename", so it can be a program name with args. 8566 set dummy $tool_basename; ac_word=$2 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8568 $as_echo_n "checking for $ac_word... " >&6; } 8569 if ${ac_cv_path_GUNZIP+:} false; then : 8570 $as_echo_n "(cached) " >&6 8571 else 8572 case $GUNZIP in 8573 [\\/]* | ?:[\\/]*) 8574 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8575 ;; 8576 *) 8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8578 for as_dir in $PATH 8579 do 8580 IFS=$as_save_IFS 8581 test -z "$as_dir" && as_dir=. 8582 for ac_exec_ext in '' $ac_executable_extensions; do 8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8584 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8586 break 2 8587 fi 8588 done 8589 done 8590 IFS=$as_save_IFS 8591 8592 ;; 8593 esac 8594 fi 8595 GUNZIP=$ac_cv_path_GUNZIP 8596 if test -n "$GUNZIP"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8598 $as_echo "$GUNZIP" >&6; } 8599 else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601 $as_echo "no" >&6; } 8602 fi 8603 8604 8605 if test "x$GUNZIP" = x; then 8606 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8607 fi 8608 else 8609 # Otherwise we believe it is a complete path. Use it as it is. 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8611 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8613 $as_echo_n "checking for GUNZIP... " >&6; } 8614 if test ! -x "$tool_specified"; then 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8616 $as_echo "not found" >&6; } 8617 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8618 fi 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8620 $as_echo "$tool_specified" >&6; } 8621 fi 8622 fi 8623 fi 8624 8625 fi 8626 8627 8628 8629 if test "x$GUNZIP" = x; then 8630 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8631 fi 8632 8633 8634 8635 8636 8637 # Publish this variable in the help. 8638 8639 8640 if [ -z "${GZIP+x}" ]; then 8641 # The variable is not set by user, try to locate tool using the code snippet 8642 for ac_prog in pigz gzip 8643 do 8644 # Extract the first word of "$ac_prog", so it can be a program name with args. 8645 set dummy $ac_prog; ac_word=$2 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8647 $as_echo_n "checking for $ac_word... " >&6; } 8648 if ${ac_cv_path_GZIP+:} false; then : 8649 $as_echo_n "(cached) " >&6 8650 else 8651 case $GZIP in 8652 [\\/]* | ?:[\\/]*) 8653 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8654 ;; 8655 *) 8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8657 for as_dir in $PATH 8658 do 8659 IFS=$as_save_IFS 8660 test -z "$as_dir" && as_dir=. 8661 for ac_exec_ext in '' $ac_executable_extensions; do 8662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8663 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8665 break 2 8666 fi 8667 done 8668 done 8669 IFS=$as_save_IFS 8670 8671 ;; 8672 esac 8673 fi 8674 GZIP=$ac_cv_path_GZIP 8675 if test -n "$GZIP"; then 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8677 $as_echo "$GZIP" >&6; } 8678 else 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8680 $as_echo "no" >&6; } 8681 fi 8682 8683 8684 test -n "$GZIP" && break 8685 done 8686 8687 else 8688 # The variable is set, but is it from the command line or the environment? 8689 8690 # Try to remove the string !GZIP! from our list. 8691 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8692 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8693 # If it failed, the variable was not from the command line. Ignore it, 8694 # but warn the user (except for BASH, which is always set by the calling BASH). 8695 if test "xGZIP" != xBASH; then 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8697 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8698 fi 8699 # Try to locate tool using the code snippet 8700 for ac_prog in pigz gzip 8701 do 8702 # Extract the first word of "$ac_prog", so it can be a program name with args. 8703 set dummy $ac_prog; ac_word=$2 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8705 $as_echo_n "checking for $ac_word... " >&6; } 8706 if ${ac_cv_path_GZIP+:} false; then : 8707 $as_echo_n "(cached) " >&6 8708 else 8709 case $GZIP in 8710 [\\/]* | ?:[\\/]*) 8711 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8712 ;; 8713 *) 8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8715 for as_dir in $PATH 8716 do 8717 IFS=$as_save_IFS 8718 test -z "$as_dir" && as_dir=. 8719 for ac_exec_ext in '' $ac_executable_extensions; do 8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8721 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8723 break 2 8724 fi 8725 done 8726 done 8727 IFS=$as_save_IFS 8728 8729 ;; 8730 esac 8731 fi 8732 GZIP=$ac_cv_path_GZIP 8733 if test -n "$GZIP"; then 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8735 $as_echo "$GZIP" >&6; } 8736 else 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8738 $as_echo "no" >&6; } 8739 fi 8740 8741 8742 test -n "$GZIP" && break 8743 done 8744 8745 else 8746 # If it succeeded, then it was overridden by the user. We will use it 8747 # for the tool. 8748 8749 # First remove it from the list of overridden variables, so we can test 8750 # for unknown variables in the end. 8751 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8752 8753 # Check if we try to supply an empty value 8754 if test "x$GZIP" = x; then 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8756 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8758 $as_echo_n "checking for GZIP... " >&6; } 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8760 $as_echo "disabled" >&6; } 8761 else 8762 # Check if the provided tool contains a complete path. 8763 tool_specified="$GZIP" 8764 tool_basename="${tool_specified##*/}" 8765 if test "x$tool_basename" = "x$tool_specified"; then 8766 # A command without a complete path is provided, search $PATH. 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8768 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8769 # Extract the first word of "$tool_basename", so it can be a program name with args. 8770 set dummy $tool_basename; ac_word=$2 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8772 $as_echo_n "checking for $ac_word... " >&6; } 8773 if ${ac_cv_path_GZIP+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775 else 8776 case $GZIP in 8777 [\\/]* | ?:[\\/]*) 8778 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8779 ;; 8780 *) 8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8782 for as_dir in $PATH 8783 do 8784 IFS=$as_save_IFS 8785 test -z "$as_dir" && as_dir=. 8786 for ac_exec_ext in '' $ac_executable_extensions; do 8787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8788 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8790 break 2 8791 fi 8792 done 8793 done 8794 IFS=$as_save_IFS 8795 8796 ;; 8797 esac 8798 fi 8799 GZIP=$ac_cv_path_GZIP 8800 if test -n "$GZIP"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8802 $as_echo "$GZIP" >&6; } 8803 else 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805 $as_echo "no" >&6; } 8806 fi 8807 8808 8809 if test "x$GZIP" = x; then 8810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8811 fi 8812 else 8813 # Otherwise we believe it is a complete path. Use it as it is. 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8815 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8817 $as_echo_n "checking for GZIP... " >&6; } 8818 if test ! -x "$tool_specified"; then 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8820 $as_echo "not found" >&6; } 8821 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8822 fi 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8824 $as_echo "$tool_specified" >&6; } 8825 fi 8826 fi 8827 fi 8828 8829 fi 8830 8831 8832 8833 if test "x$GZIP" = x; then 8834 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8835 fi 8836 8837 8838 8839 8840 8841 # Publish this variable in the help. 8842 8843 8844 if [ -z "${LN+x}" ]; then 8845 # The variable is not set by user, try to locate tool using the code snippet 8846 for ac_prog in ln 8847 do 8848 # Extract the first word of "$ac_prog", so it can be a program name with args. 8849 set dummy $ac_prog; ac_word=$2 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8851 $as_echo_n "checking for $ac_word... " >&6; } 8852 if ${ac_cv_path_LN+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854 else 8855 case $LN in 8856 [\\/]* | ?:[\\/]*) 8857 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8858 ;; 8859 *) 8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8861 for as_dir in $PATH 8862 do 8863 IFS=$as_save_IFS 8864 test -z "$as_dir" && as_dir=. 8865 for ac_exec_ext in '' $ac_executable_extensions; do 8866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8867 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8869 break 2 8870 fi 8871 done 8872 done 8873 IFS=$as_save_IFS 8874 8875 ;; 8876 esac 8877 fi 8878 LN=$ac_cv_path_LN 8879 if test -n "$LN"; then 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8881 $as_echo "$LN" >&6; } 8882 else 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8884 $as_echo "no" >&6; } 8885 fi 8886 8887 8888 test -n "$LN" && break 8889 done 8890 8891 else 8892 # The variable is set, but is it from the command line or the environment? 8893 8894 # Try to remove the string !LN! from our list. 8895 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8896 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8897 # If it failed, the variable was not from the command line. Ignore it, 8898 # but warn the user (except for BASH, which is always set by the calling BASH). 8899 if test "xLN" != xBASH; then 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8901 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8902 fi 8903 # Try to locate tool using the code snippet 8904 for ac_prog in ln 8905 do 8906 # Extract the first word of "$ac_prog", so it can be a program name with args. 8907 set dummy $ac_prog; ac_word=$2 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8909 $as_echo_n "checking for $ac_word... " >&6; } 8910 if ${ac_cv_path_LN+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912 else 8913 case $LN in 8914 [\\/]* | ?:[\\/]*) 8915 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8916 ;; 8917 *) 8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8919 for as_dir in $PATH 8920 do 8921 IFS=$as_save_IFS 8922 test -z "$as_dir" && as_dir=. 8923 for ac_exec_ext in '' $ac_executable_extensions; do 8924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8925 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8927 break 2 8928 fi 8929 done 8930 done 8931 IFS=$as_save_IFS 8932 8933 ;; 8934 esac 8935 fi 8936 LN=$ac_cv_path_LN 8937 if test -n "$LN"; then 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8939 $as_echo "$LN" >&6; } 8940 else 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8942 $as_echo "no" >&6; } 8943 fi 8944 8945 8946 test -n "$LN" && break 8947 done 8948 8949 else 8950 # If it succeeded, then it was overridden by the user. We will use it 8951 # for the tool. 8952 8953 # First remove it from the list of overridden variables, so we can test 8954 # for unknown variables in the end. 8955 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8956 8957 # Check if we try to supply an empty value 8958 if test "x$LN" = x; then 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8960 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8962 $as_echo_n "checking for LN... " >&6; } 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8964 $as_echo "disabled" >&6; } 8965 else 8966 # Check if the provided tool contains a complete path. 8967 tool_specified="$LN" 8968 tool_basename="${tool_specified##*/}" 8969 if test "x$tool_basename" = "x$tool_specified"; then 8970 # A command without a complete path is provided, search $PATH. 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8972 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8973 # Extract the first word of "$tool_basename", so it can be a program name with args. 8974 set dummy $tool_basename; ac_word=$2 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8976 $as_echo_n "checking for $ac_word... " >&6; } 8977 if ${ac_cv_path_LN+:} false; then : 8978 $as_echo_n "(cached) " >&6 8979 else 8980 case $LN in 8981 [\\/]* | ?:[\\/]*) 8982 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8983 ;; 8984 *) 8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8986 for as_dir in $PATH 8987 do 8988 IFS=$as_save_IFS 8989 test -z "$as_dir" && as_dir=. 8990 for ac_exec_ext in '' $ac_executable_extensions; do 8991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8992 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8994 break 2 8995 fi 8996 done 8997 done 8998 IFS=$as_save_IFS 8999 9000 ;; 9001 esac 9002 fi 9003 LN=$ac_cv_path_LN 9004 if test -n "$LN"; then 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9006 $as_echo "$LN" >&6; } 9007 else 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9009 $as_echo "no" >&6; } 9010 fi 9011 9012 9013 if test "x$LN" = x; then 9014 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9015 fi 9016 else 9017 # Otherwise we believe it is a complete path. Use it as it is. 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9019 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9021 $as_echo_n "checking for LN... " >&6; } 9022 if test ! -x "$tool_specified"; then 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9024 $as_echo "not found" >&6; } 9025 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9026 fi 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9028 $as_echo "$tool_specified" >&6; } 9029 fi 9030 fi 9031 fi 9032 9033 fi 9034 9035 9036 9037 if test "x$LN" = x; then 9038 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9039 fi 9040 9041 9042 9043 9044 9045 # Publish this variable in the help. 9046 9047 9048 if [ -z "${LS+x}" ]; then 9049 # The variable is not set by user, try to locate tool using the code snippet 9050 for ac_prog in ls 9051 do 9052 # Extract the first word of "$ac_prog", so it can be a program name with args. 9053 set dummy $ac_prog; ac_word=$2 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9055 $as_echo_n "checking for $ac_word... " >&6; } 9056 if ${ac_cv_path_LS+:} false; then : 9057 $as_echo_n "(cached) " >&6 9058 else 9059 case $LS in 9060 [\\/]* | ?:[\\/]*) 9061 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9062 ;; 9063 *) 9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9065 for as_dir in $PATH 9066 do 9067 IFS=$as_save_IFS 9068 test -z "$as_dir" && as_dir=. 9069 for ac_exec_ext in '' $ac_executable_extensions; do 9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9071 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9073 break 2 9074 fi 9075 done 9076 done 9077 IFS=$as_save_IFS 9078 9079 ;; 9080 esac 9081 fi 9082 LS=$ac_cv_path_LS 9083 if test -n "$LS"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9085 $as_echo "$LS" >&6; } 9086 else 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9088 $as_echo "no" >&6; } 9089 fi 9090 9091 9092 test -n "$LS" && break 9093 done 9094 9095 else 9096 # The variable is set, but is it from the command line or the environment? 9097 9098 # Try to remove the string !LS! from our list. 9099 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9100 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9101 # If it failed, the variable was not from the command line. Ignore it, 9102 # but warn the user (except for BASH, which is always set by the calling BASH). 9103 if test "xLS" != xBASH; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9105 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9106 fi 9107 # Try to locate tool using the code snippet 9108 for ac_prog in ls 9109 do 9110 # Extract the first word of "$ac_prog", so it can be a program name with args. 9111 set dummy $ac_prog; ac_word=$2 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9113 $as_echo_n "checking for $ac_word... " >&6; } 9114 if ${ac_cv_path_LS+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116 else 9117 case $LS in 9118 [\\/]* | ?:[\\/]*) 9119 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9120 ;; 9121 *) 9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9123 for as_dir in $PATH 9124 do 9125 IFS=$as_save_IFS 9126 test -z "$as_dir" && as_dir=. 9127 for ac_exec_ext in '' $ac_executable_extensions; do 9128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9129 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9131 break 2 9132 fi 9133 done 9134 done 9135 IFS=$as_save_IFS 9136 9137 ;; 9138 esac 9139 fi 9140 LS=$ac_cv_path_LS 9141 if test -n "$LS"; then 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9143 $as_echo "$LS" >&6; } 9144 else 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9146 $as_echo "no" >&6; } 9147 fi 9148 9149 9150 test -n "$LS" && break 9151 done 9152 9153 else 9154 # If it succeeded, then it was overridden by the user. We will use it 9155 # for the tool. 9156 9157 # First remove it from the list of overridden variables, so we can test 9158 # for unknown variables in the end. 9159 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9160 9161 # Check if we try to supply an empty value 9162 if test "x$LS" = x; then 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9164 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9166 $as_echo_n "checking for LS... " >&6; } 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9168 $as_echo "disabled" >&6; } 9169 else 9170 # Check if the provided tool contains a complete path. 9171 tool_specified="$LS" 9172 tool_basename="${tool_specified##*/}" 9173 if test "x$tool_basename" = "x$tool_specified"; then 9174 # A command without a complete path is provided, search $PATH. 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9176 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9177 # Extract the first word of "$tool_basename", so it can be a program name with args. 9178 set dummy $tool_basename; ac_word=$2 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9180 $as_echo_n "checking for $ac_word... " >&6; } 9181 if ${ac_cv_path_LS+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183 else 9184 case $LS in 9185 [\\/]* | ?:[\\/]*) 9186 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9187 ;; 9188 *) 9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190 for as_dir in $PATH 9191 do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 for ac_exec_ext in '' $ac_executable_extensions; do 9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9196 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9198 break 2 9199 fi 9200 done 9201 done 9202 IFS=$as_save_IFS 9203 9204 ;; 9205 esac 9206 fi 9207 LS=$ac_cv_path_LS 9208 if test -n "$LS"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9210 $as_echo "$LS" >&6; } 9211 else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213 $as_echo "no" >&6; } 9214 fi 9215 9216 9217 if test "x$LS" = x; then 9218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9219 fi 9220 else 9221 # Otherwise we believe it is a complete path. Use it as it is. 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9223 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9225 $as_echo_n "checking for LS... " >&6; } 9226 if test ! -x "$tool_specified"; then 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9228 $as_echo "not found" >&6; } 9229 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9230 fi 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9232 $as_echo "$tool_specified" >&6; } 9233 fi 9234 fi 9235 fi 9236 9237 fi 9238 9239 9240 9241 if test "x$LS" = x; then 9242 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9243 fi 9244 9245 9246 9247 9248 9249 # Publish this variable in the help. 9250 9251 9252 if [ -z "${MKDIR+x}" ]; then 9253 # The variable is not set by user, try to locate tool using the code snippet 9254 for ac_prog in mkdir 9255 do 9256 # Extract the first word of "$ac_prog", so it can be a program name with args. 9257 set dummy $ac_prog; ac_word=$2 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9259 $as_echo_n "checking for $ac_word... " >&6; } 9260 if ${ac_cv_path_MKDIR+:} false; then : 9261 $as_echo_n "(cached) " >&6 9262 else 9263 case $MKDIR in 9264 [\\/]* | ?:[\\/]*) 9265 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9266 ;; 9267 *) 9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9269 for as_dir in $PATH 9270 do 9271 IFS=$as_save_IFS 9272 test -z "$as_dir" && as_dir=. 9273 for ac_exec_ext in '' $ac_executable_extensions; do 9274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9275 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9277 break 2 9278 fi 9279 done 9280 done 9281 IFS=$as_save_IFS 9282 9283 ;; 9284 esac 9285 fi 9286 MKDIR=$ac_cv_path_MKDIR 9287 if test -n "$MKDIR"; then 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9289 $as_echo "$MKDIR" >&6; } 9290 else 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9292 $as_echo "no" >&6; } 9293 fi 9294 9295 9296 test -n "$MKDIR" && break 9297 done 9298 9299 else 9300 # The variable is set, but is it from the command line or the environment? 9301 9302 # Try to remove the string !MKDIR! from our list. 9303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9305 # If it failed, the variable was not from the command line. Ignore it, 9306 # but warn the user (except for BASH, which is always set by the calling BASH). 9307 if test "xMKDIR" != xBASH; then 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9309 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9310 fi 9311 # Try to locate tool using the code snippet 9312 for ac_prog in mkdir 9313 do 9314 # Extract the first word of "$ac_prog", so it can be a program name with args. 9315 set dummy $ac_prog; ac_word=$2 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9317 $as_echo_n "checking for $ac_word... " >&6; } 9318 if ${ac_cv_path_MKDIR+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320 else 9321 case $MKDIR in 9322 [\\/]* | ?:[\\/]*) 9323 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9324 ;; 9325 *) 9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9327 for as_dir in $PATH 9328 do 9329 IFS=$as_save_IFS 9330 test -z "$as_dir" && as_dir=. 9331 for ac_exec_ext in '' $ac_executable_extensions; do 9332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9333 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9335 break 2 9336 fi 9337 done 9338 done 9339 IFS=$as_save_IFS 9340 9341 ;; 9342 esac 9343 fi 9344 MKDIR=$ac_cv_path_MKDIR 9345 if test -n "$MKDIR"; then 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9347 $as_echo "$MKDIR" >&6; } 9348 else 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9350 $as_echo "no" >&6; } 9351 fi 9352 9353 9354 test -n "$MKDIR" && break 9355 done 9356 9357 else 9358 # If it succeeded, then it was overridden by the user. We will use it 9359 # for the tool. 9360 9361 # First remove it from the list of overridden variables, so we can test 9362 # for unknown variables in the end. 9363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9364 9365 # Check if we try to supply an empty value 9366 if test "x$MKDIR" = x; then 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9368 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9370 $as_echo_n "checking for MKDIR... " >&6; } 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9372 $as_echo "disabled" >&6; } 9373 else 9374 # Check if the provided tool contains a complete path. 9375 tool_specified="$MKDIR" 9376 tool_basename="${tool_specified##*/}" 9377 if test "x$tool_basename" = "x$tool_specified"; then 9378 # A command without a complete path is provided, search $PATH. 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9380 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9381 # Extract the first word of "$tool_basename", so it can be a program name with args. 9382 set dummy $tool_basename; ac_word=$2 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9384 $as_echo_n "checking for $ac_word... " >&6; } 9385 if ${ac_cv_path_MKDIR+:} false; then : 9386 $as_echo_n "(cached) " >&6 9387 else 9388 case $MKDIR in 9389 [\\/]* | ?:[\\/]*) 9390 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9391 ;; 9392 *) 9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9394 for as_dir in $PATH 9395 do 9396 IFS=$as_save_IFS 9397 test -z "$as_dir" && as_dir=. 9398 for ac_exec_ext in '' $ac_executable_extensions; do 9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9400 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9402 break 2 9403 fi 9404 done 9405 done 9406 IFS=$as_save_IFS 9407 9408 ;; 9409 esac 9410 fi 9411 MKDIR=$ac_cv_path_MKDIR 9412 if test -n "$MKDIR"; then 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9414 $as_echo "$MKDIR" >&6; } 9415 else 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9417 $as_echo "no" >&6; } 9418 fi 9419 9420 9421 if test "x$MKDIR" = x; then 9422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9423 fi 9424 else 9425 # Otherwise we believe it is a complete path. Use it as it is. 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9427 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9429 $as_echo_n "checking for MKDIR... " >&6; } 9430 if test ! -x "$tool_specified"; then 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9432 $as_echo "not found" >&6; } 9433 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9434 fi 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9436 $as_echo "$tool_specified" >&6; } 9437 fi 9438 fi 9439 fi 9440 9441 fi 9442 9443 9444 9445 if test "x$MKDIR" = x; then 9446 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9447 fi 9448 9449 9450 9451 9452 9453 # Publish this variable in the help. 9454 9455 9456 if [ -z "${MKTEMP+x}" ]; then 9457 # The variable is not set by user, try to locate tool using the code snippet 9458 for ac_prog in mktemp 9459 do 9460 # Extract the first word of "$ac_prog", so it can be a program name with args. 9461 set dummy $ac_prog; ac_word=$2 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9463 $as_echo_n "checking for $ac_word... " >&6; } 9464 if ${ac_cv_path_MKTEMP+:} false; then : 9465 $as_echo_n "(cached) " >&6 9466 else 9467 case $MKTEMP in 9468 [\\/]* | ?:[\\/]*) 9469 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9470 ;; 9471 *) 9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9473 for as_dir in $PATH 9474 do 9475 IFS=$as_save_IFS 9476 test -z "$as_dir" && as_dir=. 9477 for ac_exec_ext in '' $ac_executable_extensions; do 9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9479 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9481 break 2 9482 fi 9483 done 9484 done 9485 IFS=$as_save_IFS 9486 9487 ;; 9488 esac 9489 fi 9490 MKTEMP=$ac_cv_path_MKTEMP 9491 if test -n "$MKTEMP"; then 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9493 $as_echo "$MKTEMP" >&6; } 9494 else 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9496 $as_echo "no" >&6; } 9497 fi 9498 9499 9500 test -n "$MKTEMP" && break 9501 done 9502 9503 else 9504 # The variable is set, but is it from the command line or the environment? 9505 9506 # Try to remove the string !MKTEMP! from our list. 9507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9509 # If it failed, the variable was not from the command line. Ignore it, 9510 # but warn the user (except for BASH, which is always set by the calling BASH). 9511 if test "xMKTEMP" != xBASH; then 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9513 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9514 fi 9515 # Try to locate tool using the code snippet 9516 for ac_prog in mktemp 9517 do 9518 # Extract the first word of "$ac_prog", so it can be a program name with args. 9519 set dummy $ac_prog; ac_word=$2 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9521 $as_echo_n "checking for $ac_word... " >&6; } 9522 if ${ac_cv_path_MKTEMP+:} false; then : 9523 $as_echo_n "(cached) " >&6 9524 else 9525 case $MKTEMP in 9526 [\\/]* | ?:[\\/]*) 9527 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9528 ;; 9529 *) 9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9531 for as_dir in $PATH 9532 do 9533 IFS=$as_save_IFS 9534 test -z "$as_dir" && as_dir=. 9535 for ac_exec_ext in '' $ac_executable_extensions; do 9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9537 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9539 break 2 9540 fi 9541 done 9542 done 9543 IFS=$as_save_IFS 9544 9545 ;; 9546 esac 9547 fi 9548 MKTEMP=$ac_cv_path_MKTEMP 9549 if test -n "$MKTEMP"; then 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9551 $as_echo "$MKTEMP" >&6; } 9552 else 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9554 $as_echo "no" >&6; } 9555 fi 9556 9557 9558 test -n "$MKTEMP" && break 9559 done 9560 9561 else 9562 # If it succeeded, then it was overridden by the user. We will use it 9563 # for the tool. 9564 9565 # First remove it from the list of overridden variables, so we can test 9566 # for unknown variables in the end. 9567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9568 9569 # Check if we try to supply an empty value 9570 if test "x$MKTEMP" = x; then 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9572 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9574 $as_echo_n "checking for MKTEMP... " >&6; } 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9576 $as_echo "disabled" >&6; } 9577 else 9578 # Check if the provided tool contains a complete path. 9579 tool_specified="$MKTEMP" 9580 tool_basename="${tool_specified##*/}" 9581 if test "x$tool_basename" = "x$tool_specified"; then 9582 # A command without a complete path is provided, search $PATH. 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9584 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9585 # Extract the first word of "$tool_basename", so it can be a program name with args. 9586 set dummy $tool_basename; ac_word=$2 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9588 $as_echo_n "checking for $ac_word... " >&6; } 9589 if ${ac_cv_path_MKTEMP+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591 else 9592 case $MKTEMP in 9593 [\\/]* | ?:[\\/]*) 9594 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9595 ;; 9596 *) 9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9598 for as_dir in $PATH 9599 do 9600 IFS=$as_save_IFS 9601 test -z "$as_dir" && as_dir=. 9602 for ac_exec_ext in '' $ac_executable_extensions; do 9603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9604 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9606 break 2 9607 fi 9608 done 9609 done 9610 IFS=$as_save_IFS 9611 9612 ;; 9613 esac 9614 fi 9615 MKTEMP=$ac_cv_path_MKTEMP 9616 if test -n "$MKTEMP"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9618 $as_echo "$MKTEMP" >&6; } 9619 else 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9621 $as_echo "no" >&6; } 9622 fi 9623 9624 9625 if test "x$MKTEMP" = x; then 9626 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9627 fi 9628 else 9629 # Otherwise we believe it is a complete path. Use it as it is. 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9631 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9633 $as_echo_n "checking for MKTEMP... " >&6; } 9634 if test ! -x "$tool_specified"; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9636 $as_echo "not found" >&6; } 9637 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9638 fi 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9640 $as_echo "$tool_specified" >&6; } 9641 fi 9642 fi 9643 fi 9644 9645 fi 9646 9647 9648 9649 if test "x$MKTEMP" = x; then 9650 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9651 fi 9652 9653 9654 9655 9656 9657 # Publish this variable in the help. 9658 9659 9660 if [ -z "${MV+x}" ]; then 9661 # The variable is not set by user, try to locate tool using the code snippet 9662 for ac_prog in mv 9663 do 9664 # Extract the first word of "$ac_prog", so it can be a program name with args. 9665 set dummy $ac_prog; ac_word=$2 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9667 $as_echo_n "checking for $ac_word... " >&6; } 9668 if ${ac_cv_path_MV+:} false; then : 9669 $as_echo_n "(cached) " >&6 9670 else 9671 case $MV in 9672 [\\/]* | ?:[\\/]*) 9673 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9674 ;; 9675 *) 9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9677 for as_dir in $PATH 9678 do 9679 IFS=$as_save_IFS 9680 test -z "$as_dir" && as_dir=. 9681 for ac_exec_ext in '' $ac_executable_extensions; do 9682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9683 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9685 break 2 9686 fi 9687 done 9688 done 9689 IFS=$as_save_IFS 9690 9691 ;; 9692 esac 9693 fi 9694 MV=$ac_cv_path_MV 9695 if test -n "$MV"; then 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9697 $as_echo "$MV" >&6; } 9698 else 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9700 $as_echo "no" >&6; } 9701 fi 9702 9703 9704 test -n "$MV" && break 9705 done 9706 9707 else 9708 # The variable is set, but is it from the command line or the environment? 9709 9710 # Try to remove the string !MV! from our list. 9711 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9712 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9713 # If it failed, the variable was not from the command line. Ignore it, 9714 # but warn the user (except for BASH, which is always set by the calling BASH). 9715 if test "xMV" != xBASH; then 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9717 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9718 fi 9719 # Try to locate tool using the code snippet 9720 for ac_prog in mv 9721 do 9722 # Extract the first word of "$ac_prog", so it can be a program name with args. 9723 set dummy $ac_prog; ac_word=$2 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9725 $as_echo_n "checking for $ac_word... " >&6; } 9726 if ${ac_cv_path_MV+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728 else 9729 case $MV in 9730 [\\/]* | ?:[\\/]*) 9731 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9732 ;; 9733 *) 9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9735 for as_dir in $PATH 9736 do 9737 IFS=$as_save_IFS 9738 test -z "$as_dir" && as_dir=. 9739 for ac_exec_ext in '' $ac_executable_extensions; do 9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9741 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9743 break 2 9744 fi 9745 done 9746 done 9747 IFS=$as_save_IFS 9748 9749 ;; 9750 esac 9751 fi 9752 MV=$ac_cv_path_MV 9753 if test -n "$MV"; then 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9755 $as_echo "$MV" >&6; } 9756 else 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9758 $as_echo "no" >&6; } 9759 fi 9760 9761 9762 test -n "$MV" && break 9763 done 9764 9765 else 9766 # If it succeeded, then it was overridden by the user. We will use it 9767 # for the tool. 9768 9769 # First remove it from the list of overridden variables, so we can test 9770 # for unknown variables in the end. 9771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9772 9773 # Check if we try to supply an empty value 9774 if test "x$MV" = x; then 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9776 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9778 $as_echo_n "checking for MV... " >&6; } 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9780 $as_echo "disabled" >&6; } 9781 else 9782 # Check if the provided tool contains a complete path. 9783 tool_specified="$MV" 9784 tool_basename="${tool_specified##*/}" 9785 if test "x$tool_basename" = "x$tool_specified"; then 9786 # A command without a complete path is provided, search $PATH. 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9788 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9789 # Extract the first word of "$tool_basename", so it can be a program name with args. 9790 set dummy $tool_basename; ac_word=$2 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9792 $as_echo_n "checking for $ac_word... " >&6; } 9793 if ${ac_cv_path_MV+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795 else 9796 case $MV in 9797 [\\/]* | ?:[\\/]*) 9798 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9799 ;; 9800 *) 9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9802 for as_dir in $PATH 9803 do 9804 IFS=$as_save_IFS 9805 test -z "$as_dir" && as_dir=. 9806 for ac_exec_ext in '' $ac_executable_extensions; do 9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9808 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9810 break 2 9811 fi 9812 done 9813 done 9814 IFS=$as_save_IFS 9815 9816 ;; 9817 esac 9818 fi 9819 MV=$ac_cv_path_MV 9820 if test -n "$MV"; then 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9822 $as_echo "$MV" >&6; } 9823 else 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9825 $as_echo "no" >&6; } 9826 fi 9827 9828 9829 if test "x$MV" = x; then 9830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9831 fi 9832 else 9833 # Otherwise we believe it is a complete path. Use it as it is. 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9835 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9837 $as_echo_n "checking for MV... " >&6; } 9838 if test ! -x "$tool_specified"; then 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9840 $as_echo "not found" >&6; } 9841 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9842 fi 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9844 $as_echo "$tool_specified" >&6; } 9845 fi 9846 fi 9847 fi 9848 9849 fi 9850 9851 9852 9853 if test "x$MV" = x; then 9854 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9855 fi 9856 9857 9858 9859 9860 9861 # Publish this variable in the help. 9862 9863 9864 if [ -z "${NAWK+x}" ]; then 9865 # The variable is not set by user, try to locate tool using the code snippet 9866 for ac_prog in nawk gawk awk 9867 do 9868 # Extract the first word of "$ac_prog", so it can be a program name with args. 9869 set dummy $ac_prog; ac_word=$2 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9871 $as_echo_n "checking for $ac_word... " >&6; } 9872 if ${ac_cv_path_NAWK+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874 else 9875 case $NAWK in 9876 [\\/]* | ?:[\\/]*) 9877 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9878 ;; 9879 *) 9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9881 for as_dir in $PATH 9882 do 9883 IFS=$as_save_IFS 9884 test -z "$as_dir" && as_dir=. 9885 for ac_exec_ext in '' $ac_executable_extensions; do 9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9887 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9889 break 2 9890 fi 9891 done 9892 done 9893 IFS=$as_save_IFS 9894 9895 ;; 9896 esac 9897 fi 9898 NAWK=$ac_cv_path_NAWK 9899 if test -n "$NAWK"; then 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9901 $as_echo "$NAWK" >&6; } 9902 else 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9904 $as_echo "no" >&6; } 9905 fi 9906 9907 9908 test -n "$NAWK" && break 9909 done 9910 9911 else 9912 # The variable is set, but is it from the command line or the environment? 9913 9914 # Try to remove the string !NAWK! from our list. 9915 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9916 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9917 # If it failed, the variable was not from the command line. Ignore it, 9918 # but warn the user (except for BASH, which is always set by the calling BASH). 9919 if test "xNAWK" != xBASH; then 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9921 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9922 fi 9923 # Try to locate tool using the code snippet 9924 for ac_prog in nawk gawk awk 9925 do 9926 # Extract the first word of "$ac_prog", so it can be a program name with args. 9927 set dummy $ac_prog; ac_word=$2 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9929 $as_echo_n "checking for $ac_word... " >&6; } 9930 if ${ac_cv_path_NAWK+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932 else 9933 case $NAWK in 9934 [\\/]* | ?:[\\/]*) 9935 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9936 ;; 9937 *) 9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9939 for as_dir in $PATH 9940 do 9941 IFS=$as_save_IFS 9942 test -z "$as_dir" && as_dir=. 9943 for ac_exec_ext in '' $ac_executable_extensions; do 9944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9945 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9947 break 2 9948 fi 9949 done 9950 done 9951 IFS=$as_save_IFS 9952 9953 ;; 9954 esac 9955 fi 9956 NAWK=$ac_cv_path_NAWK 9957 if test -n "$NAWK"; then 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9959 $as_echo "$NAWK" >&6; } 9960 else 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9962 $as_echo "no" >&6; } 9963 fi 9964 9965 9966 test -n "$NAWK" && break 9967 done 9968 9969 else 9970 # If it succeeded, then it was overridden by the user. We will use it 9971 # for the tool. 9972 9973 # First remove it from the list of overridden variables, so we can test 9974 # for unknown variables in the end. 9975 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9976 9977 # Check if we try to supply an empty value 9978 if test "x$NAWK" = x; then 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9980 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9982 $as_echo_n "checking for NAWK... " >&6; } 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9984 $as_echo "disabled" >&6; } 9985 else 9986 # Check if the provided tool contains a complete path. 9987 tool_specified="$NAWK" 9988 tool_basename="${tool_specified##*/}" 9989 if test "x$tool_basename" = "x$tool_specified"; then 9990 # A command without a complete path is provided, search $PATH. 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9992 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9993 # Extract the first word of "$tool_basename", so it can be a program name with args. 9994 set dummy $tool_basename; ac_word=$2 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9996 $as_echo_n "checking for $ac_word... " >&6; } 9997 if ${ac_cv_path_NAWK+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999 else 10000 case $NAWK in 10001 [\\/]* | ?:[\\/]*) 10002 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10003 ;; 10004 *) 10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10006 for as_dir in $PATH 10007 do 10008 IFS=$as_save_IFS 10009 test -z "$as_dir" && as_dir=. 10010 for ac_exec_ext in '' $ac_executable_extensions; do 10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10012 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10014 break 2 10015 fi 10016 done 10017 done 10018 IFS=$as_save_IFS 10019 10020 ;; 10021 esac 10022 fi 10023 NAWK=$ac_cv_path_NAWK 10024 if test -n "$NAWK"; then 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10026 $as_echo "$NAWK" >&6; } 10027 else 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10029 $as_echo "no" >&6; } 10030 fi 10031 10032 10033 if test "x$NAWK" = x; then 10034 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10035 fi 10036 else 10037 # Otherwise we believe it is a complete path. Use it as it is. 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10039 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10041 $as_echo_n "checking for NAWK... " >&6; } 10042 if test ! -x "$tool_specified"; then 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10044 $as_echo "not found" >&6; } 10045 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10046 fi 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10048 $as_echo "$tool_specified" >&6; } 10049 fi 10050 fi 10051 fi 10052 10053 fi 10054 10055 10056 10057 if test "x$NAWK" = x; then 10058 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10059 fi 10060 10061 10062 10063 10064 10065 # Publish this variable in the help. 10066 10067 10068 if [ -z "${PRINTF+x}" ]; then 10069 # The variable is not set by user, try to locate tool using the code snippet 10070 for ac_prog in printf 10071 do 10072 # Extract the first word of "$ac_prog", so it can be a program name with args. 10073 set dummy $ac_prog; ac_word=$2 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10075 $as_echo_n "checking for $ac_word... " >&6; } 10076 if ${ac_cv_path_PRINTF+:} false; then : 10077 $as_echo_n "(cached) " >&6 10078 else 10079 case $PRINTF in 10080 [\\/]* | ?:[\\/]*) 10081 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10082 ;; 10083 *) 10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10085 for as_dir in $PATH 10086 do 10087 IFS=$as_save_IFS 10088 test -z "$as_dir" && as_dir=. 10089 for ac_exec_ext in '' $ac_executable_extensions; do 10090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10091 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10093 break 2 10094 fi 10095 done 10096 done 10097 IFS=$as_save_IFS 10098 10099 ;; 10100 esac 10101 fi 10102 PRINTF=$ac_cv_path_PRINTF 10103 if test -n "$PRINTF"; then 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10105 $as_echo "$PRINTF" >&6; } 10106 else 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10108 $as_echo "no" >&6; } 10109 fi 10110 10111 10112 test -n "$PRINTF" && break 10113 done 10114 10115 else 10116 # The variable is set, but is it from the command line or the environment? 10117 10118 # Try to remove the string !PRINTF! from our list. 10119 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10120 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10121 # If it failed, the variable was not from the command line. Ignore it, 10122 # but warn the user (except for BASH, which is always set by the calling BASH). 10123 if test "xPRINTF" != xBASH; then 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10125 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10126 fi 10127 # Try to locate tool using the code snippet 10128 for ac_prog in printf 10129 do 10130 # Extract the first word of "$ac_prog", so it can be a program name with args. 10131 set dummy $ac_prog; ac_word=$2 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10133 $as_echo_n "checking for $ac_word... " >&6; } 10134 if ${ac_cv_path_PRINTF+:} false; then : 10135 $as_echo_n "(cached) " >&6 10136 else 10137 case $PRINTF in 10138 [\\/]* | ?:[\\/]*) 10139 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10140 ;; 10141 *) 10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10143 for as_dir in $PATH 10144 do 10145 IFS=$as_save_IFS 10146 test -z "$as_dir" && as_dir=. 10147 for ac_exec_ext in '' $ac_executable_extensions; do 10148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10149 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10151 break 2 10152 fi 10153 done 10154 done 10155 IFS=$as_save_IFS 10156 10157 ;; 10158 esac 10159 fi 10160 PRINTF=$ac_cv_path_PRINTF 10161 if test -n "$PRINTF"; then 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10163 $as_echo "$PRINTF" >&6; } 10164 else 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10166 $as_echo "no" >&6; } 10167 fi 10168 10169 10170 test -n "$PRINTF" && break 10171 done 10172 10173 else 10174 # If it succeeded, then it was overridden by the user. We will use it 10175 # for the tool. 10176 10177 # First remove it from the list of overridden variables, so we can test 10178 # for unknown variables in the end. 10179 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10180 10181 # Check if we try to supply an empty value 10182 if test "x$PRINTF" = x; then 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10184 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10186 $as_echo_n "checking for PRINTF... " >&6; } 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10188 $as_echo "disabled" >&6; } 10189 else 10190 # Check if the provided tool contains a complete path. 10191 tool_specified="$PRINTF" 10192 tool_basename="${tool_specified##*/}" 10193 if test "x$tool_basename" = "x$tool_specified"; then 10194 # A command without a complete path is provided, search $PATH. 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10196 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10197 # Extract the first word of "$tool_basename", so it can be a program name with args. 10198 set dummy $tool_basename; ac_word=$2 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10200 $as_echo_n "checking for $ac_word... " >&6; } 10201 if ${ac_cv_path_PRINTF+:} false; then : 10202 $as_echo_n "(cached) " >&6 10203 else 10204 case $PRINTF in 10205 [\\/]* | ?:[\\/]*) 10206 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10207 ;; 10208 *) 10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10210 for as_dir in $PATH 10211 do 10212 IFS=$as_save_IFS 10213 test -z "$as_dir" && as_dir=. 10214 for ac_exec_ext in '' $ac_executable_extensions; do 10215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10216 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10218 break 2 10219 fi 10220 done 10221 done 10222 IFS=$as_save_IFS 10223 10224 ;; 10225 esac 10226 fi 10227 PRINTF=$ac_cv_path_PRINTF 10228 if test -n "$PRINTF"; then 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10230 $as_echo "$PRINTF" >&6; } 10231 else 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10233 $as_echo "no" >&6; } 10234 fi 10235 10236 10237 if test "x$PRINTF" = x; then 10238 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10239 fi 10240 else 10241 # Otherwise we believe it is a complete path. Use it as it is. 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10243 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10245 $as_echo_n "checking for PRINTF... " >&6; } 10246 if test ! -x "$tool_specified"; then 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10248 $as_echo "not found" >&6; } 10249 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10250 fi 10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10252 $as_echo "$tool_specified" >&6; } 10253 fi 10254 fi 10255 fi 10256 10257 fi 10258 10259 10260 10261 if test "x$PRINTF" = x; then 10262 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10263 fi 10264 10265 10266 10267 10268 10269 # Publish this variable in the help. 10270 10271 10272 if [ -z "${RM+x}" ]; then 10273 # The variable is not set by user, try to locate tool using the code snippet 10274 for ac_prog in rm 10275 do 10276 # Extract the first word of "$ac_prog", so it can be a program name with args. 10277 set dummy $ac_prog; ac_word=$2 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10279 $as_echo_n "checking for $ac_word... " >&6; } 10280 if ${ac_cv_path_RM+:} false; then : 10281 $as_echo_n "(cached) " >&6 10282 else 10283 case $RM in 10284 [\\/]* | ?:[\\/]*) 10285 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10286 ;; 10287 *) 10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10289 for as_dir in $PATH 10290 do 10291 IFS=$as_save_IFS 10292 test -z "$as_dir" && as_dir=. 10293 for ac_exec_ext in '' $ac_executable_extensions; do 10294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10295 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10297 break 2 10298 fi 10299 done 10300 done 10301 IFS=$as_save_IFS 10302 10303 ;; 10304 esac 10305 fi 10306 RM=$ac_cv_path_RM 10307 if test -n "$RM"; then 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10309 $as_echo "$RM" >&6; } 10310 else 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10312 $as_echo "no" >&6; } 10313 fi 10314 10315 10316 test -n "$RM" && break 10317 done 10318 10319 else 10320 # The variable is set, but is it from the command line or the environment? 10321 10322 # Try to remove the string !RM! from our list. 10323 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10324 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10325 # If it failed, the variable was not from the command line. Ignore it, 10326 # but warn the user (except for BASH, which is always set by the calling BASH). 10327 if test "xRM" != xBASH; then 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10329 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10330 fi 10331 # Try to locate tool using the code snippet 10332 for ac_prog in rm 10333 do 10334 # Extract the first word of "$ac_prog", so it can be a program name with args. 10335 set dummy $ac_prog; ac_word=$2 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10337 $as_echo_n "checking for $ac_word... " >&6; } 10338 if ${ac_cv_path_RM+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340 else 10341 case $RM in 10342 [\\/]* | ?:[\\/]*) 10343 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10344 ;; 10345 *) 10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10347 for as_dir in $PATH 10348 do 10349 IFS=$as_save_IFS 10350 test -z "$as_dir" && as_dir=. 10351 for ac_exec_ext in '' $ac_executable_extensions; do 10352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10353 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10355 break 2 10356 fi 10357 done 10358 done 10359 IFS=$as_save_IFS 10360 10361 ;; 10362 esac 10363 fi 10364 RM=$ac_cv_path_RM 10365 if test -n "$RM"; then 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10367 $as_echo "$RM" >&6; } 10368 else 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10370 $as_echo "no" >&6; } 10371 fi 10372 10373 10374 test -n "$RM" && break 10375 done 10376 10377 else 10378 # If it succeeded, then it was overridden by the user. We will use it 10379 # for the tool. 10380 10381 # First remove it from the list of overridden variables, so we can test 10382 # for unknown variables in the end. 10383 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10384 10385 # Check if we try to supply an empty value 10386 if test "x$RM" = x; then 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10388 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10390 $as_echo_n "checking for RM... " >&6; } 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10392 $as_echo "disabled" >&6; } 10393 else 10394 # Check if the provided tool contains a complete path. 10395 tool_specified="$RM" 10396 tool_basename="${tool_specified##*/}" 10397 if test "x$tool_basename" = "x$tool_specified"; then 10398 # A command without a complete path is provided, search $PATH. 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10400 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10401 # Extract the first word of "$tool_basename", so it can be a program name with args. 10402 set dummy $tool_basename; ac_word=$2 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10404 $as_echo_n "checking for $ac_word... " >&6; } 10405 if ${ac_cv_path_RM+:} false; then : 10406 $as_echo_n "(cached) " >&6 10407 else 10408 case $RM in 10409 [\\/]* | ?:[\\/]*) 10410 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10411 ;; 10412 *) 10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10414 for as_dir in $PATH 10415 do 10416 IFS=$as_save_IFS 10417 test -z "$as_dir" && as_dir=. 10418 for ac_exec_ext in '' $ac_executable_extensions; do 10419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10420 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10422 break 2 10423 fi 10424 done 10425 done 10426 IFS=$as_save_IFS 10427 10428 ;; 10429 esac 10430 fi 10431 RM=$ac_cv_path_RM 10432 if test -n "$RM"; then 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10434 $as_echo "$RM" >&6; } 10435 else 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10437 $as_echo "no" >&6; } 10438 fi 10439 10440 10441 if test "x$RM" = x; then 10442 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10443 fi 10444 else 10445 # Otherwise we believe it is a complete path. Use it as it is. 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10447 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10449 $as_echo_n "checking for RM... " >&6; } 10450 if test ! -x "$tool_specified"; then 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10452 $as_echo "not found" >&6; } 10453 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10454 fi 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10456 $as_echo "$tool_specified" >&6; } 10457 fi 10458 fi 10459 fi 10460 10461 fi 10462 10463 10464 10465 if test "x$RM" = x; then 10466 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10467 fi 10468 10469 10470 10471 10472 10473 # Publish this variable in the help. 10474 10475 10476 if [ -z "${RMDIR+x}" ]; then 10477 # The variable is not set by user, try to locate tool using the code snippet 10478 for ac_prog in rmdir 10479 do 10480 # Extract the first word of "$ac_prog", so it can be a program name with args. 10481 set dummy $ac_prog; ac_word=$2 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10483 $as_echo_n "checking for $ac_word... " >&6; } 10484 if ${ac_cv_path_RMDIR+:} false; then : 10485 $as_echo_n "(cached) " >&6 10486 else 10487 case $RMDIR in 10488 [\\/]* | ?:[\\/]*) 10489 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10490 ;; 10491 *) 10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10493 for as_dir in $PATH 10494 do 10495 IFS=$as_save_IFS 10496 test -z "$as_dir" && as_dir=. 10497 for ac_exec_ext in '' $ac_executable_extensions; do 10498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10499 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10501 break 2 10502 fi 10503 done 10504 done 10505 IFS=$as_save_IFS 10506 10507 ;; 10508 esac 10509 fi 10510 RMDIR=$ac_cv_path_RMDIR 10511 if test -n "$RMDIR"; then 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10513 $as_echo "$RMDIR" >&6; } 10514 else 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10516 $as_echo "no" >&6; } 10517 fi 10518 10519 10520 test -n "$RMDIR" && break 10521 done 10522 10523 else 10524 # The variable is set, but is it from the command line or the environment? 10525 10526 # Try to remove the string !RMDIR! from our list. 10527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10529 # If it failed, the variable was not from the command line. Ignore it, 10530 # but warn the user (except for BASH, which is always set by the calling BASH). 10531 if test "xRMDIR" != xBASH; then 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10533 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10534 fi 10535 # Try to locate tool using the code snippet 10536 for ac_prog in rmdir 10537 do 10538 # Extract the first word of "$ac_prog", so it can be a program name with args. 10539 set dummy $ac_prog; ac_word=$2 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10541 $as_echo_n "checking for $ac_word... " >&6; } 10542 if ${ac_cv_path_RMDIR+:} false; then : 10543 $as_echo_n "(cached) " >&6 10544 else 10545 case $RMDIR in 10546 [\\/]* | ?:[\\/]*) 10547 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10548 ;; 10549 *) 10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10551 for as_dir in $PATH 10552 do 10553 IFS=$as_save_IFS 10554 test -z "$as_dir" && as_dir=. 10555 for ac_exec_ext in '' $ac_executable_extensions; do 10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10557 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10559 break 2 10560 fi 10561 done 10562 done 10563 IFS=$as_save_IFS 10564 10565 ;; 10566 esac 10567 fi 10568 RMDIR=$ac_cv_path_RMDIR 10569 if test -n "$RMDIR"; then 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10571 $as_echo "$RMDIR" >&6; } 10572 else 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10574 $as_echo "no" >&6; } 10575 fi 10576 10577 10578 test -n "$RMDIR" && break 10579 done 10580 10581 else 10582 # If it succeeded, then it was overridden by the user. We will use it 10583 # for the tool. 10584 10585 # First remove it from the list of overridden variables, so we can test 10586 # for unknown variables in the end. 10587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10588 10589 # Check if we try to supply an empty value 10590 if test "x$RMDIR" = x; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10592 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10594 $as_echo_n "checking for RMDIR... " >&6; } 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10596 $as_echo "disabled" >&6; } 10597 else 10598 # Check if the provided tool contains a complete path. 10599 tool_specified="$RMDIR" 10600 tool_basename="${tool_specified##*/}" 10601 if test "x$tool_basename" = "x$tool_specified"; then 10602 # A command without a complete path is provided, search $PATH. 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10604 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10605 # Extract the first word of "$tool_basename", so it can be a program name with args. 10606 set dummy $tool_basename; ac_word=$2 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10608 $as_echo_n "checking for $ac_word... " >&6; } 10609 if ${ac_cv_path_RMDIR+:} false; then : 10610 $as_echo_n "(cached) " >&6 10611 else 10612 case $RMDIR in 10613 [\\/]* | ?:[\\/]*) 10614 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10615 ;; 10616 *) 10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10618 for as_dir in $PATH 10619 do 10620 IFS=$as_save_IFS 10621 test -z "$as_dir" && as_dir=. 10622 for ac_exec_ext in '' $ac_executable_extensions; do 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10624 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10626 break 2 10627 fi 10628 done 10629 done 10630 IFS=$as_save_IFS 10631 10632 ;; 10633 esac 10634 fi 10635 RMDIR=$ac_cv_path_RMDIR 10636 if test -n "$RMDIR"; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10638 $as_echo "$RMDIR" >&6; } 10639 else 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10641 $as_echo "no" >&6; } 10642 fi 10643 10644 10645 if test "x$RMDIR" = x; then 10646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10647 fi 10648 else 10649 # Otherwise we believe it is a complete path. Use it as it is. 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10651 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10653 $as_echo_n "checking for RMDIR... " >&6; } 10654 if test ! -x "$tool_specified"; then 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10656 $as_echo "not found" >&6; } 10657 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10658 fi 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10660 $as_echo "$tool_specified" >&6; } 10661 fi 10662 fi 10663 fi 10664 10665 fi 10666 10667 10668 10669 if test "x$RMDIR" = x; then 10670 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10671 fi 10672 10673 10674 10675 10676 10677 # Publish this variable in the help. 10678 10679 10680 if [ -z "${SH+x}" ]; then 10681 # The variable is not set by user, try to locate tool using the code snippet 10682 for ac_prog in sh 10683 do 10684 # Extract the first word of "$ac_prog", so it can be a program name with args. 10685 set dummy $ac_prog; ac_word=$2 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10687 $as_echo_n "checking for $ac_word... " >&6; } 10688 if ${ac_cv_path_SH+:} false; then : 10689 $as_echo_n "(cached) " >&6 10690 else 10691 case $SH in 10692 [\\/]* | ?:[\\/]*) 10693 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10694 ;; 10695 *) 10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10697 for as_dir in $PATH 10698 do 10699 IFS=$as_save_IFS 10700 test -z "$as_dir" && as_dir=. 10701 for ac_exec_ext in '' $ac_executable_extensions; do 10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10703 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10705 break 2 10706 fi 10707 done 10708 done 10709 IFS=$as_save_IFS 10710 10711 ;; 10712 esac 10713 fi 10714 SH=$ac_cv_path_SH 10715 if test -n "$SH"; then 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10717 $as_echo "$SH" >&6; } 10718 else 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10720 $as_echo "no" >&6; } 10721 fi 10722 10723 10724 test -n "$SH" && break 10725 done 10726 10727 else 10728 # The variable is set, but is it from the command line or the environment? 10729 10730 # Try to remove the string !SH! from our list. 10731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10733 # If it failed, the variable was not from the command line. Ignore it, 10734 # but warn the user (except for BASH, which is always set by the calling BASH). 10735 if test "xSH" != xBASH; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10737 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10738 fi 10739 # Try to locate tool using the code snippet 10740 for ac_prog in sh 10741 do 10742 # Extract the first word of "$ac_prog", so it can be a program name with args. 10743 set dummy $ac_prog; ac_word=$2 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10745 $as_echo_n "checking for $ac_word... " >&6; } 10746 if ${ac_cv_path_SH+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748 else 10749 case $SH in 10750 [\\/]* | ?:[\\/]*) 10751 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10752 ;; 10753 *) 10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10755 for as_dir in $PATH 10756 do 10757 IFS=$as_save_IFS 10758 test -z "$as_dir" && as_dir=. 10759 for ac_exec_ext in '' $ac_executable_extensions; do 10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10761 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10763 break 2 10764 fi 10765 done 10766 done 10767 IFS=$as_save_IFS 10768 10769 ;; 10770 esac 10771 fi 10772 SH=$ac_cv_path_SH 10773 if test -n "$SH"; then 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10775 $as_echo "$SH" >&6; } 10776 else 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10778 $as_echo "no" >&6; } 10779 fi 10780 10781 10782 test -n "$SH" && break 10783 done 10784 10785 else 10786 # If it succeeded, then it was overridden by the user. We will use it 10787 # for the tool. 10788 10789 # First remove it from the list of overridden variables, so we can test 10790 # for unknown variables in the end. 10791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10792 10793 # Check if we try to supply an empty value 10794 if test "x$SH" = x; then 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10796 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10798 $as_echo_n "checking for SH... " >&6; } 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10800 $as_echo "disabled" >&6; } 10801 else 10802 # Check if the provided tool contains a complete path. 10803 tool_specified="$SH" 10804 tool_basename="${tool_specified##*/}" 10805 if test "x$tool_basename" = "x$tool_specified"; then 10806 # A command without a complete path is provided, search $PATH. 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10808 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10809 # Extract the first word of "$tool_basename", so it can be a program name with args. 10810 set dummy $tool_basename; ac_word=$2 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10812 $as_echo_n "checking for $ac_word... " >&6; } 10813 if ${ac_cv_path_SH+:} false; then : 10814 $as_echo_n "(cached) " >&6 10815 else 10816 case $SH in 10817 [\\/]* | ?:[\\/]*) 10818 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10819 ;; 10820 *) 10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10822 for as_dir in $PATH 10823 do 10824 IFS=$as_save_IFS 10825 test -z "$as_dir" && as_dir=. 10826 for ac_exec_ext in '' $ac_executable_extensions; do 10827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10828 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10830 break 2 10831 fi 10832 done 10833 done 10834 IFS=$as_save_IFS 10835 10836 ;; 10837 esac 10838 fi 10839 SH=$ac_cv_path_SH 10840 if test -n "$SH"; then 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10842 $as_echo "$SH" >&6; } 10843 else 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10845 $as_echo "no" >&6; } 10846 fi 10847 10848 10849 if test "x$SH" = x; then 10850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10851 fi 10852 else 10853 # Otherwise we believe it is a complete path. Use it as it is. 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10855 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10857 $as_echo_n "checking for SH... " >&6; } 10858 if test ! -x "$tool_specified"; then 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10860 $as_echo "not found" >&6; } 10861 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10862 fi 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10864 $as_echo "$tool_specified" >&6; } 10865 fi 10866 fi 10867 fi 10868 10869 fi 10870 10871 10872 10873 if test "x$SH" = x; then 10874 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10875 fi 10876 10877 10878 10879 10880 10881 # Publish this variable in the help. 10882 10883 10884 if [ -z "${SORT+x}" ]; then 10885 # The variable is not set by user, try to locate tool using the code snippet 10886 for ac_prog in sort 10887 do 10888 # Extract the first word of "$ac_prog", so it can be a program name with args. 10889 set dummy $ac_prog; ac_word=$2 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10891 $as_echo_n "checking for $ac_word... " >&6; } 10892 if ${ac_cv_path_SORT+:} false; then : 10893 $as_echo_n "(cached) " >&6 10894 else 10895 case $SORT in 10896 [\\/]* | ?:[\\/]*) 10897 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10898 ;; 10899 *) 10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10901 for as_dir in $PATH 10902 do 10903 IFS=$as_save_IFS 10904 test -z "$as_dir" && as_dir=. 10905 for ac_exec_ext in '' $ac_executable_extensions; do 10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10907 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10909 break 2 10910 fi 10911 done 10912 done 10913 IFS=$as_save_IFS 10914 10915 ;; 10916 esac 10917 fi 10918 SORT=$ac_cv_path_SORT 10919 if test -n "$SORT"; then 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10921 $as_echo "$SORT" >&6; } 10922 else 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10924 $as_echo "no" >&6; } 10925 fi 10926 10927 10928 test -n "$SORT" && break 10929 done 10930 10931 else 10932 # The variable is set, but is it from the command line or the environment? 10933 10934 # Try to remove the string !SORT! from our list. 10935 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10936 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10937 # If it failed, the variable was not from the command line. Ignore it, 10938 # but warn the user (except for BASH, which is always set by the calling BASH). 10939 if test "xSORT" != xBASH; then 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10941 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10942 fi 10943 # Try to locate tool using the code snippet 10944 for ac_prog in sort 10945 do 10946 # Extract the first word of "$ac_prog", so it can be a program name with args. 10947 set dummy $ac_prog; ac_word=$2 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10949 $as_echo_n "checking for $ac_word... " >&6; } 10950 if ${ac_cv_path_SORT+:} false; then : 10951 $as_echo_n "(cached) " >&6 10952 else 10953 case $SORT in 10954 [\\/]* | ?:[\\/]*) 10955 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10956 ;; 10957 *) 10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10959 for as_dir in $PATH 10960 do 10961 IFS=$as_save_IFS 10962 test -z "$as_dir" && as_dir=. 10963 for ac_exec_ext in '' $ac_executable_extensions; do 10964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10965 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10967 break 2 10968 fi 10969 done 10970 done 10971 IFS=$as_save_IFS 10972 10973 ;; 10974 esac 10975 fi 10976 SORT=$ac_cv_path_SORT 10977 if test -n "$SORT"; then 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10979 $as_echo "$SORT" >&6; } 10980 else 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10982 $as_echo "no" >&6; } 10983 fi 10984 10985 10986 test -n "$SORT" && break 10987 done 10988 10989 else 10990 # If it succeeded, then it was overridden by the user. We will use it 10991 # for the tool. 10992 10993 # First remove it from the list of overridden variables, so we can test 10994 # for unknown variables in the end. 10995 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10996 10997 # Check if we try to supply an empty value 10998 if test "x$SORT" = x; then 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11000 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11002 $as_echo_n "checking for SORT... " >&6; } 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11004 $as_echo "disabled" >&6; } 11005 else 11006 # Check if the provided tool contains a complete path. 11007 tool_specified="$SORT" 11008 tool_basename="${tool_specified##*/}" 11009 if test "x$tool_basename" = "x$tool_specified"; then 11010 # A command without a complete path is provided, search $PATH. 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11012 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11013 # Extract the first word of "$tool_basename", so it can be a program name with args. 11014 set dummy $tool_basename; ac_word=$2 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11016 $as_echo_n "checking for $ac_word... " >&6; } 11017 if ${ac_cv_path_SORT+:} false; then : 11018 $as_echo_n "(cached) " >&6 11019 else 11020 case $SORT in 11021 [\\/]* | ?:[\\/]*) 11022 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11023 ;; 11024 *) 11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11026 for as_dir in $PATH 11027 do 11028 IFS=$as_save_IFS 11029 test -z "$as_dir" && as_dir=. 11030 for ac_exec_ext in '' $ac_executable_extensions; do 11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11032 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11034 break 2 11035 fi 11036 done 11037 done 11038 IFS=$as_save_IFS 11039 11040 ;; 11041 esac 11042 fi 11043 SORT=$ac_cv_path_SORT 11044 if test -n "$SORT"; then 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11046 $as_echo "$SORT" >&6; } 11047 else 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11049 $as_echo "no" >&6; } 11050 fi 11051 11052 11053 if test "x$SORT" = x; then 11054 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11055 fi 11056 else 11057 # Otherwise we believe it is a complete path. Use it as it is. 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11059 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11061 $as_echo_n "checking for SORT... " >&6; } 11062 if test ! -x "$tool_specified"; then 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11064 $as_echo "not found" >&6; } 11065 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11066 fi 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11068 $as_echo "$tool_specified" >&6; } 11069 fi 11070 fi 11071 fi 11072 11073 fi 11074 11075 11076 11077 if test "x$SORT" = x; then 11078 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11079 fi 11080 11081 11082 11083 11084 11085 # Publish this variable in the help. 11086 11087 11088 if [ -z "${TAIL+x}" ]; then 11089 # The variable is not set by user, try to locate tool using the code snippet 11090 for ac_prog in tail 11091 do 11092 # Extract the first word of "$ac_prog", so it can be a program name with args. 11093 set dummy $ac_prog; ac_word=$2 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11095 $as_echo_n "checking for $ac_word... " >&6; } 11096 if ${ac_cv_path_TAIL+:} false; then : 11097 $as_echo_n "(cached) " >&6 11098 else 11099 case $TAIL in 11100 [\\/]* | ?:[\\/]*) 11101 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11102 ;; 11103 *) 11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11105 for as_dir in $PATH 11106 do 11107 IFS=$as_save_IFS 11108 test -z "$as_dir" && as_dir=. 11109 for ac_exec_ext in '' $ac_executable_extensions; do 11110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11111 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11113 break 2 11114 fi 11115 done 11116 done 11117 IFS=$as_save_IFS 11118 11119 ;; 11120 esac 11121 fi 11122 TAIL=$ac_cv_path_TAIL 11123 if test -n "$TAIL"; then 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11125 $as_echo "$TAIL" >&6; } 11126 else 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11128 $as_echo "no" >&6; } 11129 fi 11130 11131 11132 test -n "$TAIL" && break 11133 done 11134 11135 else 11136 # The variable is set, but is it from the command line or the environment? 11137 11138 # Try to remove the string !TAIL! from our list. 11139 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11140 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11141 # If it failed, the variable was not from the command line. Ignore it, 11142 # but warn the user (except for BASH, which is always set by the calling BASH). 11143 if test "xTAIL" != xBASH; then 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11145 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11146 fi 11147 # Try to locate tool using the code snippet 11148 for ac_prog in tail 11149 do 11150 # Extract the first word of "$ac_prog", so it can be a program name with args. 11151 set dummy $ac_prog; ac_word=$2 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11153 $as_echo_n "checking for $ac_word... " >&6; } 11154 if ${ac_cv_path_TAIL+:} false; then : 11155 $as_echo_n "(cached) " >&6 11156 else 11157 case $TAIL in 11158 [\\/]* | ?:[\\/]*) 11159 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11160 ;; 11161 *) 11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11163 for as_dir in $PATH 11164 do 11165 IFS=$as_save_IFS 11166 test -z "$as_dir" && as_dir=. 11167 for ac_exec_ext in '' $ac_executable_extensions; do 11168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11169 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11171 break 2 11172 fi 11173 done 11174 done 11175 IFS=$as_save_IFS 11176 11177 ;; 11178 esac 11179 fi 11180 TAIL=$ac_cv_path_TAIL 11181 if test -n "$TAIL"; then 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11183 $as_echo "$TAIL" >&6; } 11184 else 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11186 $as_echo "no" >&6; } 11187 fi 11188 11189 11190 test -n "$TAIL" && break 11191 done 11192 11193 else 11194 # If it succeeded, then it was overridden by the user. We will use it 11195 # for the tool. 11196 11197 # First remove it from the list of overridden variables, so we can test 11198 # for unknown variables in the end. 11199 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11200 11201 # Check if we try to supply an empty value 11202 if test "x$TAIL" = x; then 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11204 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11206 $as_echo_n "checking for TAIL... " >&6; } 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11208 $as_echo "disabled" >&6; } 11209 else 11210 # Check if the provided tool contains a complete path. 11211 tool_specified="$TAIL" 11212 tool_basename="${tool_specified##*/}" 11213 if test "x$tool_basename" = "x$tool_specified"; then 11214 # A command without a complete path is provided, search $PATH. 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11216 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11217 # Extract the first word of "$tool_basename", so it can be a program name with args. 11218 set dummy $tool_basename; ac_word=$2 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11220 $as_echo_n "checking for $ac_word... " >&6; } 11221 if ${ac_cv_path_TAIL+:} false; then : 11222 $as_echo_n "(cached) " >&6 11223 else 11224 case $TAIL in 11225 [\\/]* | ?:[\\/]*) 11226 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11227 ;; 11228 *) 11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11230 for as_dir in $PATH 11231 do 11232 IFS=$as_save_IFS 11233 test -z "$as_dir" && as_dir=. 11234 for ac_exec_ext in '' $ac_executable_extensions; do 11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11236 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11238 break 2 11239 fi 11240 done 11241 done 11242 IFS=$as_save_IFS 11243 11244 ;; 11245 esac 11246 fi 11247 TAIL=$ac_cv_path_TAIL 11248 if test -n "$TAIL"; then 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11250 $as_echo "$TAIL" >&6; } 11251 else 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11253 $as_echo "no" >&6; } 11254 fi 11255 11256 11257 if test "x$TAIL" = x; then 11258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11259 fi 11260 else 11261 # Otherwise we believe it is a complete path. Use it as it is. 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11263 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11265 $as_echo_n "checking for TAIL... " >&6; } 11266 if test ! -x "$tool_specified"; then 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11268 $as_echo "not found" >&6; } 11269 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11270 fi 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11272 $as_echo "$tool_specified" >&6; } 11273 fi 11274 fi 11275 fi 11276 11277 fi 11278 11279 11280 11281 if test "x$TAIL" = x; then 11282 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11283 fi 11284 11285 11286 11287 11288 11289 # Publish this variable in the help. 11290 11291 11292 if [ -z "${TAR+x}" ]; then 11293 # The variable is not set by user, try to locate tool using the code snippet 11294 for ac_prog in gtar tar 11295 do 11296 # Extract the first word of "$ac_prog", so it can be a program name with args. 11297 set dummy $ac_prog; ac_word=$2 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11299 $as_echo_n "checking for $ac_word... " >&6; } 11300 if ${ac_cv_path_TAR+:} false; then : 11301 $as_echo_n "(cached) " >&6 11302 else 11303 case $TAR in 11304 [\\/]* | ?:[\\/]*) 11305 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11306 ;; 11307 *) 11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11309 for as_dir in $PATH 11310 do 11311 IFS=$as_save_IFS 11312 test -z "$as_dir" && as_dir=. 11313 for ac_exec_ext in '' $ac_executable_extensions; do 11314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11315 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11317 break 2 11318 fi 11319 done 11320 done 11321 IFS=$as_save_IFS 11322 11323 ;; 11324 esac 11325 fi 11326 TAR=$ac_cv_path_TAR 11327 if test -n "$TAR"; then 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11329 $as_echo "$TAR" >&6; } 11330 else 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11332 $as_echo "no" >&6; } 11333 fi 11334 11335 11336 test -n "$TAR" && break 11337 done 11338 11339 else 11340 # The variable is set, but is it from the command line or the environment? 11341 11342 # Try to remove the string !TAR! from our list. 11343 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11344 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11345 # If it failed, the variable was not from the command line. Ignore it, 11346 # but warn the user (except for BASH, which is always set by the calling BASH). 11347 if test "xTAR" != xBASH; then 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11349 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11350 fi 11351 # Try to locate tool using the code snippet 11352 for ac_prog in gtar tar 11353 do 11354 # Extract the first word of "$ac_prog", so it can be a program name with args. 11355 set dummy $ac_prog; ac_word=$2 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11357 $as_echo_n "checking for $ac_word... " >&6; } 11358 if ${ac_cv_path_TAR+:} false; then : 11359 $as_echo_n "(cached) " >&6 11360 else 11361 case $TAR in 11362 [\\/]* | ?:[\\/]*) 11363 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11364 ;; 11365 *) 11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11367 for as_dir in $PATH 11368 do 11369 IFS=$as_save_IFS 11370 test -z "$as_dir" && as_dir=. 11371 for ac_exec_ext in '' $ac_executable_extensions; do 11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11373 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11375 break 2 11376 fi 11377 done 11378 done 11379 IFS=$as_save_IFS 11380 11381 ;; 11382 esac 11383 fi 11384 TAR=$ac_cv_path_TAR 11385 if test -n "$TAR"; then 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11387 $as_echo "$TAR" >&6; } 11388 else 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11390 $as_echo "no" >&6; } 11391 fi 11392 11393 11394 test -n "$TAR" && break 11395 done 11396 11397 else 11398 # If it succeeded, then it was overridden by the user. We will use it 11399 # for the tool. 11400 11401 # First remove it from the list of overridden variables, so we can test 11402 # for unknown variables in the end. 11403 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11404 11405 # Check if we try to supply an empty value 11406 if test "x$TAR" = x; then 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11408 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11410 $as_echo_n "checking for TAR... " >&6; } 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11412 $as_echo "disabled" >&6; } 11413 else 11414 # Check if the provided tool contains a complete path. 11415 tool_specified="$TAR" 11416 tool_basename="${tool_specified##*/}" 11417 if test "x$tool_basename" = "x$tool_specified"; then 11418 # A command without a complete path is provided, search $PATH. 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11420 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11421 # Extract the first word of "$tool_basename", so it can be a program name with args. 11422 set dummy $tool_basename; ac_word=$2 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11424 $as_echo_n "checking for $ac_word... " >&6; } 11425 if ${ac_cv_path_TAR+:} false; then : 11426 $as_echo_n "(cached) " >&6 11427 else 11428 case $TAR in 11429 [\\/]* | ?:[\\/]*) 11430 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11431 ;; 11432 *) 11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11434 for as_dir in $PATH 11435 do 11436 IFS=$as_save_IFS 11437 test -z "$as_dir" && as_dir=. 11438 for ac_exec_ext in '' $ac_executable_extensions; do 11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11440 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11442 break 2 11443 fi 11444 done 11445 done 11446 IFS=$as_save_IFS 11447 11448 ;; 11449 esac 11450 fi 11451 TAR=$ac_cv_path_TAR 11452 if test -n "$TAR"; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11454 $as_echo "$TAR" >&6; } 11455 else 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11457 $as_echo "no" >&6; } 11458 fi 11459 11460 11461 if test "x$TAR" = x; then 11462 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11463 fi 11464 else 11465 # Otherwise we believe it is a complete path. Use it as it is. 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11467 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11469 $as_echo_n "checking for TAR... " >&6; } 11470 if test ! -x "$tool_specified"; then 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11472 $as_echo "not found" >&6; } 11473 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11474 fi 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11476 $as_echo "$tool_specified" >&6; } 11477 fi 11478 fi 11479 fi 11480 11481 fi 11482 11483 11484 11485 if test "x$TAR" = x; then 11486 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11487 fi 11488 11489 11490 11491 11492 11493 # Publish this variable in the help. 11494 11495 11496 if [ -z "${TEE+x}" ]; then 11497 # The variable is not set by user, try to locate tool using the code snippet 11498 for ac_prog in tee 11499 do 11500 # Extract the first word of "$ac_prog", so it can be a program name with args. 11501 set dummy $ac_prog; ac_word=$2 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11503 $as_echo_n "checking for $ac_word... " >&6; } 11504 if ${ac_cv_path_TEE+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506 else 11507 case $TEE in 11508 [\\/]* | ?:[\\/]*) 11509 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11510 ;; 11511 *) 11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11513 for as_dir in $PATH 11514 do 11515 IFS=$as_save_IFS 11516 test -z "$as_dir" && as_dir=. 11517 for ac_exec_ext in '' $ac_executable_extensions; do 11518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11519 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11521 break 2 11522 fi 11523 done 11524 done 11525 IFS=$as_save_IFS 11526 11527 ;; 11528 esac 11529 fi 11530 TEE=$ac_cv_path_TEE 11531 if test -n "$TEE"; then 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11533 $as_echo "$TEE" >&6; } 11534 else 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11536 $as_echo "no" >&6; } 11537 fi 11538 11539 11540 test -n "$TEE" && break 11541 done 11542 11543 else 11544 # The variable is set, but is it from the command line or the environment? 11545 11546 # Try to remove the string !TEE! from our list. 11547 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11548 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11549 # If it failed, the variable was not from the command line. Ignore it, 11550 # but warn the user (except for BASH, which is always set by the calling BASH). 11551 if test "xTEE" != xBASH; then 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11553 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11554 fi 11555 # Try to locate tool using the code snippet 11556 for ac_prog in tee 11557 do 11558 # Extract the first word of "$ac_prog", so it can be a program name with args. 11559 set dummy $ac_prog; ac_word=$2 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11561 $as_echo_n "checking for $ac_word... " >&6; } 11562 if ${ac_cv_path_TEE+:} false; then : 11563 $as_echo_n "(cached) " >&6 11564 else 11565 case $TEE in 11566 [\\/]* | ?:[\\/]*) 11567 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11568 ;; 11569 *) 11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11571 for as_dir in $PATH 11572 do 11573 IFS=$as_save_IFS 11574 test -z "$as_dir" && as_dir=. 11575 for ac_exec_ext in '' $ac_executable_extensions; do 11576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11577 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11579 break 2 11580 fi 11581 done 11582 done 11583 IFS=$as_save_IFS 11584 11585 ;; 11586 esac 11587 fi 11588 TEE=$ac_cv_path_TEE 11589 if test -n "$TEE"; then 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11591 $as_echo "$TEE" >&6; } 11592 else 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11594 $as_echo "no" >&6; } 11595 fi 11596 11597 11598 test -n "$TEE" && break 11599 done 11600 11601 else 11602 # If it succeeded, then it was overridden by the user. We will use it 11603 # for the tool. 11604 11605 # First remove it from the list of overridden variables, so we can test 11606 # for unknown variables in the end. 11607 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11608 11609 # Check if we try to supply an empty value 11610 if test "x$TEE" = x; then 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11612 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11614 $as_echo_n "checking for TEE... " >&6; } 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11616 $as_echo "disabled" >&6; } 11617 else 11618 # Check if the provided tool contains a complete path. 11619 tool_specified="$TEE" 11620 tool_basename="${tool_specified##*/}" 11621 if test "x$tool_basename" = "x$tool_specified"; then 11622 # A command without a complete path is provided, search $PATH. 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11624 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11625 # Extract the first word of "$tool_basename", so it can be a program name with args. 11626 set dummy $tool_basename; ac_word=$2 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11628 $as_echo_n "checking for $ac_word... " >&6; } 11629 if ${ac_cv_path_TEE+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631 else 11632 case $TEE in 11633 [\\/]* | ?:[\\/]*) 11634 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11635 ;; 11636 *) 11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11638 for as_dir in $PATH 11639 do 11640 IFS=$as_save_IFS 11641 test -z "$as_dir" && as_dir=. 11642 for ac_exec_ext in '' $ac_executable_extensions; do 11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11644 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11646 break 2 11647 fi 11648 done 11649 done 11650 IFS=$as_save_IFS 11651 11652 ;; 11653 esac 11654 fi 11655 TEE=$ac_cv_path_TEE 11656 if test -n "$TEE"; then 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11658 $as_echo "$TEE" >&6; } 11659 else 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11661 $as_echo "no" >&6; } 11662 fi 11663 11664 11665 if test "x$TEE" = x; then 11666 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11667 fi 11668 else 11669 # Otherwise we believe it is a complete path. Use it as it is. 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11671 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11673 $as_echo_n "checking for TEE... " >&6; } 11674 if test ! -x "$tool_specified"; then 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11676 $as_echo "not found" >&6; } 11677 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11678 fi 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11680 $as_echo "$tool_specified" >&6; } 11681 fi 11682 fi 11683 fi 11684 11685 fi 11686 11687 11688 11689 if test "x$TEE" = x; then 11690 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11691 fi 11692 11693 11694 11695 11696 11697 # Publish this variable in the help. 11698 11699 11700 if [ -z "${TOUCH+x}" ]; then 11701 # The variable is not set by user, try to locate tool using the code snippet 11702 for ac_prog in touch 11703 do 11704 # Extract the first word of "$ac_prog", so it can be a program name with args. 11705 set dummy $ac_prog; ac_word=$2 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11707 $as_echo_n "checking for $ac_word... " >&6; } 11708 if ${ac_cv_path_TOUCH+:} false; then : 11709 $as_echo_n "(cached) " >&6 11710 else 11711 case $TOUCH in 11712 [\\/]* | ?:[\\/]*) 11713 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11714 ;; 11715 *) 11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11717 for as_dir in $PATH 11718 do 11719 IFS=$as_save_IFS 11720 test -z "$as_dir" && as_dir=. 11721 for ac_exec_ext in '' $ac_executable_extensions; do 11722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11723 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11725 break 2 11726 fi 11727 done 11728 done 11729 IFS=$as_save_IFS 11730 11731 ;; 11732 esac 11733 fi 11734 TOUCH=$ac_cv_path_TOUCH 11735 if test -n "$TOUCH"; then 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11737 $as_echo "$TOUCH" >&6; } 11738 else 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11740 $as_echo "no" >&6; } 11741 fi 11742 11743 11744 test -n "$TOUCH" && break 11745 done 11746 11747 else 11748 # The variable is set, but is it from the command line or the environment? 11749 11750 # Try to remove the string !TOUCH! from our list. 11751 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11752 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11753 # If it failed, the variable was not from the command line. Ignore it, 11754 # but warn the user (except for BASH, which is always set by the calling BASH). 11755 if test "xTOUCH" != xBASH; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11757 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11758 fi 11759 # Try to locate tool using the code snippet 11760 for ac_prog in touch 11761 do 11762 # Extract the first word of "$ac_prog", so it can be a program name with args. 11763 set dummy $ac_prog; ac_word=$2 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11765 $as_echo_n "checking for $ac_word... " >&6; } 11766 if ${ac_cv_path_TOUCH+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768 else 11769 case $TOUCH in 11770 [\\/]* | ?:[\\/]*) 11771 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11772 ;; 11773 *) 11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11775 for as_dir in $PATH 11776 do 11777 IFS=$as_save_IFS 11778 test -z "$as_dir" && as_dir=. 11779 for ac_exec_ext in '' $ac_executable_extensions; do 11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11781 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11783 break 2 11784 fi 11785 done 11786 done 11787 IFS=$as_save_IFS 11788 11789 ;; 11790 esac 11791 fi 11792 TOUCH=$ac_cv_path_TOUCH 11793 if test -n "$TOUCH"; then 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11795 $as_echo "$TOUCH" >&6; } 11796 else 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11798 $as_echo "no" >&6; } 11799 fi 11800 11801 11802 test -n "$TOUCH" && break 11803 done 11804 11805 else 11806 # If it succeeded, then it was overridden by the user. We will use it 11807 # for the tool. 11808 11809 # First remove it from the list of overridden variables, so we can test 11810 # for unknown variables in the end. 11811 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11812 11813 # Check if we try to supply an empty value 11814 if test "x$TOUCH" = x; then 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11816 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11818 $as_echo_n "checking for TOUCH... " >&6; } 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11820 $as_echo "disabled" >&6; } 11821 else 11822 # Check if the provided tool contains a complete path. 11823 tool_specified="$TOUCH" 11824 tool_basename="${tool_specified##*/}" 11825 if test "x$tool_basename" = "x$tool_specified"; then 11826 # A command without a complete path is provided, search $PATH. 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11828 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11829 # Extract the first word of "$tool_basename", so it can be a program name with args. 11830 set dummy $tool_basename; ac_word=$2 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11832 $as_echo_n "checking for $ac_word... " >&6; } 11833 if ${ac_cv_path_TOUCH+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835 else 11836 case $TOUCH in 11837 [\\/]* | ?:[\\/]*) 11838 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11839 ;; 11840 *) 11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11842 for as_dir in $PATH 11843 do 11844 IFS=$as_save_IFS 11845 test -z "$as_dir" && as_dir=. 11846 for ac_exec_ext in '' $ac_executable_extensions; do 11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11848 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11850 break 2 11851 fi 11852 done 11853 done 11854 IFS=$as_save_IFS 11855 11856 ;; 11857 esac 11858 fi 11859 TOUCH=$ac_cv_path_TOUCH 11860 if test -n "$TOUCH"; then 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11862 $as_echo "$TOUCH" >&6; } 11863 else 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11865 $as_echo "no" >&6; } 11866 fi 11867 11868 11869 if test "x$TOUCH" = x; then 11870 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11871 fi 11872 else 11873 # Otherwise we believe it is a complete path. Use it as it is. 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11875 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11877 $as_echo_n "checking for TOUCH... " >&6; } 11878 if test ! -x "$tool_specified"; then 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11880 $as_echo "not found" >&6; } 11881 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11882 fi 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11884 $as_echo "$tool_specified" >&6; } 11885 fi 11886 fi 11887 fi 11888 11889 fi 11890 11891 11892 11893 if test "x$TOUCH" = x; then 11894 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11895 fi 11896 11897 11898 11899 11900 11901 # Publish this variable in the help. 11902 11903 11904 if [ -z "${TR+x}" ]; then 11905 # The variable is not set by user, try to locate tool using the code snippet 11906 for ac_prog in tr 11907 do 11908 # Extract the first word of "$ac_prog", so it can be a program name with args. 11909 set dummy $ac_prog; ac_word=$2 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11911 $as_echo_n "checking for $ac_word... " >&6; } 11912 if ${ac_cv_path_TR+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914 else 11915 case $TR in 11916 [\\/]* | ?:[\\/]*) 11917 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11918 ;; 11919 *) 11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11921 for as_dir in $PATH 11922 do 11923 IFS=$as_save_IFS 11924 test -z "$as_dir" && as_dir=. 11925 for ac_exec_ext in '' $ac_executable_extensions; do 11926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11927 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11929 break 2 11930 fi 11931 done 11932 done 11933 IFS=$as_save_IFS 11934 11935 ;; 11936 esac 11937 fi 11938 TR=$ac_cv_path_TR 11939 if test -n "$TR"; then 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11941 $as_echo "$TR" >&6; } 11942 else 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11944 $as_echo "no" >&6; } 11945 fi 11946 11947 11948 test -n "$TR" && break 11949 done 11950 11951 else 11952 # The variable is set, but is it from the command line or the environment? 11953 11954 # Try to remove the string !TR! from our list. 11955 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11956 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11957 # If it failed, the variable was not from the command line. Ignore it, 11958 # but warn the user (except for BASH, which is always set by the calling BASH). 11959 if test "xTR" != xBASH; then 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11961 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11962 fi 11963 # Try to locate tool using the code snippet 11964 for ac_prog in tr 11965 do 11966 # Extract the first word of "$ac_prog", so it can be a program name with args. 11967 set dummy $ac_prog; ac_word=$2 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11969 $as_echo_n "checking for $ac_word... " >&6; } 11970 if ${ac_cv_path_TR+:} false; then : 11971 $as_echo_n "(cached) " >&6 11972 else 11973 case $TR in 11974 [\\/]* | ?:[\\/]*) 11975 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11976 ;; 11977 *) 11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11979 for as_dir in $PATH 11980 do 11981 IFS=$as_save_IFS 11982 test -z "$as_dir" && as_dir=. 11983 for ac_exec_ext in '' $ac_executable_extensions; do 11984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11985 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11987 break 2 11988 fi 11989 done 11990 done 11991 IFS=$as_save_IFS 11992 11993 ;; 11994 esac 11995 fi 11996 TR=$ac_cv_path_TR 11997 if test -n "$TR"; then 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11999 $as_echo "$TR" >&6; } 12000 else 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12002 $as_echo "no" >&6; } 12003 fi 12004 12005 12006 test -n "$TR" && break 12007 done 12008 12009 else 12010 # If it succeeded, then it was overridden by the user. We will use it 12011 # for the tool. 12012 12013 # First remove it from the list of overridden variables, so we can test 12014 # for unknown variables in the end. 12015 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12016 12017 # Check if we try to supply an empty value 12018 if test "x$TR" = x; then 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12020 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12022 $as_echo_n "checking for TR... " >&6; } 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12024 $as_echo "disabled" >&6; } 12025 else 12026 # Check if the provided tool contains a complete path. 12027 tool_specified="$TR" 12028 tool_basename="${tool_specified##*/}" 12029 if test "x$tool_basename" = "x$tool_specified"; then 12030 # A command without a complete path is provided, search $PATH. 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12032 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12033 # Extract the first word of "$tool_basename", so it can be a program name with args. 12034 set dummy $tool_basename; ac_word=$2 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12036 $as_echo_n "checking for $ac_word... " >&6; } 12037 if ${ac_cv_path_TR+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039 else 12040 case $TR in 12041 [\\/]* | ?:[\\/]*) 12042 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12043 ;; 12044 *) 12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12046 for as_dir in $PATH 12047 do 12048 IFS=$as_save_IFS 12049 test -z "$as_dir" && as_dir=. 12050 for ac_exec_ext in '' $ac_executable_extensions; do 12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12052 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12054 break 2 12055 fi 12056 done 12057 done 12058 IFS=$as_save_IFS 12059 12060 ;; 12061 esac 12062 fi 12063 TR=$ac_cv_path_TR 12064 if test -n "$TR"; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12066 $as_echo "$TR" >&6; } 12067 else 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12069 $as_echo "no" >&6; } 12070 fi 12071 12072 12073 if test "x$TR" = x; then 12074 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12075 fi 12076 else 12077 # Otherwise we believe it is a complete path. Use it as it is. 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12079 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12081 $as_echo_n "checking for TR... " >&6; } 12082 if test ! -x "$tool_specified"; then 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12084 $as_echo "not found" >&6; } 12085 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12086 fi 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12088 $as_echo "$tool_specified" >&6; } 12089 fi 12090 fi 12091 fi 12092 12093 fi 12094 12095 12096 12097 if test "x$TR" = x; then 12098 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12099 fi 12100 12101 12102 12103 12104 12105 # Publish this variable in the help. 12106 12107 12108 if [ -z "${UNAME+x}" ]; then 12109 # The variable is not set by user, try to locate tool using the code snippet 12110 for ac_prog in uname 12111 do 12112 # Extract the first word of "$ac_prog", so it can be a program name with args. 12113 set dummy $ac_prog; ac_word=$2 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12115 $as_echo_n "checking for $ac_word... " >&6; } 12116 if ${ac_cv_path_UNAME+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118 else 12119 case $UNAME in 12120 [\\/]* | ?:[\\/]*) 12121 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12122 ;; 12123 *) 12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12125 for as_dir in $PATH 12126 do 12127 IFS=$as_save_IFS 12128 test -z "$as_dir" && as_dir=. 12129 for ac_exec_ext in '' $ac_executable_extensions; do 12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12131 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12133 break 2 12134 fi 12135 done 12136 done 12137 IFS=$as_save_IFS 12138 12139 ;; 12140 esac 12141 fi 12142 UNAME=$ac_cv_path_UNAME 12143 if test -n "$UNAME"; then 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12145 $as_echo "$UNAME" >&6; } 12146 else 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12148 $as_echo "no" >&6; } 12149 fi 12150 12151 12152 test -n "$UNAME" && break 12153 done 12154 12155 else 12156 # The variable is set, but is it from the command line or the environment? 12157 12158 # Try to remove the string !UNAME! from our list. 12159 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12160 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12161 # If it failed, the variable was not from the command line. Ignore it, 12162 # but warn the user (except for BASH, which is always set by the calling BASH). 12163 if test "xUNAME" != xBASH; then 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12165 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12166 fi 12167 # Try to locate tool using the code snippet 12168 for ac_prog in uname 12169 do 12170 # Extract the first word of "$ac_prog", so it can be a program name with args. 12171 set dummy $ac_prog; ac_word=$2 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12173 $as_echo_n "checking for $ac_word... " >&6; } 12174 if ${ac_cv_path_UNAME+:} false; then : 12175 $as_echo_n "(cached) " >&6 12176 else 12177 case $UNAME in 12178 [\\/]* | ?:[\\/]*) 12179 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12180 ;; 12181 *) 12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12183 for as_dir in $PATH 12184 do 12185 IFS=$as_save_IFS 12186 test -z "$as_dir" && as_dir=. 12187 for ac_exec_ext in '' $ac_executable_extensions; do 12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12189 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12191 break 2 12192 fi 12193 done 12194 done 12195 IFS=$as_save_IFS 12196 12197 ;; 12198 esac 12199 fi 12200 UNAME=$ac_cv_path_UNAME 12201 if test -n "$UNAME"; then 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12203 $as_echo "$UNAME" >&6; } 12204 else 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12206 $as_echo "no" >&6; } 12207 fi 12208 12209 12210 test -n "$UNAME" && break 12211 done 12212 12213 else 12214 # If it succeeded, then it was overridden by the user. We will use it 12215 # for the tool. 12216 12217 # First remove it from the list of overridden variables, so we can test 12218 # for unknown variables in the end. 12219 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12220 12221 # Check if we try to supply an empty value 12222 if test "x$UNAME" = x; then 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12224 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12226 $as_echo_n "checking for UNAME... " >&6; } 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12228 $as_echo "disabled" >&6; } 12229 else 12230 # Check if the provided tool contains a complete path. 12231 tool_specified="$UNAME" 12232 tool_basename="${tool_specified##*/}" 12233 if test "x$tool_basename" = "x$tool_specified"; then 12234 # A command without a complete path is provided, search $PATH. 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12236 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12237 # Extract the first word of "$tool_basename", so it can be a program name with args. 12238 set dummy $tool_basename; ac_word=$2 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12240 $as_echo_n "checking for $ac_word... " >&6; } 12241 if ${ac_cv_path_UNAME+:} false; then : 12242 $as_echo_n "(cached) " >&6 12243 else 12244 case $UNAME in 12245 [\\/]* | ?:[\\/]*) 12246 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12247 ;; 12248 *) 12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12250 for as_dir in $PATH 12251 do 12252 IFS=$as_save_IFS 12253 test -z "$as_dir" && as_dir=. 12254 for ac_exec_ext in '' $ac_executable_extensions; do 12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12256 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12258 break 2 12259 fi 12260 done 12261 done 12262 IFS=$as_save_IFS 12263 12264 ;; 12265 esac 12266 fi 12267 UNAME=$ac_cv_path_UNAME 12268 if test -n "$UNAME"; then 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12270 $as_echo "$UNAME" >&6; } 12271 else 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12273 $as_echo "no" >&6; } 12274 fi 12275 12276 12277 if test "x$UNAME" = x; then 12278 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12279 fi 12280 else 12281 # Otherwise we believe it is a complete path. Use it as it is. 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12283 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12285 $as_echo_n "checking for UNAME... " >&6; } 12286 if test ! -x "$tool_specified"; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12288 $as_echo "not found" >&6; } 12289 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12290 fi 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12292 $as_echo "$tool_specified" >&6; } 12293 fi 12294 fi 12295 fi 12296 12297 fi 12298 12299 12300 12301 if test "x$UNAME" = x; then 12302 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12303 fi 12304 12305 12306 12307 12308 12309 # Publish this variable in the help. 12310 12311 12312 if [ -z "${UNIQ+x}" ]; then 12313 # The variable is not set by user, try to locate tool using the code snippet 12314 for ac_prog in uniq 12315 do 12316 # Extract the first word of "$ac_prog", so it can be a program name with args. 12317 set dummy $ac_prog; ac_word=$2 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12319 $as_echo_n "checking for $ac_word... " >&6; } 12320 if ${ac_cv_path_UNIQ+:} false; then : 12321 $as_echo_n "(cached) " >&6 12322 else 12323 case $UNIQ in 12324 [\\/]* | ?:[\\/]*) 12325 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12326 ;; 12327 *) 12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12329 for as_dir in $PATH 12330 do 12331 IFS=$as_save_IFS 12332 test -z "$as_dir" && as_dir=. 12333 for ac_exec_ext in '' $ac_executable_extensions; do 12334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12335 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12337 break 2 12338 fi 12339 done 12340 done 12341 IFS=$as_save_IFS 12342 12343 ;; 12344 esac 12345 fi 12346 UNIQ=$ac_cv_path_UNIQ 12347 if test -n "$UNIQ"; then 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12349 $as_echo "$UNIQ" >&6; } 12350 else 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12352 $as_echo "no" >&6; } 12353 fi 12354 12355 12356 test -n "$UNIQ" && break 12357 done 12358 12359 else 12360 # The variable is set, but is it from the command line or the environment? 12361 12362 # Try to remove the string !UNIQ! from our list. 12363 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12364 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12365 # If it failed, the variable was not from the command line. Ignore it, 12366 # but warn the user (except for BASH, which is always set by the calling BASH). 12367 if test "xUNIQ" != xBASH; then 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12369 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12370 fi 12371 # Try to locate tool using the code snippet 12372 for ac_prog in uniq 12373 do 12374 # Extract the first word of "$ac_prog", so it can be a program name with args. 12375 set dummy $ac_prog; ac_word=$2 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12377 $as_echo_n "checking for $ac_word... " >&6; } 12378 if ${ac_cv_path_UNIQ+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380 else 12381 case $UNIQ in 12382 [\\/]* | ?:[\\/]*) 12383 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12384 ;; 12385 *) 12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12387 for as_dir in $PATH 12388 do 12389 IFS=$as_save_IFS 12390 test -z "$as_dir" && as_dir=. 12391 for ac_exec_ext in '' $ac_executable_extensions; do 12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12393 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12395 break 2 12396 fi 12397 done 12398 done 12399 IFS=$as_save_IFS 12400 12401 ;; 12402 esac 12403 fi 12404 UNIQ=$ac_cv_path_UNIQ 12405 if test -n "$UNIQ"; then 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12407 $as_echo "$UNIQ" >&6; } 12408 else 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12410 $as_echo "no" >&6; } 12411 fi 12412 12413 12414 test -n "$UNIQ" && break 12415 done 12416 12417 else 12418 # If it succeeded, then it was overridden by the user. We will use it 12419 # for the tool. 12420 12421 # First remove it from the list of overridden variables, so we can test 12422 # for unknown variables in the end. 12423 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12424 12425 # Check if we try to supply an empty value 12426 if test "x$UNIQ" = x; then 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12428 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12430 $as_echo_n "checking for UNIQ... " >&6; } 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12432 $as_echo "disabled" >&6; } 12433 else 12434 # Check if the provided tool contains a complete path. 12435 tool_specified="$UNIQ" 12436 tool_basename="${tool_specified##*/}" 12437 if test "x$tool_basename" = "x$tool_specified"; then 12438 # A command without a complete path is provided, search $PATH. 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12440 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12441 # Extract the first word of "$tool_basename", so it can be a program name with args. 12442 set dummy $tool_basename; ac_word=$2 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12444 $as_echo_n "checking for $ac_word... " >&6; } 12445 if ${ac_cv_path_UNIQ+:} false; then : 12446 $as_echo_n "(cached) " >&6 12447 else 12448 case $UNIQ in 12449 [\\/]* | ?:[\\/]*) 12450 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12451 ;; 12452 *) 12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12454 for as_dir in $PATH 12455 do 12456 IFS=$as_save_IFS 12457 test -z "$as_dir" && as_dir=. 12458 for ac_exec_ext in '' $ac_executable_extensions; do 12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12460 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12462 break 2 12463 fi 12464 done 12465 done 12466 IFS=$as_save_IFS 12467 12468 ;; 12469 esac 12470 fi 12471 UNIQ=$ac_cv_path_UNIQ 12472 if test -n "$UNIQ"; then 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12474 $as_echo "$UNIQ" >&6; } 12475 else 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12477 $as_echo "no" >&6; } 12478 fi 12479 12480 12481 if test "x$UNIQ" = x; then 12482 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12483 fi 12484 else 12485 # Otherwise we believe it is a complete path. Use it as it is. 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12487 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12489 $as_echo_n "checking for UNIQ... " >&6; } 12490 if test ! -x "$tool_specified"; then 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12492 $as_echo "not found" >&6; } 12493 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12494 fi 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12496 $as_echo "$tool_specified" >&6; } 12497 fi 12498 fi 12499 fi 12500 12501 fi 12502 12503 12504 12505 if test "x$UNIQ" = x; then 12506 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12507 fi 12508 12509 12510 12511 12512 12513 # Publish this variable in the help. 12514 12515 12516 if [ -z "${WC+x}" ]; then 12517 # The variable is not set by user, try to locate tool using the code snippet 12518 for ac_prog in wc 12519 do 12520 # Extract the first word of "$ac_prog", so it can be a program name with args. 12521 set dummy $ac_prog; ac_word=$2 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12523 $as_echo_n "checking for $ac_word... " >&6; } 12524 if ${ac_cv_path_WC+:} false; then : 12525 $as_echo_n "(cached) " >&6 12526 else 12527 case $WC in 12528 [\\/]* | ?:[\\/]*) 12529 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12530 ;; 12531 *) 12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12533 for as_dir in $PATH 12534 do 12535 IFS=$as_save_IFS 12536 test -z "$as_dir" && as_dir=. 12537 for ac_exec_ext in '' $ac_executable_extensions; do 12538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12539 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12541 break 2 12542 fi 12543 done 12544 done 12545 IFS=$as_save_IFS 12546 12547 ;; 12548 esac 12549 fi 12550 WC=$ac_cv_path_WC 12551 if test -n "$WC"; then 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12553 $as_echo "$WC" >&6; } 12554 else 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12556 $as_echo "no" >&6; } 12557 fi 12558 12559 12560 test -n "$WC" && break 12561 done 12562 12563 else 12564 # The variable is set, but is it from the command line or the environment? 12565 12566 # Try to remove the string !WC! from our list. 12567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12569 # If it failed, the variable was not from the command line. Ignore it, 12570 # but warn the user (except for BASH, which is always set by the calling BASH). 12571 if test "xWC" != xBASH; then 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12573 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12574 fi 12575 # Try to locate tool using the code snippet 12576 for ac_prog in wc 12577 do 12578 # Extract the first word of "$ac_prog", so it can be a program name with args. 12579 set dummy $ac_prog; ac_word=$2 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12581 $as_echo_n "checking for $ac_word... " >&6; } 12582 if ${ac_cv_path_WC+:} false; then : 12583 $as_echo_n "(cached) " >&6 12584 else 12585 case $WC in 12586 [\\/]* | ?:[\\/]*) 12587 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12588 ;; 12589 *) 12590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12591 for as_dir in $PATH 12592 do 12593 IFS=$as_save_IFS 12594 test -z "$as_dir" && as_dir=. 12595 for ac_exec_ext in '' $ac_executable_extensions; do 12596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12597 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12599 break 2 12600 fi 12601 done 12602 done 12603 IFS=$as_save_IFS 12604 12605 ;; 12606 esac 12607 fi 12608 WC=$ac_cv_path_WC 12609 if test -n "$WC"; then 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12611 $as_echo "$WC" >&6; } 12612 else 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12614 $as_echo "no" >&6; } 12615 fi 12616 12617 12618 test -n "$WC" && break 12619 done 12620 12621 else 12622 # If it succeeded, then it was overridden by the user. We will use it 12623 # for the tool. 12624 12625 # First remove it from the list of overridden variables, so we can test 12626 # for unknown variables in the end. 12627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12628 12629 # Check if we try to supply an empty value 12630 if test "x$WC" = x; then 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12632 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12634 $as_echo_n "checking for WC... " >&6; } 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12636 $as_echo "disabled" >&6; } 12637 else 12638 # Check if the provided tool contains a complete path. 12639 tool_specified="$WC" 12640 tool_basename="${tool_specified##*/}" 12641 if test "x$tool_basename" = "x$tool_specified"; then 12642 # A command without a complete path is provided, search $PATH. 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12644 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12645 # Extract the first word of "$tool_basename", so it can be a program name with args. 12646 set dummy $tool_basename; ac_word=$2 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12648 $as_echo_n "checking for $ac_word... " >&6; } 12649 if ${ac_cv_path_WC+:} false; then : 12650 $as_echo_n "(cached) " >&6 12651 else 12652 case $WC in 12653 [\\/]* | ?:[\\/]*) 12654 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12655 ;; 12656 *) 12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12658 for as_dir in $PATH 12659 do 12660 IFS=$as_save_IFS 12661 test -z "$as_dir" && as_dir=. 12662 for ac_exec_ext in '' $ac_executable_extensions; do 12663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12664 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12666 break 2 12667 fi 12668 done 12669 done 12670 IFS=$as_save_IFS 12671 12672 ;; 12673 esac 12674 fi 12675 WC=$ac_cv_path_WC 12676 if test -n "$WC"; then 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12678 $as_echo "$WC" >&6; } 12679 else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681 $as_echo "no" >&6; } 12682 fi 12683 12684 12685 if test "x$WC" = x; then 12686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12687 fi 12688 else 12689 # Otherwise we believe it is a complete path. Use it as it is. 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12691 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12693 $as_echo_n "checking for WC... " >&6; } 12694 if test ! -x "$tool_specified"; then 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12696 $as_echo "not found" >&6; } 12697 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12698 fi 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12700 $as_echo "$tool_specified" >&6; } 12701 fi 12702 fi 12703 fi 12704 12705 fi 12706 12707 12708 12709 if test "x$WC" = x; then 12710 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12711 fi 12712 12713 12714 12715 12716 12717 # Publish this variable in the help. 12718 12719 12720 if [ -z "${WHICH+x}" ]; then 12721 # The variable is not set by user, try to locate tool using the code snippet 12722 for ac_prog in which 12723 do 12724 # Extract the first word of "$ac_prog", so it can be a program name with args. 12725 set dummy $ac_prog; ac_word=$2 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12727 $as_echo_n "checking for $ac_word... " >&6; } 12728 if ${ac_cv_path_WHICH+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730 else 12731 case $WHICH in 12732 [\\/]* | ?:[\\/]*) 12733 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12734 ;; 12735 *) 12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12737 for as_dir in $PATH 12738 do 12739 IFS=$as_save_IFS 12740 test -z "$as_dir" && as_dir=. 12741 for ac_exec_ext in '' $ac_executable_extensions; do 12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12743 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12745 break 2 12746 fi 12747 done 12748 done 12749 IFS=$as_save_IFS 12750 12751 ;; 12752 esac 12753 fi 12754 WHICH=$ac_cv_path_WHICH 12755 if test -n "$WHICH"; then 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12757 $as_echo "$WHICH" >&6; } 12758 else 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12760 $as_echo "no" >&6; } 12761 fi 12762 12763 12764 test -n "$WHICH" && break 12765 done 12766 12767 else 12768 # The variable is set, but is it from the command line or the environment? 12769 12770 # Try to remove the string !WHICH! from our list. 12771 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12772 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12773 # If it failed, the variable was not from the command line. Ignore it, 12774 # but warn the user (except for BASH, which is always set by the calling BASH). 12775 if test "xWHICH" != xBASH; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12777 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12778 fi 12779 # Try to locate tool using the code snippet 12780 for ac_prog in which 12781 do 12782 # Extract the first word of "$ac_prog", so it can be a program name with args. 12783 set dummy $ac_prog; ac_word=$2 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12785 $as_echo_n "checking for $ac_word... " >&6; } 12786 if ${ac_cv_path_WHICH+:} false; then : 12787 $as_echo_n "(cached) " >&6 12788 else 12789 case $WHICH in 12790 [\\/]* | ?:[\\/]*) 12791 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12792 ;; 12793 *) 12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12795 for as_dir in $PATH 12796 do 12797 IFS=$as_save_IFS 12798 test -z "$as_dir" && as_dir=. 12799 for ac_exec_ext in '' $ac_executable_extensions; do 12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12801 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12803 break 2 12804 fi 12805 done 12806 done 12807 IFS=$as_save_IFS 12808 12809 ;; 12810 esac 12811 fi 12812 WHICH=$ac_cv_path_WHICH 12813 if test -n "$WHICH"; then 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12815 $as_echo "$WHICH" >&6; } 12816 else 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12818 $as_echo "no" >&6; } 12819 fi 12820 12821 12822 test -n "$WHICH" && break 12823 done 12824 12825 else 12826 # If it succeeded, then it was overridden by the user. We will use it 12827 # for the tool. 12828 12829 # First remove it from the list of overridden variables, so we can test 12830 # for unknown variables in the end. 12831 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12832 12833 # Check if we try to supply an empty value 12834 if test "x$WHICH" = x; then 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12836 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12838 $as_echo_n "checking for WHICH... " >&6; } 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12840 $as_echo "disabled" >&6; } 12841 else 12842 # Check if the provided tool contains a complete path. 12843 tool_specified="$WHICH" 12844 tool_basename="${tool_specified##*/}" 12845 if test "x$tool_basename" = "x$tool_specified"; then 12846 # A command without a complete path is provided, search $PATH. 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12848 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12849 # Extract the first word of "$tool_basename", so it can be a program name with args. 12850 set dummy $tool_basename; ac_word=$2 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852 $as_echo_n "checking for $ac_word... " >&6; } 12853 if ${ac_cv_path_WHICH+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855 else 12856 case $WHICH in 12857 [\\/]* | ?:[\\/]*) 12858 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12859 ;; 12860 *) 12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12862 for as_dir in $PATH 12863 do 12864 IFS=$as_save_IFS 12865 test -z "$as_dir" && as_dir=. 12866 for ac_exec_ext in '' $ac_executable_extensions; do 12867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12868 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12870 break 2 12871 fi 12872 done 12873 done 12874 IFS=$as_save_IFS 12875 12876 ;; 12877 esac 12878 fi 12879 WHICH=$ac_cv_path_WHICH 12880 if test -n "$WHICH"; then 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12882 $as_echo "$WHICH" >&6; } 12883 else 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885 $as_echo "no" >&6; } 12886 fi 12887 12888 12889 if test "x$WHICH" = x; then 12890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12891 fi 12892 else 12893 # Otherwise we believe it is a complete path. Use it as it is. 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12895 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12897 $as_echo_n "checking for WHICH... " >&6; } 12898 if test ! -x "$tool_specified"; then 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12900 $as_echo "not found" >&6; } 12901 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12902 fi 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12904 $as_echo "$tool_specified" >&6; } 12905 fi 12906 fi 12907 fi 12908 12909 fi 12910 12911 12912 12913 if test "x$WHICH" = x; then 12914 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12915 fi 12916 12917 12918 12919 12920 12921 # Publish this variable in the help. 12922 12923 12924 if [ -z "${XARGS+x}" ]; then 12925 # The variable is not set by user, try to locate tool using the code snippet 12926 for ac_prog in xargs 12927 do 12928 # Extract the first word of "$ac_prog", so it can be a program name with args. 12929 set dummy $ac_prog; ac_word=$2 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12931 $as_echo_n "checking for $ac_word... " >&6; } 12932 if ${ac_cv_path_XARGS+:} false; then : 12933 $as_echo_n "(cached) " >&6 12934 else 12935 case $XARGS in 12936 [\\/]* | ?:[\\/]*) 12937 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12938 ;; 12939 *) 12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12941 for as_dir in $PATH 12942 do 12943 IFS=$as_save_IFS 12944 test -z "$as_dir" && as_dir=. 12945 for ac_exec_ext in '' $ac_executable_extensions; do 12946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12947 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12949 break 2 12950 fi 12951 done 12952 done 12953 IFS=$as_save_IFS 12954 12955 ;; 12956 esac 12957 fi 12958 XARGS=$ac_cv_path_XARGS 12959 if test -n "$XARGS"; then 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12961 $as_echo "$XARGS" >&6; } 12962 else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12964 $as_echo "no" >&6; } 12965 fi 12966 12967 12968 test -n "$XARGS" && break 12969 done 12970 12971 else 12972 # The variable is set, but is it from the command line or the environment? 12973 12974 # Try to remove the string !XARGS! from our list. 12975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12977 # If it failed, the variable was not from the command line. Ignore it, 12978 # but warn the user (except for BASH, which is always set by the calling BASH). 12979 if test "xXARGS" != xBASH; then 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12981 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12982 fi 12983 # Try to locate tool using the code snippet 12984 for ac_prog in xargs 12985 do 12986 # Extract the first word of "$ac_prog", so it can be a program name with args. 12987 set dummy $ac_prog; ac_word=$2 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12989 $as_echo_n "checking for $ac_word... " >&6; } 12990 if ${ac_cv_path_XARGS+:} false; then : 12991 $as_echo_n "(cached) " >&6 12992 else 12993 case $XARGS in 12994 [\\/]* | ?:[\\/]*) 12995 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12996 ;; 12997 *) 12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12999 for as_dir in $PATH 13000 do 13001 IFS=$as_save_IFS 13002 test -z "$as_dir" && as_dir=. 13003 for ac_exec_ext in '' $ac_executable_extensions; do 13004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13005 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13007 break 2 13008 fi 13009 done 13010 done 13011 IFS=$as_save_IFS 13012 13013 ;; 13014 esac 13015 fi 13016 XARGS=$ac_cv_path_XARGS 13017 if test -n "$XARGS"; then 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13019 $as_echo "$XARGS" >&6; } 13020 else 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13022 $as_echo "no" >&6; } 13023 fi 13024 13025 13026 test -n "$XARGS" && break 13027 done 13028 13029 else 13030 # If it succeeded, then it was overridden by the user. We will use it 13031 # for the tool. 13032 13033 # First remove it from the list of overridden variables, so we can test 13034 # for unknown variables in the end. 13035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13036 13037 # Check if we try to supply an empty value 13038 if test "x$XARGS" = x; then 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13040 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13042 $as_echo_n "checking for XARGS... " >&6; } 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13044 $as_echo "disabled" >&6; } 13045 else 13046 # Check if the provided tool contains a complete path. 13047 tool_specified="$XARGS" 13048 tool_basename="${tool_specified##*/}" 13049 if test "x$tool_basename" = "x$tool_specified"; then 13050 # A command without a complete path is provided, search $PATH. 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13052 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13053 # Extract the first word of "$tool_basename", so it can be a program name with args. 13054 set dummy $tool_basename; ac_word=$2 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13056 $as_echo_n "checking for $ac_word... " >&6; } 13057 if ${ac_cv_path_XARGS+:} false; then : 13058 $as_echo_n "(cached) " >&6 13059 else 13060 case $XARGS in 13061 [\\/]* | ?:[\\/]*) 13062 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13063 ;; 13064 *) 13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13066 for as_dir in $PATH 13067 do 13068 IFS=$as_save_IFS 13069 test -z "$as_dir" && as_dir=. 13070 for ac_exec_ext in '' $ac_executable_extensions; do 13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13072 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13074 break 2 13075 fi 13076 done 13077 done 13078 IFS=$as_save_IFS 13079 13080 ;; 13081 esac 13082 fi 13083 XARGS=$ac_cv_path_XARGS 13084 if test -n "$XARGS"; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13086 $as_echo "$XARGS" >&6; } 13087 else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13089 $as_echo "no" >&6; } 13090 fi 13091 13092 13093 if test "x$XARGS" = x; then 13094 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13095 fi 13096 else 13097 # Otherwise we believe it is a complete path. Use it as it is. 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13099 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13101 $as_echo_n "checking for XARGS... " >&6; } 13102 if test ! -x "$tool_specified"; then 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13104 $as_echo "not found" >&6; } 13105 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13106 fi 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13108 $as_echo "$tool_specified" >&6; } 13109 fi 13110 fi 13111 fi 13112 13113 fi 13114 13115 13116 13117 if test "x$XARGS" = x; then 13118 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13119 fi 13120 13121 13122 13123 # Then required tools that require some special treatment. 13124 13125 13126 # Publish this variable in the help. 13127 13128 13129 if [ -z "${AWK+x}" ]; then 13130 # The variable is not set by user, try to locate tool using the code snippet 13131 for ac_prog in gawk mawk nawk awk 13132 do 13133 # Extract the first word of "$ac_prog", so it can be a program name with args. 13134 set dummy $ac_prog; ac_word=$2 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13136 $as_echo_n "checking for $ac_word... " >&6; } 13137 if ${ac_cv_prog_AWK+:} false; then : 13138 $as_echo_n "(cached) " >&6 13139 else 13140 if test -n "$AWK"; then 13141 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13142 else 13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13144 for as_dir in $PATH 13145 do 13146 IFS=$as_save_IFS 13147 test -z "$as_dir" && as_dir=. 13148 for ac_exec_ext in '' $ac_executable_extensions; do 13149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13150 ac_cv_prog_AWK="$ac_prog" 13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13152 break 2 13153 fi 13154 done 13155 done 13156 IFS=$as_save_IFS 13157 13158 fi 13159 fi 13160 AWK=$ac_cv_prog_AWK 13161 if test -n "$AWK"; then 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13163 $as_echo "$AWK" >&6; } 13164 else 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13166 $as_echo "no" >&6; } 13167 fi 13168 13169 13170 test -n "$AWK" && break 13171 done 13172 13173 else 13174 # The variable is set, but is it from the command line or the environment? 13175 13176 # Try to remove the string !AWK! from our list. 13177 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13178 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13179 # If it failed, the variable was not from the command line. Ignore it, 13180 # but warn the user (except for BASH, which is always set by the calling BASH). 13181 if test "xAWK" != xBASH; then 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13183 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13184 fi 13185 # Try to locate tool using the code snippet 13186 for ac_prog in gawk mawk nawk awk 13187 do 13188 # Extract the first word of "$ac_prog", so it can be a program name with args. 13189 set dummy $ac_prog; ac_word=$2 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13191 $as_echo_n "checking for $ac_word... " >&6; } 13192 if ${ac_cv_prog_AWK+:} false; then : 13193 $as_echo_n "(cached) " >&6 13194 else 13195 if test -n "$AWK"; then 13196 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13197 else 13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13199 for as_dir in $PATH 13200 do 13201 IFS=$as_save_IFS 13202 test -z "$as_dir" && as_dir=. 13203 for ac_exec_ext in '' $ac_executable_extensions; do 13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13205 ac_cv_prog_AWK="$ac_prog" 13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13207 break 2 13208 fi 13209 done 13210 done 13211 IFS=$as_save_IFS 13212 13213 fi 13214 fi 13215 AWK=$ac_cv_prog_AWK 13216 if test -n "$AWK"; then 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13218 $as_echo "$AWK" >&6; } 13219 else 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13221 $as_echo "no" >&6; } 13222 fi 13223 13224 13225 test -n "$AWK" && break 13226 done 13227 13228 else 13229 # If it succeeded, then it was overridden by the user. We will use it 13230 # for the tool. 13231 13232 # First remove it from the list of overridden variables, so we can test 13233 # for unknown variables in the end. 13234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13235 13236 # Check if we try to supply an empty value 13237 if test "x$AWK" = x; then 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13239 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13241 $as_echo_n "checking for AWK... " >&6; } 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13243 $as_echo "disabled" >&6; } 13244 else 13245 # Check if the provided tool contains a complete path. 13246 tool_specified="$AWK" 13247 tool_basename="${tool_specified##*/}" 13248 if test "x$tool_basename" = "x$tool_specified"; then 13249 # A command without a complete path is provided, search $PATH. 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13251 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13252 # Extract the first word of "$tool_basename", so it can be a program name with args. 13253 set dummy $tool_basename; ac_word=$2 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13255 $as_echo_n "checking for $ac_word... " >&6; } 13256 if ${ac_cv_path_AWK+:} false; then : 13257 $as_echo_n "(cached) " >&6 13258 else 13259 case $AWK in 13260 [\\/]* | ?:[\\/]*) 13261 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13262 ;; 13263 *) 13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13265 for as_dir in $PATH 13266 do 13267 IFS=$as_save_IFS 13268 test -z "$as_dir" && as_dir=. 13269 for ac_exec_ext in '' $ac_executable_extensions; do 13270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13271 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13273 break 2 13274 fi 13275 done 13276 done 13277 IFS=$as_save_IFS 13278 13279 ;; 13280 esac 13281 fi 13282 AWK=$ac_cv_path_AWK 13283 if test -n "$AWK"; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13285 $as_echo "$AWK" >&6; } 13286 else 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13288 $as_echo "no" >&6; } 13289 fi 13290 13291 13292 if test "x$AWK" = x; then 13293 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13294 fi 13295 else 13296 # Otherwise we believe it is a complete path. Use it as it is. 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13298 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13300 $as_echo_n "checking for AWK... " >&6; } 13301 if test ! -x "$tool_specified"; then 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13303 $as_echo "not found" >&6; } 13304 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13305 fi 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13307 $as_echo "$tool_specified" >&6; } 13308 fi 13309 fi 13310 fi 13311 13312 fi 13313 13314 13315 if test "x$AWK" = x; then 13316 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13317 fi 13318 13319 13320 13321 13322 # Publish this variable in the help. 13323 13324 13325 if [ -z "${GREP+x}" ]; then 13326 # The variable is not set by user, try to locate tool using the code snippet 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13328 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13329 if ${ac_cv_path_GREP+:} false; then : 13330 $as_echo_n "(cached) " >&6 13331 else 13332 if test -z "$GREP"; then 13333 ac_path_GREP_found=false 13334 # Loop through the user's path and test for each of PROGNAME-LIST 13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13336 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13337 do 13338 IFS=$as_save_IFS 13339 test -z "$as_dir" && as_dir=. 13340 for ac_prog in grep ggrep; do 13341 for ac_exec_ext in '' $ac_executable_extensions; do 13342 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13343 as_fn_executable_p "$ac_path_GREP" || continue 13344 # Check for GNU ac_path_GREP and select it if it is found. 13345 # Check for GNU $ac_path_GREP 13346 case `"$ac_path_GREP" --version 2>&1` in 13347 *GNU*) 13348 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13349 *) 13350 ac_count=0 13351 $as_echo_n 0123456789 >"conftest.in" 13352 while : 13353 do 13354 cat "conftest.in" "conftest.in" >"conftest.tmp" 13355 mv "conftest.tmp" "conftest.in" 13356 cp "conftest.in" "conftest.nl" 13357 $as_echo 'GREP' >> "conftest.nl" 13358 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13360 as_fn_arith $ac_count + 1 && ac_count=$as_val 13361 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13362 # Best one so far, save it but keep looking for a better one 13363 ac_cv_path_GREP="$ac_path_GREP" 13364 ac_path_GREP_max=$ac_count 13365 fi 13366 # 10*(2^10) chars as input seems more than enough 13367 test $ac_count -gt 10 && break 13368 done 13369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13370 esac 13371 13372 $ac_path_GREP_found && break 3 13373 done 13374 done 13375 done 13376 IFS=$as_save_IFS 13377 if test -z "$ac_cv_path_GREP"; then 13378 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13379 fi 13380 else 13381 ac_cv_path_GREP=$GREP 13382 fi 13383 13384 fi 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13386 $as_echo "$ac_cv_path_GREP" >&6; } 13387 GREP="$ac_cv_path_GREP" 13388 13389 13390 else 13391 # The variable is set, but is it from the command line or the environment? 13392 13393 # Try to remove the string !GREP! from our list. 13394 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13395 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13396 # If it failed, the variable was not from the command line. Ignore it, 13397 # but warn the user (except for BASH, which is always set by the calling BASH). 13398 if test "xGREP" != xBASH; then 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13400 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13401 fi 13402 # Try to locate tool using the code snippet 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13405 if ${ac_cv_path_GREP+:} false; then : 13406 $as_echo_n "(cached) " >&6 13407 else 13408 if test -z "$GREP"; then 13409 ac_path_GREP_found=false 13410 # Loop through the user's path and test for each of PROGNAME-LIST 13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13413 do 13414 IFS=$as_save_IFS 13415 test -z "$as_dir" && as_dir=. 13416 for ac_prog in grep ggrep; do 13417 for ac_exec_ext in '' $ac_executable_extensions; do 13418 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13419 as_fn_executable_p "$ac_path_GREP" || continue 13420 # Check for GNU ac_path_GREP and select it if it is found. 13421 # Check for GNU $ac_path_GREP 13422 case `"$ac_path_GREP" --version 2>&1` in 13423 *GNU*) 13424 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13425 *) 13426 ac_count=0 13427 $as_echo_n 0123456789 >"conftest.in" 13428 while : 13429 do 13430 cat "conftest.in" "conftest.in" >"conftest.tmp" 13431 mv "conftest.tmp" "conftest.in" 13432 cp "conftest.in" "conftest.nl" 13433 $as_echo 'GREP' >> "conftest.nl" 13434 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13436 as_fn_arith $ac_count + 1 && ac_count=$as_val 13437 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13438 # Best one so far, save it but keep looking for a better one 13439 ac_cv_path_GREP="$ac_path_GREP" 13440 ac_path_GREP_max=$ac_count 13441 fi 13442 # 10*(2^10) chars as input seems more than enough 13443 test $ac_count -gt 10 && break 13444 done 13445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13446 esac 13447 13448 $ac_path_GREP_found && break 3 13449 done 13450 done 13451 done 13452 IFS=$as_save_IFS 13453 if test -z "$ac_cv_path_GREP"; then 13454 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13455 fi 13456 else 13457 ac_cv_path_GREP=$GREP 13458 fi 13459 13460 fi 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13462 $as_echo "$ac_cv_path_GREP" >&6; } 13463 GREP="$ac_cv_path_GREP" 13464 13465 13466 else 13467 # If it succeeded, then it was overridden by the user. We will use it 13468 # for the tool. 13469 13470 # First remove it from the list of overridden variables, so we can test 13471 # for unknown variables in the end. 13472 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13473 13474 # Check if we try to supply an empty value 13475 if test "x$GREP" = x; then 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13477 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13479 $as_echo_n "checking for GREP... " >&6; } 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13481 $as_echo "disabled" >&6; } 13482 else 13483 # Check if the provided tool contains a complete path. 13484 tool_specified="$GREP" 13485 tool_basename="${tool_specified##*/}" 13486 if test "x$tool_basename" = "x$tool_specified"; then 13487 # A command without a complete path is provided, search $PATH. 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13489 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13490 # Extract the first word of "$tool_basename", so it can be a program name with args. 13491 set dummy $tool_basename; ac_word=$2 13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13493 $as_echo_n "checking for $ac_word... " >&6; } 13494 if ${ac_cv_path_GREP+:} false; then : 13495 $as_echo_n "(cached) " >&6 13496 else 13497 case $GREP in 13498 [\\/]* | ?:[\\/]*) 13499 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13500 ;; 13501 *) 13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13503 for as_dir in $PATH 13504 do 13505 IFS=$as_save_IFS 13506 test -z "$as_dir" && as_dir=. 13507 for ac_exec_ext in '' $ac_executable_extensions; do 13508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13509 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13511 break 2 13512 fi 13513 done 13514 done 13515 IFS=$as_save_IFS 13516 13517 ;; 13518 esac 13519 fi 13520 GREP=$ac_cv_path_GREP 13521 if test -n "$GREP"; then 13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13523 $as_echo "$GREP" >&6; } 13524 else 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13526 $as_echo "no" >&6; } 13527 fi 13528 13529 13530 if test "x$GREP" = x; then 13531 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13532 fi 13533 else 13534 # Otherwise we believe it is a complete path. Use it as it is. 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13536 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13538 $as_echo_n "checking for GREP... " >&6; } 13539 if test ! -x "$tool_specified"; then 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13541 $as_echo "not found" >&6; } 13542 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13543 fi 13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13545 $as_echo "$tool_specified" >&6; } 13546 fi 13547 fi 13548 fi 13549 13550 fi 13551 13552 13553 if test "x$GREP" = x; then 13554 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13555 fi 13556 13557 13558 13559 13560 # Publish this variable in the help. 13561 13562 13563 if [ -z "${EGREP+x}" ]; then 13564 # The variable is not set by user, try to locate tool using the code snippet 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13566 $as_echo_n "checking for egrep... " >&6; } 13567 if ${ac_cv_path_EGREP+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569 else 13570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13571 then ac_cv_path_EGREP="$GREP -E" 13572 else 13573 if test -z "$EGREP"; then 13574 ac_path_EGREP_found=false 13575 # Loop through the user's path and test for each of PROGNAME-LIST 13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13578 do 13579 IFS=$as_save_IFS 13580 test -z "$as_dir" && as_dir=. 13581 for ac_prog in egrep; do 13582 for ac_exec_ext in '' $ac_executable_extensions; do 13583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13584 as_fn_executable_p "$ac_path_EGREP" || continue 13585 # Check for GNU ac_path_EGREP and select it if it is found. 13586 # Check for GNU $ac_path_EGREP 13587 case `"$ac_path_EGREP" --version 2>&1` in 13588 *GNU*) 13589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13590 *) 13591 ac_count=0 13592 $as_echo_n 0123456789 >"conftest.in" 13593 while : 13594 do 13595 cat "conftest.in" "conftest.in" >"conftest.tmp" 13596 mv "conftest.tmp" "conftest.in" 13597 cp "conftest.in" "conftest.nl" 13598 $as_echo 'EGREP' >> "conftest.nl" 13599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13601 as_fn_arith $ac_count + 1 && ac_count=$as_val 13602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13603 # Best one so far, save it but keep looking for a better one 13604 ac_cv_path_EGREP="$ac_path_EGREP" 13605 ac_path_EGREP_max=$ac_count 13606 fi 13607 # 10*(2^10) chars as input seems more than enough 13608 test $ac_count -gt 10 && break 13609 done 13610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13611 esac 13612 13613 $ac_path_EGREP_found && break 3 13614 done 13615 done 13616 done 13617 IFS=$as_save_IFS 13618 if test -z "$ac_cv_path_EGREP"; then 13619 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13620 fi 13621 else 13622 ac_cv_path_EGREP=$EGREP 13623 fi 13624 13625 fi 13626 fi 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13628 $as_echo "$ac_cv_path_EGREP" >&6; } 13629 EGREP="$ac_cv_path_EGREP" 13630 13631 13632 else 13633 # The variable is set, but is it from the command line or the environment? 13634 13635 # Try to remove the string !EGREP! from our list. 13636 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13637 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13638 # If it failed, the variable was not from the command line. Ignore it, 13639 # but warn the user (except for BASH, which is always set by the calling BASH). 13640 if test "xEGREP" != xBASH; then 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13642 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13643 fi 13644 # Try to locate tool using the code snippet 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13646 $as_echo_n "checking for egrep... " >&6; } 13647 if ${ac_cv_path_EGREP+:} false; then : 13648 $as_echo_n "(cached) " >&6 13649 else 13650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13651 then ac_cv_path_EGREP="$GREP -E" 13652 else 13653 if test -z "$EGREP"; then 13654 ac_path_EGREP_found=false 13655 # Loop through the user's path and test for each of PROGNAME-LIST 13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13658 do 13659 IFS=$as_save_IFS 13660 test -z "$as_dir" && as_dir=. 13661 for ac_prog in egrep; do 13662 for ac_exec_ext in '' $ac_executable_extensions; do 13663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13664 as_fn_executable_p "$ac_path_EGREP" || continue 13665 # Check for GNU ac_path_EGREP and select it if it is found. 13666 # Check for GNU $ac_path_EGREP 13667 case `"$ac_path_EGREP" --version 2>&1` in 13668 *GNU*) 13669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13670 *) 13671 ac_count=0 13672 $as_echo_n 0123456789 >"conftest.in" 13673 while : 13674 do 13675 cat "conftest.in" "conftest.in" >"conftest.tmp" 13676 mv "conftest.tmp" "conftest.in" 13677 cp "conftest.in" "conftest.nl" 13678 $as_echo 'EGREP' >> "conftest.nl" 13679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13681 as_fn_arith $ac_count + 1 && ac_count=$as_val 13682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13683 # Best one so far, save it but keep looking for a better one 13684 ac_cv_path_EGREP="$ac_path_EGREP" 13685 ac_path_EGREP_max=$ac_count 13686 fi 13687 # 10*(2^10) chars as input seems more than enough 13688 test $ac_count -gt 10 && break 13689 done 13690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13691 esac 13692 13693 $ac_path_EGREP_found && break 3 13694 done 13695 done 13696 done 13697 IFS=$as_save_IFS 13698 if test -z "$ac_cv_path_EGREP"; then 13699 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13700 fi 13701 else 13702 ac_cv_path_EGREP=$EGREP 13703 fi 13704 13705 fi 13706 fi 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13708 $as_echo "$ac_cv_path_EGREP" >&6; } 13709 EGREP="$ac_cv_path_EGREP" 13710 13711 13712 else 13713 # If it succeeded, then it was overridden by the user. We will use it 13714 # for the tool. 13715 13716 # First remove it from the list of overridden variables, so we can test 13717 # for unknown variables in the end. 13718 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13719 13720 # Check if we try to supply an empty value 13721 if test "x$EGREP" = x; then 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13723 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13725 $as_echo_n "checking for EGREP... " >&6; } 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13727 $as_echo "disabled" >&6; } 13728 else 13729 # Check if the provided tool contains a complete path. 13730 tool_specified="$EGREP" 13731 tool_basename="${tool_specified##*/}" 13732 if test "x$tool_basename" = "x$tool_specified"; then 13733 # A command without a complete path is provided, search $PATH. 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13735 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13736 # Extract the first word of "$tool_basename", so it can be a program name with args. 13737 set dummy $tool_basename; ac_word=$2 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13739 $as_echo_n "checking for $ac_word... " >&6; } 13740 if ${ac_cv_path_EGREP+:} false; then : 13741 $as_echo_n "(cached) " >&6 13742 else 13743 case $EGREP in 13744 [\\/]* | ?:[\\/]*) 13745 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13746 ;; 13747 *) 13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13749 for as_dir in $PATH 13750 do 13751 IFS=$as_save_IFS 13752 test -z "$as_dir" && as_dir=. 13753 for ac_exec_ext in '' $ac_executable_extensions; do 13754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13755 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13757 break 2 13758 fi 13759 done 13760 done 13761 IFS=$as_save_IFS 13762 13763 ;; 13764 esac 13765 fi 13766 EGREP=$ac_cv_path_EGREP 13767 if test -n "$EGREP"; then 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13769 $as_echo "$EGREP" >&6; } 13770 else 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13772 $as_echo "no" >&6; } 13773 fi 13774 13775 13776 if test "x$EGREP" = x; then 13777 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13778 fi 13779 else 13780 # Otherwise we believe it is a complete path. Use it as it is. 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13782 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13784 $as_echo_n "checking for EGREP... " >&6; } 13785 if test ! -x "$tool_specified"; then 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13787 $as_echo "not found" >&6; } 13788 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13789 fi 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13791 $as_echo "$tool_specified" >&6; } 13792 fi 13793 fi 13794 fi 13795 13796 fi 13797 13798 13799 if test "x$EGREP" = x; then 13800 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13801 fi 13802 13803 13804 13805 13806 # Publish this variable in the help. 13807 13808 13809 if [ -z "${FGREP+x}" ]; then 13810 # The variable is not set by user, try to locate tool using the code snippet 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13812 $as_echo_n "checking for fgrep... " >&6; } 13813 if ${ac_cv_path_FGREP+:} false; then : 13814 $as_echo_n "(cached) " >&6 13815 else 13816 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13817 then ac_cv_path_FGREP="$GREP -F" 13818 else 13819 if test -z "$FGREP"; then 13820 ac_path_FGREP_found=false 13821 # Loop through the user's path and test for each of PROGNAME-LIST 13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13824 do 13825 IFS=$as_save_IFS 13826 test -z "$as_dir" && as_dir=. 13827 for ac_prog in fgrep; do 13828 for ac_exec_ext in '' $ac_executable_extensions; do 13829 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13830 as_fn_executable_p "$ac_path_FGREP" || continue 13831 # Check for GNU ac_path_FGREP and select it if it is found. 13832 # Check for GNU $ac_path_FGREP 13833 case `"$ac_path_FGREP" --version 2>&1` in 13834 *GNU*) 13835 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13836 *) 13837 ac_count=0 13838 $as_echo_n 0123456789 >"conftest.in" 13839 while : 13840 do 13841 cat "conftest.in" "conftest.in" >"conftest.tmp" 13842 mv "conftest.tmp" "conftest.in" 13843 cp "conftest.in" "conftest.nl" 13844 $as_echo 'FGREP' >> "conftest.nl" 13845 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13847 as_fn_arith $ac_count + 1 && ac_count=$as_val 13848 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13849 # Best one so far, save it but keep looking for a better one 13850 ac_cv_path_FGREP="$ac_path_FGREP" 13851 ac_path_FGREP_max=$ac_count 13852 fi 13853 # 10*(2^10) chars as input seems more than enough 13854 test $ac_count -gt 10 && break 13855 done 13856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13857 esac 13858 13859 $ac_path_FGREP_found && break 3 13860 done 13861 done 13862 done 13863 IFS=$as_save_IFS 13864 if test -z "$ac_cv_path_FGREP"; then 13865 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13866 fi 13867 else 13868 ac_cv_path_FGREP=$FGREP 13869 fi 13870 13871 fi 13872 fi 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13874 $as_echo "$ac_cv_path_FGREP" >&6; } 13875 FGREP="$ac_cv_path_FGREP" 13876 13877 13878 else 13879 # The variable is set, but is it from the command line or the environment? 13880 13881 # Try to remove the string !FGREP! from our list. 13882 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13883 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13884 # If it failed, the variable was not from the command line. Ignore it, 13885 # but warn the user (except for BASH, which is always set by the calling BASH). 13886 if test "xFGREP" != xBASH; then 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13888 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13889 fi 13890 # Try to locate tool using the code snippet 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13892 $as_echo_n "checking for fgrep... " >&6; } 13893 if ${ac_cv_path_FGREP+:} false; then : 13894 $as_echo_n "(cached) " >&6 13895 else 13896 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13897 then ac_cv_path_FGREP="$GREP -F" 13898 else 13899 if test -z "$FGREP"; then 13900 ac_path_FGREP_found=false 13901 # Loop through the user's path and test for each of PROGNAME-LIST 13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13904 do 13905 IFS=$as_save_IFS 13906 test -z "$as_dir" && as_dir=. 13907 for ac_prog in fgrep; do 13908 for ac_exec_ext in '' $ac_executable_extensions; do 13909 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13910 as_fn_executable_p "$ac_path_FGREP" || continue 13911 # Check for GNU ac_path_FGREP and select it if it is found. 13912 # Check for GNU $ac_path_FGREP 13913 case `"$ac_path_FGREP" --version 2>&1` in 13914 *GNU*) 13915 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13916 *) 13917 ac_count=0 13918 $as_echo_n 0123456789 >"conftest.in" 13919 while : 13920 do 13921 cat "conftest.in" "conftest.in" >"conftest.tmp" 13922 mv "conftest.tmp" "conftest.in" 13923 cp "conftest.in" "conftest.nl" 13924 $as_echo 'FGREP' >> "conftest.nl" 13925 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13927 as_fn_arith $ac_count + 1 && ac_count=$as_val 13928 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13929 # Best one so far, save it but keep looking for a better one 13930 ac_cv_path_FGREP="$ac_path_FGREP" 13931 ac_path_FGREP_max=$ac_count 13932 fi 13933 # 10*(2^10) chars as input seems more than enough 13934 test $ac_count -gt 10 && break 13935 done 13936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13937 esac 13938 13939 $ac_path_FGREP_found && break 3 13940 done 13941 done 13942 done 13943 IFS=$as_save_IFS 13944 if test -z "$ac_cv_path_FGREP"; then 13945 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13946 fi 13947 else 13948 ac_cv_path_FGREP=$FGREP 13949 fi 13950 13951 fi 13952 fi 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13954 $as_echo "$ac_cv_path_FGREP" >&6; } 13955 FGREP="$ac_cv_path_FGREP" 13956 13957 13958 else 13959 # If it succeeded, then it was overridden by the user. We will use it 13960 # for the tool. 13961 13962 # First remove it from the list of overridden variables, so we can test 13963 # for unknown variables in the end. 13964 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13965 13966 # Check if we try to supply an empty value 13967 if test "x$FGREP" = x; then 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13969 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13971 $as_echo_n "checking for FGREP... " >&6; } 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13973 $as_echo "disabled" >&6; } 13974 else 13975 # Check if the provided tool contains a complete path. 13976 tool_specified="$FGREP" 13977 tool_basename="${tool_specified##*/}" 13978 if test "x$tool_basename" = "x$tool_specified"; then 13979 # A command without a complete path is provided, search $PATH. 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13981 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13982 # Extract the first word of "$tool_basename", so it can be a program name with args. 13983 set dummy $tool_basename; ac_word=$2 13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13985 $as_echo_n "checking for $ac_word... " >&6; } 13986 if ${ac_cv_path_FGREP+:} false; then : 13987 $as_echo_n "(cached) " >&6 13988 else 13989 case $FGREP in 13990 [\\/]* | ?:[\\/]*) 13991 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13992 ;; 13993 *) 13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13995 for as_dir in $PATH 13996 do 13997 IFS=$as_save_IFS 13998 test -z "$as_dir" && as_dir=. 13999 for ac_exec_ext in '' $ac_executable_extensions; do 14000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14001 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14003 break 2 14004 fi 14005 done 14006 done 14007 IFS=$as_save_IFS 14008 14009 ;; 14010 esac 14011 fi 14012 FGREP=$ac_cv_path_FGREP 14013 if test -n "$FGREP"; then 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14015 $as_echo "$FGREP" >&6; } 14016 else 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14018 $as_echo "no" >&6; } 14019 fi 14020 14021 14022 if test "x$FGREP" = x; then 14023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14024 fi 14025 else 14026 # Otherwise we believe it is a complete path. Use it as it is. 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14028 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14030 $as_echo_n "checking for FGREP... " >&6; } 14031 if test ! -x "$tool_specified"; then 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14033 $as_echo "not found" >&6; } 14034 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14035 fi 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14037 $as_echo "$tool_specified" >&6; } 14038 fi 14039 fi 14040 fi 14041 14042 fi 14043 14044 14045 if test "x$FGREP" = x; then 14046 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14047 fi 14048 14049 14050 14051 14052 # Publish this variable in the help. 14053 14054 14055 if [ -z "${SED+x}" ]; then 14056 # The variable is not set by user, try to locate tool using the code snippet 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14058 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14059 if ${ac_cv_path_SED+:} false; then : 14060 $as_echo_n "(cached) " >&6 14061 else 14062 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14063 for ac_i in 1 2 3 4 5 6 7; do 14064 ac_script="$ac_script$as_nl$ac_script" 14065 done 14066 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14067 { ac_script=; unset ac_script;} 14068 if test -z "$SED"; then 14069 ac_path_SED_found=false 14070 # Loop through the user's path and test for each of PROGNAME-LIST 14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14072 for as_dir in $PATH 14073 do 14074 IFS=$as_save_IFS 14075 test -z "$as_dir" && as_dir=. 14076 for ac_prog in sed gsed; do 14077 for ac_exec_ext in '' $ac_executable_extensions; do 14078 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14079 as_fn_executable_p "$ac_path_SED" || continue 14080 # Check for GNU ac_path_SED and select it if it is found. 14081 # Check for GNU $ac_path_SED 14082 case `"$ac_path_SED" --version 2>&1` in 14083 *GNU*) 14084 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14085 *) 14086 ac_count=0 14087 $as_echo_n 0123456789 >"conftest.in" 14088 while : 14089 do 14090 cat "conftest.in" "conftest.in" >"conftest.tmp" 14091 mv "conftest.tmp" "conftest.in" 14092 cp "conftest.in" "conftest.nl" 14093 $as_echo '' >> "conftest.nl" 14094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14096 as_fn_arith $ac_count + 1 && ac_count=$as_val 14097 if test $ac_count -gt ${ac_path_SED_max-0}; then 14098 # Best one so far, save it but keep looking for a better one 14099 ac_cv_path_SED="$ac_path_SED" 14100 ac_path_SED_max=$ac_count 14101 fi 14102 # 10*(2^10) chars as input seems more than enough 14103 test $ac_count -gt 10 && break 14104 done 14105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14106 esac 14107 14108 $ac_path_SED_found && break 3 14109 done 14110 done 14111 done 14112 IFS=$as_save_IFS 14113 if test -z "$ac_cv_path_SED"; then 14114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14115 fi 14116 else 14117 ac_cv_path_SED=$SED 14118 fi 14119 14120 fi 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14122 $as_echo "$ac_cv_path_SED" >&6; } 14123 SED="$ac_cv_path_SED" 14124 rm -f conftest.sed 14125 14126 else 14127 # The variable is set, but is it from the command line or the environment? 14128 14129 # Try to remove the string !SED! from our list. 14130 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14131 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14132 # If it failed, the variable was not from the command line. Ignore it, 14133 # but warn the user (except for BASH, which is always set by the calling BASH). 14134 if test "xSED" != xBASH; then 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14136 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14137 fi 14138 # Try to locate tool using the code snippet 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14140 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14141 if ${ac_cv_path_SED+:} false; then : 14142 $as_echo_n "(cached) " >&6 14143 else 14144 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14145 for ac_i in 1 2 3 4 5 6 7; do 14146 ac_script="$ac_script$as_nl$ac_script" 14147 done 14148 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14149 { ac_script=; unset ac_script;} 14150 if test -z "$SED"; then 14151 ac_path_SED_found=false 14152 # Loop through the user's path and test for each of PROGNAME-LIST 14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14154 for as_dir in $PATH 14155 do 14156 IFS=$as_save_IFS 14157 test -z "$as_dir" && as_dir=. 14158 for ac_prog in sed gsed; do 14159 for ac_exec_ext in '' $ac_executable_extensions; do 14160 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14161 as_fn_executable_p "$ac_path_SED" || continue 14162 # Check for GNU ac_path_SED and select it if it is found. 14163 # Check for GNU $ac_path_SED 14164 case `"$ac_path_SED" --version 2>&1` in 14165 *GNU*) 14166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14167 *) 14168 ac_count=0 14169 $as_echo_n 0123456789 >"conftest.in" 14170 while : 14171 do 14172 cat "conftest.in" "conftest.in" >"conftest.tmp" 14173 mv "conftest.tmp" "conftest.in" 14174 cp "conftest.in" "conftest.nl" 14175 $as_echo '' >> "conftest.nl" 14176 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14178 as_fn_arith $ac_count + 1 && ac_count=$as_val 14179 if test $ac_count -gt ${ac_path_SED_max-0}; then 14180 # Best one so far, save it but keep looking for a better one 14181 ac_cv_path_SED="$ac_path_SED" 14182 ac_path_SED_max=$ac_count 14183 fi 14184 # 10*(2^10) chars as input seems more than enough 14185 test $ac_count -gt 10 && break 14186 done 14187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14188 esac 14189 14190 $ac_path_SED_found && break 3 14191 done 14192 done 14193 done 14194 IFS=$as_save_IFS 14195 if test -z "$ac_cv_path_SED"; then 14196 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14197 fi 14198 else 14199 ac_cv_path_SED=$SED 14200 fi 14201 14202 fi 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14204 $as_echo "$ac_cv_path_SED" >&6; } 14205 SED="$ac_cv_path_SED" 14206 rm -f conftest.sed 14207 14208 else 14209 # If it succeeded, then it was overridden by the user. We will use it 14210 # for the tool. 14211 14212 # First remove it from the list of overridden variables, so we can test 14213 # for unknown variables in the end. 14214 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14215 14216 # Check if we try to supply an empty value 14217 if test "x$SED" = x; then 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14219 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14221 $as_echo_n "checking for SED... " >&6; } 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14223 $as_echo "disabled" >&6; } 14224 else 14225 # Check if the provided tool contains a complete path. 14226 tool_specified="$SED" 14227 tool_basename="${tool_specified##*/}" 14228 if test "x$tool_basename" = "x$tool_specified"; then 14229 # A command without a complete path is provided, search $PATH. 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14231 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14232 # Extract the first word of "$tool_basename", so it can be a program name with args. 14233 set dummy $tool_basename; ac_word=$2 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14235 $as_echo_n "checking for $ac_word... " >&6; } 14236 if ${ac_cv_path_SED+:} false; then : 14237 $as_echo_n "(cached) " >&6 14238 else 14239 case $SED in 14240 [\\/]* | ?:[\\/]*) 14241 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14242 ;; 14243 *) 14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14245 for as_dir in $PATH 14246 do 14247 IFS=$as_save_IFS 14248 test -z "$as_dir" && as_dir=. 14249 for ac_exec_ext in '' $ac_executable_extensions; do 14250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14251 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14253 break 2 14254 fi 14255 done 14256 done 14257 IFS=$as_save_IFS 14258 14259 ;; 14260 esac 14261 fi 14262 SED=$ac_cv_path_SED 14263 if test -n "$SED"; then 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14265 $as_echo "$SED" >&6; } 14266 else 14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14268 $as_echo "no" >&6; } 14269 fi 14270 14271 14272 if test "x$SED" = x; then 14273 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14274 fi 14275 else 14276 # Otherwise we believe it is a complete path. Use it as it is. 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14278 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14280 $as_echo_n "checking for SED... " >&6; } 14281 if test ! -x "$tool_specified"; then 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14283 $as_echo "not found" >&6; } 14284 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14285 fi 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14287 $as_echo "$tool_specified" >&6; } 14288 fi 14289 fi 14290 fi 14291 14292 fi 14293 14294 14295 if test "x$SED" = x; then 14296 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14297 fi 14298 14299 14300 14301 # Always force rm. 14302 RM="$RM -f" 14303 14304 # pwd behaves differently on various platforms and some don't support the -L flag. 14305 # Always use the bash builtin pwd to get uniform behavior. 14306 THEPWDCMD=pwd 14307 14308 # These are not required on all platforms 14309 14310 14311 # Publish this variable in the help. 14312 14313 14314 if [ -z "${CYGPATH+x}" ]; then 14315 # The variable is not set by user, try to locate tool using the code snippet 14316 for ac_prog in cygpath 14317 do 14318 # Extract the first word of "$ac_prog", so it can be a program name with args. 14319 set dummy $ac_prog; ac_word=$2 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14321 $as_echo_n "checking for $ac_word... " >&6; } 14322 if ${ac_cv_path_CYGPATH+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324 else 14325 case $CYGPATH in 14326 [\\/]* | ?:[\\/]*) 14327 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14328 ;; 14329 *) 14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14331 for as_dir in $PATH 14332 do 14333 IFS=$as_save_IFS 14334 test -z "$as_dir" && as_dir=. 14335 for ac_exec_ext in '' $ac_executable_extensions; do 14336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14337 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14339 break 2 14340 fi 14341 done 14342 done 14343 IFS=$as_save_IFS 14344 14345 ;; 14346 esac 14347 fi 14348 CYGPATH=$ac_cv_path_CYGPATH 14349 if test -n "$CYGPATH"; then 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14351 $as_echo "$CYGPATH" >&6; } 14352 else 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14354 $as_echo "no" >&6; } 14355 fi 14356 14357 14358 test -n "$CYGPATH" && break 14359 done 14360 14361 else 14362 # The variable is set, but is it from the command line or the environment? 14363 14364 # Try to remove the string !CYGPATH! from our list. 14365 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14366 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14367 # If it failed, the variable was not from the command line. Ignore it, 14368 # but warn the user (except for BASH, which is always set by the calling BASH). 14369 if test "xCYGPATH" != xBASH; then 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14371 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14372 fi 14373 # Try to locate tool using the code snippet 14374 for ac_prog in cygpath 14375 do 14376 # Extract the first word of "$ac_prog", so it can be a program name with args. 14377 set dummy $ac_prog; ac_word=$2 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14379 $as_echo_n "checking for $ac_word... " >&6; } 14380 if ${ac_cv_path_CYGPATH+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382 else 14383 case $CYGPATH in 14384 [\\/]* | ?:[\\/]*) 14385 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14386 ;; 14387 *) 14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14389 for as_dir in $PATH 14390 do 14391 IFS=$as_save_IFS 14392 test -z "$as_dir" && as_dir=. 14393 for ac_exec_ext in '' $ac_executable_extensions; do 14394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14395 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14397 break 2 14398 fi 14399 done 14400 done 14401 IFS=$as_save_IFS 14402 14403 ;; 14404 esac 14405 fi 14406 CYGPATH=$ac_cv_path_CYGPATH 14407 if test -n "$CYGPATH"; then 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14409 $as_echo "$CYGPATH" >&6; } 14410 else 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14412 $as_echo "no" >&6; } 14413 fi 14414 14415 14416 test -n "$CYGPATH" && break 14417 done 14418 14419 else 14420 # If it succeeded, then it was overridden by the user. We will use it 14421 # for the tool. 14422 14423 # First remove it from the list of overridden variables, so we can test 14424 # for unknown variables in the end. 14425 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14426 14427 # Check if we try to supply an empty value 14428 if test "x$CYGPATH" = x; then 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14430 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14432 $as_echo_n "checking for CYGPATH... " >&6; } 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14434 $as_echo "disabled" >&6; } 14435 else 14436 # Check if the provided tool contains a complete path. 14437 tool_specified="$CYGPATH" 14438 tool_basename="${tool_specified##*/}" 14439 if test "x$tool_basename" = "x$tool_specified"; then 14440 # A command without a complete path is provided, search $PATH. 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14442 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14443 # Extract the first word of "$tool_basename", so it can be a program name with args. 14444 set dummy $tool_basename; ac_word=$2 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14446 $as_echo_n "checking for $ac_word... " >&6; } 14447 if ${ac_cv_path_CYGPATH+:} false; then : 14448 $as_echo_n "(cached) " >&6 14449 else 14450 case $CYGPATH in 14451 [\\/]* | ?:[\\/]*) 14452 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14453 ;; 14454 *) 14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14456 for as_dir in $PATH 14457 do 14458 IFS=$as_save_IFS 14459 test -z "$as_dir" && as_dir=. 14460 for ac_exec_ext in '' $ac_executable_extensions; do 14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14462 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14464 break 2 14465 fi 14466 done 14467 done 14468 IFS=$as_save_IFS 14469 14470 ;; 14471 esac 14472 fi 14473 CYGPATH=$ac_cv_path_CYGPATH 14474 if test -n "$CYGPATH"; then 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14476 $as_echo "$CYGPATH" >&6; } 14477 else 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14479 $as_echo "no" >&6; } 14480 fi 14481 14482 14483 if test "x$CYGPATH" = x; then 14484 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14485 fi 14486 else 14487 # Otherwise we believe it is a complete path. Use it as it is. 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14489 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14491 $as_echo_n "checking for CYGPATH... " >&6; } 14492 if test ! -x "$tool_specified"; then 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14494 $as_echo "not found" >&6; } 14495 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14496 fi 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14498 $as_echo "$tool_specified" >&6; } 14499 fi 14500 fi 14501 fi 14502 14503 fi 14504 14505 14506 14507 14508 # Publish this variable in the help. 14509 14510 14511 if [ -z "${READLINK+x}" ]; then 14512 # The variable is not set by user, try to locate tool using the code snippet 14513 for ac_prog in greadlink readlink 14514 do 14515 # Extract the first word of "$ac_prog", so it can be a program name with args. 14516 set dummy $ac_prog; ac_word=$2 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14518 $as_echo_n "checking for $ac_word... " >&6; } 14519 if ${ac_cv_path_READLINK+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521 else 14522 case $READLINK in 14523 [\\/]* | ?:[\\/]*) 14524 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14525 ;; 14526 *) 14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14528 for as_dir in $PATH 14529 do 14530 IFS=$as_save_IFS 14531 test -z "$as_dir" && as_dir=. 14532 for ac_exec_ext in '' $ac_executable_extensions; do 14533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14534 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14536 break 2 14537 fi 14538 done 14539 done 14540 IFS=$as_save_IFS 14541 14542 ;; 14543 esac 14544 fi 14545 READLINK=$ac_cv_path_READLINK 14546 if test -n "$READLINK"; then 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14548 $as_echo "$READLINK" >&6; } 14549 else 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14551 $as_echo "no" >&6; } 14552 fi 14553 14554 14555 test -n "$READLINK" && break 14556 done 14557 14558 else 14559 # The variable is set, but is it from the command line or the environment? 14560 14561 # Try to remove the string !READLINK! from our list. 14562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14564 # If it failed, the variable was not from the command line. Ignore it, 14565 # but warn the user (except for BASH, which is always set by the calling BASH). 14566 if test "xREADLINK" != xBASH; then 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14568 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14569 fi 14570 # Try to locate tool using the code snippet 14571 for ac_prog in greadlink readlink 14572 do 14573 # Extract the first word of "$ac_prog", so it can be a program name with args. 14574 set dummy $ac_prog; ac_word=$2 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14576 $as_echo_n "checking for $ac_word... " >&6; } 14577 if ${ac_cv_path_READLINK+:} false; then : 14578 $as_echo_n "(cached) " >&6 14579 else 14580 case $READLINK in 14581 [\\/]* | ?:[\\/]*) 14582 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14583 ;; 14584 *) 14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14586 for as_dir in $PATH 14587 do 14588 IFS=$as_save_IFS 14589 test -z "$as_dir" && as_dir=. 14590 for ac_exec_ext in '' $ac_executable_extensions; do 14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14592 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14594 break 2 14595 fi 14596 done 14597 done 14598 IFS=$as_save_IFS 14599 14600 ;; 14601 esac 14602 fi 14603 READLINK=$ac_cv_path_READLINK 14604 if test -n "$READLINK"; then 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14606 $as_echo "$READLINK" >&6; } 14607 else 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14609 $as_echo "no" >&6; } 14610 fi 14611 14612 14613 test -n "$READLINK" && break 14614 done 14615 14616 else 14617 # If it succeeded, then it was overridden by the user. We will use it 14618 # for the tool. 14619 14620 # First remove it from the list of overridden variables, so we can test 14621 # for unknown variables in the end. 14622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14623 14624 # Check if we try to supply an empty value 14625 if test "x$READLINK" = x; then 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14627 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14629 $as_echo_n "checking for READLINK... " >&6; } 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14631 $as_echo "disabled" >&6; } 14632 else 14633 # Check if the provided tool contains a complete path. 14634 tool_specified="$READLINK" 14635 tool_basename="${tool_specified##*/}" 14636 if test "x$tool_basename" = "x$tool_specified"; then 14637 # A command without a complete path is provided, search $PATH. 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14639 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14640 # Extract the first word of "$tool_basename", so it can be a program name with args. 14641 set dummy $tool_basename; ac_word=$2 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14643 $as_echo_n "checking for $ac_word... " >&6; } 14644 if ${ac_cv_path_READLINK+:} false; then : 14645 $as_echo_n "(cached) " >&6 14646 else 14647 case $READLINK in 14648 [\\/]* | ?:[\\/]*) 14649 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14650 ;; 14651 *) 14652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14653 for as_dir in $PATH 14654 do 14655 IFS=$as_save_IFS 14656 test -z "$as_dir" && as_dir=. 14657 for ac_exec_ext in '' $ac_executable_extensions; do 14658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14659 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14661 break 2 14662 fi 14663 done 14664 done 14665 IFS=$as_save_IFS 14666 14667 ;; 14668 esac 14669 fi 14670 READLINK=$ac_cv_path_READLINK 14671 if test -n "$READLINK"; then 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14673 $as_echo "$READLINK" >&6; } 14674 else 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14676 $as_echo "no" >&6; } 14677 fi 14678 14679 14680 if test "x$READLINK" = x; then 14681 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14682 fi 14683 else 14684 # Otherwise we believe it is a complete path. Use it as it is. 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14686 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14688 $as_echo_n "checking for READLINK... " >&6; } 14689 if test ! -x "$tool_specified"; then 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14691 $as_echo "not found" >&6; } 14692 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14693 fi 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14695 $as_echo "$tool_specified" >&6; } 14696 fi 14697 fi 14698 fi 14699 14700 fi 14701 14702 14703 14704 14705 # Publish this variable in the help. 14706 14707 14708 if [ -z "${DF+x}" ]; then 14709 # The variable is not set by user, try to locate tool using the code snippet 14710 for ac_prog in df 14711 do 14712 # Extract the first word of "$ac_prog", so it can be a program name with args. 14713 set dummy $ac_prog; ac_word=$2 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14715 $as_echo_n "checking for $ac_word... " >&6; } 14716 if ${ac_cv_path_DF+:} false; then : 14717 $as_echo_n "(cached) " >&6 14718 else 14719 case $DF in 14720 [\\/]* | ?:[\\/]*) 14721 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14722 ;; 14723 *) 14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14725 for as_dir in $PATH 14726 do 14727 IFS=$as_save_IFS 14728 test -z "$as_dir" && as_dir=. 14729 for ac_exec_ext in '' $ac_executable_extensions; do 14730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14731 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14733 break 2 14734 fi 14735 done 14736 done 14737 IFS=$as_save_IFS 14738 14739 ;; 14740 esac 14741 fi 14742 DF=$ac_cv_path_DF 14743 if test -n "$DF"; then 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14745 $as_echo "$DF" >&6; } 14746 else 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14748 $as_echo "no" >&6; } 14749 fi 14750 14751 14752 test -n "$DF" && break 14753 done 14754 14755 else 14756 # The variable is set, but is it from the command line or the environment? 14757 14758 # Try to remove the string !DF! from our list. 14759 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14760 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14761 # If it failed, the variable was not from the command line. Ignore it, 14762 # but warn the user (except for BASH, which is always set by the calling BASH). 14763 if test "xDF" != xBASH; then 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14765 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14766 fi 14767 # Try to locate tool using the code snippet 14768 for ac_prog in df 14769 do 14770 # Extract the first word of "$ac_prog", so it can be a program name with args. 14771 set dummy $ac_prog; ac_word=$2 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14773 $as_echo_n "checking for $ac_word... " >&6; } 14774 if ${ac_cv_path_DF+:} false; then : 14775 $as_echo_n "(cached) " >&6 14776 else 14777 case $DF in 14778 [\\/]* | ?:[\\/]*) 14779 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14780 ;; 14781 *) 14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14783 for as_dir in $PATH 14784 do 14785 IFS=$as_save_IFS 14786 test -z "$as_dir" && as_dir=. 14787 for ac_exec_ext in '' $ac_executable_extensions; do 14788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14789 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14791 break 2 14792 fi 14793 done 14794 done 14795 IFS=$as_save_IFS 14796 14797 ;; 14798 esac 14799 fi 14800 DF=$ac_cv_path_DF 14801 if test -n "$DF"; then 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14803 $as_echo "$DF" >&6; } 14804 else 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14806 $as_echo "no" >&6; } 14807 fi 14808 14809 14810 test -n "$DF" && break 14811 done 14812 14813 else 14814 # If it succeeded, then it was overridden by the user. We will use it 14815 # for the tool. 14816 14817 # First remove it from the list of overridden variables, so we can test 14818 # for unknown variables in the end. 14819 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14820 14821 # Check if we try to supply an empty value 14822 if test "x$DF" = x; then 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14824 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14826 $as_echo_n "checking for DF... " >&6; } 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14828 $as_echo "disabled" >&6; } 14829 else 14830 # Check if the provided tool contains a complete path. 14831 tool_specified="$DF" 14832 tool_basename="${tool_specified##*/}" 14833 if test "x$tool_basename" = "x$tool_specified"; then 14834 # A command without a complete path is provided, search $PATH. 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14836 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14837 # Extract the first word of "$tool_basename", so it can be a program name with args. 14838 set dummy $tool_basename; ac_word=$2 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14840 $as_echo_n "checking for $ac_word... " >&6; } 14841 if ${ac_cv_path_DF+:} false; then : 14842 $as_echo_n "(cached) " >&6 14843 else 14844 case $DF in 14845 [\\/]* | ?:[\\/]*) 14846 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14847 ;; 14848 *) 14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14850 for as_dir in $PATH 14851 do 14852 IFS=$as_save_IFS 14853 test -z "$as_dir" && as_dir=. 14854 for ac_exec_ext in '' $ac_executable_extensions; do 14855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14856 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14858 break 2 14859 fi 14860 done 14861 done 14862 IFS=$as_save_IFS 14863 14864 ;; 14865 esac 14866 fi 14867 DF=$ac_cv_path_DF 14868 if test -n "$DF"; then 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14870 $as_echo "$DF" >&6; } 14871 else 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14873 $as_echo "no" >&6; } 14874 fi 14875 14876 14877 if test "x$DF" = x; then 14878 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14879 fi 14880 else 14881 # Otherwise we believe it is a complete path. Use it as it is. 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14883 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14885 $as_echo_n "checking for DF... " >&6; } 14886 if test ! -x "$tool_specified"; then 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14888 $as_echo "not found" >&6; } 14889 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14890 fi 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14892 $as_echo "$tool_specified" >&6; } 14893 fi 14894 fi 14895 fi 14896 14897 fi 14898 14899 14900 14901 14902 # Publish this variable in the help. 14903 14904 14905 if [ -z "${CPIO+x}" ]; then 14906 # The variable is not set by user, try to locate tool using the code snippet 14907 for ac_prog in cpio bsdcpio 14908 do 14909 # Extract the first word of "$ac_prog", so it can be a program name with args. 14910 set dummy $ac_prog; ac_word=$2 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14912 $as_echo_n "checking for $ac_word... " >&6; } 14913 if ${ac_cv_path_CPIO+:} false; then : 14914 $as_echo_n "(cached) " >&6 14915 else 14916 case $CPIO in 14917 [\\/]* | ?:[\\/]*) 14918 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14919 ;; 14920 *) 14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14922 for as_dir in $PATH 14923 do 14924 IFS=$as_save_IFS 14925 test -z "$as_dir" && as_dir=. 14926 for ac_exec_ext in '' $ac_executable_extensions; do 14927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14928 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14930 break 2 14931 fi 14932 done 14933 done 14934 IFS=$as_save_IFS 14935 14936 ;; 14937 esac 14938 fi 14939 CPIO=$ac_cv_path_CPIO 14940 if test -n "$CPIO"; then 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14942 $as_echo "$CPIO" >&6; } 14943 else 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14945 $as_echo "no" >&6; } 14946 fi 14947 14948 14949 test -n "$CPIO" && break 14950 done 14951 14952 else 14953 # The variable is set, but is it from the command line or the environment? 14954 14955 # Try to remove the string !CPIO! from our list. 14956 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14957 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14958 # If it failed, the variable was not from the command line. Ignore it, 14959 # but warn the user (except for BASH, which is always set by the calling BASH). 14960 if test "xCPIO" != xBASH; then 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14962 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14963 fi 14964 # Try to locate tool using the code snippet 14965 for ac_prog in cpio bsdcpio 14966 do 14967 # Extract the first word of "$ac_prog", so it can be a program name with args. 14968 set dummy $ac_prog; ac_word=$2 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14970 $as_echo_n "checking for $ac_word... " >&6; } 14971 if ${ac_cv_path_CPIO+:} false; then : 14972 $as_echo_n "(cached) " >&6 14973 else 14974 case $CPIO in 14975 [\\/]* | ?:[\\/]*) 14976 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14977 ;; 14978 *) 14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14980 for as_dir in $PATH 14981 do 14982 IFS=$as_save_IFS 14983 test -z "$as_dir" && as_dir=. 14984 for ac_exec_ext in '' $ac_executable_extensions; do 14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14986 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14988 break 2 14989 fi 14990 done 14991 done 14992 IFS=$as_save_IFS 14993 14994 ;; 14995 esac 14996 fi 14997 CPIO=$ac_cv_path_CPIO 14998 if test -n "$CPIO"; then 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15000 $as_echo "$CPIO" >&6; } 15001 else 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15003 $as_echo "no" >&6; } 15004 fi 15005 15006 15007 test -n "$CPIO" && break 15008 done 15009 15010 else 15011 # If it succeeded, then it was overridden by the user. We will use it 15012 # for the tool. 15013 15014 # First remove it from the list of overridden variables, so we can test 15015 # for unknown variables in the end. 15016 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15017 15018 # Check if we try to supply an empty value 15019 if test "x$CPIO" = x; then 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15021 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15023 $as_echo_n "checking for CPIO... " >&6; } 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15025 $as_echo "disabled" >&6; } 15026 else 15027 # Check if the provided tool contains a complete path. 15028 tool_specified="$CPIO" 15029 tool_basename="${tool_specified##*/}" 15030 if test "x$tool_basename" = "x$tool_specified"; then 15031 # A command without a complete path is provided, search $PATH. 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15033 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15034 # Extract the first word of "$tool_basename", so it can be a program name with args. 15035 set dummy $tool_basename; ac_word=$2 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15037 $as_echo_n "checking for $ac_word... " >&6; } 15038 if ${ac_cv_path_CPIO+:} false; then : 15039 $as_echo_n "(cached) " >&6 15040 else 15041 case $CPIO in 15042 [\\/]* | ?:[\\/]*) 15043 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15044 ;; 15045 *) 15046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15047 for as_dir in $PATH 15048 do 15049 IFS=$as_save_IFS 15050 test -z "$as_dir" && as_dir=. 15051 for ac_exec_ext in '' $ac_executable_extensions; do 15052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15053 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15055 break 2 15056 fi 15057 done 15058 done 15059 IFS=$as_save_IFS 15060 15061 ;; 15062 esac 15063 fi 15064 CPIO=$ac_cv_path_CPIO 15065 if test -n "$CPIO"; then 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15067 $as_echo "$CPIO" >&6; } 15068 else 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15070 $as_echo "no" >&6; } 15071 fi 15072 15073 15074 if test "x$CPIO" = x; then 15075 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15076 fi 15077 else 15078 # Otherwise we believe it is a complete path. Use it as it is. 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15080 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15082 $as_echo_n "checking for CPIO... " >&6; } 15083 if test ! -x "$tool_specified"; then 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15085 $as_echo "not found" >&6; } 15086 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15087 fi 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15089 $as_echo "$tool_specified" >&6; } 15090 fi 15091 fi 15092 fi 15093 15094 fi 15095 15096 15097 15098 15099 # Publish this variable in the help. 15100 15101 15102 if [ -z "${NICE+x}" ]; then 15103 # The variable is not set by user, try to locate tool using the code snippet 15104 for ac_prog in nice 15105 do 15106 # Extract the first word of "$ac_prog", so it can be a program name with args. 15107 set dummy $ac_prog; ac_word=$2 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15109 $as_echo_n "checking for $ac_word... " >&6; } 15110 if ${ac_cv_path_NICE+:} false; then : 15111 $as_echo_n "(cached) " >&6 15112 else 15113 case $NICE in 15114 [\\/]* | ?:[\\/]*) 15115 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15116 ;; 15117 *) 15118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15119 for as_dir in $PATH 15120 do 15121 IFS=$as_save_IFS 15122 test -z "$as_dir" && as_dir=. 15123 for ac_exec_ext in '' $ac_executable_extensions; do 15124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15125 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15127 break 2 15128 fi 15129 done 15130 done 15131 IFS=$as_save_IFS 15132 15133 ;; 15134 esac 15135 fi 15136 NICE=$ac_cv_path_NICE 15137 if test -n "$NICE"; then 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15139 $as_echo "$NICE" >&6; } 15140 else 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15142 $as_echo "no" >&6; } 15143 fi 15144 15145 15146 test -n "$NICE" && break 15147 done 15148 15149 else 15150 # The variable is set, but is it from the command line or the environment? 15151 15152 # Try to remove the string !NICE! from our list. 15153 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15154 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15155 # If it failed, the variable was not from the command line. Ignore it, 15156 # but warn the user (except for BASH, which is always set by the calling BASH). 15157 if test "xNICE" != xBASH; then 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15159 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15160 fi 15161 # Try to locate tool using the code snippet 15162 for ac_prog in nice 15163 do 15164 # Extract the first word of "$ac_prog", so it can be a program name with args. 15165 set dummy $ac_prog; ac_word=$2 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15167 $as_echo_n "checking for $ac_word... " >&6; } 15168 if ${ac_cv_path_NICE+:} false; then : 15169 $as_echo_n "(cached) " >&6 15170 else 15171 case $NICE in 15172 [\\/]* | ?:[\\/]*) 15173 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15174 ;; 15175 *) 15176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15177 for as_dir in $PATH 15178 do 15179 IFS=$as_save_IFS 15180 test -z "$as_dir" && as_dir=. 15181 for ac_exec_ext in '' $ac_executable_extensions; do 15182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15183 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15185 break 2 15186 fi 15187 done 15188 done 15189 IFS=$as_save_IFS 15190 15191 ;; 15192 esac 15193 fi 15194 NICE=$ac_cv_path_NICE 15195 if test -n "$NICE"; then 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15197 $as_echo "$NICE" >&6; } 15198 else 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15200 $as_echo "no" >&6; } 15201 fi 15202 15203 15204 test -n "$NICE" && break 15205 done 15206 15207 else 15208 # If it succeeded, then it was overridden by the user. We will use it 15209 # for the tool. 15210 15211 # First remove it from the list of overridden variables, so we can test 15212 # for unknown variables in the end. 15213 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15214 15215 # Check if we try to supply an empty value 15216 if test "x$NICE" = x; then 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15218 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15220 $as_echo_n "checking for NICE... " >&6; } 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15222 $as_echo "disabled" >&6; } 15223 else 15224 # Check if the provided tool contains a complete path. 15225 tool_specified="$NICE" 15226 tool_basename="${tool_specified##*/}" 15227 if test "x$tool_basename" = "x$tool_specified"; then 15228 # A command without a complete path is provided, search $PATH. 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15230 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15231 # Extract the first word of "$tool_basename", so it can be a program name with args. 15232 set dummy $tool_basename; ac_word=$2 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15234 $as_echo_n "checking for $ac_word... " >&6; } 15235 if ${ac_cv_path_NICE+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237 else 15238 case $NICE in 15239 [\\/]* | ?:[\\/]*) 15240 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15241 ;; 15242 *) 15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15244 for as_dir in $PATH 15245 do 15246 IFS=$as_save_IFS 15247 test -z "$as_dir" && as_dir=. 15248 for ac_exec_ext in '' $ac_executable_extensions; do 15249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15250 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15252 break 2 15253 fi 15254 done 15255 done 15256 IFS=$as_save_IFS 15257 15258 ;; 15259 esac 15260 fi 15261 NICE=$ac_cv_path_NICE 15262 if test -n "$NICE"; then 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15264 $as_echo "$NICE" >&6; } 15265 else 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15267 $as_echo "no" >&6; } 15268 fi 15269 15270 15271 if test "x$NICE" = x; then 15272 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15273 fi 15274 else 15275 # Otherwise we believe it is a complete path. Use it as it is. 15276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15277 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15279 $as_echo_n "checking for NICE... " >&6; } 15280 if test ! -x "$tool_specified"; then 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15282 $as_echo "not found" >&6; } 15283 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15284 fi 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15286 $as_echo "$tool_specified" >&6; } 15287 fi 15288 fi 15289 fi 15290 15291 fi 15292 15293 15294 15295 15296 # Publish this variable in the help. 15297 15298 15299 if [ -z "${PANDOC+x}" ]; then 15300 # The variable is not set by user, try to locate tool using the code snippet 15301 for ac_prog in pandoc 15302 do 15303 # Extract the first word of "$ac_prog", so it can be a program name with args. 15304 set dummy $ac_prog; ac_word=$2 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15306 $as_echo_n "checking for $ac_word... " >&6; } 15307 if ${ac_cv_path_PANDOC+:} false; then : 15308 $as_echo_n "(cached) " >&6 15309 else 15310 case $PANDOC in 15311 [\\/]* | ?:[\\/]*) 15312 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15313 ;; 15314 *) 15315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15316 for as_dir in $PATH 15317 do 15318 IFS=$as_save_IFS 15319 test -z "$as_dir" && as_dir=. 15320 for ac_exec_ext in '' $ac_executable_extensions; do 15321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15322 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15324 break 2 15325 fi 15326 done 15327 done 15328 IFS=$as_save_IFS 15329 15330 ;; 15331 esac 15332 fi 15333 PANDOC=$ac_cv_path_PANDOC 15334 if test -n "$PANDOC"; then 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15336 $as_echo "$PANDOC" >&6; } 15337 else 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15339 $as_echo "no" >&6; } 15340 fi 15341 15342 15343 test -n "$PANDOC" && break 15344 done 15345 15346 else 15347 # The variable is set, but is it from the command line or the environment? 15348 15349 # Try to remove the string !PANDOC! from our list. 15350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15352 # If it failed, the variable was not from the command line. Ignore it, 15353 # but warn the user (except for BASH, which is always set by the calling BASH). 15354 if test "xPANDOC" != xBASH; then 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15356 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15357 fi 15358 # Try to locate tool using the code snippet 15359 for ac_prog in pandoc 15360 do 15361 # Extract the first word of "$ac_prog", so it can be a program name with args. 15362 set dummy $ac_prog; ac_word=$2 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15364 $as_echo_n "checking for $ac_word... " >&6; } 15365 if ${ac_cv_path_PANDOC+:} false; then : 15366 $as_echo_n "(cached) " >&6 15367 else 15368 case $PANDOC in 15369 [\\/]* | ?:[\\/]*) 15370 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15371 ;; 15372 *) 15373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15374 for as_dir in $PATH 15375 do 15376 IFS=$as_save_IFS 15377 test -z "$as_dir" && as_dir=. 15378 for ac_exec_ext in '' $ac_executable_extensions; do 15379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15380 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15382 break 2 15383 fi 15384 done 15385 done 15386 IFS=$as_save_IFS 15387 15388 ;; 15389 esac 15390 fi 15391 PANDOC=$ac_cv_path_PANDOC 15392 if test -n "$PANDOC"; then 15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15394 $as_echo "$PANDOC" >&6; } 15395 else 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15397 $as_echo "no" >&6; } 15398 fi 15399 15400 15401 test -n "$PANDOC" && break 15402 done 15403 15404 else 15405 # If it succeeded, then it was overridden by the user. We will use it 15406 # for the tool. 15407 15408 # First remove it from the list of overridden variables, so we can test 15409 # for unknown variables in the end. 15410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15411 15412 # Check if we try to supply an empty value 15413 if test "x$PANDOC" = x; then 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15415 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15417 $as_echo_n "checking for PANDOC... " >&6; } 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15419 $as_echo "disabled" >&6; } 15420 else 15421 # Check if the provided tool contains a complete path. 15422 tool_specified="$PANDOC" 15423 tool_basename="${tool_specified##*/}" 15424 if test "x$tool_basename" = "x$tool_specified"; then 15425 # A command without a complete path is provided, search $PATH. 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15427 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15428 # Extract the first word of "$tool_basename", so it can be a program name with args. 15429 set dummy $tool_basename; ac_word=$2 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15431 $as_echo_n "checking for $ac_word... " >&6; } 15432 if ${ac_cv_path_PANDOC+:} false; then : 15433 $as_echo_n "(cached) " >&6 15434 else 15435 case $PANDOC in 15436 [\\/]* | ?:[\\/]*) 15437 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15438 ;; 15439 *) 15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15441 for as_dir in $PATH 15442 do 15443 IFS=$as_save_IFS 15444 test -z "$as_dir" && as_dir=. 15445 for ac_exec_ext in '' $ac_executable_extensions; do 15446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15447 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15449 break 2 15450 fi 15451 done 15452 done 15453 IFS=$as_save_IFS 15454 15455 ;; 15456 esac 15457 fi 15458 PANDOC=$ac_cv_path_PANDOC 15459 if test -n "$PANDOC"; then 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15461 $as_echo "$PANDOC" >&6; } 15462 else 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15464 $as_echo "no" >&6; } 15465 fi 15466 15467 15468 if test "x$PANDOC" = x; then 15469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15470 fi 15471 else 15472 # Otherwise we believe it is a complete path. Use it as it is. 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15474 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15476 $as_echo_n "checking for PANDOC... " >&6; } 15477 if test ! -x "$tool_specified"; then 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15479 $as_echo "not found" >&6; } 15480 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15481 fi 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15483 $as_echo "$tool_specified" >&6; } 15484 fi 15485 fi 15486 fi 15487 15488 fi 15489 15490 15491 15492 15493 # Now we can determine OpenJDK build and target platforms. This is required to 15494 # have early on. 15495 # Make sure we can run config.sub. 15496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15497 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15498 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15500 $as_echo_n "checking build system type... " >&6; } 15501 if ${ac_cv_build+:} false; then : 15502 $as_echo_n "(cached) " >&6 15503 else 15504 ac_build_alias=$build_alias 15505 test "x$ac_build_alias" = x && 15506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15507 test "x$ac_build_alias" = x && 15508 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15511 15512 fi 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15514 $as_echo "$ac_cv_build" >&6; } 15515 case $ac_cv_build in 15516 *-*-*) ;; 15517 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15518 esac 15519 build=$ac_cv_build 15520 ac_save_IFS=$IFS; IFS='-' 15521 set x $ac_cv_build 15522 shift 15523 build_cpu=$1 15524 build_vendor=$2 15525 shift; shift 15526 # Remember, the first character of IFS is used to create $*, 15527 # except with old shells: 15528 build_os=$* 15529 IFS=$ac_save_IFS 15530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15531 15532 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15534 $as_echo_n "checking host system type... " >&6; } 15535 if ${ac_cv_host+:} false; then : 15536 $as_echo_n "(cached) " >&6 15537 else 15538 if test "x$host_alias" = x; then 15539 ac_cv_host=$ac_cv_build 15540 else 15541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15543 fi 15544 15545 fi 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15547 $as_echo "$ac_cv_host" >&6; } 15548 case $ac_cv_host in 15549 *-*-*) ;; 15550 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15551 esac 15552 host=$ac_cv_host 15553 ac_save_IFS=$IFS; IFS='-' 15554 set x $ac_cv_host 15555 shift 15556 host_cpu=$1 15557 host_vendor=$2 15558 shift; shift 15559 # Remember, the first character of IFS is used to create $*, 15560 # except with old shells: 15561 host_os=$* 15562 IFS=$ac_save_IFS 15563 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15564 15565 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15567 $as_echo_n "checking target system type... " >&6; } 15568 if ${ac_cv_target+:} false; then : 15569 $as_echo_n "(cached) " >&6 15570 else 15571 if test "x$target_alias" = x; then 15572 ac_cv_target=$ac_cv_host 15573 else 15574 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15576 fi 15577 15578 fi 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15580 $as_echo "$ac_cv_target" >&6; } 15581 case $ac_cv_target in 15582 *-*-*) ;; 15583 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15584 esac 15585 target=$ac_cv_target 15586 ac_save_IFS=$IFS; IFS='-' 15587 set x $ac_cv_target 15588 shift 15589 target_cpu=$1 15590 target_vendor=$2 15591 shift; shift 15592 # Remember, the first character of IFS is used to create $*, 15593 # except with old shells: 15594 target_os=$* 15595 IFS=$ac_save_IFS 15596 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15597 15598 15599 # The aliases save the names the user supplied, while $host etc. 15600 # will get canonicalized. 15601 test -n "$target_alias" && 15602 test "$program_prefix$program_suffix$program_transform_name" = \ 15603 NONENONEs,x,x, && 15604 program_prefix=${target_alias}- 15605 15606 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15607 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15608 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15609 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15610 # to use the configure naming style. 15611 15612 15613 15614 15615 15616 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15617 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15618 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15619 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15620 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15621 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15622 15623 15624 15625 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15626 15627 case "$build_os" in 15628 *linux*) 15629 VAR_OS=linux 15630 VAR_OS_TYPE=unix 15631 ;; 15632 *solaris*) 15633 VAR_OS=solaris 15634 VAR_OS_TYPE=unix 15635 ;; 15636 *darwin*) 15637 VAR_OS=macosx 15638 VAR_OS_TYPE=unix 15639 ;; 15640 *bsd*) 15641 VAR_OS=bsd 15642 VAR_OS_TYPE=unix 15643 ;; 15644 *cygwin*) 15645 VAR_OS=windows 15646 VAR_OS_ENV=windows.cygwin 15647 ;; 15648 *mingw*) 15649 VAR_OS=windows 15650 VAR_OS_ENV=windows.msys 15651 ;; 15652 *aix*) 15653 VAR_OS=aix 15654 VAR_OS_TYPE=unix 15655 ;; 15656 *) 15657 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15658 ;; 15659 esac 15660 15661 15662 # First argument is the cpu name from the trip/quad 15663 case "$build_cpu" in 15664 x86_64) 15665 VAR_CPU=x86_64 15666 VAR_CPU_ARCH=x86 15667 VAR_CPU_BITS=64 15668 VAR_CPU_ENDIAN=little 15669 ;; 15670 i?86) 15671 VAR_CPU=x86 15672 VAR_CPU_ARCH=x86 15673 VAR_CPU_BITS=32 15674 VAR_CPU_ENDIAN=little 15675 ;; 15676 alpha*) 15677 VAR_CPU=alpha 15678 VAR_CPU_ARCH=alpha 15679 VAR_CPU_BITS=64 15680 VAR_CPU_ENDIAN=little 15681 ;; 15682 arm*) 15683 VAR_CPU=arm 15684 VAR_CPU_ARCH=arm 15685 VAR_CPU_BITS=32 15686 VAR_CPU_ENDIAN=little 15687 ;; 15688 aarch64) 15689 VAR_CPU=aarch64 15690 VAR_CPU_ARCH=aarch64 15691 VAR_CPU_BITS=64 15692 VAR_CPU_ENDIAN=little 15693 ;; 15694 m68k) 15695 VAR_CPU=m68k 15696 VAR_CPU_ARCH=m68k 15697 VAR_CPU_BITS=32 15698 VAR_CPU_ENDIAN=big 15699 ;; 15700 mips) 15701 VAR_CPU=mips 15702 VAR_CPU_ARCH=mips 15703 VAR_CPU_BITS=32 15704 VAR_CPU_ENDIAN=big 15705 ;; 15706 mipsel) 15707 VAR_CPU=mipsel 15708 VAR_CPU_ARCH=mipsel 15709 VAR_CPU_BITS=32 15710 VAR_CPU_ENDIAN=little 15711 ;; 15712 mips64) 15713 VAR_CPU=mips64 15714 VAR_CPU_ARCH=mips64 15715 VAR_CPU_BITS=64 15716 VAR_CPU_ENDIAN=big 15717 ;; 15718 mips64el) 15719 VAR_CPU=mips64el 15720 VAR_CPU_ARCH=mips64el 15721 VAR_CPU_BITS=64 15722 VAR_CPU_ENDIAN=little 15723 ;; 15724 powerpc) 15725 VAR_CPU=ppc 15726 VAR_CPU_ARCH=ppc 15727 VAR_CPU_BITS=32 15728 VAR_CPU_ENDIAN=big 15729 ;; 15730 powerpc64) 15731 VAR_CPU=ppc64 15732 VAR_CPU_ARCH=ppc 15733 VAR_CPU_BITS=64 15734 VAR_CPU_ENDIAN=big 15735 ;; 15736 powerpc64le) 15737 VAR_CPU=ppc64le 15738 VAR_CPU_ARCH=ppc 15739 VAR_CPU_BITS=64 15740 VAR_CPU_ENDIAN=little 15741 ;; 15742 s390) 15743 VAR_CPU=s390 15744 VAR_CPU_ARCH=s390 15745 VAR_CPU_BITS=32 15746 VAR_CPU_ENDIAN=big 15747 ;; 15748 s390x) 15749 VAR_CPU=s390x 15750 VAR_CPU_ARCH=s390 15751 VAR_CPU_BITS=64 15752 VAR_CPU_ENDIAN=big 15753 ;; 15754 sh*eb) 15755 VAR_CPU=sh 15756 VAR_CPU_ARCH=sh 15757 VAR_CPU_BITS=32 15758 VAR_CPU_ENDIAN=big 15759 ;; 15760 sh*) 15761 VAR_CPU=sh 15762 VAR_CPU_ARCH=sh 15763 VAR_CPU_BITS=32 15764 VAR_CPU_ENDIAN=little 15765 ;; 15766 sparc) 15767 VAR_CPU=sparc 15768 VAR_CPU_ARCH=sparc 15769 VAR_CPU_BITS=32 15770 VAR_CPU_ENDIAN=big 15771 ;; 15772 sparcv9|sparc64) 15773 VAR_CPU=sparcv9 15774 VAR_CPU_ARCH=sparc 15775 VAR_CPU_BITS=64 15776 VAR_CPU_ENDIAN=big 15777 ;; 15778 *) 15779 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15780 ;; 15781 esac 15782 15783 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15784 OPENJDK_BUILD_OS="$VAR_OS" 15785 if test "x$VAR_OS_TYPE" != x; then 15786 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15787 else 15788 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15789 fi 15790 if test "x$VAR_OS_ENV" != x; then 15791 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15792 else 15793 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15794 fi 15795 OPENJDK_BUILD_CPU="$VAR_CPU" 15796 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15797 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15798 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15799 15800 15801 15802 15803 15804 15805 15806 15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15808 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15810 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15811 15812 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15813 15814 case "$host_os" in 15815 *linux*) 15816 VAR_OS=linux 15817 VAR_OS_TYPE=unix 15818 ;; 15819 *solaris*) 15820 VAR_OS=solaris 15821 VAR_OS_TYPE=unix 15822 ;; 15823 *darwin*) 15824 VAR_OS=macosx 15825 VAR_OS_TYPE=unix 15826 ;; 15827 *bsd*) 15828 VAR_OS=bsd 15829 VAR_OS_TYPE=unix 15830 ;; 15831 *cygwin*) 15832 VAR_OS=windows 15833 VAR_OS_ENV=windows.cygwin 15834 ;; 15835 *mingw*) 15836 VAR_OS=windows 15837 VAR_OS_ENV=windows.msys 15838 ;; 15839 *aix*) 15840 VAR_OS=aix 15841 VAR_OS_TYPE=unix 15842 ;; 15843 *) 15844 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15845 ;; 15846 esac 15847 15848 15849 # First argument is the cpu name from the trip/quad 15850 case "$host_cpu" in 15851 x86_64) 15852 VAR_CPU=x86_64 15853 VAR_CPU_ARCH=x86 15854 VAR_CPU_BITS=64 15855 VAR_CPU_ENDIAN=little 15856 ;; 15857 i?86) 15858 VAR_CPU=x86 15859 VAR_CPU_ARCH=x86 15860 VAR_CPU_BITS=32 15861 VAR_CPU_ENDIAN=little 15862 ;; 15863 alpha*) 15864 VAR_CPU=alpha 15865 VAR_CPU_ARCH=alpha 15866 VAR_CPU_BITS=64 15867 VAR_CPU_ENDIAN=little 15868 ;; 15869 arm*) 15870 VAR_CPU=arm 15871 VAR_CPU_ARCH=arm 15872 VAR_CPU_BITS=32 15873 VAR_CPU_ENDIAN=little 15874 ;; 15875 aarch64) 15876 VAR_CPU=aarch64 15877 VAR_CPU_ARCH=aarch64 15878 VAR_CPU_BITS=64 15879 VAR_CPU_ENDIAN=little 15880 ;; 15881 m68k) 15882 VAR_CPU=m68k 15883 VAR_CPU_ARCH=m68k 15884 VAR_CPU_BITS=32 15885 VAR_CPU_ENDIAN=big 15886 ;; 15887 mips) 15888 VAR_CPU=mips 15889 VAR_CPU_ARCH=mips 15890 VAR_CPU_BITS=32 15891 VAR_CPU_ENDIAN=big 15892 ;; 15893 mipsel) 15894 VAR_CPU=mipsel 15895 VAR_CPU_ARCH=mipsel 15896 VAR_CPU_BITS=32 15897 VAR_CPU_ENDIAN=little 15898 ;; 15899 mips64) 15900 VAR_CPU=mips64 15901 VAR_CPU_ARCH=mips64 15902 VAR_CPU_BITS=64 15903 VAR_CPU_ENDIAN=big 15904 ;; 15905 mips64el) 15906 VAR_CPU=mips64el 15907 VAR_CPU_ARCH=mips64el 15908 VAR_CPU_BITS=64 15909 VAR_CPU_ENDIAN=little 15910 ;; 15911 powerpc) 15912 VAR_CPU=ppc 15913 VAR_CPU_ARCH=ppc 15914 VAR_CPU_BITS=32 15915 VAR_CPU_ENDIAN=big 15916 ;; 15917 powerpc64) 15918 VAR_CPU=ppc64 15919 VAR_CPU_ARCH=ppc 15920 VAR_CPU_BITS=64 15921 VAR_CPU_ENDIAN=big 15922 ;; 15923 powerpc64le) 15924 VAR_CPU=ppc64le 15925 VAR_CPU_ARCH=ppc 15926 VAR_CPU_BITS=64 15927 VAR_CPU_ENDIAN=little 15928 ;; 15929 s390) 15930 VAR_CPU=s390 15931 VAR_CPU_ARCH=s390 15932 VAR_CPU_BITS=32 15933 VAR_CPU_ENDIAN=big 15934 ;; 15935 s390x) 15936 VAR_CPU=s390x 15937 VAR_CPU_ARCH=s390 15938 VAR_CPU_BITS=64 15939 VAR_CPU_ENDIAN=big 15940 ;; 15941 sh*eb) 15942 VAR_CPU=sh 15943 VAR_CPU_ARCH=sh 15944 VAR_CPU_BITS=32 15945 VAR_CPU_ENDIAN=big 15946 ;; 15947 sh*) 15948 VAR_CPU=sh 15949 VAR_CPU_ARCH=sh 15950 VAR_CPU_BITS=32 15951 VAR_CPU_ENDIAN=little 15952 ;; 15953 sparc) 15954 VAR_CPU=sparc 15955 VAR_CPU_ARCH=sparc 15956 VAR_CPU_BITS=32 15957 VAR_CPU_ENDIAN=big 15958 ;; 15959 sparcv9|sparc64) 15960 VAR_CPU=sparcv9 15961 VAR_CPU_ARCH=sparc 15962 VAR_CPU_BITS=64 15963 VAR_CPU_ENDIAN=big 15964 ;; 15965 *) 15966 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15967 ;; 15968 esac 15969 15970 # ... and setup our own variables. (Do this explicitly to facilitate searching) 15971 OPENJDK_TARGET_OS="$VAR_OS" 15972 if test "x$VAR_OS_TYPE" != x; then 15973 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15974 else 15975 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15976 fi 15977 if test "x$VAR_OS_ENV" != x; then 15978 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15979 else 15980 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15981 fi 15982 OPENJDK_TARGET_CPU="$VAR_CPU" 15983 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15984 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15985 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15986 15987 15988 15989 15990 15991 15992 15993 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15995 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15997 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15998 15999 16000 16001 # Check whether --with-target-bits was given. 16002 if test "${with_target_bits+set}" = set; then : 16003 withval=$with_target_bits; 16004 fi 16005 16006 16007 # We have three types of compiles: 16008 # native == normal compilation, target system == build system 16009 # cross == traditional cross compilation, target system != build system; special toolchain needed 16010 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16011 # 16012 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16013 # We're doing a proper cross-compilation 16014 COMPILE_TYPE="cross" 16015 else 16016 COMPILE_TYPE="native" 16017 fi 16018 16019 if test "x$with_target_bits" != x; then 16020 if test "x$COMPILE_TYPE" = "xcross"; then 16021 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16022 fi 16023 16024 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16025 # A reduced build is requested 16026 COMPILE_TYPE="reduced" 16027 OPENJDK_TARGET_CPU_BITS=32 16028 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16029 OPENJDK_TARGET_CPU=x86 16030 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16031 OPENJDK_TARGET_CPU=sparc 16032 else 16033 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16034 fi 16035 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16036 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 16037 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16039 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16040 else 16041 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16042 fi 16043 fi 16044 16045 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16047 $as_echo_n "checking compilation type... " >&6; } 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16049 $as_echo "$COMPILE_TYPE" >&6; } 16050 16051 16052 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16053 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16054 else 16055 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16056 fi 16057 16058 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16059 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16060 else 16061 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16062 fi 16063 16064 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16065 16066 16067 16068 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16069 RELEASE_FILE_OS_NAME=SunOS 16070 fi 16071 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16072 RELEASE_FILE_OS_NAME=Linux 16073 fi 16074 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16075 RELEASE_FILE_OS_NAME=Windows 16076 fi 16077 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16078 RELEASE_FILE_OS_NAME="Darwin" 16079 fi 16080 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16081 RELEASE_FILE_OS_NAME="AIX" 16082 fi 16083 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16084 16085 16086 16087 16088 16089 16090 # Also store the legacy naming of the cpu. 16091 # Ie i586 and amd64 instead of x86 and x86_64 16092 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16093 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16094 OPENJDK_TARGET_CPU_LEGACY="i586" 16095 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16096 # On all platforms except MacOSX replace x86_64 with amd64. 16097 OPENJDK_TARGET_CPU_LEGACY="amd64" 16098 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16099 # Avoid name collisions with variables named alpha 16100 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16101 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16102 # Avoid name collisions with variables named sh 16103 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16104 fi 16105 16106 16107 # And the second legacy naming of the cpu. 16108 # Ie i386 and amd64 instead of x86 and x86_64. 16109 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16110 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16111 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16112 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16113 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16114 fi 16115 16116 16117 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16118 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16119 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16120 OPENJDK_TARGET_CPU_ISADIR="" 16121 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16122 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16123 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16124 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16125 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16126 fi 16127 fi 16128 16129 16130 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16131 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16132 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16133 # On linux only, we replace x86 with i386. 16134 OPENJDK_TARGET_CPU_OSARCH="i386" 16135 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16136 # On all platforms except macosx, we replace x86_64 with amd64. 16137 OPENJDK_TARGET_CPU_OSARCH="amd64" 16138 fi 16139 16140 16141 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16142 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16143 OPENJDK_TARGET_CPU_JLI="i386" 16144 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16145 # On all platforms except macosx, we replace x86_64 with amd64. 16146 OPENJDK_TARGET_CPU_JLI="amd64" 16147 fi 16148 16149 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16150 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 16151 else 16152 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 16153 fi 16154 16155 16156 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16157 # Macosx is osx and x86_64 is x64 16158 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16159 OPENJDK_TARGET_OS_BUNDLE="osx" 16160 else 16161 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16162 fi 16163 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16164 OPENJDK_TARGET_CPU_BUNDLE="x64" 16165 else 16166 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16167 fi 16168 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16169 16170 16171 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16172 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16173 # unpack200.exe. This variable is used in 16174 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16175 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16176 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16177 fi 16178 fi 16179 16180 if test "x$COMPILE_TYPE" = "xcross"; then 16181 # FIXME: ... or should this include reduced builds..? 16182 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16183 else 16184 DEFINE_CROSS_COMPILE_ARCH="" 16185 fi 16186 16187 16188 # Convert openjdk platform names to hotspot names 16189 16190 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16191 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16192 HOTSPOT_TARGET_OS=bsd 16193 fi 16194 16195 16196 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16197 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16198 HOTSPOT_TARGET_OS_TYPE=posix 16199 fi 16200 16201 16202 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16203 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16204 HOTSPOT_TARGET_CPU=x86_32 16205 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16206 HOTSPOT_TARGET_CPU=sparc 16207 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16208 HOTSPOT_TARGET_CPU=ppc_64 16209 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16210 HOTSPOT_TARGET_CPU=ppc_64 16211 fi 16212 16213 16214 # This is identical with OPENJDK_*, but define anyway for consistency. 16215 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16216 16217 16218 # Setup HOTSPOT_TARGET_CPU_DEFINE 16219 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16220 HOTSPOT_TARGET_CPU_DEFINE=IA32 16221 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16222 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16223 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16224 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16225 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16226 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16227 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16228 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16229 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16230 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16231 16232 # The cpu defines below are for zero, we don't support them directly. 16233 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16234 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16235 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16236 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16237 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16238 HOTSPOT_TARGET_CPU_DEFINE=S390 16239 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16240 HOTSPOT_TARGET_CPU_DEFINE=S390 16241 elif test "x$OPENJDK_TARGET_CPU" != x; then 16242 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16243 fi 16244 16245 16246 16247 16248 # Also store the legacy naming of the cpu. 16249 # Ie i586 and amd64 instead of x86 and x86_64 16250 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16251 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16252 OPENJDK_BUILD_CPU_LEGACY="i586" 16253 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16254 # On all platforms except MacOSX replace x86_64 with amd64. 16255 OPENJDK_BUILD_CPU_LEGACY="amd64" 16256 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16257 # Avoid name collisions with variables named alpha 16258 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16259 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16260 # Avoid name collisions with variables named sh 16261 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16262 fi 16263 16264 16265 # And the second legacy naming of the cpu. 16266 # Ie i386 and amd64 instead of x86 and x86_64. 16267 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16268 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16269 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16270 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16271 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16272 fi 16273 16274 16275 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16276 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16277 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16278 OPENJDK_BUILD_CPU_ISADIR="" 16279 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16280 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16281 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16282 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16283 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16284 fi 16285 fi 16286 16287 16288 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16289 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16290 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16291 # On linux only, we replace x86 with i386. 16292 OPENJDK_BUILD_CPU_OSARCH="i386" 16293 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16294 # On all platforms except macosx, we replace x86_64 with amd64. 16295 OPENJDK_BUILD_CPU_OSARCH="amd64" 16296 fi 16297 16298 16299 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16300 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16301 OPENJDK_BUILD_CPU_JLI="i386" 16302 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16303 # On all platforms except macosx, we replace x86_64 with amd64. 16304 OPENJDK_BUILD_CPU_JLI="amd64" 16305 fi 16306 16307 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16308 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16309 else 16310 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16311 fi 16312 16313 16314 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16315 # Macosx is osx and x86_64 is x64 16316 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16317 OPENJDK_BUILD_OS_BUNDLE="osx" 16318 else 16319 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16320 fi 16321 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16322 OPENJDK_BUILD_CPU_BUNDLE="x64" 16323 else 16324 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16325 fi 16326 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16327 16328 16329 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16330 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16331 # unpack200.exe. This variable is used in 16332 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16333 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16334 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16335 fi 16336 fi 16337 16338 if test "x$COMPILE_TYPE" = "xcross"; then 16339 # FIXME: ... or should this include reduced builds..? 16340 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16341 else 16342 DEFINE_CROSS_COMPILE_ARCH="" 16343 fi 16344 16345 16346 # Convert openjdk platform names to hotspot names 16347 16348 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16349 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16350 HOTSPOT_BUILD_OS=bsd 16351 fi 16352 16353 16354 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16355 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16356 HOTSPOT_BUILD_OS_TYPE=posix 16357 fi 16358 16359 16360 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16361 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16362 HOTSPOT_BUILD_CPU=x86_32 16363 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16364 HOTSPOT_BUILD_CPU=sparc 16365 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16366 HOTSPOT_BUILD_CPU=ppc_64 16367 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16368 HOTSPOT_BUILD_CPU=ppc_64 16369 fi 16370 16371 16372 # This is identical with OPENJDK_*, but define anyway for consistency. 16373 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16374 16375 16376 # Setup HOTSPOT_BUILD_CPU_DEFINE 16377 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16378 HOTSPOT_BUILD_CPU_DEFINE=IA32 16379 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16380 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16381 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16382 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16383 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16384 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16385 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16386 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16387 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16388 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16389 16390 # The cpu defines below are for zero, we don't support them directly. 16391 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16392 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16393 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16394 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16395 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16396 HOTSPOT_BUILD_CPU_DEFINE=S390 16397 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16398 HOTSPOT_BUILD_CPU_DEFINE=S390 16399 elif test "x$OPENJDK_BUILD_CPU" != x; then 16400 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16401 fi 16402 16403 16404 16405 16406 16407 16408 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16409 16410 # Save the current directory this script was started from 16411 CURDIR="$PWD" 16412 16413 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16414 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16415 # was not available at that time. 16416 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16417 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16418 ORIGINAL_PATH="$REWRITTEN_PATH" 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16420 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16421 fi 16422 16423 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16424 PATH_SEP=";" 16425 16426 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16427 if test $SRC_ROOT_LENGTH -gt 100; then 16428 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16429 fi 16430 16431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16433 $as_echo_n "checking cygwin release... " >&6; } 16434 CYGWIN_VERSION=`$UNAME -r` 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16436 $as_echo "$CYGWIN_VERSION" >&6; } 16437 WINDOWS_ENV_VENDOR='cygwin' 16438 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16439 16440 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16441 if test "x$CYGWIN_VERSION_OLD" != x; then 16442 { $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 16443 $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;} 16444 as_fn_error $? "Cannot continue" "$LINENO" 5 16445 fi 16446 if test "x$CYGPATH" = x; then 16447 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16448 fi 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16450 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16451 # The cmd output ends with Windows line endings (CR/LF) 16452 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16453 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16454 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16456 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16457 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16458 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16459 if test "x$test_cygdrive_prefix" = x; then 16460 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16461 fi 16462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16464 $as_echo_n "checking msys release... " >&6; } 16465 MSYS_VERSION=`$UNAME -r` 16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16467 $as_echo "$MSYS_VERSION" >&6; } 16468 16469 WINDOWS_ENV_VENDOR='msys' 16470 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16471 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16473 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16474 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16475 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16476 16477 windows_path="$MSYS_ROOT_PATH" 16478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16479 unix_path=`$CYGPATH -u "$windows_path"` 16480 MSYS_ROOT_PATH="$unix_path" 16481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16483 MSYS_ROOT_PATH="$unix_path" 16484 fi 16485 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16487 $as_echo "$MSYS_ROOT_PATH" >&6; } 16488 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16489 else 16490 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16491 fi 16492 16493 # Test if windows or unix (cygwin/msys) find is first in path. 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16495 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16496 FIND_BINARY_OUTPUT=`find --version 2>&1` 16497 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16499 $as_echo "unix style" >&6; } 16500 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16502 $as_echo "Windows" >&6; } 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16504 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16505 { $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 16506 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16507 as_fn_error $? "Cannot continue" "$LINENO" 5 16508 else 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16510 $as_echo "unknown" >&6; } 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16512 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16513 fi 16514 16515 else 16516 PATH_SEP=":" 16517 fi 16518 16519 16520 # We get the top-level directory from the supporting wrappers. 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16522 $as_echo_n "checking for top-level directory... " >&6; } 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16524 $as_echo "$TOPDIR" >&6; } 16525 16526 16527 # Save the original version of TOPDIR for string comparisons 16528 ORIGINAL_TOPDIR="$TOPDIR" 16529 16530 16531 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16532 16533 # Only process if variable expands to non-empty 16534 16535 if test "x$CURDIR" != x; then 16536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16537 16538 # Input might be given as Windows format, start by converting to 16539 # unix format. 16540 path="$CURDIR" 16541 new_path=`$CYGPATH -u "$path"` 16542 16543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16546 # "foo.exe" is OK but "foo" is an error. 16547 # 16548 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16549 # It is also a way to make sure we got the proper file name for the real test later on. 16550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16551 if test "x$test_shortpath" = x; then 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16553 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16554 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16555 fi 16556 16557 # Call helper function which possibly converts this using DOS-style short mode. 16558 # If so, the updated path is stored in $new_path. 16559 16560 input_path="$new_path" 16561 # Check if we need to convert this using DOS-style short mode. If the path 16562 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16563 # take no chances and rewrite it. 16564 # Note: m4 eats our [], so we need to use [ and ] instead. 16565 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16566 if test "x$has_forbidden_chars" != x; then 16567 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16568 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16569 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16570 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16571 # Going to short mode and back again did indeed matter. Since short mode is 16572 # case insensitive, let's make it lowercase to improve readability. 16573 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16574 # Now convert it back to Unix-style (cygpath) 16575 input_path=`$CYGPATH -u "$shortmode_path"` 16576 new_path="$input_path" 16577 fi 16578 fi 16579 16580 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16581 if test "x$test_cygdrive_prefix" = x; then 16582 # As a simple fix, exclude /usr/bin since it's not a real path. 16583 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16584 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16585 # a path prefixed by /cygdrive for fixpath to work. 16586 new_path="$CYGWIN_ROOT_PATH$input_path" 16587 fi 16588 fi 16589 16590 16591 if test "x$path" != "x$new_path"; then 16592 CURDIR="$new_path" 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16594 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16595 fi 16596 16597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16598 16599 path="$CURDIR" 16600 has_colon=`$ECHO $path | $GREP ^.:` 16601 new_path="$path" 16602 if test "x$has_colon" = x; then 16603 # Not in mixed or Windows style, start by that. 16604 new_path=`cmd //c echo $path` 16605 fi 16606 16607 16608 input_path="$new_path" 16609 # Check if we need to convert this using DOS-style short mode. If the path 16610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16611 # take no chances and rewrite it. 16612 # Note: m4 eats our [], so we need to use [ and ] instead. 16613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16614 if test "x$has_forbidden_chars" != x; then 16615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16616 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16617 fi 16618 16619 16620 windows_path="$new_path" 16621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16622 unix_path=`$CYGPATH -u "$windows_path"` 16623 new_path="$unix_path" 16624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16625 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16626 new_path="$unix_path" 16627 fi 16628 16629 if test "x$path" != "x$new_path"; then 16630 CURDIR="$new_path" 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16632 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16633 fi 16634 16635 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16636 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16637 16638 else 16639 # We're on a unix platform. Hooray! :) 16640 path="$CURDIR" 16641 has_space=`$ECHO "$path" | $GREP " "` 16642 if test "x$has_space" != x; then 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16644 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16645 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16646 fi 16647 16648 # Use eval to expand a potential ~ 16649 eval path="$path" 16650 if test ! -f "$path" && test ! -d "$path"; then 16651 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16652 fi 16653 16654 if test -d "$path"; then 16655 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16656 else 16657 dir="`$DIRNAME "$path"`" 16658 base="`$BASENAME "$path"`" 16659 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16660 fi 16661 fi 16662 fi 16663 16664 16665 # Only process if variable expands to non-empty 16666 16667 if test "x$TOPDIR" != x; then 16668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16669 16670 # Input might be given as Windows format, start by converting to 16671 # unix format. 16672 path="$TOPDIR" 16673 new_path=`$CYGPATH -u "$path"` 16674 16675 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16676 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16677 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16678 # "foo.exe" is OK but "foo" is an error. 16679 # 16680 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16681 # It is also a way to make sure we got the proper file name for the real test later on. 16682 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16683 if test "x$test_shortpath" = x; then 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16685 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16686 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16687 fi 16688 16689 # Call helper function which possibly converts this using DOS-style short mode. 16690 # If so, the updated path is stored in $new_path. 16691 16692 input_path="$new_path" 16693 # Check if we need to convert this using DOS-style short mode. If the path 16694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16695 # take no chances and rewrite it. 16696 # Note: m4 eats our [], so we need to use [ and ] instead. 16697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16698 if test "x$has_forbidden_chars" != x; then 16699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16700 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16701 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16702 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16703 # Going to short mode and back again did indeed matter. Since short mode is 16704 # case insensitive, let's make it lowercase to improve readability. 16705 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16706 # Now convert it back to Unix-style (cygpath) 16707 input_path=`$CYGPATH -u "$shortmode_path"` 16708 new_path="$input_path" 16709 fi 16710 fi 16711 16712 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16713 if test "x$test_cygdrive_prefix" = x; then 16714 # As a simple fix, exclude /usr/bin since it's not a real path. 16715 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16716 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16717 # a path prefixed by /cygdrive for fixpath to work. 16718 new_path="$CYGWIN_ROOT_PATH$input_path" 16719 fi 16720 fi 16721 16722 16723 if test "x$path" != "x$new_path"; then 16724 TOPDIR="$new_path" 16725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16726 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16727 fi 16728 16729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16730 16731 path="$TOPDIR" 16732 has_colon=`$ECHO $path | $GREP ^.:` 16733 new_path="$path" 16734 if test "x$has_colon" = x; then 16735 # Not in mixed or Windows style, start by that. 16736 new_path=`cmd //c echo $path` 16737 fi 16738 16739 16740 input_path="$new_path" 16741 # Check if we need to convert this using DOS-style short mode. If the path 16742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16743 # take no chances and rewrite it. 16744 # Note: m4 eats our [], so we need to use [ and ] instead. 16745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16746 if test "x$has_forbidden_chars" != x; then 16747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16748 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16749 fi 16750 16751 16752 windows_path="$new_path" 16753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16754 unix_path=`$CYGPATH -u "$windows_path"` 16755 new_path="$unix_path" 16756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16758 new_path="$unix_path" 16759 fi 16760 16761 if test "x$path" != "x$new_path"; then 16762 TOPDIR="$new_path" 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16764 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16765 fi 16766 16767 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16768 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16769 16770 else 16771 # We're on a unix platform. Hooray! :) 16772 path="$TOPDIR" 16773 has_space=`$ECHO "$path" | $GREP " "` 16774 if test "x$has_space" != x; then 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16776 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16777 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16778 fi 16779 16780 # Use eval to expand a potential ~ 16781 eval path="$path" 16782 if test ! -f "$path" && test ! -d "$path"; then 16783 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16784 fi 16785 16786 if test -d "$path"; then 16787 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16788 else 16789 dir="`$DIRNAME "$path"`" 16790 base="`$BASENAME "$path"`" 16791 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16792 fi 16793 fi 16794 fi 16795 16796 16797 # Calculate a canonical version of TOPDIR for string comparisons 16798 CANONICAL_TOPDIR=$TOPDIR 16799 16800 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16801 # Follow a chain of symbolic links. Use readlink 16802 # where it exists, else fall back to horribly 16803 # complicated shell code. 16804 if test "x$READLINK_TESTED" != yes; then 16805 # On MacOSX there is a readlink tool with a different 16806 # purpose than the GNU readlink tool. Check the found readlink. 16807 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16808 if test "x$ISGNU" = x; then 16809 # A readlink that we do not know how to use. 16810 # Are there other non-GNU readlinks out there? 16811 READLINK_TESTED=yes 16812 READLINK= 16813 fi 16814 fi 16815 16816 if test "x$READLINK" != x; then 16817 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16818 else 16819 # Save the current directory for restoring afterwards 16820 STARTDIR=$PWD 16821 COUNTER=0 16822 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16823 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16824 cd $sym_link_dir 16825 # Use -P flag to resolve symlinks in directories. 16826 cd `$THEPWDCMD -P` 16827 sym_link_dir=`$THEPWDCMD -P` 16828 # Resolve file symlinks 16829 while test $COUNTER -lt 20; do 16830 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16831 if test "x$ISLINK" == x; then 16832 # This is not a symbolic link! We are done! 16833 break 16834 fi 16835 # Again resolve directory symlinks since the target of the just found 16836 # link could be in a different directory 16837 cd `$DIRNAME $ISLINK` 16838 sym_link_dir=`$THEPWDCMD -P` 16839 sym_link_file=`$BASENAME $ISLINK` 16840 let COUNTER=COUNTER+1 16841 done 16842 cd $STARTDIR 16843 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16844 fi 16845 fi 16846 16847 16848 16849 # Locate the directory of this script. 16850 AUTOCONF_DIR=$TOPDIR/make/autoconf 16851 16852 # Setup username (for use in adhoc version strings etc) 16853 # Outer [ ] to quote m4. 16854 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16855 16856 16857 16858 # Check if it's a pure open build or if custom sources are to be used. 16859 16860 # Check whether --enable-openjdk-only was given. 16861 if test "${enable_openjdk_only+set}" = set; then : 16862 enableval=$enable_openjdk_only; 16863 else 16864 enable_openjdk_only="no" 16865 fi 16866 16867 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16869 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16871 $as_echo "$enable_openjdk_only" >&6; } 16872 if test "x$enable_openjdk_only" = "xyes"; then 16873 SUPPRESS_CUSTOM_EXTENSIONS="true" 16874 elif test "x$enable_openjdk_only" = "xno"; then 16875 SUPPRESS_CUSTOM_EXTENSIONS="false" 16876 else 16877 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16878 fi 16879 16880 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16881 # the IncludeCustomExtension macro. 16882 16883 16884 # Check whether --with-custom-make-dir was given. 16885 if test "${with_custom_make_dir+set}" = set; then : 16886 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5 16887 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16888 fi 16889 16890 16891 16892 16893 # These are needed to be able to create a configuration name (and thus the output directory) 16894 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16896 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16897 16898 # Check whether --with-jdk-variant was given. 16899 if test "${with_jdk_variant+set}" = set; then : 16900 withval=$with_jdk_variant; 16901 fi 16902 16903 16904 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16905 JDK_VARIANT="normal" 16906 else 16907 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16908 fi 16909 16910 16911 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16913 $as_echo "$JDK_VARIANT" >&6; } 16914 16915 16916 DEBUG_LEVEL="release" 16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16918 $as_echo_n "checking which debug level to use... " >&6; } 16919 # Check whether --enable-debug was given. 16920 if test "${enable_debug+set}" = set; then : 16921 enableval=$enable_debug; 16922 ENABLE_DEBUG="${enableval}" 16923 DEBUG_LEVEL="fastdebug" 16924 16925 else 16926 ENABLE_DEBUG="no" 16927 fi 16928 16929 16930 16931 # Check whether --with-debug-level was given. 16932 if test "${with_debug_level+set}" = set; then : 16933 withval=$with_debug_level; 16934 DEBUG_LEVEL="${withval}" 16935 if test "x$ENABLE_DEBUG" = xyes; then 16936 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16937 fi 16938 16939 fi 16940 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16942 $as_echo "$DEBUG_LEVEL" >&6; } 16943 16944 if test "x$DEBUG_LEVEL" != xrelease && \ 16945 test "x$DEBUG_LEVEL" != xoptimized && \ 16946 test "x$DEBUG_LEVEL" != xfastdebug && \ 16947 test "x$DEBUG_LEVEL" != xslowdebug; then 16948 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16949 fi 16950 16951 # Translate DEBUG_LEVEL to debug level used by Hotspot 16952 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16953 if test "x$DEBUG_LEVEL" = xrelease; then 16954 HOTSPOT_DEBUG_LEVEL="product" 16955 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16956 HOTSPOT_DEBUG_LEVEL="debug" 16957 fi 16958 16959 if test "x$DEBUG_LEVEL" = xoptimized; then 16960 # The debug level 'optimized' is a little special because it is currently only 16961 # applicable to the HotSpot build where it means to build a completely 16962 # optimized version of the VM without any debugging code (like for the 16963 # 'release' debug level which is called 'product' in the HotSpot build) but 16964 # with the exception that it can contain additional code which is otherwise 16965 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16966 # test new and/or experimental features which are not intended for customer 16967 # shipment. Because these new features need to be tested and benchmarked in 16968 # real world scenarios, we want to build the containing JDK at the 'release' 16969 # debug level. 16970 DEBUG_LEVEL="release" 16971 fi 16972 16973 16974 16975 16976 16977 16978 # Check whether --with-jvm-variants was given. 16979 if test "${with_jvm_variants+set}" = set; then : 16980 withval=$with_jvm_variants; 16981 fi 16982 16983 16984 16985 16986 # Check whether --with-cpu-port was given. 16987 if test "${with_cpu_port+set}" = set; then : 16988 withval=$with_cpu_port; 16989 fi 16990 16991 16992 if test "x$with_cpu_port" != x; then 16993 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 16994 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 16995 fi 16996 if test "x$with_cpu_port" != xarm64 && \ 16997 test "x$with_cpu_port" != xaarch64; then 16998 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 16999 fi 17000 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 17001 fi 17002 17003 17004 if test "x$with_jvm_variants" = x; then 17005 with_jvm_variants="server" 17006 fi 17007 JVM_VARIANTS_OPT="$with_jvm_variants" 17008 17009 # Has the user listed more than one variant? 17010 # Additional [] needed to keep m4 from mangling shell constructs. 17011 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17012 BUILDING_MULTIPLE_JVM_VARIANTS=true 17013 else 17014 BUILDING_MULTIPLE_JVM_VARIANTS=false 17015 fi 17016 # Replace the commas with AND for use in the build directory name. 17017 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17018 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17020 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17021 # JVM_VARIANTS is a space-separated list. 17022 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17023 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17025 $as_echo "$JVM_VARIANTS" >&6; } 17026 17027 # Check that the selected variants are valid 17028 17029 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17030 # Notice that the original variant failes on SLES 10 and 11 17031 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17032 STACK=${JVM_VARIANTS// /$'\n'} 17033 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17034 if test "x$INVALID_VARIANTS" != x; then 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17036 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17037 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17038 fi 17039 17040 # All "special" variants share the same output directory ("server") 17041 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17042 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17043 STACK=${JVM_VARIANTS// /$'\n'} 17044 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17045 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17046 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17047 fi 17048 17049 # The "main" variant is the one used by other libs to link against during the 17050 # build. 17051 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17052 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17053 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17054 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17055 JVM_VARIANT_MAIN="$variant" 17056 break 17057 fi 17058 done 17059 else 17060 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17061 fi 17062 17063 17064 17065 17066 17067 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 17068 # zero behaves as a platform and rewrites these values. This is really weird. :( 17069 # We are guaranteed that we do not build any other variants when building zero. 17070 HOTSPOT_TARGET_CPU=zero 17071 HOTSPOT_TARGET_CPU_ARCH=zero 17072 fi 17073 17074 17075 # With basic setup done, call the custom early hook. 17076 17077 17078 # Check if we have devkits, extra paths or sysroot set. 17079 17080 17081 # Check whether --with-devkit was given. 17082 if test "${with_devkit+set}" = set; then : 17083 withval=$with_devkit; 17084 17085 # Only process if variable expands to non-empty 17086 17087 if test "x$with_devkit" != x; then 17088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17089 17090 # Input might be given as Windows format, start by converting to 17091 # unix format. 17092 path="$with_devkit" 17093 new_path=`$CYGPATH -u "$path"` 17094 17095 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17096 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17097 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17098 # "foo.exe" is OK but "foo" is an error. 17099 # 17100 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17101 # It is also a way to make sure we got the proper file name for the real test later on. 17102 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17103 if test "x$test_shortpath" = x; then 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17105 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17106 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17107 fi 17108 17109 # Call helper function which possibly converts this using DOS-style short mode. 17110 # If so, the updated path is stored in $new_path. 17111 17112 input_path="$new_path" 17113 # Check if we need to convert this using DOS-style short mode. If the path 17114 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17115 # take no chances and rewrite it. 17116 # Note: m4 eats our [], so we need to use [ and ] instead. 17117 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17118 if test "x$has_forbidden_chars" != x; then 17119 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17120 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17121 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17122 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17123 # Going to short mode and back again did indeed matter. Since short mode is 17124 # case insensitive, let's make it lowercase to improve readability. 17125 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17126 # Now convert it back to Unix-style (cygpath) 17127 input_path=`$CYGPATH -u "$shortmode_path"` 17128 new_path="$input_path" 17129 fi 17130 fi 17131 17132 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17133 if test "x$test_cygdrive_prefix" = x; then 17134 # As a simple fix, exclude /usr/bin since it's not a real path. 17135 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17136 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17137 # a path prefixed by /cygdrive for fixpath to work. 17138 new_path="$CYGWIN_ROOT_PATH$input_path" 17139 fi 17140 fi 17141 17142 17143 if test "x$path" != "x$new_path"; then 17144 with_devkit="$new_path" 17145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17146 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17147 fi 17148 17149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17150 17151 path="$with_devkit" 17152 has_colon=`$ECHO $path | $GREP ^.:` 17153 new_path="$path" 17154 if test "x$has_colon" = x; then 17155 # Not in mixed or Windows style, start by that. 17156 new_path=`cmd //c echo $path` 17157 fi 17158 17159 17160 input_path="$new_path" 17161 # Check if we need to convert this using DOS-style short mode. If the path 17162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17163 # take no chances and rewrite it. 17164 # Note: m4 eats our [], so we need to use [ and ] instead. 17165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17166 if test "x$has_forbidden_chars" != x; then 17167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17168 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17169 fi 17170 17171 17172 windows_path="$new_path" 17173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17174 unix_path=`$CYGPATH -u "$windows_path"` 17175 new_path="$unix_path" 17176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17178 new_path="$unix_path" 17179 fi 17180 17181 if test "x$path" != "x$new_path"; then 17182 with_devkit="$new_path" 17183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17184 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17185 fi 17186 17187 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17188 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17189 17190 else 17191 # We're on a unix platform. Hooray! :) 17192 path="$with_devkit" 17193 has_space=`$ECHO "$path" | $GREP " "` 17194 if test "x$has_space" != x; then 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17196 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17197 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17198 fi 17199 17200 # Use eval to expand a potential ~ 17201 eval path="$path" 17202 if test ! -f "$path" && test ! -d "$path"; then 17203 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17204 fi 17205 17206 if test -d "$path"; then 17207 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17208 else 17209 dir="`$DIRNAME "$path"`" 17210 base="`$BASENAME "$path"`" 17211 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17212 fi 17213 fi 17214 fi 17215 17216 DEVKIT_ROOT="$with_devkit" 17217 # Check for a meta data info file in the root of the devkit 17218 if test -f "$DEVKIT_ROOT/devkit.info"; then 17219 . $DEVKIT_ROOT/devkit.info 17220 # This potentially sets the following: 17221 # A descriptive name of the devkit 17222 17223 if test "x$DEVKIT_NAME" = x; then 17224 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17225 fi 17226 17227 # Corresponds to --with-extra-path 17228 17229 if test "x$DEVKIT_EXTRA_PATH" = x; then 17230 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17231 fi 17232 17233 # Corresponds to --with-toolchain-path 17234 17235 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17236 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17237 fi 17238 17239 # Corresponds to --with-sysroot 17240 17241 if test "x$DEVKIT_SYSROOT" = x; then 17242 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17243 fi 17244 17245 17246 # Identifies the Visual Studio version in the devkit 17247 17248 if test "x$DEVKIT_VS_VERSION" = x; then 17249 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17250 fi 17251 17252 # The Visual Studio include environment variable 17253 17254 if test "x$DEVKIT_VS_INCLUDE" = x; then 17255 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17256 fi 17257 17258 # The Visual Studio lib environment variable 17259 17260 if test "x$DEVKIT_VS_LIB" = x; then 17261 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17262 fi 17263 17264 # Corresponds to --with-msvcr-dll 17265 17266 if test "x$DEVKIT_MSVCR_DLL" = x; then 17267 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17268 fi 17269 17270 # Corresponds to --with-msvcp-dll 17271 17272 if test "x$DEVKIT_MSVCP_DLL" = x; then 17273 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17274 fi 17275 17276 fi 17277 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17279 $as_echo_n "checking for devkit... " >&6; } 17280 if test "x$DEVKIT_NAME" != x; then 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17282 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17283 else 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17285 $as_echo "$DEVKIT_ROOT" >&6; } 17286 fi 17287 17288 17289 if test "x$DEVKIT_EXTRA_PATH" != x; then 17290 if test "x$EXTRA_PATH" = x; then 17291 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17292 else 17293 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17294 fi 17295 fi 17296 17297 17298 # Fallback default of just /bin if DEVKIT_PATH is not defined 17299 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17300 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17301 fi 17302 17303 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17304 if test "x$TOOLCHAIN_PATH" = x; then 17305 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17306 else 17307 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17308 fi 17309 fi 17310 17311 17312 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17313 # places for backwards compatiblity. 17314 if test "x$DEVKIT_SYSROOT" != x; then 17315 SYSROOT="$DEVKIT_SYSROOT" 17316 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17317 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17318 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17319 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17320 fi 17321 17322 17323 fi 17324 17325 17326 # You can force the sysroot if the sysroot encoded into the compiler tools 17327 # is not correct. 17328 17329 # Check whether --with-sys-root was given. 17330 if test "${with_sys_root+set}" = set; then : 17331 withval=$with_sys_root; SYSROOT=$with_sys_root 17332 17333 fi 17334 17335 17336 17337 # Check whether --with-sysroot was given. 17338 if test "${with_sysroot+set}" = set; then : 17339 withval=$with_sysroot; SYSROOT=$with_sysroot 17340 17341 fi 17342 17343 17344 17345 # Check whether --with-tools-dir was given. 17346 if test "${with_tools_dir+set}" = set; then : 17347 withval=$with_tools_dir; 17348 if test "x$with_tools_dir" != x; then 17349 if test "x$TOOLCHAIN_PATH" = x; then 17350 TOOLCHAIN_PATH="$with_tools_dir" 17351 else 17352 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17353 fi 17354 fi 17355 17356 17357 fi 17358 17359 17360 17361 # Check whether --with-toolchain-path was given. 17362 if test "${with_toolchain_path+set}" = set; then : 17363 withval=$with_toolchain_path; 17364 if test "x$with_toolchain_path" != x; then 17365 if test "x$TOOLCHAIN_PATH" = x; then 17366 TOOLCHAIN_PATH="$with_toolchain_path" 17367 else 17368 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17369 fi 17370 fi 17371 17372 17373 fi 17374 17375 17376 17377 # Check whether --with-extra-path was given. 17378 if test "${with_extra_path+set}" = set; then : 17379 withval=$with_extra_path; 17380 if test "x$with_extra_path" != x; then 17381 if test "x$EXTRA_PATH" = x; then 17382 EXTRA_PATH="$with_extra_path" 17383 else 17384 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17385 fi 17386 fi 17387 17388 17389 fi 17390 17391 17392 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17393 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17394 # If not, detect if Xcode is installed by running xcodebuild -version 17395 # if no Xcode installed, xcodebuild exits with 1 17396 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17397 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17398 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17399 # fall back on the stub binary in /usr/bin/xcodebuild 17400 # Extract the first word of "xcodebuild", so it can be a program name with args. 17401 set dummy xcodebuild; ac_word=$2 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17403 $as_echo_n "checking for $ac_word... " >&6; } 17404 if ${ac_cv_path_XCODEBUILD+:} false; then : 17405 $as_echo_n "(cached) " >&6 17406 else 17407 case $XCODEBUILD in 17408 [\\/]* | ?:[\\/]*) 17409 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17410 ;; 17411 *) 17412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17413 for as_dir in $TOOLCHAIN_PATH 17414 do 17415 IFS=$as_save_IFS 17416 test -z "$as_dir" && as_dir=. 17417 for ac_exec_ext in '' $ac_executable_extensions; do 17418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17419 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17421 break 2 17422 fi 17423 done 17424 done 17425 IFS=$as_save_IFS 17426 17427 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17428 ;; 17429 esac 17430 fi 17431 XCODEBUILD=$ac_cv_path_XCODEBUILD 17432 if test -n "$XCODEBUILD"; then 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17434 $as_echo "$XCODEBUILD" >&6; } 17435 else 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17437 $as_echo "no" >&6; } 17438 fi 17439 17440 17441 else 17442 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17443 # when only the command line tools are installed there are no SDKs, so headers 17444 # are copied into the system frameworks 17445 XCODEBUILD= 17446 17447 fi 17448 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17450 $as_echo_n "checking for sdk name... " >&6; } 17451 17452 # Check whether --with-sdk-name was given. 17453 if test "${with_sdk_name+set}" = set; then : 17454 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17455 17456 fi 17457 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17459 $as_echo "$SDKNAME" >&6; } 17460 17461 # if toolchain path is specified then don't rely on system headers, they may not compile 17462 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17463 test -z "$TOOLCHAIN_PATH" && \ 17464 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17465 17466 if test -z "$SYSROOT"; then 17467 if test -n "$XCODEBUILD"; then 17468 # if we don't have system headers, use default SDK name (last resort) 17469 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17470 SDKNAME=${SDKNAME:-macosx} 17471 fi 17472 17473 if test -n "$SDKNAME"; then 17474 # Call xcodebuild to determine SYSROOT 17475 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17476 fi 17477 else 17478 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17479 as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5 17480 fi 17481 fi 17482 else 17483 # warn user if --with-sdk-name was also set 17484 if test -n "$with_sdk_name"; then 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17486 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17487 fi 17488 fi 17489 17490 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17491 # If no system framework headers, then SYSROOT must be set, or we won't build 17492 as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5 17493 fi 17494 17495 # Perform a basic sanity test 17496 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17497 if test -z "$SYSROOT"; then 17498 as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5 17499 else 17500 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17501 fi 17502 fi 17503 17504 # set SDKROOT too, Xcode tools will pick it up 17505 SDKROOT="$SYSROOT" 17506 17507 fi 17508 17509 # Prepend the extra path to the global path 17510 17511 if test "x$EXTRA_PATH" != x; then 17512 if test "x$PATH" = x; then 17513 PATH="$EXTRA_PATH" 17514 else 17515 PATH="$EXTRA_PATH:$PATH" 17516 fi 17517 fi 17518 17519 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17521 $as_echo_n "checking for sysroot... " >&6; } 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17523 $as_echo "$SYSROOT" >&6; } 17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17525 $as_echo_n "checking for toolchain path... " >&6; } 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17527 $as_echo "$TOOLCHAIN_PATH" >&6; } 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17529 $as_echo_n "checking for extra path... " >&6; } 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17531 $as_echo "$EXTRA_PATH" >&6; } 17532 17533 17534 # To properly create a configuration name, we need to have the OpenJDK target 17535 # and options (variants and debug level) parsed. 17536 17537 17538 17539 # Check whether --with-conf-name was given. 17540 if test "${with_conf_name+set}" = set; then : 17541 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17542 fi 17543 17544 17545 # Check whether --with-output-base-dir was given. 17546 if test "${with_output_base_dir+set}" = set; then : 17547 withval=$with_output_base_dir; OUTPUT_BASE=${with_output_base_dir} 17548 else 17549 OUTPUT_BASE="$TOPDIR/build" 17550 fi 17551 17552 17553 # Test from where we are running configure, in or outside of src root. 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17555 $as_echo_n "checking where to store configuration... " >&6; } 17556 if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$TOPDIR/common" \ 17557 || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \ 17558 || test "x$CURDIR" = "x$TOPDIR/make" ; then 17559 # We are running configure from the src root. 17560 # Create a default ./build/target-variant-debuglevel output root. 17561 if test "x${CONF_NAME}" = x; then 17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17563 $as_echo "in default location" >&6; } 17564 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17565 else 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17567 $as_echo "in build directory with custom name" >&6; } 17568 fi 17569 OUTPUTDIR="${OUTPUT_BASE}/${CONF_NAME}" 17570 $MKDIR -p "$OUTPUTDIR" 17571 if test ! -d "$OUTPUTDIR"; then 17572 as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5 17573 fi 17574 else 17575 # We are running configure from outside of the src dir. 17576 # Then use the current directory as output dir! 17577 # If configuration is situated in normal build directory, just use the build 17578 # directory name as configuration name, otherwise use the complete path. 17579 if test "x${CONF_NAME}" = x; then 17580 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"` 17581 fi 17582 OUTPUTDIR="$CURDIR" 17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17584 $as_echo "in current directory" >&6; } 17585 17586 # WARNING: This might be a bad thing to do. You need to be sure you want to 17587 # have a configuration in this directory. Do some sanity checks! 17588 17589 if test ! -e "$OUTPUTDIR/spec.gmk"; then 17590 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17591 # other files 17592 files_present=`$LS $OUTPUTDIR` 17593 # Configure has already touched config.log and confdefs.h in the current dir when this check 17594 # is performed. 17595 filtered_files=`$ECHO "$files_present" \ 17596 | $SED -e 's/config.log//g' \ 17597 -e 's/configure.log//g' \ 17598 -e 's/confdefs.h//g' \ 17599 -e 's/ //g' \ 17600 | $TR -d '\n'` 17601 if test "x$filtered_files" != x; then 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17603 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17605 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17607 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17608 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17609 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17611 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5 17613 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;} 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17615 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17616 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17617 fi 17618 fi 17619 fi 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17621 $as_echo_n "checking what configuration name to use... " >&6; } 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17623 $as_echo "$CONF_NAME" >&6; } 17624 17625 17626 # Only process if variable expands to non-empty 17627 17628 if test "x$OUTPUTDIR" != x; then 17629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17630 17631 # Input might be given as Windows format, start by converting to 17632 # unix format. 17633 path="$OUTPUTDIR" 17634 new_path=`$CYGPATH -u "$path"` 17635 17636 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17637 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17638 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17639 # "foo.exe" is OK but "foo" is an error. 17640 # 17641 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17642 # It is also a way to make sure we got the proper file name for the real test later on. 17643 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17644 if test "x$test_shortpath" = x; then 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17646 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17647 as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5 17648 fi 17649 17650 # Call helper function which possibly converts this using DOS-style short mode. 17651 # If so, the updated path is stored in $new_path. 17652 17653 input_path="$new_path" 17654 # Check if we need to convert this using DOS-style short mode. If the path 17655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17656 # take no chances and rewrite it. 17657 # Note: m4 eats our [], so we need to use [ and ] instead. 17658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17659 if test "x$has_forbidden_chars" != x; then 17660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17664 # Going to short mode and back again did indeed matter. Since short mode is 17665 # case insensitive, let's make it lowercase to improve readability. 17666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17667 # Now convert it back to Unix-style (cygpath) 17668 input_path=`$CYGPATH -u "$shortmode_path"` 17669 new_path="$input_path" 17670 fi 17671 fi 17672 17673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17674 if test "x$test_cygdrive_prefix" = x; then 17675 # As a simple fix, exclude /usr/bin since it's not a real path. 17676 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17678 # a path prefixed by /cygdrive for fixpath to work. 17679 new_path="$CYGWIN_ROOT_PATH$input_path" 17680 fi 17681 fi 17682 17683 17684 if test "x$path" != "x$new_path"; then 17685 OUTPUTDIR="$new_path" 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17687 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17688 fi 17689 17690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17691 17692 path="$OUTPUTDIR" 17693 has_colon=`$ECHO $path | $GREP ^.:` 17694 new_path="$path" 17695 if test "x$has_colon" = x; then 17696 # Not in mixed or Windows style, start by that. 17697 new_path=`cmd //c echo $path` 17698 fi 17699 17700 17701 input_path="$new_path" 17702 # Check if we need to convert this using DOS-style short mode. If the path 17703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17704 # take no chances and rewrite it. 17705 # Note: m4 eats our [], so we need to use [ and ] instead. 17706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17707 if test "x$has_forbidden_chars" != x; then 17708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17709 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17710 fi 17711 17712 17713 windows_path="$new_path" 17714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17715 unix_path=`$CYGPATH -u "$windows_path"` 17716 new_path="$unix_path" 17717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17719 new_path="$unix_path" 17720 fi 17721 17722 if test "x$path" != "x$new_path"; then 17723 OUTPUTDIR="$new_path" 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17725 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17726 fi 17727 17728 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17729 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17730 17731 else 17732 # We're on a unix platform. Hooray! :) 17733 path="$OUTPUTDIR" 17734 has_space=`$ECHO "$path" | $GREP " "` 17735 if test "x$has_space" != x; then 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17737 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17738 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17739 fi 17740 17741 # Use eval to expand a potential ~ 17742 eval path="$path" 17743 if test ! -f "$path" && test ! -d "$path"; then 17744 as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5 17745 fi 17746 17747 if test -d "$path"; then 17748 OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`" 17749 else 17750 dir="`$DIRNAME "$path"`" 17751 base="`$BASENAME "$path"`" 17752 OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 17753 fi 17754 fi 17755 fi 17756 17757 17758 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support" 17759 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17760 17761 SPEC="$OUTPUTDIR/spec.gmk" 17762 17763 17764 17765 17766 17767 # The spec.gmk file contains all variables for the make system. 17768 ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17769 17770 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17771 ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17772 17773 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17774 ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17775 17776 # The compare.sh is used to compare the build output to other builds. 17777 ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17778 17779 # The generated Makefile knows where the spec.gmk is and where the source is. 17780 # You can run make from the OUTPUTDIR, or from the top-level Makefile 17781 # which will look for generated configurations 17782 ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" 17783 17784 17785 17786 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17787 17788 for ac_prog in apt-get yum brew port pkgutil pkgadd 17789 do 17790 # Extract the first word of "$ac_prog", so it can be a program name with args. 17791 set dummy $ac_prog; ac_word=$2 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17793 $as_echo_n "checking for $ac_word... " >&6; } 17794 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17795 $as_echo_n "(cached) " >&6 17796 else 17797 if test -n "$PKGHANDLER"; then 17798 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17799 else 17800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17801 for as_dir in $PATH 17802 do 17803 IFS=$as_save_IFS 17804 test -z "$as_dir" && as_dir=. 17805 for ac_exec_ext in '' $ac_executable_extensions; do 17806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17807 ac_cv_prog_PKGHANDLER="$ac_prog" 17808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17809 break 2 17810 fi 17811 done 17812 done 17813 IFS=$as_save_IFS 17814 17815 fi 17816 fi 17817 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17818 if test -n "$PKGHANDLER"; then 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17820 $as_echo "$PKGHANDLER" >&6; } 17821 else 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17823 $as_echo "no" >&6; } 17824 fi 17825 17826 17827 test -n "$PKGHANDLER" && break 17828 done 17829 17830 17831 17832 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17833 17834 17835 17836 # Publish this variable in the help. 17837 17838 17839 if [ -z "${MAKE+x}" ]; then 17840 # The variable is not set by user, try to locate tool using the code snippet 17841 17842 # Try our hardest to locate a correct version of GNU make 17843 for ac_prog in gmake 17844 do 17845 # Extract the first word of "$ac_prog", so it can be a program name with args. 17846 set dummy $ac_prog; ac_word=$2 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17848 $as_echo_n "checking for $ac_word... " >&6; } 17849 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17850 $as_echo_n "(cached) " >&6 17851 else 17852 case $CHECK_GMAKE in 17853 [\\/]* | ?:[\\/]*) 17854 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17855 ;; 17856 *) 17857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17858 for as_dir in $PATH 17859 do 17860 IFS=$as_save_IFS 17861 test -z "$as_dir" && as_dir=. 17862 for ac_exec_ext in '' $ac_executable_extensions; do 17863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17864 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17866 break 2 17867 fi 17868 done 17869 done 17870 IFS=$as_save_IFS 17871 17872 ;; 17873 esac 17874 fi 17875 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17876 if test -n "$CHECK_GMAKE"; then 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17878 $as_echo "$CHECK_GMAKE" >&6; } 17879 else 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17881 $as_echo "no" >&6; } 17882 fi 17883 17884 17885 test -n "$CHECK_GMAKE" && break 17886 done 17887 17888 17889 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17890 DESCRIPTION="gmake in PATH" 17891 17892 # On Cygwin, we require a newer version of make than on other platforms 17893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17894 MAKE_VERSION_EXPR="-e 4\." 17895 MAKE_REQUIRED_VERSION="4.0" 17896 else 17897 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17898 MAKE_REQUIRED_VERSION="3.81" 17899 fi 17900 17901 if test "x$MAKE_CANDIDATE" != x; then 17902 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17903 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17904 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17905 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17906 if test "x$IS_GNU_MAKE" = x; then 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17908 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17909 else 17910 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17911 if test "x$IS_MODERN_MAKE" = x; then 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17913 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17914 else 17915 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17917 MAKE_EXPECTED_ENV='cygwin' 17918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17919 MAKE_EXPECTED_ENV='msys' 17920 else 17921 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17922 fi 17923 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17924 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17925 else 17926 # Not relevant for non-Windows 17927 IS_MAKE_CORRECT_ENV=true 17928 fi 17929 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17930 { $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 17931 $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;} 17932 else 17933 FOUND_MAKE=$MAKE_CANDIDATE 17934 17935 # Only process if variable expands to non-empty 17936 17937 if test "x$FOUND_MAKE" != x; then 17938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17939 17940 # First separate the path from the arguments. This will split at the first 17941 # space. 17942 complete="$FOUND_MAKE" 17943 path="${complete%% *}" 17944 tmp="$complete EOL" 17945 arguments="${tmp#* }" 17946 17947 # Input might be given as Windows format, start by converting to 17948 # unix format. 17949 new_path=`$CYGPATH -u "$path"` 17950 17951 # Now try to locate executable using which 17952 new_path=`$WHICH "$new_path" 2> /dev/null` 17953 # bat and cmd files are not always considered executable in cygwin causing which 17954 # to not find them 17955 if test "x$new_path" = x \ 17956 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17957 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17958 new_path=`$CYGPATH -u "$path"` 17959 fi 17960 if test "x$new_path" = x; then 17961 # Oops. Which didn't find the executable. 17962 # The splitting of arguments from the executable at a space might have been incorrect, 17963 # since paths with space are more likely in Windows. Give it another try with the whole 17964 # argument. 17965 path="$complete" 17966 arguments="EOL" 17967 new_path=`$CYGPATH -u "$path"` 17968 new_path=`$WHICH "$new_path" 2> /dev/null` 17969 # bat and cmd files are not always considered executable in cygwin causing which 17970 # to not find them 17971 if test "x$new_path" = x \ 17972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17974 new_path=`$CYGPATH -u "$path"` 17975 fi 17976 if test "x$new_path" = x; then 17977 # It's still not found. Now this is an unrecoverable error. 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17979 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17980 has_space=`$ECHO "$complete" | $GREP " "` 17981 if test "x$has_space" != x; then 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17983 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17984 fi 17985 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17986 fi 17987 fi 17988 17989 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17990 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17991 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17992 # "foo.exe" is OK but "foo" is an error. 17993 # 17994 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17995 # It is also a way to make sure we got the proper file name for the real test later on. 17996 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17997 if test "x$test_shortpath" = x; then 17998 # Short path failed, file does not exist as specified. 17999 # Try adding .exe or .cmd 18000 if test -f "${new_path}.exe"; then 18001 input_to_shortpath="${new_path}.exe" 18002 elif test -f "${new_path}.cmd"; then 18003 input_to_shortpath="${new_path}.cmd" 18004 else 18005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18006 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18008 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18009 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18010 fi 18011 else 18012 input_to_shortpath="$new_path" 18013 fi 18014 18015 # Call helper function which possibly converts this using DOS-style short mode. 18016 # If so, the updated path is stored in $new_path. 18017 new_path="$input_to_shortpath" 18018 18019 input_path="$input_to_shortpath" 18020 # Check if we need to convert this using DOS-style short mode. If the path 18021 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18022 # take no chances and rewrite it. 18023 # Note: m4 eats our [], so we need to use [ and ] instead. 18024 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18025 if test "x$has_forbidden_chars" != x; then 18026 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18027 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18028 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18029 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18030 # Going to short mode and back again did indeed matter. Since short mode is 18031 # case insensitive, let's make it lowercase to improve readability. 18032 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18033 # Now convert it back to Unix-style (cygpath) 18034 input_path=`$CYGPATH -u "$shortmode_path"` 18035 new_path="$input_path" 18036 fi 18037 fi 18038 18039 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18040 if test "x$test_cygdrive_prefix" = x; then 18041 # As a simple fix, exclude /usr/bin since it's not a real path. 18042 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18043 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18044 # a path prefixed by /cygdrive for fixpath to work. 18045 new_path="$CYGWIN_ROOT_PATH$input_path" 18046 fi 18047 fi 18048 18049 # remove trailing .exe if any 18050 new_path="${new_path/%.exe/}" 18051 18052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18053 18054 # First separate the path from the arguments. This will split at the first 18055 # space. 18056 complete="$FOUND_MAKE" 18057 path="${complete%% *}" 18058 tmp="$complete EOL" 18059 arguments="${tmp#* }" 18060 18061 # Input might be given as Windows format, start by converting to 18062 # unix format. 18063 new_path="$path" 18064 18065 windows_path="$new_path" 18066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18067 unix_path=`$CYGPATH -u "$windows_path"` 18068 new_path="$unix_path" 18069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18070 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18071 new_path="$unix_path" 18072 fi 18073 18074 18075 # Now try to locate executable using which 18076 new_path=`$WHICH "$new_path" 2> /dev/null` 18077 18078 if test "x$new_path" = x; then 18079 # Oops. Which didn't find the executable. 18080 # The splitting of arguments from the executable at a space might have been incorrect, 18081 # since paths with space are more likely in Windows. Give it another try with the whole 18082 # argument. 18083 path="$complete" 18084 arguments="EOL" 18085 new_path="$path" 18086 18087 windows_path="$new_path" 18088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18089 unix_path=`$CYGPATH -u "$windows_path"` 18090 new_path="$unix_path" 18091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18093 new_path="$unix_path" 18094 fi 18095 18096 18097 new_path=`$WHICH "$new_path" 2> /dev/null` 18098 # bat and cmd files are not always considered executable in MSYS causing which 18099 # to not find them 18100 if test "x$new_path" = x \ 18101 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18102 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18103 new_path="$path" 18104 18105 windows_path="$new_path" 18106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18107 unix_path=`$CYGPATH -u "$windows_path"` 18108 new_path="$unix_path" 18109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18111 new_path="$unix_path" 18112 fi 18113 18114 fi 18115 18116 if test "x$new_path" = x; then 18117 # It's still not found. Now this is an unrecoverable error. 18118 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18119 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18120 has_space=`$ECHO "$complete" | $GREP " "` 18121 if test "x$has_space" != x; then 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18123 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18124 fi 18125 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18126 fi 18127 fi 18128 18129 # Now new_path has a complete unix path to the binary 18130 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18131 # Keep paths in /bin as-is, but remove trailing .exe if any 18132 new_path="${new_path/%.exe/}" 18133 # Do not save /bin paths to all_fixpath_prefixes! 18134 else 18135 # Not in mixed or Windows style, start by that. 18136 new_path=`cmd //c echo $new_path` 18137 18138 input_path="$new_path" 18139 # Check if we need to convert this using DOS-style short mode. If the path 18140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18141 # take no chances and rewrite it. 18142 # Note: m4 eats our [], so we need to use [ and ] instead. 18143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18144 if test "x$has_forbidden_chars" != x; then 18145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18146 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18147 fi 18148 18149 # Output is in $new_path 18150 18151 windows_path="$new_path" 18152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18153 unix_path=`$CYGPATH -u "$windows_path"` 18154 new_path="$unix_path" 18155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18157 new_path="$unix_path" 18158 fi 18159 18160 # remove trailing .exe if any 18161 new_path="${new_path/%.exe/}" 18162 18163 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18164 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18165 fi 18166 18167 else 18168 # We're on a unix platform. Hooray! :) 18169 # First separate the path from the arguments. This will split at the first 18170 # space. 18171 complete="$FOUND_MAKE" 18172 path="${complete%% *}" 18173 tmp="$complete EOL" 18174 arguments="${tmp#* }" 18175 18176 # Cannot rely on the command "which" here since it doesn't always work. 18177 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18178 if test -z "$is_absolute_path"; then 18179 # Path to executable is not absolute. Find it. 18180 IFS_save="$IFS" 18181 IFS=: 18182 for p in $PATH; do 18183 if test -f "$p/$path" && test -x "$p/$path"; then 18184 new_path="$p/$path" 18185 break 18186 fi 18187 done 18188 IFS="$IFS_save" 18189 else 18190 # This is an absolute path, we can use it without further modifications. 18191 new_path="$path" 18192 fi 18193 18194 if test "x$new_path" = x; then 18195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18196 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18197 has_space=`$ECHO "$complete" | $GREP " "` 18198 if test "x$has_space" != x; then 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18200 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18201 fi 18202 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18203 fi 18204 fi 18205 18206 # Now join together the path and the arguments once again 18207 if test "x$arguments" != xEOL; then 18208 new_complete="$new_path ${arguments% *}" 18209 else 18210 new_complete="$new_path" 18211 fi 18212 18213 if test "x$complete" != "x$new_complete"; then 18214 FOUND_MAKE="$new_complete" 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18216 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18217 fi 18218 fi 18219 18220 fi 18221 fi 18222 fi 18223 fi 18224 18225 18226 if test "x$FOUND_MAKE" = x; then 18227 for ac_prog in make 18228 do 18229 # Extract the first word of "$ac_prog", so it can be a program name with args. 18230 set dummy $ac_prog; ac_word=$2 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18232 $as_echo_n "checking for $ac_word... " >&6; } 18233 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18234 $as_echo_n "(cached) " >&6 18235 else 18236 case $CHECK_MAKE in 18237 [\\/]* | ?:[\\/]*) 18238 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18239 ;; 18240 *) 18241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18242 for as_dir in $PATH 18243 do 18244 IFS=$as_save_IFS 18245 test -z "$as_dir" && as_dir=. 18246 for ac_exec_ext in '' $ac_executable_extensions; do 18247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18248 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18250 break 2 18251 fi 18252 done 18253 done 18254 IFS=$as_save_IFS 18255 18256 ;; 18257 esac 18258 fi 18259 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18260 if test -n "$CHECK_MAKE"; then 18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18262 $as_echo "$CHECK_MAKE" >&6; } 18263 else 18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18265 $as_echo "no" >&6; } 18266 fi 18267 18268 18269 test -n "$CHECK_MAKE" && break 18270 done 18271 18272 18273 MAKE_CANDIDATE=""$CHECK_MAKE"" 18274 DESCRIPTION="make in PATH" 18275 18276 # On Cygwin, we require a newer version of make than on other platforms 18277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18278 MAKE_VERSION_EXPR="-e 4\." 18279 MAKE_REQUIRED_VERSION="4.0" 18280 else 18281 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18282 MAKE_REQUIRED_VERSION="3.81" 18283 fi 18284 18285 if test "x$MAKE_CANDIDATE" != x; then 18286 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18287 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18288 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18289 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18290 if test "x$IS_GNU_MAKE" = x; then 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18292 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18293 else 18294 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18295 if test "x$IS_MODERN_MAKE" = x; then 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18297 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18298 else 18299 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18301 MAKE_EXPECTED_ENV='cygwin' 18302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18303 MAKE_EXPECTED_ENV='msys' 18304 else 18305 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18306 fi 18307 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18308 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18309 else 18310 # Not relevant for non-Windows 18311 IS_MAKE_CORRECT_ENV=true 18312 fi 18313 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18314 { $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 18315 $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;} 18316 else 18317 FOUND_MAKE=$MAKE_CANDIDATE 18318 18319 # Only process if variable expands to non-empty 18320 18321 if test "x$FOUND_MAKE" != x; then 18322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18323 18324 # First separate the path from the arguments. This will split at the first 18325 # space. 18326 complete="$FOUND_MAKE" 18327 path="${complete%% *}" 18328 tmp="$complete EOL" 18329 arguments="${tmp#* }" 18330 18331 # Input might be given as Windows format, start by converting to 18332 # unix format. 18333 new_path=`$CYGPATH -u "$path"` 18334 18335 # Now try to locate executable using which 18336 new_path=`$WHICH "$new_path" 2> /dev/null` 18337 # bat and cmd files are not always considered executable in cygwin causing which 18338 # to not find them 18339 if test "x$new_path" = x \ 18340 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18341 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18342 new_path=`$CYGPATH -u "$path"` 18343 fi 18344 if test "x$new_path" = x; then 18345 # Oops. Which didn't find the executable. 18346 # The splitting of arguments from the executable at a space might have been incorrect, 18347 # since paths with space are more likely in Windows. Give it another try with the whole 18348 # argument. 18349 path="$complete" 18350 arguments="EOL" 18351 new_path=`$CYGPATH -u "$path"` 18352 new_path=`$WHICH "$new_path" 2> /dev/null` 18353 # bat and cmd files are not always considered executable in cygwin causing which 18354 # to not find them 18355 if test "x$new_path" = x \ 18356 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18357 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18358 new_path=`$CYGPATH -u "$path"` 18359 fi 18360 if test "x$new_path" = x; then 18361 # It's still not found. Now this is an unrecoverable error. 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18363 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18364 has_space=`$ECHO "$complete" | $GREP " "` 18365 if test "x$has_space" != x; then 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18367 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18368 fi 18369 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18370 fi 18371 fi 18372 18373 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18374 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18375 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18376 # "foo.exe" is OK but "foo" is an error. 18377 # 18378 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18379 # It is also a way to make sure we got the proper file name for the real test later on. 18380 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18381 if test "x$test_shortpath" = x; then 18382 # Short path failed, file does not exist as specified. 18383 # Try adding .exe or .cmd 18384 if test -f "${new_path}.exe"; then 18385 input_to_shortpath="${new_path}.exe" 18386 elif test -f "${new_path}.cmd"; then 18387 input_to_shortpath="${new_path}.cmd" 18388 else 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18390 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18392 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18393 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18394 fi 18395 else 18396 input_to_shortpath="$new_path" 18397 fi 18398 18399 # Call helper function which possibly converts this using DOS-style short mode. 18400 # If so, the updated path is stored in $new_path. 18401 new_path="$input_to_shortpath" 18402 18403 input_path="$input_to_shortpath" 18404 # Check if we need to convert this using DOS-style short mode. If the path 18405 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18406 # take no chances and rewrite it. 18407 # Note: m4 eats our [], so we need to use [ and ] instead. 18408 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18409 if test "x$has_forbidden_chars" != x; then 18410 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18411 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18412 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18413 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18414 # Going to short mode and back again did indeed matter. Since short mode is 18415 # case insensitive, let's make it lowercase to improve readability. 18416 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18417 # Now convert it back to Unix-style (cygpath) 18418 input_path=`$CYGPATH -u "$shortmode_path"` 18419 new_path="$input_path" 18420 fi 18421 fi 18422 18423 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18424 if test "x$test_cygdrive_prefix" = x; then 18425 # As a simple fix, exclude /usr/bin since it's not a real path. 18426 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18427 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18428 # a path prefixed by /cygdrive for fixpath to work. 18429 new_path="$CYGWIN_ROOT_PATH$input_path" 18430 fi 18431 fi 18432 18433 # remove trailing .exe if any 18434 new_path="${new_path/%.exe/}" 18435 18436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18437 18438 # First separate the path from the arguments. This will split at the first 18439 # space. 18440 complete="$FOUND_MAKE" 18441 path="${complete%% *}" 18442 tmp="$complete EOL" 18443 arguments="${tmp#* }" 18444 18445 # Input might be given as Windows format, start by converting to 18446 # unix format. 18447 new_path="$path" 18448 18449 windows_path="$new_path" 18450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18451 unix_path=`$CYGPATH -u "$windows_path"` 18452 new_path="$unix_path" 18453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18455 new_path="$unix_path" 18456 fi 18457 18458 18459 # Now try to locate executable using which 18460 new_path=`$WHICH "$new_path" 2> /dev/null` 18461 18462 if test "x$new_path" = x; then 18463 # Oops. Which didn't find the executable. 18464 # The splitting of arguments from the executable at a space might have been incorrect, 18465 # since paths with space are more likely in Windows. Give it another try with the whole 18466 # argument. 18467 path="$complete" 18468 arguments="EOL" 18469 new_path="$path" 18470 18471 windows_path="$new_path" 18472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18473 unix_path=`$CYGPATH -u "$windows_path"` 18474 new_path="$unix_path" 18475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18477 new_path="$unix_path" 18478 fi 18479 18480 18481 new_path=`$WHICH "$new_path" 2> /dev/null` 18482 # bat and cmd files are not always considered executable in MSYS causing which 18483 # to not find them 18484 if test "x$new_path" = x \ 18485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18487 new_path="$path" 18488 18489 windows_path="$new_path" 18490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18491 unix_path=`$CYGPATH -u "$windows_path"` 18492 new_path="$unix_path" 18493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18495 new_path="$unix_path" 18496 fi 18497 18498 fi 18499 18500 if test "x$new_path" = x; then 18501 # It's still not found. Now this is an unrecoverable error. 18502 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18503 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18504 has_space=`$ECHO "$complete" | $GREP " "` 18505 if test "x$has_space" != x; then 18506 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18507 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18508 fi 18509 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18510 fi 18511 fi 18512 18513 # Now new_path has a complete unix path to the binary 18514 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18515 # Keep paths in /bin as-is, but remove trailing .exe if any 18516 new_path="${new_path/%.exe/}" 18517 # Do not save /bin paths to all_fixpath_prefixes! 18518 else 18519 # Not in mixed or Windows style, start by that. 18520 new_path=`cmd //c echo $new_path` 18521 18522 input_path="$new_path" 18523 # Check if we need to convert this using DOS-style short mode. If the path 18524 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18525 # take no chances and rewrite it. 18526 # Note: m4 eats our [], so we need to use [ and ] instead. 18527 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18528 if test "x$has_forbidden_chars" != x; then 18529 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18530 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18531 fi 18532 18533 # Output is in $new_path 18534 18535 windows_path="$new_path" 18536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18537 unix_path=`$CYGPATH -u "$windows_path"` 18538 new_path="$unix_path" 18539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18541 new_path="$unix_path" 18542 fi 18543 18544 # remove trailing .exe if any 18545 new_path="${new_path/%.exe/}" 18546 18547 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18548 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18549 fi 18550 18551 else 18552 # We're on a unix platform. Hooray! :) 18553 # First separate the path from the arguments. This will split at the first 18554 # space. 18555 complete="$FOUND_MAKE" 18556 path="${complete%% *}" 18557 tmp="$complete EOL" 18558 arguments="${tmp#* }" 18559 18560 # Cannot rely on the command "which" here since it doesn't always work. 18561 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18562 if test -z "$is_absolute_path"; then 18563 # Path to executable is not absolute. Find it. 18564 IFS_save="$IFS" 18565 IFS=: 18566 for p in $PATH; do 18567 if test -f "$p/$path" && test -x "$p/$path"; then 18568 new_path="$p/$path" 18569 break 18570 fi 18571 done 18572 IFS="$IFS_save" 18573 else 18574 # This is an absolute path, we can use it without further modifications. 18575 new_path="$path" 18576 fi 18577 18578 if test "x$new_path" = x; then 18579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18580 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18581 has_space=`$ECHO "$complete" | $GREP " "` 18582 if test "x$has_space" != x; then 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18584 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18585 fi 18586 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18587 fi 18588 fi 18589 18590 # Now join together the path and the arguments once again 18591 if test "x$arguments" != xEOL; then 18592 new_complete="$new_path ${arguments% *}" 18593 else 18594 new_complete="$new_path" 18595 fi 18596 18597 if test "x$complete" != "x$new_complete"; then 18598 FOUND_MAKE="$new_complete" 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18600 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18601 fi 18602 fi 18603 18604 fi 18605 fi 18606 fi 18607 fi 18608 18609 fi 18610 18611 if test "x$FOUND_MAKE" = x; then 18612 if test "x$TOOLCHAIN_PATH" != x; then 18613 # We have a toolchain path, check that as well before giving up. 18614 OLD_PATH=$PATH 18615 PATH=$TOOLCHAIN_PATH:$PATH 18616 for ac_prog in gmake 18617 do 18618 # Extract the first word of "$ac_prog", so it can be a program name with args. 18619 set dummy $ac_prog; ac_word=$2 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18621 $as_echo_n "checking for $ac_word... " >&6; } 18622 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18623 $as_echo_n "(cached) " >&6 18624 else 18625 case $CHECK_TOOLSDIR_GMAKE in 18626 [\\/]* | ?:[\\/]*) 18627 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18628 ;; 18629 *) 18630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18631 for as_dir in $PATH 18632 do 18633 IFS=$as_save_IFS 18634 test -z "$as_dir" && as_dir=. 18635 for ac_exec_ext in '' $ac_executable_extensions; do 18636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18637 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18639 break 2 18640 fi 18641 done 18642 done 18643 IFS=$as_save_IFS 18644 18645 ;; 18646 esac 18647 fi 18648 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18649 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18651 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18652 else 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18654 $as_echo "no" >&6; } 18655 fi 18656 18657 18658 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18659 done 18660 18661 18662 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18663 DESCRIPTION="gmake in tools-dir" 18664 18665 # On Cygwin, we require a newer version of make than on other platforms 18666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18667 MAKE_VERSION_EXPR="-e 4\." 18668 MAKE_REQUIRED_VERSION="4.0" 18669 else 18670 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18671 MAKE_REQUIRED_VERSION="3.81" 18672 fi 18673 18674 if test "x$MAKE_CANDIDATE" != x; then 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18676 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18677 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18678 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18679 if test "x$IS_GNU_MAKE" = x; then 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18681 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18682 else 18683 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18684 if test "x$IS_MODERN_MAKE" = x; then 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 18686 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 18687 else 18688 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18690 MAKE_EXPECTED_ENV='cygwin' 18691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18692 MAKE_EXPECTED_ENV='msys' 18693 else 18694 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18695 fi 18696 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18697 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18698 else 18699 # Not relevant for non-Windows 18700 IS_MAKE_CORRECT_ENV=true 18701 fi 18702 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18703 { $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 18704 $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;} 18705 else 18706 FOUND_MAKE=$MAKE_CANDIDATE 18707 18708 # Only process if variable expands to non-empty 18709 18710 if test "x$FOUND_MAKE" != x; then 18711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18712 18713 # First separate the path from the arguments. This will split at the first 18714 # space. 18715 complete="$FOUND_MAKE" 18716 path="${complete%% *}" 18717 tmp="$complete EOL" 18718 arguments="${tmp#* }" 18719 18720 # Input might be given as Windows format, start by converting to 18721 # unix format. 18722 new_path=`$CYGPATH -u "$path"` 18723 18724 # Now try to locate executable using which 18725 new_path=`$WHICH "$new_path" 2> /dev/null` 18726 # bat and cmd files are not always considered executable in cygwin causing which 18727 # to not find them 18728 if test "x$new_path" = x \ 18729 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18730 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18731 new_path=`$CYGPATH -u "$path"` 18732 fi 18733 if test "x$new_path" = x; then 18734 # Oops. Which didn't find the executable. 18735 # The splitting of arguments from the executable at a space might have been incorrect, 18736 # since paths with space are more likely in Windows. Give it another try with the whole 18737 # argument. 18738 path="$complete" 18739 arguments="EOL" 18740 new_path=`$CYGPATH -u "$path"` 18741 new_path=`$WHICH "$new_path" 2> /dev/null` 18742 # bat and cmd files are not always considered executable in cygwin causing which 18743 # to not find them 18744 if test "x$new_path" = x \ 18745 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18746 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18747 new_path=`$CYGPATH -u "$path"` 18748 fi 18749 if test "x$new_path" = x; then 18750 # It's still not found. Now this is an unrecoverable error. 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18752 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18753 has_space=`$ECHO "$complete" | $GREP " "` 18754 if test "x$has_space" != x; then 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18756 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18757 fi 18758 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18759 fi 18760 fi 18761 18762 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18763 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18764 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18765 # "foo.exe" is OK but "foo" is an error. 18766 # 18767 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18768 # It is also a way to make sure we got the proper file name for the real test later on. 18769 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18770 if test "x$test_shortpath" = x; then 18771 # Short path failed, file does not exist as specified. 18772 # Try adding .exe or .cmd 18773 if test -f "${new_path}.exe"; then 18774 input_to_shortpath="${new_path}.exe" 18775 elif test -f "${new_path}.cmd"; then 18776 input_to_shortpath="${new_path}.cmd" 18777 else 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18779 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18781 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18782 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18783 fi 18784 else 18785 input_to_shortpath="$new_path" 18786 fi 18787 18788 # Call helper function which possibly converts this using DOS-style short mode. 18789 # If so, the updated path is stored in $new_path. 18790 new_path="$input_to_shortpath" 18791 18792 input_path="$input_to_shortpath" 18793 # Check if we need to convert this using DOS-style short mode. If the path 18794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18795 # take no chances and rewrite it. 18796 # Note: m4 eats our [], so we need to use [ and ] instead. 18797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18798 if test "x$has_forbidden_chars" != x; then 18799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18800 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18801 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18802 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18803 # Going to short mode and back again did indeed matter. Since short mode is 18804 # case insensitive, let's make it lowercase to improve readability. 18805 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18806 # Now convert it back to Unix-style (cygpath) 18807 input_path=`$CYGPATH -u "$shortmode_path"` 18808 new_path="$input_path" 18809 fi 18810 fi 18811 18812 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18813 if test "x$test_cygdrive_prefix" = x; then 18814 # As a simple fix, exclude /usr/bin since it's not a real path. 18815 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18816 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18817 # a path prefixed by /cygdrive for fixpath to work. 18818 new_path="$CYGWIN_ROOT_PATH$input_path" 18819 fi 18820 fi 18821 18822 # remove trailing .exe if any 18823 new_path="${new_path/%.exe/}" 18824 18825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18826 18827 # First separate the path from the arguments. This will split at the first 18828 # space. 18829 complete="$FOUND_MAKE" 18830 path="${complete%% *}" 18831 tmp="$complete EOL" 18832 arguments="${tmp#* }" 18833 18834 # Input might be given as Windows format, start by converting to 18835 # unix format. 18836 new_path="$path" 18837 18838 windows_path="$new_path" 18839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18840 unix_path=`$CYGPATH -u "$windows_path"` 18841 new_path="$unix_path" 18842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18844 new_path="$unix_path" 18845 fi 18846 18847 18848 # Now try to locate executable using which 18849 new_path=`$WHICH "$new_path" 2> /dev/null` 18850 18851 if test "x$new_path" = x; then 18852 # Oops. Which didn't find the executable. 18853 # The splitting of arguments from the executable at a space might have been incorrect, 18854 # since paths with space are more likely in Windows. Give it another try with the whole 18855 # argument. 18856 path="$complete" 18857 arguments="EOL" 18858 new_path="$path" 18859 18860 windows_path="$new_path" 18861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18862 unix_path=`$CYGPATH -u "$windows_path"` 18863 new_path="$unix_path" 18864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18865 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18866 new_path="$unix_path" 18867 fi 18868 18869 18870 new_path=`$WHICH "$new_path" 2> /dev/null` 18871 # bat and cmd files are not always considered executable in MSYS causing which 18872 # to not find them 18873 if test "x$new_path" = x \ 18874 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18875 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18876 new_path="$path" 18877 18878 windows_path="$new_path" 18879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18880 unix_path=`$CYGPATH -u "$windows_path"` 18881 new_path="$unix_path" 18882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18884 new_path="$unix_path" 18885 fi 18886 18887 fi 18888 18889 if test "x$new_path" = x; then 18890 # It's still not found. Now this is an unrecoverable error. 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18892 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18893 has_space=`$ECHO "$complete" | $GREP " "` 18894 if test "x$has_space" != x; then 18895 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18896 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18897 fi 18898 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18899 fi 18900 fi 18901 18902 # Now new_path has a complete unix path to the binary 18903 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18904 # Keep paths in /bin as-is, but remove trailing .exe if any 18905 new_path="${new_path/%.exe/}" 18906 # Do not save /bin paths to all_fixpath_prefixes! 18907 else 18908 # Not in mixed or Windows style, start by that. 18909 new_path=`cmd //c echo $new_path` 18910 18911 input_path="$new_path" 18912 # Check if we need to convert this using DOS-style short mode. If the path 18913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18914 # take no chances and rewrite it. 18915 # Note: m4 eats our [], so we need to use [ and ] instead. 18916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18917 if test "x$has_forbidden_chars" != x; then 18918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18919 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18920 fi 18921 18922 # Output is in $new_path 18923 18924 windows_path="$new_path" 18925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18926 unix_path=`$CYGPATH -u "$windows_path"` 18927 new_path="$unix_path" 18928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18930 new_path="$unix_path" 18931 fi 18932 18933 # remove trailing .exe if any 18934 new_path="${new_path/%.exe/}" 18935 18936 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18937 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18938 fi 18939 18940 else 18941 # We're on a unix platform. Hooray! :) 18942 # First separate the path from the arguments. This will split at the first 18943 # space. 18944 complete="$FOUND_MAKE" 18945 path="${complete%% *}" 18946 tmp="$complete EOL" 18947 arguments="${tmp#* }" 18948 18949 # Cannot rely on the command "which" here since it doesn't always work. 18950 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18951 if test -z "$is_absolute_path"; then 18952 # Path to executable is not absolute. Find it. 18953 IFS_save="$IFS" 18954 IFS=: 18955 for p in $PATH; do 18956 if test -f "$p/$path" && test -x "$p/$path"; then 18957 new_path="$p/$path" 18958 break 18959 fi 18960 done 18961 IFS="$IFS_save" 18962 else 18963 # This is an absolute path, we can use it without further modifications. 18964 new_path="$path" 18965 fi 18966 18967 if test "x$new_path" = x; then 18968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18969 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18970 has_space=`$ECHO "$complete" | $GREP " "` 18971 if test "x$has_space" != x; then 18972 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18973 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18974 fi 18975 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18976 fi 18977 fi 18978 18979 # Now join together the path and the arguments once again 18980 if test "x$arguments" != xEOL; then 18981 new_complete="$new_path ${arguments% *}" 18982 else 18983 new_complete="$new_path" 18984 fi 18985 18986 if test "x$complete" != "x$new_complete"; then 18987 FOUND_MAKE="$new_complete" 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18989 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18990 fi 18991 fi 18992 18993 fi 18994 fi 18995 fi 18996 fi 18997 18998 if test "x$FOUND_MAKE" = x; then 18999 for ac_prog in make 19000 do 19001 # Extract the first word of "$ac_prog", so it can be a program name with args. 19002 set dummy $ac_prog; ac_word=$2 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19004 $as_echo_n "checking for $ac_word... " >&6; } 19005 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19006 $as_echo_n "(cached) " >&6 19007 else 19008 case $CHECK_TOOLSDIR_MAKE in 19009 [\\/]* | ?:[\\/]*) 19010 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19011 ;; 19012 *) 19013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19014 for as_dir in $PATH 19015 do 19016 IFS=$as_save_IFS 19017 test -z "$as_dir" && as_dir=. 19018 for ac_exec_ext in '' $ac_executable_extensions; do 19019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19020 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19022 break 2 19023 fi 19024 done 19025 done 19026 IFS=$as_save_IFS 19027 19028 ;; 19029 esac 19030 fi 19031 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19032 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19034 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19035 else 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19037 $as_echo "no" >&6; } 19038 fi 19039 19040 19041 test -n "$CHECK_TOOLSDIR_MAKE" && break 19042 done 19043 19044 19045 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19046 DESCRIPTION="make in tools-dir" 19047 19048 # On Cygwin, we require a newer version of make than on other platforms 19049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19050 MAKE_VERSION_EXPR="-e 4\." 19051 MAKE_REQUIRED_VERSION="4.0" 19052 else 19053 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19054 MAKE_REQUIRED_VERSION="3.81" 19055 fi 19056 19057 if test "x$MAKE_CANDIDATE" != x; then 19058 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19059 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19060 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19061 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19062 if test "x$IS_GNU_MAKE" = x; then 19063 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19064 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19065 else 19066 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19067 if test "x$IS_MODERN_MAKE" = x; then 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19069 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19070 else 19071 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19073 MAKE_EXPECTED_ENV='cygwin' 19074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19075 MAKE_EXPECTED_ENV='msys' 19076 else 19077 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19078 fi 19079 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19080 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19081 else 19082 # Not relevant for non-Windows 19083 IS_MAKE_CORRECT_ENV=true 19084 fi 19085 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19086 { $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 19087 $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;} 19088 else 19089 FOUND_MAKE=$MAKE_CANDIDATE 19090 19091 # Only process if variable expands to non-empty 19092 19093 if test "x$FOUND_MAKE" != x; then 19094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19095 19096 # First separate the path from the arguments. This will split at the first 19097 # space. 19098 complete="$FOUND_MAKE" 19099 path="${complete%% *}" 19100 tmp="$complete EOL" 19101 arguments="${tmp#* }" 19102 19103 # Input might be given as Windows format, start by converting to 19104 # unix format. 19105 new_path=`$CYGPATH -u "$path"` 19106 19107 # Now try to locate executable using which 19108 new_path=`$WHICH "$new_path" 2> /dev/null` 19109 # bat and cmd files are not always considered executable in cygwin causing which 19110 # to not find them 19111 if test "x$new_path" = x \ 19112 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19113 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19114 new_path=`$CYGPATH -u "$path"` 19115 fi 19116 if test "x$new_path" = x; then 19117 # Oops. Which didn't find the executable. 19118 # The splitting of arguments from the executable at a space might have been incorrect, 19119 # since paths with space are more likely in Windows. Give it another try with the whole 19120 # argument. 19121 path="$complete" 19122 arguments="EOL" 19123 new_path=`$CYGPATH -u "$path"` 19124 new_path=`$WHICH "$new_path" 2> /dev/null` 19125 # bat and cmd files are not always considered executable in cygwin causing which 19126 # to not find them 19127 if test "x$new_path" = x \ 19128 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19129 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19130 new_path=`$CYGPATH -u "$path"` 19131 fi 19132 if test "x$new_path" = x; then 19133 # It's still not found. Now this is an unrecoverable error. 19134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19135 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19136 has_space=`$ECHO "$complete" | $GREP " "` 19137 if test "x$has_space" != x; then 19138 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19139 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19140 fi 19141 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19142 fi 19143 fi 19144 19145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19148 # "foo.exe" is OK but "foo" is an error. 19149 # 19150 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19151 # It is also a way to make sure we got the proper file name for the real test later on. 19152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19153 if test "x$test_shortpath" = x; then 19154 # Short path failed, file does not exist as specified. 19155 # Try adding .exe or .cmd 19156 if test -f "${new_path}.exe"; then 19157 input_to_shortpath="${new_path}.exe" 19158 elif test -f "${new_path}.cmd"; then 19159 input_to_shortpath="${new_path}.cmd" 19160 else 19161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19162 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19164 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19165 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19166 fi 19167 else 19168 input_to_shortpath="$new_path" 19169 fi 19170 19171 # Call helper function which possibly converts this using DOS-style short mode. 19172 # If so, the updated path is stored in $new_path. 19173 new_path="$input_to_shortpath" 19174 19175 input_path="$input_to_shortpath" 19176 # Check if we need to convert this using DOS-style short mode. If the path 19177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19178 # take no chances and rewrite it. 19179 # Note: m4 eats our [], so we need to use [ and ] instead. 19180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19181 if test "x$has_forbidden_chars" != x; then 19182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19183 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19184 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19185 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19186 # Going to short mode and back again did indeed matter. Since short mode is 19187 # case insensitive, let's make it lowercase to improve readability. 19188 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19189 # Now convert it back to Unix-style (cygpath) 19190 input_path=`$CYGPATH -u "$shortmode_path"` 19191 new_path="$input_path" 19192 fi 19193 fi 19194 19195 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19196 if test "x$test_cygdrive_prefix" = x; then 19197 # As a simple fix, exclude /usr/bin since it's not a real path. 19198 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19199 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19200 # a path prefixed by /cygdrive for fixpath to work. 19201 new_path="$CYGWIN_ROOT_PATH$input_path" 19202 fi 19203 fi 19204 19205 # remove trailing .exe if any 19206 new_path="${new_path/%.exe/}" 19207 19208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19209 19210 # First separate the path from the arguments. This will split at the first 19211 # space. 19212 complete="$FOUND_MAKE" 19213 path="${complete%% *}" 19214 tmp="$complete EOL" 19215 arguments="${tmp#* }" 19216 19217 # Input might be given as Windows format, start by converting to 19218 # unix format. 19219 new_path="$path" 19220 19221 windows_path="$new_path" 19222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19223 unix_path=`$CYGPATH -u "$windows_path"` 19224 new_path="$unix_path" 19225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19227 new_path="$unix_path" 19228 fi 19229 19230 19231 # Now try to locate executable using which 19232 new_path=`$WHICH "$new_path" 2> /dev/null` 19233 19234 if test "x$new_path" = x; then 19235 # Oops. Which didn't find the executable. 19236 # The splitting of arguments from the executable at a space might have been incorrect, 19237 # since paths with space are more likely in Windows. Give it another try with the whole 19238 # argument. 19239 path="$complete" 19240 arguments="EOL" 19241 new_path="$path" 19242 19243 windows_path="$new_path" 19244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19245 unix_path=`$CYGPATH -u "$windows_path"` 19246 new_path="$unix_path" 19247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19249 new_path="$unix_path" 19250 fi 19251 19252 19253 new_path=`$WHICH "$new_path" 2> /dev/null` 19254 # bat and cmd files are not always considered executable in MSYS causing which 19255 # to not find them 19256 if test "x$new_path" = x \ 19257 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19258 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19259 new_path="$path" 19260 19261 windows_path="$new_path" 19262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19263 unix_path=`$CYGPATH -u "$windows_path"` 19264 new_path="$unix_path" 19265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19267 new_path="$unix_path" 19268 fi 19269 19270 fi 19271 19272 if test "x$new_path" = x; then 19273 # It's still not found. Now this is an unrecoverable error. 19274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19275 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19276 has_space=`$ECHO "$complete" | $GREP " "` 19277 if test "x$has_space" != x; then 19278 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19279 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19280 fi 19281 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19282 fi 19283 fi 19284 19285 # Now new_path has a complete unix path to the binary 19286 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19287 # Keep paths in /bin as-is, but remove trailing .exe if any 19288 new_path="${new_path/%.exe/}" 19289 # Do not save /bin paths to all_fixpath_prefixes! 19290 else 19291 # Not in mixed or Windows style, start by that. 19292 new_path=`cmd //c echo $new_path` 19293 19294 input_path="$new_path" 19295 # Check if we need to convert this using DOS-style short mode. If the path 19296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19297 # take no chances and rewrite it. 19298 # Note: m4 eats our [], so we need to use [ and ] instead. 19299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19300 if test "x$has_forbidden_chars" != x; then 19301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19302 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19303 fi 19304 19305 # Output is in $new_path 19306 19307 windows_path="$new_path" 19308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19309 unix_path=`$CYGPATH -u "$windows_path"` 19310 new_path="$unix_path" 19311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19313 new_path="$unix_path" 19314 fi 19315 19316 # remove trailing .exe if any 19317 new_path="${new_path/%.exe/}" 19318 19319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19321 fi 19322 19323 else 19324 # We're on a unix platform. Hooray! :) 19325 # First separate the path from the arguments. This will split at the first 19326 # space. 19327 complete="$FOUND_MAKE" 19328 path="${complete%% *}" 19329 tmp="$complete EOL" 19330 arguments="${tmp#* }" 19331 19332 # Cannot rely on the command "which" here since it doesn't always work. 19333 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19334 if test -z "$is_absolute_path"; then 19335 # Path to executable is not absolute. Find it. 19336 IFS_save="$IFS" 19337 IFS=: 19338 for p in $PATH; do 19339 if test -f "$p/$path" && test -x "$p/$path"; then 19340 new_path="$p/$path" 19341 break 19342 fi 19343 done 19344 IFS="$IFS_save" 19345 else 19346 # This is an absolute path, we can use it without further modifications. 19347 new_path="$path" 19348 fi 19349 19350 if test "x$new_path" = x; then 19351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19352 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19353 has_space=`$ECHO "$complete" | $GREP " "` 19354 if test "x$has_space" != x; then 19355 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19356 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19357 fi 19358 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19359 fi 19360 fi 19361 19362 # Now join together the path and the arguments once again 19363 if test "x$arguments" != xEOL; then 19364 new_complete="$new_path ${arguments% *}" 19365 else 19366 new_complete="$new_path" 19367 fi 19368 19369 if test "x$complete" != "x$new_complete"; then 19370 FOUND_MAKE="$new_complete" 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19372 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19373 fi 19374 fi 19375 19376 fi 19377 fi 19378 fi 19379 fi 19380 19381 fi 19382 PATH=$OLD_PATH 19383 fi 19384 fi 19385 19386 if test "x$FOUND_MAKE" = x; then 19387 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 19388 fi 19389 19390 else 19391 # The variable is set, but is it from the command line or the environment? 19392 19393 # Try to remove the string !MAKE! from our list. 19394 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19395 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19396 # If it failed, the variable was not from the command line. Ignore it, 19397 # but warn the user (except for BASH, which is always set by the calling BASH). 19398 if test "xMAKE" != xBASH; then 19399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19400 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19401 fi 19402 # Try to locate tool using the code snippet 19403 19404 # Try our hardest to locate a correct version of GNU make 19405 for ac_prog in gmake 19406 do 19407 # Extract the first word of "$ac_prog", so it can be a program name with args. 19408 set dummy $ac_prog; ac_word=$2 19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19410 $as_echo_n "checking for $ac_word... " >&6; } 19411 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19412 $as_echo_n "(cached) " >&6 19413 else 19414 case $CHECK_GMAKE in 19415 [\\/]* | ?:[\\/]*) 19416 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19417 ;; 19418 *) 19419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19420 for as_dir in $PATH 19421 do 19422 IFS=$as_save_IFS 19423 test -z "$as_dir" && as_dir=. 19424 for ac_exec_ext in '' $ac_executable_extensions; do 19425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19426 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19428 break 2 19429 fi 19430 done 19431 done 19432 IFS=$as_save_IFS 19433 19434 ;; 19435 esac 19436 fi 19437 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19438 if test -n "$CHECK_GMAKE"; then 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19440 $as_echo "$CHECK_GMAKE" >&6; } 19441 else 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19443 $as_echo "no" >&6; } 19444 fi 19445 19446 19447 test -n "$CHECK_GMAKE" && break 19448 done 19449 19450 19451 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19452 DESCRIPTION="gmake in PATH" 19453 19454 # On Cygwin, we require a newer version of make than on other platforms 19455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19456 MAKE_VERSION_EXPR="-e 4\." 19457 MAKE_REQUIRED_VERSION="4.0" 19458 else 19459 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19460 MAKE_REQUIRED_VERSION="3.81" 19461 fi 19462 19463 if test "x$MAKE_CANDIDATE" != x; then 19464 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19465 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19466 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19467 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19468 if test "x$IS_GNU_MAKE" = x; then 19469 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19470 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19471 else 19472 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19473 if test "x$IS_MODERN_MAKE" = x; then 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19475 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19476 else 19477 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19479 MAKE_EXPECTED_ENV='cygwin' 19480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19481 MAKE_EXPECTED_ENV='msys' 19482 else 19483 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19484 fi 19485 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19486 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19487 else 19488 # Not relevant for non-Windows 19489 IS_MAKE_CORRECT_ENV=true 19490 fi 19491 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19492 { $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 19493 $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;} 19494 else 19495 FOUND_MAKE=$MAKE_CANDIDATE 19496 19497 # Only process if variable expands to non-empty 19498 19499 if test "x$FOUND_MAKE" != x; then 19500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19501 19502 # First separate the path from the arguments. This will split at the first 19503 # space. 19504 complete="$FOUND_MAKE" 19505 path="${complete%% *}" 19506 tmp="$complete EOL" 19507 arguments="${tmp#* }" 19508 19509 # Input might be given as Windows format, start by converting to 19510 # unix format. 19511 new_path=`$CYGPATH -u "$path"` 19512 19513 # Now try to locate executable using which 19514 new_path=`$WHICH "$new_path" 2> /dev/null` 19515 # bat and cmd files are not always considered executable in cygwin causing which 19516 # to not find them 19517 if test "x$new_path" = x \ 19518 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19519 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19520 new_path=`$CYGPATH -u "$path"` 19521 fi 19522 if test "x$new_path" = x; then 19523 # Oops. Which didn't find the executable. 19524 # The splitting of arguments from the executable at a space might have been incorrect, 19525 # since paths with space are more likely in Windows. Give it another try with the whole 19526 # argument. 19527 path="$complete" 19528 arguments="EOL" 19529 new_path=`$CYGPATH -u "$path"` 19530 new_path=`$WHICH "$new_path" 2> /dev/null` 19531 # bat and cmd files are not always considered executable in cygwin causing which 19532 # to not find them 19533 if test "x$new_path" = x \ 19534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19536 new_path=`$CYGPATH -u "$path"` 19537 fi 19538 if test "x$new_path" = x; then 19539 # It's still not found. Now this is an unrecoverable error. 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19541 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19542 has_space=`$ECHO "$complete" | $GREP " "` 19543 if test "x$has_space" != x; then 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19545 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19546 fi 19547 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19548 fi 19549 fi 19550 19551 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19552 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19553 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19554 # "foo.exe" is OK but "foo" is an error. 19555 # 19556 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19557 # It is also a way to make sure we got the proper file name for the real test later on. 19558 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19559 if test "x$test_shortpath" = x; then 19560 # Short path failed, file does not exist as specified. 19561 # Try adding .exe or .cmd 19562 if test -f "${new_path}.exe"; then 19563 input_to_shortpath="${new_path}.exe" 19564 elif test -f "${new_path}.cmd"; then 19565 input_to_shortpath="${new_path}.cmd" 19566 else 19567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19568 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19570 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19571 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19572 fi 19573 else 19574 input_to_shortpath="$new_path" 19575 fi 19576 19577 # Call helper function which possibly converts this using DOS-style short mode. 19578 # If so, the updated path is stored in $new_path. 19579 new_path="$input_to_shortpath" 19580 19581 input_path="$input_to_shortpath" 19582 # Check if we need to convert this using DOS-style short mode. If the path 19583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19584 # take no chances and rewrite it. 19585 # Note: m4 eats our [], so we need to use [ and ] instead. 19586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19587 if test "x$has_forbidden_chars" != x; then 19588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19592 # Going to short mode and back again did indeed matter. Since short mode is 19593 # case insensitive, let's make it lowercase to improve readability. 19594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19595 # Now convert it back to Unix-style (cygpath) 19596 input_path=`$CYGPATH -u "$shortmode_path"` 19597 new_path="$input_path" 19598 fi 19599 fi 19600 19601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19602 if test "x$test_cygdrive_prefix" = x; then 19603 # As a simple fix, exclude /usr/bin since it's not a real path. 19604 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19606 # a path prefixed by /cygdrive for fixpath to work. 19607 new_path="$CYGWIN_ROOT_PATH$input_path" 19608 fi 19609 fi 19610 19611 # remove trailing .exe if any 19612 new_path="${new_path/%.exe/}" 19613 19614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19615 19616 # First separate the path from the arguments. This will split at the first 19617 # space. 19618 complete="$FOUND_MAKE" 19619 path="${complete%% *}" 19620 tmp="$complete EOL" 19621 arguments="${tmp#* }" 19622 19623 # Input might be given as Windows format, start by converting to 19624 # unix format. 19625 new_path="$path" 19626 19627 windows_path="$new_path" 19628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19629 unix_path=`$CYGPATH -u "$windows_path"` 19630 new_path="$unix_path" 19631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19633 new_path="$unix_path" 19634 fi 19635 19636 19637 # Now try to locate executable using which 19638 new_path=`$WHICH "$new_path" 2> /dev/null` 19639 19640 if test "x$new_path" = x; then 19641 # Oops. Which didn't find the executable. 19642 # The splitting of arguments from the executable at a space might have been incorrect, 19643 # since paths with space are more likely in Windows. Give it another try with the whole 19644 # argument. 19645 path="$complete" 19646 arguments="EOL" 19647 new_path="$path" 19648 19649 windows_path="$new_path" 19650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19651 unix_path=`$CYGPATH -u "$windows_path"` 19652 new_path="$unix_path" 19653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19655 new_path="$unix_path" 19656 fi 19657 19658 19659 new_path=`$WHICH "$new_path" 2> /dev/null` 19660 # bat and cmd files are not always considered executable in MSYS causing which 19661 # to not find them 19662 if test "x$new_path" = x \ 19663 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19664 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19665 new_path="$path" 19666 19667 windows_path="$new_path" 19668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19669 unix_path=`$CYGPATH -u "$windows_path"` 19670 new_path="$unix_path" 19671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19673 new_path="$unix_path" 19674 fi 19675 19676 fi 19677 19678 if test "x$new_path" = x; then 19679 # It's still not found. Now this is an unrecoverable error. 19680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19681 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19682 has_space=`$ECHO "$complete" | $GREP " "` 19683 if test "x$has_space" != x; then 19684 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19685 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19686 fi 19687 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19688 fi 19689 fi 19690 19691 # Now new_path has a complete unix path to the binary 19692 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19693 # Keep paths in /bin as-is, but remove trailing .exe if any 19694 new_path="${new_path/%.exe/}" 19695 # Do not save /bin paths to all_fixpath_prefixes! 19696 else 19697 # Not in mixed or Windows style, start by that. 19698 new_path=`cmd //c echo $new_path` 19699 19700 input_path="$new_path" 19701 # Check if we need to convert this using DOS-style short mode. If the path 19702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19703 # take no chances and rewrite it. 19704 # Note: m4 eats our [], so we need to use [ and ] instead. 19705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19706 if test "x$has_forbidden_chars" != x; then 19707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19708 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19709 fi 19710 19711 # Output is in $new_path 19712 19713 windows_path="$new_path" 19714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19715 unix_path=`$CYGPATH -u "$windows_path"` 19716 new_path="$unix_path" 19717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19719 new_path="$unix_path" 19720 fi 19721 19722 # remove trailing .exe if any 19723 new_path="${new_path/%.exe/}" 19724 19725 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19726 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19727 fi 19728 19729 else 19730 # We're on a unix platform. Hooray! :) 19731 # First separate the path from the arguments. This will split at the first 19732 # space. 19733 complete="$FOUND_MAKE" 19734 path="${complete%% *}" 19735 tmp="$complete EOL" 19736 arguments="${tmp#* }" 19737 19738 # Cannot rely on the command "which" here since it doesn't always work. 19739 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19740 if test -z "$is_absolute_path"; then 19741 # Path to executable is not absolute. Find it. 19742 IFS_save="$IFS" 19743 IFS=: 19744 for p in $PATH; do 19745 if test -f "$p/$path" && test -x "$p/$path"; then 19746 new_path="$p/$path" 19747 break 19748 fi 19749 done 19750 IFS="$IFS_save" 19751 else 19752 # This is an absolute path, we can use it without further modifications. 19753 new_path="$path" 19754 fi 19755 19756 if test "x$new_path" = x; then 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19758 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19759 has_space=`$ECHO "$complete" | $GREP " "` 19760 if test "x$has_space" != x; then 19761 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19762 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19763 fi 19764 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19765 fi 19766 fi 19767 19768 # Now join together the path and the arguments once again 19769 if test "x$arguments" != xEOL; then 19770 new_complete="$new_path ${arguments% *}" 19771 else 19772 new_complete="$new_path" 19773 fi 19774 19775 if test "x$complete" != "x$new_complete"; then 19776 FOUND_MAKE="$new_complete" 19777 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19778 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19779 fi 19780 fi 19781 19782 fi 19783 fi 19784 fi 19785 fi 19786 19787 19788 if test "x$FOUND_MAKE" = x; then 19789 for ac_prog in make 19790 do 19791 # Extract the first word of "$ac_prog", so it can be a program name with args. 19792 set dummy $ac_prog; ac_word=$2 19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19794 $as_echo_n "checking for $ac_word... " >&6; } 19795 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19796 $as_echo_n "(cached) " >&6 19797 else 19798 case $CHECK_MAKE in 19799 [\\/]* | ?:[\\/]*) 19800 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19801 ;; 19802 *) 19803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19804 for as_dir in $PATH 19805 do 19806 IFS=$as_save_IFS 19807 test -z "$as_dir" && as_dir=. 19808 for ac_exec_ext in '' $ac_executable_extensions; do 19809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19810 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19812 break 2 19813 fi 19814 done 19815 done 19816 IFS=$as_save_IFS 19817 19818 ;; 19819 esac 19820 fi 19821 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19822 if test -n "$CHECK_MAKE"; then 19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19824 $as_echo "$CHECK_MAKE" >&6; } 19825 else 19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19827 $as_echo "no" >&6; } 19828 fi 19829 19830 19831 test -n "$CHECK_MAKE" && break 19832 done 19833 19834 19835 MAKE_CANDIDATE=""$CHECK_MAKE"" 19836 DESCRIPTION="make in PATH" 19837 19838 # On Cygwin, we require a newer version of make than on other platforms 19839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19840 MAKE_VERSION_EXPR="-e 4\." 19841 MAKE_REQUIRED_VERSION="4.0" 19842 else 19843 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19844 MAKE_REQUIRED_VERSION="3.81" 19845 fi 19846 19847 if test "x$MAKE_CANDIDATE" != x; then 19848 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19849 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19850 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19851 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19852 if test "x$IS_GNU_MAKE" = x; then 19853 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19854 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19855 else 19856 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19857 if test "x$IS_MODERN_MAKE" = x; then 19858 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 19859 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 19860 else 19861 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19863 MAKE_EXPECTED_ENV='cygwin' 19864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19865 MAKE_EXPECTED_ENV='msys' 19866 else 19867 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19868 fi 19869 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19870 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19871 else 19872 # Not relevant for non-Windows 19873 IS_MAKE_CORRECT_ENV=true 19874 fi 19875 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19876 { $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 19877 $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;} 19878 else 19879 FOUND_MAKE=$MAKE_CANDIDATE 19880 19881 # Only process if variable expands to non-empty 19882 19883 if test "x$FOUND_MAKE" != x; then 19884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19885 19886 # First separate the path from the arguments. This will split at the first 19887 # space. 19888 complete="$FOUND_MAKE" 19889 path="${complete%% *}" 19890 tmp="$complete EOL" 19891 arguments="${tmp#* }" 19892 19893 # Input might be given as Windows format, start by converting to 19894 # unix format. 19895 new_path=`$CYGPATH -u "$path"` 19896 19897 # Now try to locate executable using which 19898 new_path=`$WHICH "$new_path" 2> /dev/null` 19899 # bat and cmd files are not always considered executable in cygwin causing which 19900 # to not find them 19901 if test "x$new_path" = x \ 19902 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19903 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19904 new_path=`$CYGPATH -u "$path"` 19905 fi 19906 if test "x$new_path" = x; then 19907 # Oops. Which didn't find the executable. 19908 # The splitting of arguments from the executable at a space might have been incorrect, 19909 # since paths with space are more likely in Windows. Give it another try with the whole 19910 # argument. 19911 path="$complete" 19912 arguments="EOL" 19913 new_path=`$CYGPATH -u "$path"` 19914 new_path=`$WHICH "$new_path" 2> /dev/null` 19915 # bat and cmd files are not always considered executable in cygwin causing which 19916 # to not find them 19917 if test "x$new_path" = x \ 19918 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19919 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19920 new_path=`$CYGPATH -u "$path"` 19921 fi 19922 if test "x$new_path" = x; then 19923 # It's still not found. Now this is an unrecoverable error. 19924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19925 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19926 has_space=`$ECHO "$complete" | $GREP " "` 19927 if test "x$has_space" != x; then 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19929 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19930 fi 19931 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19932 fi 19933 fi 19934 19935 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19936 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19937 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19938 # "foo.exe" is OK but "foo" is an error. 19939 # 19940 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19941 # It is also a way to make sure we got the proper file name for the real test later on. 19942 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19943 if test "x$test_shortpath" = x; then 19944 # Short path failed, file does not exist as specified. 19945 # Try adding .exe or .cmd 19946 if test -f "${new_path}.exe"; then 19947 input_to_shortpath="${new_path}.exe" 19948 elif test -f "${new_path}.cmd"; then 19949 input_to_shortpath="${new_path}.cmd" 19950 else 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19952 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19954 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19955 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19956 fi 19957 else 19958 input_to_shortpath="$new_path" 19959 fi 19960 19961 # Call helper function which possibly converts this using DOS-style short mode. 19962 # If so, the updated path is stored in $new_path. 19963 new_path="$input_to_shortpath" 19964 19965 input_path="$input_to_shortpath" 19966 # Check if we need to convert this using DOS-style short mode. If the path 19967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19968 # take no chances and rewrite it. 19969 # Note: m4 eats our [], so we need to use [ and ] instead. 19970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19971 if test "x$has_forbidden_chars" != x; then 19972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19973 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19974 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19975 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19976 # Going to short mode and back again did indeed matter. Since short mode is 19977 # case insensitive, let's make it lowercase to improve readability. 19978 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19979 # Now convert it back to Unix-style (cygpath) 19980 input_path=`$CYGPATH -u "$shortmode_path"` 19981 new_path="$input_path" 19982 fi 19983 fi 19984 19985 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19986 if test "x$test_cygdrive_prefix" = x; then 19987 # As a simple fix, exclude /usr/bin since it's not a real path. 19988 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19989 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19990 # a path prefixed by /cygdrive for fixpath to work. 19991 new_path="$CYGWIN_ROOT_PATH$input_path" 19992 fi 19993 fi 19994 19995 # remove trailing .exe if any 19996 new_path="${new_path/%.exe/}" 19997 19998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19999 20000 # First separate the path from the arguments. This will split at the first 20001 # space. 20002 complete="$FOUND_MAKE" 20003 path="${complete%% *}" 20004 tmp="$complete EOL" 20005 arguments="${tmp#* }" 20006 20007 # Input might be given as Windows format, start by converting to 20008 # unix format. 20009 new_path="$path" 20010 20011 windows_path="$new_path" 20012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20013 unix_path=`$CYGPATH -u "$windows_path"` 20014 new_path="$unix_path" 20015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20017 new_path="$unix_path" 20018 fi 20019 20020 20021 # Now try to locate executable using which 20022 new_path=`$WHICH "$new_path" 2> /dev/null` 20023 20024 if test "x$new_path" = x; then 20025 # Oops. Which didn't find the executable. 20026 # The splitting of arguments from the executable at a space might have been incorrect, 20027 # since paths with space are more likely in Windows. Give it another try with the whole 20028 # argument. 20029 path="$complete" 20030 arguments="EOL" 20031 new_path="$path" 20032 20033 windows_path="$new_path" 20034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20035 unix_path=`$CYGPATH -u "$windows_path"` 20036 new_path="$unix_path" 20037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20038 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20039 new_path="$unix_path" 20040 fi 20041 20042 20043 new_path=`$WHICH "$new_path" 2> /dev/null` 20044 # bat and cmd files are not always considered executable in MSYS causing which 20045 # to not find them 20046 if test "x$new_path" = x \ 20047 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20048 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20049 new_path="$path" 20050 20051 windows_path="$new_path" 20052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20053 unix_path=`$CYGPATH -u "$windows_path"` 20054 new_path="$unix_path" 20055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20057 new_path="$unix_path" 20058 fi 20059 20060 fi 20061 20062 if test "x$new_path" = x; then 20063 # It's still not found. Now this is an unrecoverable error. 20064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20065 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20066 has_space=`$ECHO "$complete" | $GREP " "` 20067 if test "x$has_space" != x; then 20068 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20069 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20070 fi 20071 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20072 fi 20073 fi 20074 20075 # Now new_path has a complete unix path to the binary 20076 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20077 # Keep paths in /bin as-is, but remove trailing .exe if any 20078 new_path="${new_path/%.exe/}" 20079 # Do not save /bin paths to all_fixpath_prefixes! 20080 else 20081 # Not in mixed or Windows style, start by that. 20082 new_path=`cmd //c echo $new_path` 20083 20084 input_path="$new_path" 20085 # Check if we need to convert this using DOS-style short mode. If the path 20086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20087 # take no chances and rewrite it. 20088 # Note: m4 eats our [], so we need to use [ and ] instead. 20089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20090 if test "x$has_forbidden_chars" != x; then 20091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20092 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20093 fi 20094 20095 # Output is in $new_path 20096 20097 windows_path="$new_path" 20098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20099 unix_path=`$CYGPATH -u "$windows_path"` 20100 new_path="$unix_path" 20101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20103 new_path="$unix_path" 20104 fi 20105 20106 # remove trailing .exe if any 20107 new_path="${new_path/%.exe/}" 20108 20109 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20110 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20111 fi 20112 20113 else 20114 # We're on a unix platform. Hooray! :) 20115 # First separate the path from the arguments. This will split at the first 20116 # space. 20117 complete="$FOUND_MAKE" 20118 path="${complete%% *}" 20119 tmp="$complete EOL" 20120 arguments="${tmp#* }" 20121 20122 # Cannot rely on the command "which" here since it doesn't always work. 20123 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20124 if test -z "$is_absolute_path"; then 20125 # Path to executable is not absolute. Find it. 20126 IFS_save="$IFS" 20127 IFS=: 20128 for p in $PATH; do 20129 if test -f "$p/$path" && test -x "$p/$path"; then 20130 new_path="$p/$path" 20131 break 20132 fi 20133 done 20134 IFS="$IFS_save" 20135 else 20136 # This is an absolute path, we can use it without further modifications. 20137 new_path="$path" 20138 fi 20139 20140 if test "x$new_path" = x; then 20141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20142 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20143 has_space=`$ECHO "$complete" | $GREP " "` 20144 if test "x$has_space" != x; then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20146 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20147 fi 20148 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20149 fi 20150 fi 20151 20152 # Now join together the path and the arguments once again 20153 if test "x$arguments" != xEOL; then 20154 new_complete="$new_path ${arguments% *}" 20155 else 20156 new_complete="$new_path" 20157 fi 20158 20159 if test "x$complete" != "x$new_complete"; then 20160 FOUND_MAKE="$new_complete" 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20162 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20163 fi 20164 fi 20165 20166 fi 20167 fi 20168 fi 20169 fi 20170 20171 fi 20172 20173 if test "x$FOUND_MAKE" = x; then 20174 if test "x$TOOLCHAIN_PATH" != x; then 20175 # We have a toolchain path, check that as well before giving up. 20176 OLD_PATH=$PATH 20177 PATH=$TOOLCHAIN_PATH:$PATH 20178 for ac_prog in gmake 20179 do 20180 # Extract the first word of "$ac_prog", so it can be a program name with args. 20181 set dummy $ac_prog; ac_word=$2 20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20183 $as_echo_n "checking for $ac_word... " >&6; } 20184 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20185 $as_echo_n "(cached) " >&6 20186 else 20187 case $CHECK_TOOLSDIR_GMAKE in 20188 [\\/]* | ?:[\\/]*) 20189 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20190 ;; 20191 *) 20192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20193 for as_dir in $PATH 20194 do 20195 IFS=$as_save_IFS 20196 test -z "$as_dir" && as_dir=. 20197 for ac_exec_ext in '' $ac_executable_extensions; do 20198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20199 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20201 break 2 20202 fi 20203 done 20204 done 20205 IFS=$as_save_IFS 20206 20207 ;; 20208 esac 20209 fi 20210 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20211 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20213 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20214 else 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20216 $as_echo "no" >&6; } 20217 fi 20218 20219 20220 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20221 done 20222 20223 20224 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20225 DESCRIPTION="gmake in tools-dir" 20226 20227 # On Cygwin, we require a newer version of make than on other platforms 20228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20229 MAKE_VERSION_EXPR="-e 4\." 20230 MAKE_REQUIRED_VERSION="4.0" 20231 else 20232 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20233 MAKE_REQUIRED_VERSION="3.81" 20234 fi 20235 20236 if test "x$MAKE_CANDIDATE" != x; then 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20238 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20239 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20240 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20241 if test "x$IS_GNU_MAKE" = x; then 20242 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20243 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20244 else 20245 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20246 if test "x$IS_MODERN_MAKE" = x; then 20247 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 20248 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 20249 else 20250 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20252 MAKE_EXPECTED_ENV='cygwin' 20253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20254 MAKE_EXPECTED_ENV='msys' 20255 else 20256 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20257 fi 20258 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20259 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20260 else 20261 # Not relevant for non-Windows 20262 IS_MAKE_CORRECT_ENV=true 20263 fi 20264 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20265 { $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 20266 $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;} 20267 else 20268 FOUND_MAKE=$MAKE_CANDIDATE 20269 20270 # Only process if variable expands to non-empty 20271 20272 if test "x$FOUND_MAKE" != x; then 20273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20274 20275 # First separate the path from the arguments. This will split at the first 20276 # space. 20277 complete="$FOUND_MAKE" 20278 path="${complete%% *}" 20279 tmp="$complete EOL" 20280 arguments="${tmp#* }" 20281 20282 # Input might be given as Windows format, start by converting to 20283 # unix format. 20284 new_path=`$CYGPATH -u "$path"` 20285 20286 # Now try to locate executable using which 20287 new_path=`$WHICH "$new_path" 2> /dev/null` 20288 # bat and cmd files are not always considered executable in cygwin causing which 20289 # to not find them 20290 if test "x$new_path" = x \ 20291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20293 new_path=`$CYGPATH -u "$path"` 20294 fi 20295 if test "x$new_path" = x; then 20296 # Oops. Which didn't find the executable. 20297 # The splitting of arguments from the executable at a space might have been incorrect, 20298 # since paths with space are more likely in Windows. Give it another try with the whole 20299 # argument. 20300 path="$complete" 20301 arguments="EOL" 20302 new_path=`$CYGPATH -u "$path"` 20303 new_path=`$WHICH "$new_path" 2> /dev/null` 20304 # bat and cmd files are not always considered executable in cygwin causing which 20305 # to not find them 20306 if test "x$new_path" = x \ 20307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20309 new_path=`$CYGPATH -u "$path"` 20310 fi 20311 if test "x$new_path" = x; then 20312 # It's still not found. Now this is an unrecoverable error. 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20314 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20315 has_space=`$ECHO "$complete" | $GREP " "` 20316 if test "x$has_space" != x; then 20317 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20318 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20319 fi 20320 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20321 fi 20322 fi 20323 20324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20327 # "foo.exe" is OK but "foo" is an error. 20328 # 20329 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20330 # It is also a way to make sure we got the proper file name for the real test later on. 20331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20332 if test "x$test_shortpath" = x; then 20333 # Short path failed, file does not exist as specified. 20334 # Try adding .exe or .cmd 20335 if test -f "${new_path}.exe"; then 20336 input_to_shortpath="${new_path}.exe" 20337 elif test -f "${new_path}.cmd"; then 20338 input_to_shortpath="${new_path}.cmd" 20339 else 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20341 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20342 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20343 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20344 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20345 fi 20346 else 20347 input_to_shortpath="$new_path" 20348 fi 20349 20350 # Call helper function which possibly converts this using DOS-style short mode. 20351 # If so, the updated path is stored in $new_path. 20352 new_path="$input_to_shortpath" 20353 20354 input_path="$input_to_shortpath" 20355 # Check if we need to convert this using DOS-style short mode. If the path 20356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20357 # take no chances and rewrite it. 20358 # Note: m4 eats our [], so we need to use [ and ] instead. 20359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20360 if test "x$has_forbidden_chars" != x; then 20361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20362 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20363 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20364 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20365 # Going to short mode and back again did indeed matter. Since short mode is 20366 # case insensitive, let's make it lowercase to improve readability. 20367 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20368 # Now convert it back to Unix-style (cygpath) 20369 input_path=`$CYGPATH -u "$shortmode_path"` 20370 new_path="$input_path" 20371 fi 20372 fi 20373 20374 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20375 if test "x$test_cygdrive_prefix" = x; then 20376 # As a simple fix, exclude /usr/bin since it's not a real path. 20377 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20378 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20379 # a path prefixed by /cygdrive for fixpath to work. 20380 new_path="$CYGWIN_ROOT_PATH$input_path" 20381 fi 20382 fi 20383 20384 # remove trailing .exe if any 20385 new_path="${new_path/%.exe/}" 20386 20387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20388 20389 # First separate the path from the arguments. This will split at the first 20390 # space. 20391 complete="$FOUND_MAKE" 20392 path="${complete%% *}" 20393 tmp="$complete EOL" 20394 arguments="${tmp#* }" 20395 20396 # Input might be given as Windows format, start by converting to 20397 # unix format. 20398 new_path="$path" 20399 20400 windows_path="$new_path" 20401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20402 unix_path=`$CYGPATH -u "$windows_path"` 20403 new_path="$unix_path" 20404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20406 new_path="$unix_path" 20407 fi 20408 20409 20410 # Now try to locate executable using which 20411 new_path=`$WHICH "$new_path" 2> /dev/null` 20412 20413 if test "x$new_path" = x; then 20414 # Oops. Which didn't find the executable. 20415 # The splitting of arguments from the executable at a space might have been incorrect, 20416 # since paths with space are more likely in Windows. Give it another try with the whole 20417 # argument. 20418 path="$complete" 20419 arguments="EOL" 20420 new_path="$path" 20421 20422 windows_path="$new_path" 20423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20424 unix_path=`$CYGPATH -u "$windows_path"` 20425 new_path="$unix_path" 20426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20428 new_path="$unix_path" 20429 fi 20430 20431 20432 new_path=`$WHICH "$new_path" 2> /dev/null` 20433 # bat and cmd files are not always considered executable in MSYS causing which 20434 # to not find them 20435 if test "x$new_path" = x \ 20436 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20437 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20438 new_path="$path" 20439 20440 windows_path="$new_path" 20441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20442 unix_path=`$CYGPATH -u "$windows_path"` 20443 new_path="$unix_path" 20444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20446 new_path="$unix_path" 20447 fi 20448 20449 fi 20450 20451 if test "x$new_path" = x; then 20452 # It's still not found. Now this is an unrecoverable error. 20453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20454 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20455 has_space=`$ECHO "$complete" | $GREP " "` 20456 if test "x$has_space" != x; then 20457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20459 fi 20460 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20461 fi 20462 fi 20463 20464 # Now new_path has a complete unix path to the binary 20465 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20466 # Keep paths in /bin as-is, but remove trailing .exe if any 20467 new_path="${new_path/%.exe/}" 20468 # Do not save /bin paths to all_fixpath_prefixes! 20469 else 20470 # Not in mixed or Windows style, start by that. 20471 new_path=`cmd //c echo $new_path` 20472 20473 input_path="$new_path" 20474 # Check if we need to convert this using DOS-style short mode. If the path 20475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20476 # take no chances and rewrite it. 20477 # Note: m4 eats our [], so we need to use [ and ] instead. 20478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20479 if test "x$has_forbidden_chars" != x; then 20480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20482 fi 20483 20484 # Output is in $new_path 20485 20486 windows_path="$new_path" 20487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20488 unix_path=`$CYGPATH -u "$windows_path"` 20489 new_path="$unix_path" 20490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20492 new_path="$unix_path" 20493 fi 20494 20495 # remove trailing .exe if any 20496 new_path="${new_path/%.exe/}" 20497 20498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20500 fi 20501 20502 else 20503 # We're on a unix platform. Hooray! :) 20504 # First separate the path from the arguments. This will split at the first 20505 # space. 20506 complete="$FOUND_MAKE" 20507 path="${complete%% *}" 20508 tmp="$complete EOL" 20509 arguments="${tmp#* }" 20510 20511 # Cannot rely on the command "which" here since it doesn't always work. 20512 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20513 if test -z "$is_absolute_path"; then 20514 # Path to executable is not absolute. Find it. 20515 IFS_save="$IFS" 20516 IFS=: 20517 for p in $PATH; do 20518 if test -f "$p/$path" && test -x "$p/$path"; then 20519 new_path="$p/$path" 20520 break 20521 fi 20522 done 20523 IFS="$IFS_save" 20524 else 20525 # This is an absolute path, we can use it without further modifications. 20526 new_path="$path" 20527 fi 20528 20529 if test "x$new_path" = x; then 20530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20531 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20532 has_space=`$ECHO "$complete" | $GREP " "` 20533 if test "x$has_space" != x; then 20534 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20535 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20536 fi 20537 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20538 fi 20539 fi 20540 20541 # Now join together the path and the arguments once again 20542 if test "x$arguments" != xEOL; then 20543 new_complete="$new_path ${arguments% *}" 20544 else 20545 new_complete="$new_path" 20546 fi 20547 20548 if test "x$complete" != "x$new_complete"; then 20549 FOUND_MAKE="$new_complete" 20550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20551 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20552 fi 20553 fi 20554 20555 fi 20556 fi 20557 fi 20558 fi 20559 20560 if test "x$FOUND_MAKE" = x; then 20561 for ac_prog in make 20562 do 20563 # Extract the first word of "$ac_prog", so it can be a program name with args. 20564 set dummy $ac_prog; ac_word=$2 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20566 $as_echo_n "checking for $ac_word... " >&6; } 20567 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20568 $as_echo_n "(cached) " >&6 20569 else 20570 case $CHECK_TOOLSDIR_MAKE in 20571 [\\/]* | ?:[\\/]*) 20572 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20573 ;; 20574 *) 20575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20576 for as_dir in $PATH 20577 do 20578 IFS=$as_save_IFS 20579 test -z "$as_dir" && as_dir=. 20580 for ac_exec_ext in '' $ac_executable_extensions; do 20581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20582 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20584 break 2 20585 fi 20586 done 20587 done 20588 IFS=$as_save_IFS 20589 20590 ;; 20591 esac 20592 fi 20593 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20594 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20596 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20597 else 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20599 $as_echo "no" >&6; } 20600 fi 20601 20602 20603 test -n "$CHECK_TOOLSDIR_MAKE" && break 20604 done 20605 20606 20607 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20608 DESCRIPTION="make in tools-dir" 20609 20610 # On Cygwin, we require a newer version of make than on other platforms 20611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20612 MAKE_VERSION_EXPR="-e 4\." 20613 MAKE_REQUIRED_VERSION="4.0" 20614 else 20615 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20616 MAKE_REQUIRED_VERSION="3.81" 20617 fi 20618 20619 if test "x$MAKE_CANDIDATE" != x; then 20620 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20621 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20622 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20623 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20624 if test "x$IS_GNU_MAKE" = x; then 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20626 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20627 else 20628 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20629 if test "x$IS_MODERN_MAKE" = x; then 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 20631 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 20632 else 20633 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20635 MAKE_EXPECTED_ENV='cygwin' 20636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20637 MAKE_EXPECTED_ENV='msys' 20638 else 20639 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20640 fi 20641 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20642 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20643 else 20644 # Not relevant for non-Windows 20645 IS_MAKE_CORRECT_ENV=true 20646 fi 20647 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20648 { $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 20649 $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;} 20650 else 20651 FOUND_MAKE=$MAKE_CANDIDATE 20652 20653 # Only process if variable expands to non-empty 20654 20655 if test "x$FOUND_MAKE" != x; then 20656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20657 20658 # First separate the path from the arguments. This will split at the first 20659 # space. 20660 complete="$FOUND_MAKE" 20661 path="${complete%% *}" 20662 tmp="$complete EOL" 20663 arguments="${tmp#* }" 20664 20665 # Input might be given as Windows format, start by converting to 20666 # unix format. 20667 new_path=`$CYGPATH -u "$path"` 20668 20669 # Now try to locate executable using which 20670 new_path=`$WHICH "$new_path" 2> /dev/null` 20671 # bat and cmd files are not always considered executable in cygwin causing which 20672 # to not find them 20673 if test "x$new_path" = x \ 20674 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20675 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20676 new_path=`$CYGPATH -u "$path"` 20677 fi 20678 if test "x$new_path" = x; then 20679 # Oops. Which didn't find the executable. 20680 # The splitting of arguments from the executable at a space might have been incorrect, 20681 # since paths with space are more likely in Windows. Give it another try with the whole 20682 # argument. 20683 path="$complete" 20684 arguments="EOL" 20685 new_path=`$CYGPATH -u "$path"` 20686 new_path=`$WHICH "$new_path" 2> /dev/null` 20687 # bat and cmd files are not always considered executable in cygwin causing which 20688 # to not find them 20689 if test "x$new_path" = x \ 20690 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20691 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20692 new_path=`$CYGPATH -u "$path"` 20693 fi 20694 if test "x$new_path" = x; then 20695 # It's still not found. Now this is an unrecoverable error. 20696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20698 has_space=`$ECHO "$complete" | $GREP " "` 20699 if test "x$has_space" != x; then 20700 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20702 fi 20703 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20704 fi 20705 fi 20706 20707 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20708 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20709 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20710 # "foo.exe" is OK but "foo" is an error. 20711 # 20712 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20713 # It is also a way to make sure we got the proper file name for the real test later on. 20714 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20715 if test "x$test_shortpath" = x; then 20716 # Short path failed, file does not exist as specified. 20717 # Try adding .exe or .cmd 20718 if test -f "${new_path}.exe"; then 20719 input_to_shortpath="${new_path}.exe" 20720 elif test -f "${new_path}.cmd"; then 20721 input_to_shortpath="${new_path}.cmd" 20722 else 20723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20724 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20725 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20726 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20727 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20728 fi 20729 else 20730 input_to_shortpath="$new_path" 20731 fi 20732 20733 # Call helper function which possibly converts this using DOS-style short mode. 20734 # If so, the updated path is stored in $new_path. 20735 new_path="$input_to_shortpath" 20736 20737 input_path="$input_to_shortpath" 20738 # Check if we need to convert this using DOS-style short mode. If the path 20739 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20740 # take no chances and rewrite it. 20741 # Note: m4 eats our [], so we need to use [ and ] instead. 20742 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20743 if test "x$has_forbidden_chars" != x; then 20744 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20745 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20746 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20747 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20748 # Going to short mode and back again did indeed matter. Since short mode is 20749 # case insensitive, let's make it lowercase to improve readability. 20750 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20751 # Now convert it back to Unix-style (cygpath) 20752 input_path=`$CYGPATH -u "$shortmode_path"` 20753 new_path="$input_path" 20754 fi 20755 fi 20756 20757 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20758 if test "x$test_cygdrive_prefix" = x; then 20759 # As a simple fix, exclude /usr/bin since it's not a real path. 20760 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20761 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20762 # a path prefixed by /cygdrive for fixpath to work. 20763 new_path="$CYGWIN_ROOT_PATH$input_path" 20764 fi 20765 fi 20766 20767 # remove trailing .exe if any 20768 new_path="${new_path/%.exe/}" 20769 20770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20771 20772 # First separate the path from the arguments. This will split at the first 20773 # space. 20774 complete="$FOUND_MAKE" 20775 path="${complete%% *}" 20776 tmp="$complete EOL" 20777 arguments="${tmp#* }" 20778 20779 # Input might be given as Windows format, start by converting to 20780 # unix format. 20781 new_path="$path" 20782 20783 windows_path="$new_path" 20784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20785 unix_path=`$CYGPATH -u "$windows_path"` 20786 new_path="$unix_path" 20787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20789 new_path="$unix_path" 20790 fi 20791 20792 20793 # Now try to locate executable using which 20794 new_path=`$WHICH "$new_path" 2> /dev/null` 20795 20796 if test "x$new_path" = x; then 20797 # Oops. Which didn't find the executable. 20798 # The splitting of arguments from the executable at a space might have been incorrect, 20799 # since paths with space are more likely in Windows. Give it another try with the whole 20800 # argument. 20801 path="$complete" 20802 arguments="EOL" 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 new_path=`$WHICH "$new_path" 2> /dev/null` 20816 # bat and cmd files are not always considered executable in MSYS causing which 20817 # to not find them 20818 if test "x$new_path" = x \ 20819 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20820 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20821 new_path="$path" 20822 20823 windows_path="$new_path" 20824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20825 unix_path=`$CYGPATH -u "$windows_path"` 20826 new_path="$unix_path" 20827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20829 new_path="$unix_path" 20830 fi 20831 20832 fi 20833 20834 if test "x$new_path" = x; then 20835 # It's still not found. Now this is an unrecoverable error. 20836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20837 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20838 has_space=`$ECHO "$complete" | $GREP " "` 20839 if test "x$has_space" != x; then 20840 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20841 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20842 fi 20843 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20844 fi 20845 fi 20846 20847 # Now new_path has a complete unix path to the binary 20848 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20849 # Keep paths in /bin as-is, but remove trailing .exe if any 20850 new_path="${new_path/%.exe/}" 20851 # Do not save /bin paths to all_fixpath_prefixes! 20852 else 20853 # Not in mixed or Windows style, start by that. 20854 new_path=`cmd //c echo $new_path` 20855 20856 input_path="$new_path" 20857 # Check if we need to convert this using DOS-style short mode. If the path 20858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20859 # take no chances and rewrite it. 20860 # Note: m4 eats our [], so we need to use [ and ] instead. 20861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20862 if test "x$has_forbidden_chars" != x; then 20863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20864 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20865 fi 20866 20867 # Output is in $new_path 20868 20869 windows_path="$new_path" 20870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20871 unix_path=`$CYGPATH -u "$windows_path"` 20872 new_path="$unix_path" 20873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20875 new_path="$unix_path" 20876 fi 20877 20878 # remove trailing .exe if any 20879 new_path="${new_path/%.exe/}" 20880 20881 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20882 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20883 fi 20884 20885 else 20886 # We're on a unix platform. Hooray! :) 20887 # First separate the path from the arguments. This will split at the first 20888 # space. 20889 complete="$FOUND_MAKE" 20890 path="${complete%% *}" 20891 tmp="$complete EOL" 20892 arguments="${tmp#* }" 20893 20894 # Cannot rely on the command "which" here since it doesn't always work. 20895 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20896 if test -z "$is_absolute_path"; then 20897 # Path to executable is not absolute. Find it. 20898 IFS_save="$IFS" 20899 IFS=: 20900 for p in $PATH; do 20901 if test -f "$p/$path" && test -x "$p/$path"; then 20902 new_path="$p/$path" 20903 break 20904 fi 20905 done 20906 IFS="$IFS_save" 20907 else 20908 # This is an absolute path, we can use it without further modifications. 20909 new_path="$path" 20910 fi 20911 20912 if test "x$new_path" = x; then 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20914 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20915 has_space=`$ECHO "$complete" | $GREP " "` 20916 if test "x$has_space" != x; then 20917 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20918 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20919 fi 20920 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20921 fi 20922 fi 20923 20924 # Now join together the path and the arguments once again 20925 if test "x$arguments" != xEOL; then 20926 new_complete="$new_path ${arguments% *}" 20927 else 20928 new_complete="$new_path" 20929 fi 20930 20931 if test "x$complete" != "x$new_complete"; then 20932 FOUND_MAKE="$new_complete" 20933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20934 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20935 fi 20936 fi 20937 20938 fi 20939 fi 20940 fi 20941 fi 20942 20943 fi 20944 PATH=$OLD_PATH 20945 fi 20946 fi 20947 20948 if test "x$FOUND_MAKE" = x; then 20949 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 20950 fi 20951 20952 else 20953 # If it succeeded, then it was overridden by the user. We will use it 20954 # for the tool. 20955 20956 # First remove it from the list of overridden variables, so we can test 20957 # for unknown variables in the end. 20958 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20959 20960 # Check if we try to supply an empty value 20961 if test "x$MAKE" = x; then 20962 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20963 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20965 $as_echo_n "checking for MAKE... " >&6; } 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20967 $as_echo "disabled" >&6; } 20968 else 20969 # Check if the provided tool contains a complete path. 20970 tool_specified="$MAKE" 20971 tool_basename="${tool_specified##*/}" 20972 if test "x$tool_basename" = "x$tool_specified"; then 20973 # A command without a complete path is provided, search $PATH. 20974 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20975 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20976 # Extract the first word of "$tool_basename", so it can be a program name with args. 20977 set dummy $tool_basename; ac_word=$2 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20979 $as_echo_n "checking for $ac_word... " >&6; } 20980 if ${ac_cv_path_MAKE+:} false; then : 20981 $as_echo_n "(cached) " >&6 20982 else 20983 case $MAKE in 20984 [\\/]* | ?:[\\/]*) 20985 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20986 ;; 20987 *) 20988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20989 for as_dir in $PATH 20990 do 20991 IFS=$as_save_IFS 20992 test -z "$as_dir" && as_dir=. 20993 for ac_exec_ext in '' $ac_executable_extensions; do 20994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20995 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20997 break 2 20998 fi 20999 done 21000 done 21001 IFS=$as_save_IFS 21002 21003 ;; 21004 esac 21005 fi 21006 MAKE=$ac_cv_path_MAKE 21007 if test -n "$MAKE"; then 21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21009 $as_echo "$MAKE" >&6; } 21010 else 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21012 $as_echo "no" >&6; } 21013 fi 21014 21015 21016 if test "x$MAKE" = x; then 21017 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21018 fi 21019 else 21020 # Otherwise we believe it is a complete path. Use it as it is. 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21022 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21024 $as_echo_n "checking for MAKE... " >&6; } 21025 if test ! -x "$tool_specified"; then 21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21027 $as_echo "not found" >&6; } 21028 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21029 fi 21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21031 $as_echo "$tool_specified" >&6; } 21032 fi 21033 fi 21034 fi 21035 21036 # If MAKE was set by user, verify the version 21037 21038 MAKE_CANDIDATE=""$MAKE"" 21039 DESCRIPTION="user supplied MAKE=$MAKE" 21040 21041 # On Cygwin, we require a newer version of make than on other platforms 21042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21043 MAKE_VERSION_EXPR="-e 4\." 21044 MAKE_REQUIRED_VERSION="4.0" 21045 else 21046 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21047 MAKE_REQUIRED_VERSION="3.81" 21048 fi 21049 21050 if test "x$MAKE_CANDIDATE" != x; then 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21052 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21053 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21054 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21055 if test "x$IS_GNU_MAKE" = x; then 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21057 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21058 else 21059 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21060 if test "x$IS_MODERN_MAKE" = x; then 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 21062 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 21063 else 21064 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21066 MAKE_EXPECTED_ENV='cygwin' 21067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21068 MAKE_EXPECTED_ENV='msys' 21069 else 21070 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21071 fi 21072 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21073 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21074 else 21075 # Not relevant for non-Windows 21076 IS_MAKE_CORRECT_ENV=true 21077 fi 21078 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21079 { $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 21080 $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;} 21081 else 21082 FOUND_MAKE=$MAKE_CANDIDATE 21083 21084 # Only process if variable expands to non-empty 21085 21086 if test "x$FOUND_MAKE" != x; then 21087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21088 21089 # First separate the path from the arguments. This will split at the first 21090 # space. 21091 complete="$FOUND_MAKE" 21092 path="${complete%% *}" 21093 tmp="$complete EOL" 21094 arguments="${tmp#* }" 21095 21096 # Input might be given as Windows format, start by converting to 21097 # unix format. 21098 new_path=`$CYGPATH -u "$path"` 21099 21100 # Now try to locate executable using which 21101 new_path=`$WHICH "$new_path" 2> /dev/null` 21102 # bat and cmd files are not always considered executable in cygwin causing which 21103 # to not find them 21104 if test "x$new_path" = x \ 21105 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21106 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21107 new_path=`$CYGPATH -u "$path"` 21108 fi 21109 if test "x$new_path" = x; then 21110 # Oops. Which didn't find the executable. 21111 # The splitting of arguments from the executable at a space might have been incorrect, 21112 # since paths with space are more likely in Windows. Give it another try with the whole 21113 # argument. 21114 path="$complete" 21115 arguments="EOL" 21116 new_path=`$CYGPATH -u "$path"` 21117 new_path=`$WHICH "$new_path" 2> /dev/null` 21118 # bat and cmd files are not always considered executable in cygwin causing which 21119 # to not find them 21120 if test "x$new_path" = x \ 21121 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21122 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21123 new_path=`$CYGPATH -u "$path"` 21124 fi 21125 if test "x$new_path" = x; then 21126 # It's still not found. Now this is an unrecoverable error. 21127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21128 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21129 has_space=`$ECHO "$complete" | $GREP " "` 21130 if test "x$has_space" != x; then 21131 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21132 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21133 fi 21134 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21135 fi 21136 fi 21137 21138 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21139 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21140 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21141 # "foo.exe" is OK but "foo" is an error. 21142 # 21143 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21144 # It is also a way to make sure we got the proper file name for the real test later on. 21145 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21146 if test "x$test_shortpath" = x; then 21147 # Short path failed, file does not exist as specified. 21148 # Try adding .exe or .cmd 21149 if test -f "${new_path}.exe"; then 21150 input_to_shortpath="${new_path}.exe" 21151 elif test -f "${new_path}.cmd"; then 21152 input_to_shortpath="${new_path}.cmd" 21153 else 21154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21155 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21156 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21157 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21158 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21159 fi 21160 else 21161 input_to_shortpath="$new_path" 21162 fi 21163 21164 # Call helper function which possibly converts this using DOS-style short mode. 21165 # If so, the updated path is stored in $new_path. 21166 new_path="$input_to_shortpath" 21167 21168 input_path="$input_to_shortpath" 21169 # Check if we need to convert this using DOS-style short mode. If the path 21170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21171 # take no chances and rewrite it. 21172 # Note: m4 eats our [], so we need to use [ and ] instead. 21173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21174 if test "x$has_forbidden_chars" != x; then 21175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21176 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21177 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21178 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21179 # Going to short mode and back again did indeed matter. Since short mode is 21180 # case insensitive, let's make it lowercase to improve readability. 21181 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21182 # Now convert it back to Unix-style (cygpath) 21183 input_path=`$CYGPATH -u "$shortmode_path"` 21184 new_path="$input_path" 21185 fi 21186 fi 21187 21188 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21189 if test "x$test_cygdrive_prefix" = x; then 21190 # As a simple fix, exclude /usr/bin since it's not a real path. 21191 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21192 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21193 # a path prefixed by /cygdrive for fixpath to work. 21194 new_path="$CYGWIN_ROOT_PATH$input_path" 21195 fi 21196 fi 21197 21198 # remove trailing .exe if any 21199 new_path="${new_path/%.exe/}" 21200 21201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21202 21203 # First separate the path from the arguments. This will split at the first 21204 # space. 21205 complete="$FOUND_MAKE" 21206 path="${complete%% *}" 21207 tmp="$complete EOL" 21208 arguments="${tmp#* }" 21209 21210 # Input might be given as Windows format, start by converting to 21211 # unix format. 21212 new_path="$path" 21213 21214 windows_path="$new_path" 21215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21216 unix_path=`$CYGPATH -u "$windows_path"` 21217 new_path="$unix_path" 21218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21220 new_path="$unix_path" 21221 fi 21222 21223 21224 # Now try to locate executable using which 21225 new_path=`$WHICH "$new_path" 2> /dev/null` 21226 21227 if test "x$new_path" = x; then 21228 # Oops. Which didn't find the executable. 21229 # The splitting of arguments from the executable at a space might have been incorrect, 21230 # since paths with space are more likely in Windows. Give it another try with the whole 21231 # argument. 21232 path="$complete" 21233 arguments="EOL" 21234 new_path="$path" 21235 21236 windows_path="$new_path" 21237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21238 unix_path=`$CYGPATH -u "$windows_path"` 21239 new_path="$unix_path" 21240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21242 new_path="$unix_path" 21243 fi 21244 21245 21246 new_path=`$WHICH "$new_path" 2> /dev/null` 21247 # bat and cmd files are not always considered executable in MSYS causing which 21248 # to not find them 21249 if test "x$new_path" = x \ 21250 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21251 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21252 new_path="$path" 21253 21254 windows_path="$new_path" 21255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21256 unix_path=`$CYGPATH -u "$windows_path"` 21257 new_path="$unix_path" 21258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21260 new_path="$unix_path" 21261 fi 21262 21263 fi 21264 21265 if test "x$new_path" = x; then 21266 # It's still not found. Now this is an unrecoverable error. 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21268 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21269 has_space=`$ECHO "$complete" | $GREP " "` 21270 if test "x$has_space" != x; then 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21272 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21273 fi 21274 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21275 fi 21276 fi 21277 21278 # Now new_path has a complete unix path to the binary 21279 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21280 # Keep paths in /bin as-is, but remove trailing .exe if any 21281 new_path="${new_path/%.exe/}" 21282 # Do not save /bin paths to all_fixpath_prefixes! 21283 else 21284 # Not in mixed or Windows style, start by that. 21285 new_path=`cmd //c echo $new_path` 21286 21287 input_path="$new_path" 21288 # Check if we need to convert this using DOS-style short mode. If the path 21289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21290 # take no chances and rewrite it. 21291 # Note: m4 eats our [], so we need to use [ and ] instead. 21292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21293 if test "x$has_forbidden_chars" != x; then 21294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21295 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21296 fi 21297 21298 # Output is in $new_path 21299 21300 windows_path="$new_path" 21301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21302 unix_path=`$CYGPATH -u "$windows_path"` 21303 new_path="$unix_path" 21304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21306 new_path="$unix_path" 21307 fi 21308 21309 # remove trailing .exe if any 21310 new_path="${new_path/%.exe/}" 21311 21312 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21313 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21314 fi 21315 21316 else 21317 # We're on a unix platform. Hooray! :) 21318 # First separate the path from the arguments. This will split at the first 21319 # space. 21320 complete="$FOUND_MAKE" 21321 path="${complete%% *}" 21322 tmp="$complete EOL" 21323 arguments="${tmp#* }" 21324 21325 # Cannot rely on the command "which" here since it doesn't always work. 21326 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21327 if test -z "$is_absolute_path"; then 21328 # Path to executable is not absolute. Find it. 21329 IFS_save="$IFS" 21330 IFS=: 21331 for p in $PATH; do 21332 if test -f "$p/$path" && test -x "$p/$path"; then 21333 new_path="$p/$path" 21334 break 21335 fi 21336 done 21337 IFS="$IFS_save" 21338 else 21339 # This is an absolute path, we can use it without further modifications. 21340 new_path="$path" 21341 fi 21342 21343 if test "x$new_path" = x; then 21344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21345 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21346 has_space=`$ECHO "$complete" | $GREP " "` 21347 if test "x$has_space" != x; then 21348 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21349 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21350 fi 21351 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21352 fi 21353 fi 21354 21355 # Now join together the path and the arguments once again 21356 if test "x$arguments" != xEOL; then 21357 new_complete="$new_path ${arguments% *}" 21358 else 21359 new_complete="$new_path" 21360 fi 21361 21362 if test "x$complete" != "x$new_complete"; then 21363 FOUND_MAKE="$new_complete" 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21365 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21366 fi 21367 fi 21368 21369 fi 21370 fi 21371 fi 21372 fi 21373 21374 if test "x$FOUND_MAKE" = x; then 21375 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21376 fi 21377 21378 fi 21379 21380 21381 MAKE=$FOUND_MAKE 21382 21383 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21384 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21385 21386 21387 # Check if make supports the output sync option and if so, setup using it. 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21389 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21390 if $MAKE --version -O > /dev/null 2>&1; then 21391 OUTPUT_SYNC_SUPPORTED=true 21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21393 $as_echo "yes" >&6; } 21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21395 $as_echo_n "checking for output-sync value... " >&6; } 21396 21397 # Check whether --with-output-sync was given. 21398 if test "${with_output_sync+set}" = set; then : 21399 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21400 fi 21401 21402 if test "x$OUTPUT_SYNC" = "x"; then 21403 OUTPUT_SYNC=none 21404 fi 21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21406 $as_echo "$OUTPUT_SYNC" >&6; } 21407 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21408 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21409 fi 21410 else 21411 OUTPUT_SYNC_SUPPORTED=false 21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21413 $as_echo "no" >&6; } 21414 fi 21415 21416 21417 21418 21419 21420 21421 # Test if find supports -delete 21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21423 $as_echo_n "checking if find supports -delete... " >&6; } 21424 FIND_DELETE="-delete" 21425 21426 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21427 21428 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21429 21430 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21431 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21432 # No, it does not. 21433 $RM $DELETEDIR/TestIfFindSupportsDelete 21434 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21435 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21436 FIND_DELETE="-print | $XARGS $RM" 21437 else 21438 FIND_DELETE="-exec $RM \{\} \+" 21439 fi 21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21441 $as_echo "no" >&6; } 21442 else 21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21444 $as_echo "yes" >&6; } 21445 fi 21446 $RMDIR $DELETEDIR 21447 21448 21449 21450 # Test which kind of tar was found 21451 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21452 TAR_TYPE="gnu" 21453 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21454 TAR_TYPE="bsd" 21455 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21456 TAR_TYPE="bsd" 21457 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21458 TAR_TYPE="solaris" 21459 fi 21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21461 $as_echo_n "checking what type of tar was found... " >&6; } 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21463 $as_echo "$TAR_TYPE" >&6; } 21464 21465 TAR_CREATE_FILE_PARAM="" 21466 21467 if test "x$TAR_TYPE" = "xgnu"; then 21468 TAR_INCLUDE_PARAM="T" 21469 TAR_SUPPORTS_TRANSFORM="true" 21470 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21471 # When using gnu tar for Solaris targets, need to use compatibility mode 21472 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21473 fi 21474 else 21475 TAR_INCLUDE_PARAM="I" 21476 TAR_SUPPORTS_TRANSFORM="false" 21477 fi 21478 21479 21480 21481 21482 21483 21484 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21485 # This is a problem for the grep resident on AIX. 21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21487 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21488 # Multiple subsequent spaces.. 21489 STACK_SPACES='aaa bbb ccc' 21490 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21491 # patterns in it. 21492 STACK_LIST=${STACK_SPACES// /$'\n'} 21493 NEEDLE_SPACES='ccc bbb aaa' 21494 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21495 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21496 if test "x$RESULT" == "x"; then 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21498 $as_echo "yes" >&6; } 21499 else 21500 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21501 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21502 fi 21503 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21504 fi 21505 21506 21507 # These tools might not be installed by default, 21508 # need hint on how to install them. 21509 21510 21511 21512 # Publish this variable in the help. 21513 21514 21515 if [ -z "${UNZIP+x}" ]; then 21516 # The variable is not set by user, try to locate tool using the code snippet 21517 for ac_prog in unzip 21518 do 21519 # Extract the first word of "$ac_prog", so it can be a program name with args. 21520 set dummy $ac_prog; ac_word=$2 21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21522 $as_echo_n "checking for $ac_word... " >&6; } 21523 if ${ac_cv_path_UNZIP+:} false; then : 21524 $as_echo_n "(cached) " >&6 21525 else 21526 case $UNZIP in 21527 [\\/]* | ?:[\\/]*) 21528 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21529 ;; 21530 *) 21531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21532 for as_dir in $PATH 21533 do 21534 IFS=$as_save_IFS 21535 test -z "$as_dir" && as_dir=. 21536 for ac_exec_ext in '' $ac_executable_extensions; do 21537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21538 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21540 break 2 21541 fi 21542 done 21543 done 21544 IFS=$as_save_IFS 21545 21546 ;; 21547 esac 21548 fi 21549 UNZIP=$ac_cv_path_UNZIP 21550 if test -n "$UNZIP"; then 21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21552 $as_echo "$UNZIP" >&6; } 21553 else 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21555 $as_echo "no" >&6; } 21556 fi 21557 21558 21559 test -n "$UNZIP" && break 21560 done 21561 21562 else 21563 # The variable is set, but is it from the command line or the environment? 21564 21565 # Try to remove the string !UNZIP! from our list. 21566 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21567 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21568 # If it failed, the variable was not from the command line. Ignore it, 21569 # but warn the user (except for BASH, which is always set by the calling BASH). 21570 if test "xUNZIP" != xBASH; then 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21572 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21573 fi 21574 # Try to locate tool using the code snippet 21575 for ac_prog in unzip 21576 do 21577 # Extract the first word of "$ac_prog", so it can be a program name with args. 21578 set dummy $ac_prog; ac_word=$2 21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21580 $as_echo_n "checking for $ac_word... " >&6; } 21581 if ${ac_cv_path_UNZIP+:} false; then : 21582 $as_echo_n "(cached) " >&6 21583 else 21584 case $UNZIP in 21585 [\\/]* | ?:[\\/]*) 21586 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21587 ;; 21588 *) 21589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21590 for as_dir in $PATH 21591 do 21592 IFS=$as_save_IFS 21593 test -z "$as_dir" && as_dir=. 21594 for ac_exec_ext in '' $ac_executable_extensions; do 21595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21596 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21598 break 2 21599 fi 21600 done 21601 done 21602 IFS=$as_save_IFS 21603 21604 ;; 21605 esac 21606 fi 21607 UNZIP=$ac_cv_path_UNZIP 21608 if test -n "$UNZIP"; then 21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21610 $as_echo "$UNZIP" >&6; } 21611 else 21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21613 $as_echo "no" >&6; } 21614 fi 21615 21616 21617 test -n "$UNZIP" && break 21618 done 21619 21620 else 21621 # If it succeeded, then it was overridden by the user. We will use it 21622 # for the tool. 21623 21624 # First remove it from the list of overridden variables, so we can test 21625 # for unknown variables in the end. 21626 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21627 21628 # Check if we try to supply an empty value 21629 if test "x$UNZIP" = x; then 21630 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21631 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21633 $as_echo_n "checking for UNZIP... " >&6; } 21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21635 $as_echo "disabled" >&6; } 21636 else 21637 # Check if the provided tool contains a complete path. 21638 tool_specified="$UNZIP" 21639 tool_basename="${tool_specified##*/}" 21640 if test "x$tool_basename" = "x$tool_specified"; then 21641 # A command without a complete path is provided, search $PATH. 21642 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21643 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21644 # Extract the first word of "$tool_basename", so it can be a program name with args. 21645 set dummy $tool_basename; ac_word=$2 21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21647 $as_echo_n "checking for $ac_word... " >&6; } 21648 if ${ac_cv_path_UNZIP+:} false; then : 21649 $as_echo_n "(cached) " >&6 21650 else 21651 case $UNZIP in 21652 [\\/]* | ?:[\\/]*) 21653 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21654 ;; 21655 *) 21656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21657 for as_dir in $PATH 21658 do 21659 IFS=$as_save_IFS 21660 test -z "$as_dir" && as_dir=. 21661 for ac_exec_ext in '' $ac_executable_extensions; do 21662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21663 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21665 break 2 21666 fi 21667 done 21668 done 21669 IFS=$as_save_IFS 21670 21671 ;; 21672 esac 21673 fi 21674 UNZIP=$ac_cv_path_UNZIP 21675 if test -n "$UNZIP"; then 21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21677 $as_echo "$UNZIP" >&6; } 21678 else 21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21680 $as_echo "no" >&6; } 21681 fi 21682 21683 21684 if test "x$UNZIP" = x; then 21685 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21686 fi 21687 else 21688 # Otherwise we believe it is a complete path. Use it as it is. 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21690 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21692 $as_echo_n "checking for UNZIP... " >&6; } 21693 if test ! -x "$tool_specified"; then 21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21695 $as_echo "not found" >&6; } 21696 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21697 fi 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21699 $as_echo "$tool_specified" >&6; } 21700 fi 21701 fi 21702 fi 21703 21704 fi 21705 21706 21707 21708 if test "x$UNZIP" = x; then 21709 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21710 fi 21711 21712 21713 # Since zip uses "ZIP" as a environment variable for passing options, we need 21714 # to name our variable differently, hence ZIPEXE. 21715 21716 21717 21718 # Publish this variable in the help. 21719 21720 21721 if [ -z "${ZIPEXE+x}" ]; then 21722 # The variable is not set by user, try to locate tool using the code snippet 21723 for ac_prog in zip 21724 do 21725 # Extract the first word of "$ac_prog", so it can be a program name with args. 21726 set dummy $ac_prog; ac_word=$2 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21728 $as_echo_n "checking for $ac_word... " >&6; } 21729 if ${ac_cv_path_ZIPEXE+:} false; then : 21730 $as_echo_n "(cached) " >&6 21731 else 21732 case $ZIPEXE in 21733 [\\/]* | ?:[\\/]*) 21734 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21735 ;; 21736 *) 21737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21738 for as_dir in $PATH 21739 do 21740 IFS=$as_save_IFS 21741 test -z "$as_dir" && as_dir=. 21742 for ac_exec_ext in '' $ac_executable_extensions; do 21743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21744 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21746 break 2 21747 fi 21748 done 21749 done 21750 IFS=$as_save_IFS 21751 21752 ;; 21753 esac 21754 fi 21755 ZIPEXE=$ac_cv_path_ZIPEXE 21756 if test -n "$ZIPEXE"; then 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21758 $as_echo "$ZIPEXE" >&6; } 21759 else 21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21761 $as_echo "no" >&6; } 21762 fi 21763 21764 21765 test -n "$ZIPEXE" && break 21766 done 21767 21768 else 21769 # The variable is set, but is it from the command line or the environment? 21770 21771 # Try to remove the string !ZIPEXE! from our list. 21772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21774 # If it failed, the variable was not from the command line. Ignore it, 21775 # but warn the user (except for BASH, which is always set by the calling BASH). 21776 if test "xZIPEXE" != xBASH; then 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21778 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21779 fi 21780 # Try to locate tool using the code snippet 21781 for ac_prog in zip 21782 do 21783 # Extract the first word of "$ac_prog", so it can be a program name with args. 21784 set dummy $ac_prog; ac_word=$2 21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21786 $as_echo_n "checking for $ac_word... " >&6; } 21787 if ${ac_cv_path_ZIPEXE+:} false; then : 21788 $as_echo_n "(cached) " >&6 21789 else 21790 case $ZIPEXE in 21791 [\\/]* | ?:[\\/]*) 21792 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21793 ;; 21794 *) 21795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21796 for as_dir in $PATH 21797 do 21798 IFS=$as_save_IFS 21799 test -z "$as_dir" && as_dir=. 21800 for ac_exec_ext in '' $ac_executable_extensions; do 21801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21802 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21804 break 2 21805 fi 21806 done 21807 done 21808 IFS=$as_save_IFS 21809 21810 ;; 21811 esac 21812 fi 21813 ZIPEXE=$ac_cv_path_ZIPEXE 21814 if test -n "$ZIPEXE"; then 21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21816 $as_echo "$ZIPEXE" >&6; } 21817 else 21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21819 $as_echo "no" >&6; } 21820 fi 21821 21822 21823 test -n "$ZIPEXE" && break 21824 done 21825 21826 else 21827 # If it succeeded, then it was overridden by the user. We will use it 21828 # for the tool. 21829 21830 # First remove it from the list of overridden variables, so we can test 21831 # for unknown variables in the end. 21832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21833 21834 # Check if we try to supply an empty value 21835 if test "x$ZIPEXE" = x; then 21836 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21837 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21839 $as_echo_n "checking for ZIPEXE... " >&6; } 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21841 $as_echo "disabled" >&6; } 21842 else 21843 # Check if the provided tool contains a complete path. 21844 tool_specified="$ZIPEXE" 21845 tool_basename="${tool_specified##*/}" 21846 if test "x$tool_basename" = "x$tool_specified"; then 21847 # A command without a complete path is provided, search $PATH. 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21849 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21850 # Extract the first word of "$tool_basename", so it can be a program name with args. 21851 set dummy $tool_basename; ac_word=$2 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21853 $as_echo_n "checking for $ac_word... " >&6; } 21854 if ${ac_cv_path_ZIPEXE+:} false; then : 21855 $as_echo_n "(cached) " >&6 21856 else 21857 case $ZIPEXE in 21858 [\\/]* | ?:[\\/]*) 21859 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21860 ;; 21861 *) 21862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21863 for as_dir in $PATH 21864 do 21865 IFS=$as_save_IFS 21866 test -z "$as_dir" && as_dir=. 21867 for ac_exec_ext in '' $ac_executable_extensions; do 21868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21869 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21871 break 2 21872 fi 21873 done 21874 done 21875 IFS=$as_save_IFS 21876 21877 ;; 21878 esac 21879 fi 21880 ZIPEXE=$ac_cv_path_ZIPEXE 21881 if test -n "$ZIPEXE"; then 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21883 $as_echo "$ZIPEXE" >&6; } 21884 else 21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21886 $as_echo "no" >&6; } 21887 fi 21888 21889 21890 if test "x$ZIPEXE" = x; then 21891 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21892 fi 21893 else 21894 # Otherwise we believe it is a complete path. Use it as it is. 21895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21896 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21898 $as_echo_n "checking for ZIPEXE... " >&6; } 21899 if test ! -x "$tool_specified"; then 21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21901 $as_echo "not found" >&6; } 21902 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21903 fi 21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21905 $as_echo "$tool_specified" >&6; } 21906 fi 21907 fi 21908 fi 21909 21910 fi 21911 21912 21913 21914 if test "x$ZIPEXE" = x; then 21915 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21916 fi 21917 21918 21919 21920 # Non-required basic tools 21921 21922 21923 21924 # Publish this variable in the help. 21925 21926 21927 if [ -z "${LDD+x}" ]; then 21928 # The variable is not set by user, try to locate tool using the code snippet 21929 for ac_prog in ldd 21930 do 21931 # Extract the first word of "$ac_prog", so it can be a program name with args. 21932 set dummy $ac_prog; ac_word=$2 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21934 $as_echo_n "checking for $ac_word... " >&6; } 21935 if ${ac_cv_path_LDD+:} false; then : 21936 $as_echo_n "(cached) " >&6 21937 else 21938 case $LDD in 21939 [\\/]* | ?:[\\/]*) 21940 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21941 ;; 21942 *) 21943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21944 for as_dir in $PATH 21945 do 21946 IFS=$as_save_IFS 21947 test -z "$as_dir" && as_dir=. 21948 for ac_exec_ext in '' $ac_executable_extensions; do 21949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21950 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21952 break 2 21953 fi 21954 done 21955 done 21956 IFS=$as_save_IFS 21957 21958 ;; 21959 esac 21960 fi 21961 LDD=$ac_cv_path_LDD 21962 if test -n "$LDD"; then 21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21964 $as_echo "$LDD" >&6; } 21965 else 21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21967 $as_echo "no" >&6; } 21968 fi 21969 21970 21971 test -n "$LDD" && break 21972 done 21973 21974 else 21975 # The variable is set, but is it from the command line or the environment? 21976 21977 # Try to remove the string !LDD! from our list. 21978 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21979 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21980 # If it failed, the variable was not from the command line. Ignore it, 21981 # but warn the user (except for BASH, which is always set by the calling BASH). 21982 if test "xLDD" != xBASH; then 21983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21984 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21985 fi 21986 # Try to locate tool using the code snippet 21987 for ac_prog in ldd 21988 do 21989 # Extract the first word of "$ac_prog", so it can be a program name with args. 21990 set dummy $ac_prog; ac_word=$2 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21992 $as_echo_n "checking for $ac_word... " >&6; } 21993 if ${ac_cv_path_LDD+:} false; then : 21994 $as_echo_n "(cached) " >&6 21995 else 21996 case $LDD in 21997 [\\/]* | ?:[\\/]*) 21998 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21999 ;; 22000 *) 22001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22002 for as_dir in $PATH 22003 do 22004 IFS=$as_save_IFS 22005 test -z "$as_dir" && as_dir=. 22006 for ac_exec_ext in '' $ac_executable_extensions; do 22007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22008 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22010 break 2 22011 fi 22012 done 22013 done 22014 IFS=$as_save_IFS 22015 22016 ;; 22017 esac 22018 fi 22019 LDD=$ac_cv_path_LDD 22020 if test -n "$LDD"; then 22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22022 $as_echo "$LDD" >&6; } 22023 else 22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22025 $as_echo "no" >&6; } 22026 fi 22027 22028 22029 test -n "$LDD" && break 22030 done 22031 22032 else 22033 # If it succeeded, then it was overridden by the user. We will use it 22034 # for the tool. 22035 22036 # First remove it from the list of overridden variables, so we can test 22037 # for unknown variables in the end. 22038 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22039 22040 # Check if we try to supply an empty value 22041 if test "x$LDD" = x; then 22042 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22043 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22045 $as_echo_n "checking for LDD... " >&6; } 22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22047 $as_echo "disabled" >&6; } 22048 else 22049 # Check if the provided tool contains a complete path. 22050 tool_specified="$LDD" 22051 tool_basename="${tool_specified##*/}" 22052 if test "x$tool_basename" = "x$tool_specified"; then 22053 # A command without a complete path is provided, search $PATH. 22054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22055 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22056 # Extract the first word of "$tool_basename", so it can be a program name with args. 22057 set dummy $tool_basename; ac_word=$2 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22059 $as_echo_n "checking for $ac_word... " >&6; } 22060 if ${ac_cv_path_LDD+:} false; then : 22061 $as_echo_n "(cached) " >&6 22062 else 22063 case $LDD in 22064 [\\/]* | ?:[\\/]*) 22065 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22066 ;; 22067 *) 22068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22069 for as_dir in $PATH 22070 do 22071 IFS=$as_save_IFS 22072 test -z "$as_dir" && as_dir=. 22073 for ac_exec_ext in '' $ac_executable_extensions; do 22074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22075 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22077 break 2 22078 fi 22079 done 22080 done 22081 IFS=$as_save_IFS 22082 22083 ;; 22084 esac 22085 fi 22086 LDD=$ac_cv_path_LDD 22087 if test -n "$LDD"; then 22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22089 $as_echo "$LDD" >&6; } 22090 else 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22092 $as_echo "no" >&6; } 22093 fi 22094 22095 22096 if test "x$LDD" = x; then 22097 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22098 fi 22099 else 22100 # Otherwise we believe it is a complete path. Use it as it is. 22101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22102 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22104 $as_echo_n "checking for LDD... " >&6; } 22105 if test ! -x "$tool_specified"; then 22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22107 $as_echo "not found" >&6; } 22108 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22109 fi 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22111 $as_echo "$tool_specified" >&6; } 22112 fi 22113 fi 22114 fi 22115 22116 fi 22117 22118 22119 if test "x$LDD" = "x"; then 22120 # List shared lib dependencies is used for 22121 # debug output and checking for forbidden dependencies. 22122 # We can build without it. 22123 LDD="true" 22124 fi 22125 22126 22127 # Publish this variable in the help. 22128 22129 22130 if [ -z "${OTOOL+x}" ]; then 22131 # The variable is not set by user, try to locate tool using the code snippet 22132 for ac_prog in otool 22133 do 22134 # Extract the first word of "$ac_prog", so it can be a program name with args. 22135 set dummy $ac_prog; ac_word=$2 22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22137 $as_echo_n "checking for $ac_word... " >&6; } 22138 if ${ac_cv_path_OTOOL+:} false; then : 22139 $as_echo_n "(cached) " >&6 22140 else 22141 case $OTOOL in 22142 [\\/]* | ?:[\\/]*) 22143 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22144 ;; 22145 *) 22146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22147 for as_dir in $PATH 22148 do 22149 IFS=$as_save_IFS 22150 test -z "$as_dir" && as_dir=. 22151 for ac_exec_ext in '' $ac_executable_extensions; do 22152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22153 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22155 break 2 22156 fi 22157 done 22158 done 22159 IFS=$as_save_IFS 22160 22161 ;; 22162 esac 22163 fi 22164 OTOOL=$ac_cv_path_OTOOL 22165 if test -n "$OTOOL"; then 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22167 $as_echo "$OTOOL" >&6; } 22168 else 22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22170 $as_echo "no" >&6; } 22171 fi 22172 22173 22174 test -n "$OTOOL" && break 22175 done 22176 22177 else 22178 # The variable is set, but is it from the command line or the environment? 22179 22180 # Try to remove the string !OTOOL! from our list. 22181 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 22182 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22183 # If it failed, the variable was not from the command line. Ignore it, 22184 # but warn the user (except for BASH, which is always set by the calling BASH). 22185 if test "xOTOOL" != xBASH; then 22186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 22187 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 22188 fi 22189 # Try to locate tool using the code snippet 22190 for ac_prog in otool 22191 do 22192 # Extract the first word of "$ac_prog", so it can be a program name with args. 22193 set dummy $ac_prog; ac_word=$2 22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22195 $as_echo_n "checking for $ac_word... " >&6; } 22196 if ${ac_cv_path_OTOOL+:} false; then : 22197 $as_echo_n "(cached) " >&6 22198 else 22199 case $OTOOL in 22200 [\\/]* | ?:[\\/]*) 22201 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22202 ;; 22203 *) 22204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22205 for as_dir in $PATH 22206 do 22207 IFS=$as_save_IFS 22208 test -z "$as_dir" && as_dir=. 22209 for ac_exec_ext in '' $ac_executable_extensions; do 22210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22211 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22213 break 2 22214 fi 22215 done 22216 done 22217 IFS=$as_save_IFS 22218 22219 ;; 22220 esac 22221 fi 22222 OTOOL=$ac_cv_path_OTOOL 22223 if test -n "$OTOOL"; then 22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22225 $as_echo "$OTOOL" >&6; } 22226 else 22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22228 $as_echo "no" >&6; } 22229 fi 22230 22231 22232 test -n "$OTOOL" && break 22233 done 22234 22235 else 22236 # If it succeeded, then it was overridden by the user. We will use it 22237 # for the tool. 22238 22239 # First remove it from the list of overridden variables, so we can test 22240 # for unknown variables in the end. 22241 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22242 22243 # Check if we try to supply an empty value 22244 if test "x$OTOOL" = x; then 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 22246 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22248 $as_echo_n "checking for OTOOL... " >&6; } 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22250 $as_echo "disabled" >&6; } 22251 else 22252 # Check if the provided tool contains a complete path. 22253 tool_specified="$OTOOL" 22254 tool_basename="${tool_specified##*/}" 22255 if test "x$tool_basename" = "x$tool_specified"; then 22256 # A command without a complete path is provided, search $PATH. 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 22258 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 22259 # Extract the first word of "$tool_basename", so it can be a program name with args. 22260 set dummy $tool_basename; ac_word=$2 22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22262 $as_echo_n "checking for $ac_word... " >&6; } 22263 if ${ac_cv_path_OTOOL+:} false; then : 22264 $as_echo_n "(cached) " >&6 22265 else 22266 case $OTOOL in 22267 [\\/]* | ?:[\\/]*) 22268 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22269 ;; 22270 *) 22271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22272 for as_dir in $PATH 22273 do 22274 IFS=$as_save_IFS 22275 test -z "$as_dir" && as_dir=. 22276 for ac_exec_ext in '' $ac_executable_extensions; do 22277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22278 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22280 break 2 22281 fi 22282 done 22283 done 22284 IFS=$as_save_IFS 22285 22286 ;; 22287 esac 22288 fi 22289 OTOOL=$ac_cv_path_OTOOL 22290 if test -n "$OTOOL"; then 22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22292 $as_echo "$OTOOL" >&6; } 22293 else 22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22295 $as_echo "no" >&6; } 22296 fi 22297 22298 22299 if test "x$OTOOL" = x; then 22300 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22301 fi 22302 else 22303 # Otherwise we believe it is a complete path. Use it as it is. 22304 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22305 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22307 $as_echo_n "checking for OTOOL... " >&6; } 22308 if test ! -x "$tool_specified"; then 22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22310 $as_echo "not found" >&6; } 22311 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22312 fi 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22314 $as_echo "$tool_specified" >&6; } 22315 fi 22316 fi 22317 fi 22318 22319 fi 22320 22321 22322 if test "x$OTOOL" = "x"; then 22323 OTOOL="true" 22324 fi 22325 22326 22327 # Publish this variable in the help. 22328 22329 22330 if [ -z "${READELF+x}" ]; then 22331 # The variable is not set by user, try to locate tool using the code snippet 22332 for ac_prog in greadelf readelf 22333 do 22334 # Extract the first word of "$ac_prog", so it can be a program name with args. 22335 set dummy $ac_prog; ac_word=$2 22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22337 $as_echo_n "checking for $ac_word... " >&6; } 22338 if ${ac_cv_path_READELF+:} false; then : 22339 $as_echo_n "(cached) " >&6 22340 else 22341 case $READELF in 22342 [\\/]* | ?:[\\/]*) 22343 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22344 ;; 22345 *) 22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22347 for as_dir in $PATH 22348 do 22349 IFS=$as_save_IFS 22350 test -z "$as_dir" && as_dir=. 22351 for ac_exec_ext in '' $ac_executable_extensions; do 22352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22353 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22355 break 2 22356 fi 22357 done 22358 done 22359 IFS=$as_save_IFS 22360 22361 ;; 22362 esac 22363 fi 22364 READELF=$ac_cv_path_READELF 22365 if test -n "$READELF"; then 22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22367 $as_echo "$READELF" >&6; } 22368 else 22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22370 $as_echo "no" >&6; } 22371 fi 22372 22373 22374 test -n "$READELF" && break 22375 done 22376 22377 else 22378 # The variable is set, but is it from the command line or the environment? 22379 22380 # Try to remove the string !READELF! from our list. 22381 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22382 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22383 # If it failed, the variable was not from the command line. Ignore it, 22384 # but warn the user (except for BASH, which is always set by the calling BASH). 22385 if test "xREADELF" != xBASH; then 22386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22387 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22388 fi 22389 # Try to locate tool using the code snippet 22390 for ac_prog in greadelf readelf 22391 do 22392 # Extract the first word of "$ac_prog", so it can be a program name with args. 22393 set dummy $ac_prog; ac_word=$2 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22395 $as_echo_n "checking for $ac_word... " >&6; } 22396 if ${ac_cv_path_READELF+:} false; then : 22397 $as_echo_n "(cached) " >&6 22398 else 22399 case $READELF in 22400 [\\/]* | ?:[\\/]*) 22401 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22402 ;; 22403 *) 22404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22405 for as_dir in $PATH 22406 do 22407 IFS=$as_save_IFS 22408 test -z "$as_dir" && as_dir=. 22409 for ac_exec_ext in '' $ac_executable_extensions; do 22410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22411 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22413 break 2 22414 fi 22415 done 22416 done 22417 IFS=$as_save_IFS 22418 22419 ;; 22420 esac 22421 fi 22422 READELF=$ac_cv_path_READELF 22423 if test -n "$READELF"; then 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22425 $as_echo "$READELF" >&6; } 22426 else 22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22428 $as_echo "no" >&6; } 22429 fi 22430 22431 22432 test -n "$READELF" && break 22433 done 22434 22435 else 22436 # If it succeeded, then it was overridden by the user. We will use it 22437 # for the tool. 22438 22439 # First remove it from the list of overridden variables, so we can test 22440 # for unknown variables in the end. 22441 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22442 22443 # Check if we try to supply an empty value 22444 if test "x$READELF" = x; then 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22446 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22448 $as_echo_n "checking for READELF... " >&6; } 22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22450 $as_echo "disabled" >&6; } 22451 else 22452 # Check if the provided tool contains a complete path. 22453 tool_specified="$READELF" 22454 tool_basename="${tool_specified##*/}" 22455 if test "x$tool_basename" = "x$tool_specified"; then 22456 # A command without a complete path is provided, search $PATH. 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22458 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22459 # Extract the first word of "$tool_basename", so it can be a program name with args. 22460 set dummy $tool_basename; ac_word=$2 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22462 $as_echo_n "checking for $ac_word... " >&6; } 22463 if ${ac_cv_path_READELF+:} false; then : 22464 $as_echo_n "(cached) " >&6 22465 else 22466 case $READELF in 22467 [\\/]* | ?:[\\/]*) 22468 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22469 ;; 22470 *) 22471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22472 for as_dir in $PATH 22473 do 22474 IFS=$as_save_IFS 22475 test -z "$as_dir" && as_dir=. 22476 for ac_exec_ext in '' $ac_executable_extensions; do 22477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22478 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22480 break 2 22481 fi 22482 done 22483 done 22484 IFS=$as_save_IFS 22485 22486 ;; 22487 esac 22488 fi 22489 READELF=$ac_cv_path_READELF 22490 if test -n "$READELF"; then 22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22492 $as_echo "$READELF" >&6; } 22493 else 22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22495 $as_echo "no" >&6; } 22496 fi 22497 22498 22499 if test "x$READELF" = x; then 22500 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22501 fi 22502 else 22503 # Otherwise we believe it is a complete path. Use it as it is. 22504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22505 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22507 $as_echo_n "checking for READELF... " >&6; } 22508 if test ! -x "$tool_specified"; then 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22510 $as_echo "not found" >&6; } 22511 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22512 fi 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22514 $as_echo "$tool_specified" >&6; } 22515 fi 22516 fi 22517 fi 22518 22519 fi 22520 22521 22522 22523 22524 # Publish this variable in the help. 22525 22526 22527 if [ -z "${DOT+x}" ]; then 22528 # The variable is not set by user, try to locate tool using the code snippet 22529 for ac_prog in dot 22530 do 22531 # Extract the first word of "$ac_prog", so it can be a program name with args. 22532 set dummy $ac_prog; ac_word=$2 22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22534 $as_echo_n "checking for $ac_word... " >&6; } 22535 if ${ac_cv_path_DOT+:} false; then : 22536 $as_echo_n "(cached) " >&6 22537 else 22538 case $DOT in 22539 [\\/]* | ?:[\\/]*) 22540 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22541 ;; 22542 *) 22543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22544 for as_dir in $PATH 22545 do 22546 IFS=$as_save_IFS 22547 test -z "$as_dir" && as_dir=. 22548 for ac_exec_ext in '' $ac_executable_extensions; do 22549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22550 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22552 break 2 22553 fi 22554 done 22555 done 22556 IFS=$as_save_IFS 22557 22558 ;; 22559 esac 22560 fi 22561 DOT=$ac_cv_path_DOT 22562 if test -n "$DOT"; then 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22564 $as_echo "$DOT" >&6; } 22565 else 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22567 $as_echo "no" >&6; } 22568 fi 22569 22570 22571 test -n "$DOT" && break 22572 done 22573 22574 else 22575 # The variable is set, but is it from the command line or the environment? 22576 22577 # Try to remove the string !DOT! from our list. 22578 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22579 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22580 # If it failed, the variable was not from the command line. Ignore it, 22581 # but warn the user (except for BASH, which is always set by the calling BASH). 22582 if test "xDOT" != xBASH; then 22583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22584 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22585 fi 22586 # Try to locate tool using the code snippet 22587 for ac_prog in dot 22588 do 22589 # Extract the first word of "$ac_prog", so it can be a program name with args. 22590 set dummy $ac_prog; ac_word=$2 22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22592 $as_echo_n "checking for $ac_word... " >&6; } 22593 if ${ac_cv_path_DOT+:} false; then : 22594 $as_echo_n "(cached) " >&6 22595 else 22596 case $DOT in 22597 [\\/]* | ?:[\\/]*) 22598 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22599 ;; 22600 *) 22601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22602 for as_dir in $PATH 22603 do 22604 IFS=$as_save_IFS 22605 test -z "$as_dir" && as_dir=. 22606 for ac_exec_ext in '' $ac_executable_extensions; do 22607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22608 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22610 break 2 22611 fi 22612 done 22613 done 22614 IFS=$as_save_IFS 22615 22616 ;; 22617 esac 22618 fi 22619 DOT=$ac_cv_path_DOT 22620 if test -n "$DOT"; then 22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22622 $as_echo "$DOT" >&6; } 22623 else 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22625 $as_echo "no" >&6; } 22626 fi 22627 22628 22629 test -n "$DOT" && break 22630 done 22631 22632 else 22633 # If it succeeded, then it was overridden by the user. We will use it 22634 # for the tool. 22635 22636 # First remove it from the list of overridden variables, so we can test 22637 # for unknown variables in the end. 22638 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22639 22640 # Check if we try to supply an empty value 22641 if test "x$DOT" = x; then 22642 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22643 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22645 $as_echo_n "checking for DOT... " >&6; } 22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22647 $as_echo "disabled" >&6; } 22648 else 22649 # Check if the provided tool contains a complete path. 22650 tool_specified="$DOT" 22651 tool_basename="${tool_specified##*/}" 22652 if test "x$tool_basename" = "x$tool_specified"; then 22653 # A command without a complete path is provided, search $PATH. 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22655 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22656 # Extract the first word of "$tool_basename", so it can be a program name with args. 22657 set dummy $tool_basename; ac_word=$2 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22659 $as_echo_n "checking for $ac_word... " >&6; } 22660 if ${ac_cv_path_DOT+:} false; then : 22661 $as_echo_n "(cached) " >&6 22662 else 22663 case $DOT in 22664 [\\/]* | ?:[\\/]*) 22665 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22666 ;; 22667 *) 22668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22669 for as_dir in $PATH 22670 do 22671 IFS=$as_save_IFS 22672 test -z "$as_dir" && as_dir=. 22673 for ac_exec_ext in '' $ac_executable_extensions; do 22674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22675 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22677 break 2 22678 fi 22679 done 22680 done 22681 IFS=$as_save_IFS 22682 22683 ;; 22684 esac 22685 fi 22686 DOT=$ac_cv_path_DOT 22687 if test -n "$DOT"; then 22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22689 $as_echo "$DOT" >&6; } 22690 else 22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22692 $as_echo "no" >&6; } 22693 fi 22694 22695 22696 if test "x$DOT" = x; then 22697 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22698 fi 22699 else 22700 # Otherwise we believe it is a complete path. Use it as it is. 22701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22702 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22704 $as_echo_n "checking for DOT... " >&6; } 22705 if test ! -x "$tool_specified"; then 22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22707 $as_echo "not found" >&6; } 22708 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22709 fi 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22711 $as_echo "$tool_specified" >&6; } 22712 fi 22713 fi 22714 fi 22715 22716 fi 22717 22718 22719 22720 22721 # Publish this variable in the help. 22722 22723 22724 if [ -z "${HG+x}" ]; then 22725 # The variable is not set by user, try to locate tool using the code snippet 22726 for ac_prog in hg 22727 do 22728 # Extract the first word of "$ac_prog", so it can be a program name with args. 22729 set dummy $ac_prog; ac_word=$2 22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22731 $as_echo_n "checking for $ac_word... " >&6; } 22732 if ${ac_cv_path_HG+:} false; then : 22733 $as_echo_n "(cached) " >&6 22734 else 22735 case $HG in 22736 [\\/]* | ?:[\\/]*) 22737 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22738 ;; 22739 *) 22740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22741 for as_dir in $PATH 22742 do 22743 IFS=$as_save_IFS 22744 test -z "$as_dir" && as_dir=. 22745 for ac_exec_ext in '' $ac_executable_extensions; do 22746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22747 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22749 break 2 22750 fi 22751 done 22752 done 22753 IFS=$as_save_IFS 22754 22755 ;; 22756 esac 22757 fi 22758 HG=$ac_cv_path_HG 22759 if test -n "$HG"; then 22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22761 $as_echo "$HG" >&6; } 22762 else 22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22764 $as_echo "no" >&6; } 22765 fi 22766 22767 22768 test -n "$HG" && break 22769 done 22770 22771 else 22772 # The variable is set, but is it from the command line or the environment? 22773 22774 # Try to remove the string !HG! from our list. 22775 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22776 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22777 # If it failed, the variable was not from the command line. Ignore it, 22778 # but warn the user (except for BASH, which is always set by the calling BASH). 22779 if test "xHG" != xBASH; then 22780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22781 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22782 fi 22783 # Try to locate tool using the code snippet 22784 for ac_prog in hg 22785 do 22786 # Extract the first word of "$ac_prog", so it can be a program name with args. 22787 set dummy $ac_prog; ac_word=$2 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22789 $as_echo_n "checking for $ac_word... " >&6; } 22790 if ${ac_cv_path_HG+:} false; then : 22791 $as_echo_n "(cached) " >&6 22792 else 22793 case $HG in 22794 [\\/]* | ?:[\\/]*) 22795 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22796 ;; 22797 *) 22798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22799 for as_dir in $PATH 22800 do 22801 IFS=$as_save_IFS 22802 test -z "$as_dir" && as_dir=. 22803 for ac_exec_ext in '' $ac_executable_extensions; do 22804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22805 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22807 break 2 22808 fi 22809 done 22810 done 22811 IFS=$as_save_IFS 22812 22813 ;; 22814 esac 22815 fi 22816 HG=$ac_cv_path_HG 22817 if test -n "$HG"; then 22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22819 $as_echo "$HG" >&6; } 22820 else 22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22822 $as_echo "no" >&6; } 22823 fi 22824 22825 22826 test -n "$HG" && break 22827 done 22828 22829 else 22830 # If it succeeded, then it was overridden by the user. We will use it 22831 # for the tool. 22832 22833 # First remove it from the list of overridden variables, so we can test 22834 # for unknown variables in the end. 22835 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22836 22837 # Check if we try to supply an empty value 22838 if test "x$HG" = x; then 22839 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22840 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22842 $as_echo_n "checking for HG... " >&6; } 22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22844 $as_echo "disabled" >&6; } 22845 else 22846 # Check if the provided tool contains a complete path. 22847 tool_specified="$HG" 22848 tool_basename="${tool_specified##*/}" 22849 if test "x$tool_basename" = "x$tool_specified"; then 22850 # A command without a complete path is provided, search $PATH. 22851 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22852 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22853 # Extract the first word of "$tool_basename", so it can be a program name with args. 22854 set dummy $tool_basename; ac_word=$2 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22856 $as_echo_n "checking for $ac_word... " >&6; } 22857 if ${ac_cv_path_HG+:} false; then : 22858 $as_echo_n "(cached) " >&6 22859 else 22860 case $HG in 22861 [\\/]* | ?:[\\/]*) 22862 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22863 ;; 22864 *) 22865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22866 for as_dir in $PATH 22867 do 22868 IFS=$as_save_IFS 22869 test -z "$as_dir" && as_dir=. 22870 for ac_exec_ext in '' $ac_executable_extensions; do 22871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22872 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22874 break 2 22875 fi 22876 done 22877 done 22878 IFS=$as_save_IFS 22879 22880 ;; 22881 esac 22882 fi 22883 HG=$ac_cv_path_HG 22884 if test -n "$HG"; then 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22886 $as_echo "$HG" >&6; } 22887 else 22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22889 $as_echo "no" >&6; } 22890 fi 22891 22892 22893 if test "x$HG" = x; then 22894 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22895 fi 22896 else 22897 # Otherwise we believe it is a complete path. Use it as it is. 22898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22899 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22901 $as_echo_n "checking for HG... " >&6; } 22902 if test ! -x "$tool_specified"; then 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22904 $as_echo "not found" >&6; } 22905 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22906 fi 22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22908 $as_echo "$tool_specified" >&6; } 22909 fi 22910 fi 22911 fi 22912 22913 fi 22914 22915 22916 22917 22918 # Publish this variable in the help. 22919 22920 22921 if [ -z "${STAT+x}" ]; then 22922 # The variable is not set by user, try to locate tool using the code snippet 22923 for ac_prog in stat 22924 do 22925 # Extract the first word of "$ac_prog", so it can be a program name with args. 22926 set dummy $ac_prog; ac_word=$2 22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22928 $as_echo_n "checking for $ac_word... " >&6; } 22929 if ${ac_cv_path_STAT+:} false; then : 22930 $as_echo_n "(cached) " >&6 22931 else 22932 case $STAT in 22933 [\\/]* | ?:[\\/]*) 22934 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22935 ;; 22936 *) 22937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22938 for as_dir in $PATH 22939 do 22940 IFS=$as_save_IFS 22941 test -z "$as_dir" && as_dir=. 22942 for ac_exec_ext in '' $ac_executable_extensions; do 22943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22944 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22946 break 2 22947 fi 22948 done 22949 done 22950 IFS=$as_save_IFS 22951 22952 ;; 22953 esac 22954 fi 22955 STAT=$ac_cv_path_STAT 22956 if test -n "$STAT"; then 22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22958 $as_echo "$STAT" >&6; } 22959 else 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22961 $as_echo "no" >&6; } 22962 fi 22963 22964 22965 test -n "$STAT" && break 22966 done 22967 22968 else 22969 # The variable is set, but is it from the command line or the environment? 22970 22971 # Try to remove the string !STAT! from our list. 22972 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22973 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22974 # If it failed, the variable was not from the command line. Ignore it, 22975 # but warn the user (except for BASH, which is always set by the calling BASH). 22976 if test "xSTAT" != xBASH; then 22977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22978 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22979 fi 22980 # Try to locate tool using the code snippet 22981 for ac_prog in stat 22982 do 22983 # Extract the first word of "$ac_prog", so it can be a program name with args. 22984 set dummy $ac_prog; ac_word=$2 22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22986 $as_echo_n "checking for $ac_word... " >&6; } 22987 if ${ac_cv_path_STAT+:} false; then : 22988 $as_echo_n "(cached) " >&6 22989 else 22990 case $STAT in 22991 [\\/]* | ?:[\\/]*) 22992 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22993 ;; 22994 *) 22995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22996 for as_dir in $PATH 22997 do 22998 IFS=$as_save_IFS 22999 test -z "$as_dir" && as_dir=. 23000 for ac_exec_ext in '' $ac_executable_extensions; do 23001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23002 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23004 break 2 23005 fi 23006 done 23007 done 23008 IFS=$as_save_IFS 23009 23010 ;; 23011 esac 23012 fi 23013 STAT=$ac_cv_path_STAT 23014 if test -n "$STAT"; then 23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23016 $as_echo "$STAT" >&6; } 23017 else 23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23019 $as_echo "no" >&6; } 23020 fi 23021 23022 23023 test -n "$STAT" && break 23024 done 23025 23026 else 23027 # If it succeeded, then it was overridden by the user. We will use it 23028 # for the tool. 23029 23030 # First remove it from the list of overridden variables, so we can test 23031 # for unknown variables in the end. 23032 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23033 23034 # Check if we try to supply an empty value 23035 if test "x$STAT" = x; then 23036 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 23037 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23039 $as_echo_n "checking for STAT... " >&6; } 23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23041 $as_echo "disabled" >&6; } 23042 else 23043 # Check if the provided tool contains a complete path. 23044 tool_specified="$STAT" 23045 tool_basename="${tool_specified##*/}" 23046 if test "x$tool_basename" = "x$tool_specified"; then 23047 # A command without a complete path is provided, search $PATH. 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 23049 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 23050 # Extract the first word of "$tool_basename", so it can be a program name with args. 23051 set dummy $tool_basename; ac_word=$2 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23053 $as_echo_n "checking for $ac_word... " >&6; } 23054 if ${ac_cv_path_STAT+:} false; then : 23055 $as_echo_n "(cached) " >&6 23056 else 23057 case $STAT in 23058 [\\/]* | ?:[\\/]*) 23059 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 23060 ;; 23061 *) 23062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23063 for as_dir in $PATH 23064 do 23065 IFS=$as_save_IFS 23066 test -z "$as_dir" && as_dir=. 23067 for ac_exec_ext in '' $ac_executable_extensions; do 23068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23069 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23071 break 2 23072 fi 23073 done 23074 done 23075 IFS=$as_save_IFS 23076 23077 ;; 23078 esac 23079 fi 23080 STAT=$ac_cv_path_STAT 23081 if test -n "$STAT"; then 23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23083 $as_echo "$STAT" >&6; } 23084 else 23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23086 $as_echo "no" >&6; } 23087 fi 23088 23089 23090 if test "x$STAT" = x; then 23091 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23092 fi 23093 else 23094 # Otherwise we believe it is a complete path. Use it as it is. 23095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 23096 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23098 $as_echo_n "checking for STAT... " >&6; } 23099 if test ! -x "$tool_specified"; then 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23101 $as_echo "not found" >&6; } 23102 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 23103 fi 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23105 $as_echo "$tool_specified" >&6; } 23106 fi 23107 fi 23108 fi 23109 23110 fi 23111 23112 23113 23114 23115 # Publish this variable in the help. 23116 23117 23118 if [ -z "${TIME+x}" ]; then 23119 # The variable is not set by user, try to locate tool using the code snippet 23120 for ac_prog in time 23121 do 23122 # Extract the first word of "$ac_prog", so it can be a program name with args. 23123 set dummy $ac_prog; ac_word=$2 23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23125 $as_echo_n "checking for $ac_word... " >&6; } 23126 if ${ac_cv_path_TIME+:} false; then : 23127 $as_echo_n "(cached) " >&6 23128 else 23129 case $TIME in 23130 [\\/]* | ?:[\\/]*) 23131 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23132 ;; 23133 *) 23134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23135 for as_dir in $PATH 23136 do 23137 IFS=$as_save_IFS 23138 test -z "$as_dir" && as_dir=. 23139 for ac_exec_ext in '' $ac_executable_extensions; do 23140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23141 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23143 break 2 23144 fi 23145 done 23146 done 23147 IFS=$as_save_IFS 23148 23149 ;; 23150 esac 23151 fi 23152 TIME=$ac_cv_path_TIME 23153 if test -n "$TIME"; then 23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23155 $as_echo "$TIME" >&6; } 23156 else 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23158 $as_echo "no" >&6; } 23159 fi 23160 23161 23162 test -n "$TIME" && break 23163 done 23164 23165 else 23166 # The variable is set, but is it from the command line or the environment? 23167 23168 # Try to remove the string !TIME! from our list. 23169 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 23170 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23171 # If it failed, the variable was not from the command line. Ignore it, 23172 # but warn the user (except for BASH, which is always set by the calling BASH). 23173 if test "xTIME" != xBASH; then 23174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 23175 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 23176 fi 23177 # Try to locate tool using the code snippet 23178 for ac_prog in time 23179 do 23180 # Extract the first word of "$ac_prog", so it can be a program name with args. 23181 set dummy $ac_prog; ac_word=$2 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23183 $as_echo_n "checking for $ac_word... " >&6; } 23184 if ${ac_cv_path_TIME+:} false; then : 23185 $as_echo_n "(cached) " >&6 23186 else 23187 case $TIME in 23188 [\\/]* | ?:[\\/]*) 23189 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23190 ;; 23191 *) 23192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23193 for as_dir in $PATH 23194 do 23195 IFS=$as_save_IFS 23196 test -z "$as_dir" && as_dir=. 23197 for ac_exec_ext in '' $ac_executable_extensions; do 23198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23199 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23201 break 2 23202 fi 23203 done 23204 done 23205 IFS=$as_save_IFS 23206 23207 ;; 23208 esac 23209 fi 23210 TIME=$ac_cv_path_TIME 23211 if test -n "$TIME"; then 23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23213 $as_echo "$TIME" >&6; } 23214 else 23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23216 $as_echo "no" >&6; } 23217 fi 23218 23219 23220 test -n "$TIME" && break 23221 done 23222 23223 else 23224 # If it succeeded, then it was overridden by the user. We will use it 23225 # for the tool. 23226 23227 # First remove it from the list of overridden variables, so we can test 23228 # for unknown variables in the end. 23229 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23230 23231 # Check if we try to supply an empty value 23232 if test "x$TIME" = x; then 23233 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23234 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23236 $as_echo_n "checking for TIME... " >&6; } 23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23238 $as_echo "disabled" >&6; } 23239 else 23240 # Check if the provided tool contains a complete path. 23241 tool_specified="$TIME" 23242 tool_basename="${tool_specified##*/}" 23243 if test "x$tool_basename" = "x$tool_specified"; then 23244 # A command without a complete path is provided, search $PATH. 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23246 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23247 # Extract the first word of "$tool_basename", so it can be a program name with args. 23248 set dummy $tool_basename; ac_word=$2 23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23250 $as_echo_n "checking for $ac_word... " >&6; } 23251 if ${ac_cv_path_TIME+:} false; then : 23252 $as_echo_n "(cached) " >&6 23253 else 23254 case $TIME in 23255 [\\/]* | ?:[\\/]*) 23256 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23257 ;; 23258 *) 23259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23260 for as_dir in $PATH 23261 do 23262 IFS=$as_save_IFS 23263 test -z "$as_dir" && as_dir=. 23264 for ac_exec_ext in '' $ac_executable_extensions; do 23265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23266 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23268 break 2 23269 fi 23270 done 23271 done 23272 IFS=$as_save_IFS 23273 23274 ;; 23275 esac 23276 fi 23277 TIME=$ac_cv_path_TIME 23278 if test -n "$TIME"; then 23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23280 $as_echo "$TIME" >&6; } 23281 else 23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23283 $as_echo "no" >&6; } 23284 fi 23285 23286 23287 if test "x$TIME" = x; then 23288 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23289 fi 23290 else 23291 # Otherwise we believe it is a complete path. Use it as it is. 23292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23293 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23295 $as_echo_n "checking for TIME... " >&6; } 23296 if test ! -x "$tool_specified"; then 23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23298 $as_echo "not found" >&6; } 23299 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23300 fi 23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23302 $as_echo "$tool_specified" >&6; } 23303 fi 23304 fi 23305 fi 23306 23307 fi 23308 23309 23310 23311 23312 # Publish this variable in the help. 23313 23314 23315 if [ -z "${FLOCK+x}" ]; then 23316 # The variable is not set by user, try to locate tool using the code snippet 23317 for ac_prog in flock 23318 do 23319 # Extract the first word of "$ac_prog", so it can be a program name with args. 23320 set dummy $ac_prog; ac_word=$2 23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23322 $as_echo_n "checking for $ac_word... " >&6; } 23323 if ${ac_cv_path_FLOCK+:} false; then : 23324 $as_echo_n "(cached) " >&6 23325 else 23326 case $FLOCK in 23327 [\\/]* | ?:[\\/]*) 23328 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23329 ;; 23330 *) 23331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23332 for as_dir in $PATH 23333 do 23334 IFS=$as_save_IFS 23335 test -z "$as_dir" && as_dir=. 23336 for ac_exec_ext in '' $ac_executable_extensions; do 23337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23338 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23340 break 2 23341 fi 23342 done 23343 done 23344 IFS=$as_save_IFS 23345 23346 ;; 23347 esac 23348 fi 23349 FLOCK=$ac_cv_path_FLOCK 23350 if test -n "$FLOCK"; then 23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23352 $as_echo "$FLOCK" >&6; } 23353 else 23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23355 $as_echo "no" >&6; } 23356 fi 23357 23358 23359 test -n "$FLOCK" && break 23360 done 23361 23362 else 23363 # The variable is set, but is it from the command line or the environment? 23364 23365 # Try to remove the string !FLOCK! from our list. 23366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23368 # If it failed, the variable was not from the command line. Ignore it, 23369 # but warn the user (except for BASH, which is always set by the calling BASH). 23370 if test "xFLOCK" != xBASH; then 23371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23372 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23373 fi 23374 # Try to locate tool using the code snippet 23375 for ac_prog in flock 23376 do 23377 # Extract the first word of "$ac_prog", so it can be a program name with args. 23378 set dummy $ac_prog; ac_word=$2 23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23380 $as_echo_n "checking for $ac_word... " >&6; } 23381 if ${ac_cv_path_FLOCK+:} false; then : 23382 $as_echo_n "(cached) " >&6 23383 else 23384 case $FLOCK in 23385 [\\/]* | ?:[\\/]*) 23386 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23387 ;; 23388 *) 23389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23390 for as_dir in $PATH 23391 do 23392 IFS=$as_save_IFS 23393 test -z "$as_dir" && as_dir=. 23394 for ac_exec_ext in '' $ac_executable_extensions; do 23395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23396 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23398 break 2 23399 fi 23400 done 23401 done 23402 IFS=$as_save_IFS 23403 23404 ;; 23405 esac 23406 fi 23407 FLOCK=$ac_cv_path_FLOCK 23408 if test -n "$FLOCK"; then 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23410 $as_echo "$FLOCK" >&6; } 23411 else 23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23413 $as_echo "no" >&6; } 23414 fi 23415 23416 23417 test -n "$FLOCK" && break 23418 done 23419 23420 else 23421 # If it succeeded, then it was overridden by the user. We will use it 23422 # for the tool. 23423 23424 # First remove it from the list of overridden variables, so we can test 23425 # for unknown variables in the end. 23426 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23427 23428 # Check if we try to supply an empty value 23429 if test "x$FLOCK" = x; then 23430 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23431 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23433 $as_echo_n "checking for FLOCK... " >&6; } 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23435 $as_echo "disabled" >&6; } 23436 else 23437 # Check if the provided tool contains a complete path. 23438 tool_specified="$FLOCK" 23439 tool_basename="${tool_specified##*/}" 23440 if test "x$tool_basename" = "x$tool_specified"; then 23441 # A command without a complete path is provided, search $PATH. 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23443 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23444 # Extract the first word of "$tool_basename", so it can be a program name with args. 23445 set dummy $tool_basename; ac_word=$2 23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23447 $as_echo_n "checking for $ac_word... " >&6; } 23448 if ${ac_cv_path_FLOCK+:} false; then : 23449 $as_echo_n "(cached) " >&6 23450 else 23451 case $FLOCK in 23452 [\\/]* | ?:[\\/]*) 23453 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23454 ;; 23455 *) 23456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23457 for as_dir in $PATH 23458 do 23459 IFS=$as_save_IFS 23460 test -z "$as_dir" && as_dir=. 23461 for ac_exec_ext in '' $ac_executable_extensions; do 23462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23463 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23465 break 2 23466 fi 23467 done 23468 done 23469 IFS=$as_save_IFS 23470 23471 ;; 23472 esac 23473 fi 23474 FLOCK=$ac_cv_path_FLOCK 23475 if test -n "$FLOCK"; then 23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23477 $as_echo "$FLOCK" >&6; } 23478 else 23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23480 $as_echo "no" >&6; } 23481 fi 23482 23483 23484 if test "x$FLOCK" = x; then 23485 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23486 fi 23487 else 23488 # Otherwise we believe it is a complete path. Use it as it is. 23489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23490 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23492 $as_echo_n "checking for FLOCK... " >&6; } 23493 if test ! -x "$tool_specified"; then 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23495 $as_echo "not found" >&6; } 23496 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23497 fi 23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23499 $as_echo "$tool_specified" >&6; } 23500 fi 23501 fi 23502 fi 23503 23504 fi 23505 23506 23507 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23508 # be in the user path. 23509 23510 23511 # Publish this variable in the help. 23512 23513 23514 if [ -z "${DTRACE+x}" ]; then 23515 # The variable is not set by user, try to locate tool using the code snippet 23516 for ac_prog in dtrace 23517 do 23518 # Extract the first word of "$ac_prog", so it can be a program name with args. 23519 set dummy $ac_prog; ac_word=$2 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23521 $as_echo_n "checking for $ac_word... " >&6; } 23522 if ${ac_cv_path_DTRACE+:} false; then : 23523 $as_echo_n "(cached) " >&6 23524 else 23525 case $DTRACE in 23526 [\\/]* | ?:[\\/]*) 23527 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23528 ;; 23529 *) 23530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23531 as_dummy="$PATH:/usr/sbin" 23532 for as_dir in $as_dummy 23533 do 23534 IFS=$as_save_IFS 23535 test -z "$as_dir" && as_dir=. 23536 for ac_exec_ext in '' $ac_executable_extensions; do 23537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23538 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23540 break 2 23541 fi 23542 done 23543 done 23544 IFS=$as_save_IFS 23545 23546 ;; 23547 esac 23548 fi 23549 DTRACE=$ac_cv_path_DTRACE 23550 if test -n "$DTRACE"; then 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23552 $as_echo "$DTRACE" >&6; } 23553 else 23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23555 $as_echo "no" >&6; } 23556 fi 23557 23558 23559 test -n "$DTRACE" && break 23560 done 23561 23562 else 23563 # The variable is set, but is it from the command line or the environment? 23564 23565 # Try to remove the string !DTRACE! from our list. 23566 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23567 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23568 # If it failed, the variable was not from the command line. Ignore it, 23569 # but warn the user (except for BASH, which is always set by the calling BASH). 23570 if test "xDTRACE" != xBASH; then 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23572 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23573 fi 23574 # Try to locate tool using the code snippet 23575 for ac_prog in dtrace 23576 do 23577 # Extract the first word of "$ac_prog", so it can be a program name with args. 23578 set dummy $ac_prog; ac_word=$2 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23580 $as_echo_n "checking for $ac_word... " >&6; } 23581 if ${ac_cv_path_DTRACE+:} false; then : 23582 $as_echo_n "(cached) " >&6 23583 else 23584 case $DTRACE in 23585 [\\/]* | ?:[\\/]*) 23586 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23587 ;; 23588 *) 23589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23590 as_dummy="$PATH:/usr/sbin" 23591 for as_dir in $as_dummy 23592 do 23593 IFS=$as_save_IFS 23594 test -z "$as_dir" && as_dir=. 23595 for ac_exec_ext in '' $ac_executable_extensions; do 23596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23597 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23599 break 2 23600 fi 23601 done 23602 done 23603 IFS=$as_save_IFS 23604 23605 ;; 23606 esac 23607 fi 23608 DTRACE=$ac_cv_path_DTRACE 23609 if test -n "$DTRACE"; then 23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23611 $as_echo "$DTRACE" >&6; } 23612 else 23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23614 $as_echo "no" >&6; } 23615 fi 23616 23617 23618 test -n "$DTRACE" && break 23619 done 23620 23621 else 23622 # If it succeeded, then it was overridden by the user. We will use it 23623 # for the tool. 23624 23625 # First remove it from the list of overridden variables, so we can test 23626 # for unknown variables in the end. 23627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23628 23629 # Check if we try to supply an empty value 23630 if test "x$DTRACE" = x; then 23631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23632 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23634 $as_echo_n "checking for DTRACE... " >&6; } 23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23636 $as_echo "disabled" >&6; } 23637 else 23638 # Check if the provided tool contains a complete path. 23639 tool_specified="$DTRACE" 23640 tool_basename="${tool_specified##*/}" 23641 if test "x$tool_basename" = "x$tool_specified"; then 23642 # A command without a complete path is provided, search $PATH. 23643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23644 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23645 # Extract the first word of "$tool_basename", so it can be a program name with args. 23646 set dummy $tool_basename; ac_word=$2 23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23648 $as_echo_n "checking for $ac_word... " >&6; } 23649 if ${ac_cv_path_DTRACE+:} false; then : 23650 $as_echo_n "(cached) " >&6 23651 else 23652 case $DTRACE in 23653 [\\/]* | ?:[\\/]*) 23654 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23655 ;; 23656 *) 23657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23658 for as_dir in $PATH 23659 do 23660 IFS=$as_save_IFS 23661 test -z "$as_dir" && as_dir=. 23662 for ac_exec_ext in '' $ac_executable_extensions; do 23663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23664 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23666 break 2 23667 fi 23668 done 23669 done 23670 IFS=$as_save_IFS 23671 23672 ;; 23673 esac 23674 fi 23675 DTRACE=$ac_cv_path_DTRACE 23676 if test -n "$DTRACE"; then 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23678 $as_echo "$DTRACE" >&6; } 23679 else 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23681 $as_echo "no" >&6; } 23682 fi 23683 23684 23685 if test "x$DTRACE" = x; then 23686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23687 fi 23688 else 23689 # Otherwise we believe it is a complete path. Use it as it is. 23690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23691 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23693 $as_echo_n "checking for DTRACE... " >&6; } 23694 if test ! -x "$tool_specified"; then 23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23696 $as_echo "not found" >&6; } 23697 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23698 fi 23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23700 $as_echo "$tool_specified" >&6; } 23701 fi 23702 fi 23703 fi 23704 23705 fi 23706 23707 23708 23709 23710 # Publish this variable in the help. 23711 23712 23713 if [ -z "${PATCH+x}" ]; then 23714 # The variable is not set by user, try to locate tool using the code snippet 23715 for ac_prog in gpatch patch 23716 do 23717 # Extract the first word of "$ac_prog", so it can be a program name with args. 23718 set dummy $ac_prog; ac_word=$2 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23720 $as_echo_n "checking for $ac_word... " >&6; } 23721 if ${ac_cv_path_PATCH+:} false; then : 23722 $as_echo_n "(cached) " >&6 23723 else 23724 case $PATCH in 23725 [\\/]* | ?:[\\/]*) 23726 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23727 ;; 23728 *) 23729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23730 for as_dir in $PATH 23731 do 23732 IFS=$as_save_IFS 23733 test -z "$as_dir" && as_dir=. 23734 for ac_exec_ext in '' $ac_executable_extensions; do 23735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23736 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23738 break 2 23739 fi 23740 done 23741 done 23742 IFS=$as_save_IFS 23743 23744 ;; 23745 esac 23746 fi 23747 PATCH=$ac_cv_path_PATCH 23748 if test -n "$PATCH"; then 23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23750 $as_echo "$PATCH" >&6; } 23751 else 23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23753 $as_echo "no" >&6; } 23754 fi 23755 23756 23757 test -n "$PATCH" && break 23758 done 23759 23760 else 23761 # The variable is set, but is it from the command line or the environment? 23762 23763 # Try to remove the string !PATCH! from our list. 23764 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23765 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23766 # If it failed, the variable was not from the command line. Ignore it, 23767 # but warn the user (except for BASH, which is always set by the calling BASH). 23768 if test "xPATCH" != xBASH; then 23769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23770 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23771 fi 23772 # Try to locate tool using the code snippet 23773 for ac_prog in gpatch patch 23774 do 23775 # Extract the first word of "$ac_prog", so it can be a program name with args. 23776 set dummy $ac_prog; ac_word=$2 23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23778 $as_echo_n "checking for $ac_word... " >&6; } 23779 if ${ac_cv_path_PATCH+:} false; then : 23780 $as_echo_n "(cached) " >&6 23781 else 23782 case $PATCH in 23783 [\\/]* | ?:[\\/]*) 23784 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23785 ;; 23786 *) 23787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23788 for as_dir in $PATH 23789 do 23790 IFS=$as_save_IFS 23791 test -z "$as_dir" && as_dir=. 23792 for ac_exec_ext in '' $ac_executable_extensions; do 23793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23794 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23796 break 2 23797 fi 23798 done 23799 done 23800 IFS=$as_save_IFS 23801 23802 ;; 23803 esac 23804 fi 23805 PATCH=$ac_cv_path_PATCH 23806 if test -n "$PATCH"; then 23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23808 $as_echo "$PATCH" >&6; } 23809 else 23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23811 $as_echo "no" >&6; } 23812 fi 23813 23814 23815 test -n "$PATCH" && break 23816 done 23817 23818 else 23819 # If it succeeded, then it was overridden by the user. We will use it 23820 # for the tool. 23821 23822 # First remove it from the list of overridden variables, so we can test 23823 # for unknown variables in the end. 23824 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23825 23826 # Check if we try to supply an empty value 23827 if test "x$PATCH" = x; then 23828 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23829 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23831 $as_echo_n "checking for PATCH... " >&6; } 23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23833 $as_echo "disabled" >&6; } 23834 else 23835 # Check if the provided tool contains a complete path. 23836 tool_specified="$PATCH" 23837 tool_basename="${tool_specified##*/}" 23838 if test "x$tool_basename" = "x$tool_specified"; then 23839 # A command without a complete path is provided, search $PATH. 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23841 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23842 # Extract the first word of "$tool_basename", so it can be a program name with args. 23843 set dummy $tool_basename; ac_word=$2 23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23845 $as_echo_n "checking for $ac_word... " >&6; } 23846 if ${ac_cv_path_PATCH+:} false; then : 23847 $as_echo_n "(cached) " >&6 23848 else 23849 case $PATCH in 23850 [\\/]* | ?:[\\/]*) 23851 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23852 ;; 23853 *) 23854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23855 for as_dir in $PATH 23856 do 23857 IFS=$as_save_IFS 23858 test -z "$as_dir" && as_dir=. 23859 for ac_exec_ext in '' $ac_executable_extensions; do 23860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23861 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23863 break 2 23864 fi 23865 done 23866 done 23867 IFS=$as_save_IFS 23868 23869 ;; 23870 esac 23871 fi 23872 PATCH=$ac_cv_path_PATCH 23873 if test -n "$PATCH"; then 23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23875 $as_echo "$PATCH" >&6; } 23876 else 23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23878 $as_echo "no" >&6; } 23879 fi 23880 23881 23882 if test "x$PATCH" = x; then 23883 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23884 fi 23885 else 23886 # Otherwise we believe it is a complete path. Use it as it is. 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23888 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23890 $as_echo_n "checking for PATCH... " >&6; } 23891 if test ! -x "$tool_specified"; then 23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23893 $as_echo "not found" >&6; } 23894 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23895 fi 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23897 $as_echo "$tool_specified" >&6; } 23898 fi 23899 fi 23900 fi 23901 23902 fi 23903 23904 23905 # Check if it's GNU time 23906 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23907 if test "x$IS_GNU_TIME" != x; then 23908 IS_GNU_TIME=yes 23909 else 23910 IS_GNU_TIME=no 23911 fi 23912 23913 23914 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23915 23916 23917 23918 # Publish this variable in the help. 23919 23920 23921 if [ -z "${DSYMUTIL+x}" ]; then 23922 # The variable is not set by user, try to locate tool using the code snippet 23923 for ac_prog in dsymutil 23924 do 23925 # Extract the first word of "$ac_prog", so it can be a program name with args. 23926 set dummy $ac_prog; ac_word=$2 23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23928 $as_echo_n "checking for $ac_word... " >&6; } 23929 if ${ac_cv_path_DSYMUTIL+:} false; then : 23930 $as_echo_n "(cached) " >&6 23931 else 23932 case $DSYMUTIL in 23933 [\\/]* | ?:[\\/]*) 23934 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23935 ;; 23936 *) 23937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23938 for as_dir in $PATH 23939 do 23940 IFS=$as_save_IFS 23941 test -z "$as_dir" && as_dir=. 23942 for ac_exec_ext in '' $ac_executable_extensions; do 23943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23944 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23946 break 2 23947 fi 23948 done 23949 done 23950 IFS=$as_save_IFS 23951 23952 ;; 23953 esac 23954 fi 23955 DSYMUTIL=$ac_cv_path_DSYMUTIL 23956 if test -n "$DSYMUTIL"; then 23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23958 $as_echo "$DSYMUTIL" >&6; } 23959 else 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23961 $as_echo "no" >&6; } 23962 fi 23963 23964 23965 test -n "$DSYMUTIL" && break 23966 done 23967 23968 else 23969 # The variable is set, but is it from the command line or the environment? 23970 23971 # Try to remove the string !DSYMUTIL! from our list. 23972 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23973 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23974 # If it failed, the variable was not from the command line. Ignore it, 23975 # but warn the user (except for BASH, which is always set by the calling BASH). 23976 if test "xDSYMUTIL" != xBASH; then 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23978 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23979 fi 23980 # Try to locate tool using the code snippet 23981 for ac_prog in dsymutil 23982 do 23983 # Extract the first word of "$ac_prog", so it can be a program name with args. 23984 set dummy $ac_prog; ac_word=$2 23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23986 $as_echo_n "checking for $ac_word... " >&6; } 23987 if ${ac_cv_path_DSYMUTIL+:} false; then : 23988 $as_echo_n "(cached) " >&6 23989 else 23990 case $DSYMUTIL in 23991 [\\/]* | ?:[\\/]*) 23992 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23993 ;; 23994 *) 23995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23996 for as_dir in $PATH 23997 do 23998 IFS=$as_save_IFS 23999 test -z "$as_dir" && as_dir=. 24000 for ac_exec_ext in '' $ac_executable_extensions; do 24001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24002 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24004 break 2 24005 fi 24006 done 24007 done 24008 IFS=$as_save_IFS 24009 24010 ;; 24011 esac 24012 fi 24013 DSYMUTIL=$ac_cv_path_DSYMUTIL 24014 if test -n "$DSYMUTIL"; then 24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24016 $as_echo "$DSYMUTIL" >&6; } 24017 else 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24019 $as_echo "no" >&6; } 24020 fi 24021 24022 24023 test -n "$DSYMUTIL" && break 24024 done 24025 24026 else 24027 # If it succeeded, then it was overridden by the user. We will use it 24028 # for the tool. 24029 24030 # First remove it from the list of overridden variables, so we can test 24031 # for unknown variables in the end. 24032 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24033 24034 # Check if we try to supply an empty value 24035 if test "x$DSYMUTIL" = x; then 24036 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 24037 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24039 $as_echo_n "checking for DSYMUTIL... " >&6; } 24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24041 $as_echo "disabled" >&6; } 24042 else 24043 # Check if the provided tool contains a complete path. 24044 tool_specified="$DSYMUTIL" 24045 tool_basename="${tool_specified##*/}" 24046 if test "x$tool_basename" = "x$tool_specified"; then 24047 # A command without a complete path is provided, search $PATH. 24048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 24049 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 24050 # Extract the first word of "$tool_basename", so it can be a program name with args. 24051 set dummy $tool_basename; ac_word=$2 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24053 $as_echo_n "checking for $ac_word... " >&6; } 24054 if ${ac_cv_path_DSYMUTIL+:} false; then : 24055 $as_echo_n "(cached) " >&6 24056 else 24057 case $DSYMUTIL in 24058 [\\/]* | ?:[\\/]*) 24059 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 24060 ;; 24061 *) 24062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24063 for as_dir in $PATH 24064 do 24065 IFS=$as_save_IFS 24066 test -z "$as_dir" && as_dir=. 24067 for ac_exec_ext in '' $ac_executable_extensions; do 24068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24069 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24071 break 2 24072 fi 24073 done 24074 done 24075 IFS=$as_save_IFS 24076 24077 ;; 24078 esac 24079 fi 24080 DSYMUTIL=$ac_cv_path_DSYMUTIL 24081 if test -n "$DSYMUTIL"; then 24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24083 $as_echo "$DSYMUTIL" >&6; } 24084 else 24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24086 $as_echo "no" >&6; } 24087 fi 24088 24089 24090 if test "x$DSYMUTIL" = x; then 24091 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24092 fi 24093 else 24094 # Otherwise we believe it is a complete path. Use it as it is. 24095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 24096 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24098 $as_echo_n "checking for DSYMUTIL... " >&6; } 24099 if test ! -x "$tool_specified"; then 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24101 $as_echo "not found" >&6; } 24102 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 24103 fi 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24105 $as_echo "$tool_specified" >&6; } 24106 fi 24107 fi 24108 fi 24109 24110 fi 24111 24112 24113 24114 if test "x$DSYMUTIL" = x; then 24115 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 24116 fi 24117 24118 24119 24120 24121 24122 # Publish this variable in the help. 24123 24124 24125 if [ -z "${XATTR+x}" ]; then 24126 # The variable is not set by user, try to locate tool using the code snippet 24127 for ac_prog in xattr 24128 do 24129 # Extract the first word of "$ac_prog", so it can be a program name with args. 24130 set dummy $ac_prog; ac_word=$2 24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24132 $as_echo_n "checking for $ac_word... " >&6; } 24133 if ${ac_cv_path_XATTR+:} false; then : 24134 $as_echo_n "(cached) " >&6 24135 else 24136 case $XATTR in 24137 [\\/]* | ?:[\\/]*) 24138 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24139 ;; 24140 *) 24141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24142 for as_dir in $PATH 24143 do 24144 IFS=$as_save_IFS 24145 test -z "$as_dir" && as_dir=. 24146 for ac_exec_ext in '' $ac_executable_extensions; do 24147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24148 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24150 break 2 24151 fi 24152 done 24153 done 24154 IFS=$as_save_IFS 24155 24156 ;; 24157 esac 24158 fi 24159 XATTR=$ac_cv_path_XATTR 24160 if test -n "$XATTR"; then 24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24162 $as_echo "$XATTR" >&6; } 24163 else 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24165 $as_echo "no" >&6; } 24166 fi 24167 24168 24169 test -n "$XATTR" && break 24170 done 24171 24172 else 24173 # The variable is set, but is it from the command line or the environment? 24174 24175 # Try to remove the string !XATTR! from our list. 24176 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 24177 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24178 # If it failed, the variable was not from the command line. Ignore it, 24179 # but warn the user (except for BASH, which is always set by the calling BASH). 24180 if test "xXATTR" != xBASH; then 24181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 24182 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 24183 fi 24184 # Try to locate tool using the code snippet 24185 for ac_prog in xattr 24186 do 24187 # Extract the first word of "$ac_prog", so it can be a program name with args. 24188 set dummy $ac_prog; ac_word=$2 24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24190 $as_echo_n "checking for $ac_word... " >&6; } 24191 if ${ac_cv_path_XATTR+:} false; then : 24192 $as_echo_n "(cached) " >&6 24193 else 24194 case $XATTR in 24195 [\\/]* | ?:[\\/]*) 24196 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24197 ;; 24198 *) 24199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24200 for as_dir in $PATH 24201 do 24202 IFS=$as_save_IFS 24203 test -z "$as_dir" && as_dir=. 24204 for ac_exec_ext in '' $ac_executable_extensions; do 24205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24206 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24208 break 2 24209 fi 24210 done 24211 done 24212 IFS=$as_save_IFS 24213 24214 ;; 24215 esac 24216 fi 24217 XATTR=$ac_cv_path_XATTR 24218 if test -n "$XATTR"; then 24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24220 $as_echo "$XATTR" >&6; } 24221 else 24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24223 $as_echo "no" >&6; } 24224 fi 24225 24226 24227 test -n "$XATTR" && break 24228 done 24229 24230 else 24231 # If it succeeded, then it was overridden by the user. We will use it 24232 # for the tool. 24233 24234 # First remove it from the list of overridden variables, so we can test 24235 # for unknown variables in the end. 24236 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24237 24238 # Check if we try to supply an empty value 24239 if test "x$XATTR" = x; then 24240 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24241 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24243 $as_echo_n "checking for XATTR... " >&6; } 24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24245 $as_echo "disabled" >&6; } 24246 else 24247 # Check if the provided tool contains a complete path. 24248 tool_specified="$XATTR" 24249 tool_basename="${tool_specified##*/}" 24250 if test "x$tool_basename" = "x$tool_specified"; then 24251 # A command without a complete path is provided, search $PATH. 24252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24253 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24254 # Extract the first word of "$tool_basename", so it can be a program name with args. 24255 set dummy $tool_basename; ac_word=$2 24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24257 $as_echo_n "checking for $ac_word... " >&6; } 24258 if ${ac_cv_path_XATTR+:} false; then : 24259 $as_echo_n "(cached) " >&6 24260 else 24261 case $XATTR in 24262 [\\/]* | ?:[\\/]*) 24263 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24264 ;; 24265 *) 24266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24267 for as_dir in $PATH 24268 do 24269 IFS=$as_save_IFS 24270 test -z "$as_dir" && as_dir=. 24271 for ac_exec_ext in '' $ac_executable_extensions; do 24272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24273 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24275 break 2 24276 fi 24277 done 24278 done 24279 IFS=$as_save_IFS 24280 24281 ;; 24282 esac 24283 fi 24284 XATTR=$ac_cv_path_XATTR 24285 if test -n "$XATTR"; then 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24287 $as_echo "$XATTR" >&6; } 24288 else 24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24290 $as_echo "no" >&6; } 24291 fi 24292 24293 24294 if test "x$XATTR" = x; then 24295 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24296 fi 24297 else 24298 # Otherwise we believe it is a complete path. Use it as it is. 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24300 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24302 $as_echo_n "checking for XATTR... " >&6; } 24303 if test ! -x "$tool_specified"; then 24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24305 $as_echo "not found" >&6; } 24306 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24307 fi 24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24309 $as_echo "$tool_specified" >&6; } 24310 fi 24311 fi 24312 fi 24313 24314 fi 24315 24316 24317 24318 if test "x$XATTR" = x; then 24319 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24320 fi 24321 24322 24323 24324 24325 # Publish this variable in the help. 24326 24327 24328 if [ -z "${CODESIGN+x}" ]; then 24329 # The variable is not set by user, try to locate tool using the code snippet 24330 for ac_prog in codesign 24331 do 24332 # Extract the first word of "$ac_prog", so it can be a program name with args. 24333 set dummy $ac_prog; ac_word=$2 24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24335 $as_echo_n "checking for $ac_word... " >&6; } 24336 if ${ac_cv_path_CODESIGN+:} false; then : 24337 $as_echo_n "(cached) " >&6 24338 else 24339 case $CODESIGN in 24340 [\\/]* | ?:[\\/]*) 24341 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24342 ;; 24343 *) 24344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24345 for as_dir in $PATH 24346 do 24347 IFS=$as_save_IFS 24348 test -z "$as_dir" && as_dir=. 24349 for ac_exec_ext in '' $ac_executable_extensions; do 24350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24351 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24353 break 2 24354 fi 24355 done 24356 done 24357 IFS=$as_save_IFS 24358 24359 ;; 24360 esac 24361 fi 24362 CODESIGN=$ac_cv_path_CODESIGN 24363 if test -n "$CODESIGN"; then 24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24365 $as_echo "$CODESIGN" >&6; } 24366 else 24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24368 $as_echo "no" >&6; } 24369 fi 24370 24371 24372 test -n "$CODESIGN" && break 24373 done 24374 24375 else 24376 # The variable is set, but is it from the command line or the environment? 24377 24378 # Try to remove the string !CODESIGN! from our list. 24379 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24380 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24381 # If it failed, the variable was not from the command line. Ignore it, 24382 # but warn the user (except for BASH, which is always set by the calling BASH). 24383 if test "xCODESIGN" != xBASH; then 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24385 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24386 fi 24387 # Try to locate tool using the code snippet 24388 for ac_prog in codesign 24389 do 24390 # Extract the first word of "$ac_prog", so it can be a program name with args. 24391 set dummy $ac_prog; ac_word=$2 24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24393 $as_echo_n "checking for $ac_word... " >&6; } 24394 if ${ac_cv_path_CODESIGN+:} false; then : 24395 $as_echo_n "(cached) " >&6 24396 else 24397 case $CODESIGN in 24398 [\\/]* | ?:[\\/]*) 24399 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24400 ;; 24401 *) 24402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24403 for as_dir in $PATH 24404 do 24405 IFS=$as_save_IFS 24406 test -z "$as_dir" && as_dir=. 24407 for ac_exec_ext in '' $ac_executable_extensions; do 24408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24409 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24411 break 2 24412 fi 24413 done 24414 done 24415 IFS=$as_save_IFS 24416 24417 ;; 24418 esac 24419 fi 24420 CODESIGN=$ac_cv_path_CODESIGN 24421 if test -n "$CODESIGN"; then 24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24423 $as_echo "$CODESIGN" >&6; } 24424 else 24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24426 $as_echo "no" >&6; } 24427 fi 24428 24429 24430 test -n "$CODESIGN" && break 24431 done 24432 24433 else 24434 # If it succeeded, then it was overridden by the user. We will use it 24435 # for the tool. 24436 24437 # First remove it from the list of overridden variables, so we can test 24438 # for unknown variables in the end. 24439 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24440 24441 # Check if we try to supply an empty value 24442 if test "x$CODESIGN" = x; then 24443 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24444 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24446 $as_echo_n "checking for CODESIGN... " >&6; } 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24448 $as_echo "disabled" >&6; } 24449 else 24450 # Check if the provided tool contains a complete path. 24451 tool_specified="$CODESIGN" 24452 tool_basename="${tool_specified##*/}" 24453 if test "x$tool_basename" = "x$tool_specified"; then 24454 # A command without a complete path is provided, search $PATH. 24455 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24456 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24457 # Extract the first word of "$tool_basename", so it can be a program name with args. 24458 set dummy $tool_basename; ac_word=$2 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24460 $as_echo_n "checking for $ac_word... " >&6; } 24461 if ${ac_cv_path_CODESIGN+:} false; then : 24462 $as_echo_n "(cached) " >&6 24463 else 24464 case $CODESIGN in 24465 [\\/]* | ?:[\\/]*) 24466 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24467 ;; 24468 *) 24469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24470 for as_dir in $PATH 24471 do 24472 IFS=$as_save_IFS 24473 test -z "$as_dir" && as_dir=. 24474 for ac_exec_ext in '' $ac_executable_extensions; do 24475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24476 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24478 break 2 24479 fi 24480 done 24481 done 24482 IFS=$as_save_IFS 24483 24484 ;; 24485 esac 24486 fi 24487 CODESIGN=$ac_cv_path_CODESIGN 24488 if test -n "$CODESIGN"; then 24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24490 $as_echo "$CODESIGN" >&6; } 24491 else 24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24493 $as_echo "no" >&6; } 24494 fi 24495 24496 24497 if test "x$CODESIGN" = x; then 24498 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24499 fi 24500 else 24501 # Otherwise we believe it is a complete path. Use it as it is. 24502 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24503 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24505 $as_echo_n "checking for CODESIGN... " >&6; } 24506 if test ! -x "$tool_specified"; then 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24508 $as_echo "not found" >&6; } 24509 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24510 fi 24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24512 $as_echo "$tool_specified" >&6; } 24513 fi 24514 fi 24515 fi 24516 24517 fi 24518 24519 24520 if test "x$CODESIGN" != "x"; then 24521 # Verify that the openjdk_codesign certificate is present 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24523 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24524 $RM codesign-testfile 24525 $TOUCH codesign-testfile 24526 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24527 $RM codesign-testfile 24528 if test "x$CODESIGN" = x; then 24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24530 $as_echo "no" >&6; } 24531 else 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24533 $as_echo "yes" >&6; } 24534 fi 24535 fi 24536 24537 24538 24539 # Publish this variable in the help. 24540 24541 24542 if [ -z "${SETFILE+x}" ]; then 24543 # The variable is not set by user, try to locate tool using the code snippet 24544 for ac_prog in SetFile 24545 do 24546 # Extract the first word of "$ac_prog", so it can be a program name with args. 24547 set dummy $ac_prog; ac_word=$2 24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24549 $as_echo_n "checking for $ac_word... " >&6; } 24550 if ${ac_cv_path_SETFILE+:} false; then : 24551 $as_echo_n "(cached) " >&6 24552 else 24553 case $SETFILE in 24554 [\\/]* | ?:[\\/]*) 24555 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24556 ;; 24557 *) 24558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24559 for as_dir in $PATH 24560 do 24561 IFS=$as_save_IFS 24562 test -z "$as_dir" && as_dir=. 24563 for ac_exec_ext in '' $ac_executable_extensions; do 24564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24565 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24567 break 2 24568 fi 24569 done 24570 done 24571 IFS=$as_save_IFS 24572 24573 ;; 24574 esac 24575 fi 24576 SETFILE=$ac_cv_path_SETFILE 24577 if test -n "$SETFILE"; then 24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24579 $as_echo "$SETFILE" >&6; } 24580 else 24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24582 $as_echo "no" >&6; } 24583 fi 24584 24585 24586 test -n "$SETFILE" && break 24587 done 24588 24589 else 24590 # The variable is set, but is it from the command line or the environment? 24591 24592 # Try to remove the string !SETFILE! from our list. 24593 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24594 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24595 # If it failed, the variable was not from the command line. Ignore it, 24596 # but warn the user (except for BASH, which is always set by the calling BASH). 24597 if test "xSETFILE" != xBASH; then 24598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24599 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24600 fi 24601 # Try to locate tool using the code snippet 24602 for ac_prog in SetFile 24603 do 24604 # Extract the first word of "$ac_prog", so it can be a program name with args. 24605 set dummy $ac_prog; ac_word=$2 24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24607 $as_echo_n "checking for $ac_word... " >&6; } 24608 if ${ac_cv_path_SETFILE+:} false; then : 24609 $as_echo_n "(cached) " >&6 24610 else 24611 case $SETFILE in 24612 [\\/]* | ?:[\\/]*) 24613 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24614 ;; 24615 *) 24616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24617 for as_dir in $PATH 24618 do 24619 IFS=$as_save_IFS 24620 test -z "$as_dir" && as_dir=. 24621 for ac_exec_ext in '' $ac_executable_extensions; do 24622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24623 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24625 break 2 24626 fi 24627 done 24628 done 24629 IFS=$as_save_IFS 24630 24631 ;; 24632 esac 24633 fi 24634 SETFILE=$ac_cv_path_SETFILE 24635 if test -n "$SETFILE"; then 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24637 $as_echo "$SETFILE" >&6; } 24638 else 24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24640 $as_echo "no" >&6; } 24641 fi 24642 24643 24644 test -n "$SETFILE" && break 24645 done 24646 24647 else 24648 # If it succeeded, then it was overridden by the user. We will use it 24649 # for the tool. 24650 24651 # First remove it from the list of overridden variables, so we can test 24652 # for unknown variables in the end. 24653 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24654 24655 # Check if we try to supply an empty value 24656 if test "x$SETFILE" = x; then 24657 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24658 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24660 $as_echo_n "checking for SETFILE... " >&6; } 24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24662 $as_echo "disabled" >&6; } 24663 else 24664 # Check if the provided tool contains a complete path. 24665 tool_specified="$SETFILE" 24666 tool_basename="${tool_specified##*/}" 24667 if test "x$tool_basename" = "x$tool_specified"; then 24668 # A command without a complete path is provided, search $PATH. 24669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24670 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24671 # Extract the first word of "$tool_basename", so it can be a program name with args. 24672 set dummy $tool_basename; ac_word=$2 24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24674 $as_echo_n "checking for $ac_word... " >&6; } 24675 if ${ac_cv_path_SETFILE+:} false; then : 24676 $as_echo_n "(cached) " >&6 24677 else 24678 case $SETFILE in 24679 [\\/]* | ?:[\\/]*) 24680 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24681 ;; 24682 *) 24683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24684 for as_dir in $PATH 24685 do 24686 IFS=$as_save_IFS 24687 test -z "$as_dir" && as_dir=. 24688 for ac_exec_ext in '' $ac_executable_extensions; do 24689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24690 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24692 break 2 24693 fi 24694 done 24695 done 24696 IFS=$as_save_IFS 24697 24698 ;; 24699 esac 24700 fi 24701 SETFILE=$ac_cv_path_SETFILE 24702 if test -n "$SETFILE"; then 24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24704 $as_echo "$SETFILE" >&6; } 24705 else 24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24707 $as_echo "no" >&6; } 24708 fi 24709 24710 24711 if test "x$SETFILE" = x; then 24712 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24713 fi 24714 else 24715 # Otherwise we believe it is a complete path. Use it as it is. 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24717 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24719 $as_echo_n "checking for SETFILE... " >&6; } 24720 if test ! -x "$tool_specified"; then 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24722 $as_echo "not found" >&6; } 24723 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24724 fi 24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24726 $as_echo "$tool_specified" >&6; } 24727 fi 24728 fi 24729 fi 24730 24731 fi 24732 24733 24734 24735 if test "x$SETFILE" = x; then 24736 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24737 fi 24738 24739 24740 fi 24741 24742 24743 # Check bash version 24744 # Extra [ ] to stop m4 mangling 24745 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24747 $as_echo_n "checking bash version... " >&6; } 24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24749 $as_echo "$BASH_VER" >&6; } 24750 24751 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24752 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24753 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24754 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24755 fi 24756 24757 # Test if bash supports pipefail. 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24759 $as_echo_n "checking if bash supports pipefail... " >&6; } 24760 if ${BASH} -c 'set -o pipefail'; then 24761 BASH_ARGS="$BASH_ARGS -o pipefail" 24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24763 $as_echo "yes" >&6; } 24764 else 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24766 $as_echo "no" >&6; } 24767 fi 24768 24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24770 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24771 if ${BASH} -e -c 'true'; then 24772 BASH_ARGS="$BASH_ARGS -e" 24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24774 $as_echo "yes" >&6; } 24775 else 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24777 $as_echo "no" >&6; } 24778 fi 24779 24780 24781 24782 24783 # Check if pkg-config is available. 24784 24785 24786 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24787 if test -n "$ac_tool_prefix"; then 24788 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24789 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24791 $as_echo_n "checking for $ac_word... " >&6; } 24792 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24793 $as_echo_n "(cached) " >&6 24794 else 24795 case $PKG_CONFIG in 24796 [\\/]* | ?:[\\/]*) 24797 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24798 ;; 24799 *) 24800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24801 for as_dir in $PATH 24802 do 24803 IFS=$as_save_IFS 24804 test -z "$as_dir" && as_dir=. 24805 for ac_exec_ext in '' $ac_executable_extensions; do 24806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24807 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24809 break 2 24810 fi 24811 done 24812 done 24813 IFS=$as_save_IFS 24814 24815 ;; 24816 esac 24817 fi 24818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24819 if test -n "$PKG_CONFIG"; then 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24821 $as_echo "$PKG_CONFIG" >&6; } 24822 else 24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24824 $as_echo "no" >&6; } 24825 fi 24826 24827 24828 fi 24829 if test -z "$ac_cv_path_PKG_CONFIG"; then 24830 ac_pt_PKG_CONFIG=$PKG_CONFIG 24831 # Extract the first word of "pkg-config", so it can be a program name with args. 24832 set dummy pkg-config; ac_word=$2 24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24834 $as_echo_n "checking for $ac_word... " >&6; } 24835 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24836 $as_echo_n "(cached) " >&6 24837 else 24838 case $ac_pt_PKG_CONFIG in 24839 [\\/]* | ?:[\\/]*) 24840 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24841 ;; 24842 *) 24843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24844 for as_dir in $PATH 24845 do 24846 IFS=$as_save_IFS 24847 test -z "$as_dir" && as_dir=. 24848 for ac_exec_ext in '' $ac_executable_extensions; do 24849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24850 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24852 break 2 24853 fi 24854 done 24855 done 24856 IFS=$as_save_IFS 24857 24858 ;; 24859 esac 24860 fi 24861 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24862 if test -n "$ac_pt_PKG_CONFIG"; then 24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24864 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24865 else 24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24867 $as_echo "no" >&6; } 24868 fi 24869 24870 if test "x$ac_pt_PKG_CONFIG" = x; then 24871 PKG_CONFIG="" 24872 else 24873 case $cross_compiling:$ac_tool_warned in 24874 yes:) 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24877 ac_tool_warned=yes ;; 24878 esac 24879 PKG_CONFIG=$ac_pt_PKG_CONFIG 24880 fi 24881 else 24882 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24883 fi 24884 24885 fi 24886 if test -n "$PKG_CONFIG"; then 24887 _pkg_min_version=0.9.0 24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24889 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24890 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24892 $as_echo "yes" >&6; } 24893 else 24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24895 $as_echo "no" >&6; } 24896 PKG_CONFIG="" 24897 fi 24898 24899 fi 24900 24901 # After basic tools have been setup, we can check build os specific details. 24902 24903 ############################################################################### 24904 24905 # Note that this is the build platform OS version! 24906 24907 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24908 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24909 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24910 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24911 24912 24913 24914 24915 24916 # Misc basic settings 24917 24918 24919 # Check whether --with-default-make-target was given. 24920 if test "${with_default_make_target+set}" = set; then : 24921 withval=$with_default_make_target; 24922 fi 24923 24924 if test "x$with_default_make_target" = "x" \ 24925 || test "x$with_default_make_target" = "xyes"; then 24926 DEFAULT_MAKE_TARGET="exploded-image" 24927 elif test "x$with_default_make_target" = "xno"; then 24928 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24929 else 24930 DEFAULT_MAKE_TARGET="$with_default_make_target" 24931 fi 24932 24933 24934 24935 24936 ############################################################################### 24937 # 24938 # Determine OpenJDK variants, options and version numbers. 24939 # 24940 ############################################################################### 24941 24942 # We need build & target for this. 24943 24944 # Should we build a JDK without a graphical UI? 24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24946 $as_echo_n "checking headless only... " >&6; } 24947 # Check whether --enable-headless-only was given. 24948 if test "${enable_headless_only+set}" = set; then : 24949 enableval=$enable_headless_only; 24950 fi 24951 24952 24953 if test "x$enable_headless_only" = "xyes"; then 24954 ENABLE_HEADLESS_ONLY="true" 24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24956 $as_echo "yes" >&6; } 24957 elif test "x$enable_headless_only" = "xno"; then 24958 ENABLE_HEADLESS_ONLY="false" 24959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24960 $as_echo "no" >&6; } 24961 elif test "x$enable_headless_only" = "x"; then 24962 ENABLE_HEADLESS_ONLY="false" 24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24964 $as_echo "no" >&6; } 24965 else 24966 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24967 fi 24968 24969 24970 24971 # Should we build the complete docs, or just a lightweight version? 24972 # Check whether --enable-full-docs was given. 24973 if test "${enable_full_docs+set}" = set; then : 24974 enableval=$enable_full_docs; 24975 fi 24976 24977 24978 # Verify dependencies 24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 24980 $as_echo_n "checking for graphviz dot... " >&6; } 24981 if test "x$DOT" != "x"; then 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24983 $as_echo "yes" >&6; } 24984 else 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24986 $as_echo "no, cannot generate full docs" >&6; } 24987 FULL_DOCS_DEP_MISSING=true 24988 fi 24989 24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 24991 $as_echo_n "checking for pandoc... " >&6; } 24992 if test "x$PANDOC" != "x"; then 24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24994 $as_echo "yes" >&6; } 24995 else 24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24997 $as_echo "no, cannot generate full docs" >&6; } 24998 FULL_DOCS_DEP_MISSING=true 24999 fi 25000 25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 25002 $as_echo_n "checking full docs... " >&6; } 25003 if test "x$enable_full_docs" = xyes; then 25004 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25006 $as_echo "no, missing dependencies" >&6; } 25007 25008 # Print a helpful message on how to acquire the necessary build dependency. 25009 # dot is the help tag: freetype, cups, alsa etc 25010 MISSING_DEPENDENCY=dot 25011 25012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25013 cygwin_help $MISSING_DEPENDENCY 25014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25015 msys_help $MISSING_DEPENDENCY 25016 else 25017 PKGHANDLER_COMMAND= 25018 25019 case $PKGHANDLER in 25020 apt-get) 25021 apt_help $MISSING_DEPENDENCY ;; 25022 yum) 25023 yum_help $MISSING_DEPENDENCY ;; 25024 brew) 25025 brew_help $MISSING_DEPENDENCY ;; 25026 port) 25027 port_help $MISSING_DEPENDENCY ;; 25028 pkgutil) 25029 pkgutil_help $MISSING_DEPENDENCY ;; 25030 pkgadd) 25031 pkgadd_help $MISSING_DEPENDENCY ;; 25032 esac 25033 25034 if test "x$PKGHANDLER_COMMAND" != x; then 25035 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25036 fi 25037 fi 25038 25039 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 25040 else 25041 ENABLE_FULL_DOCS=true 25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 25043 $as_echo "yes, forced" >&6; } 25044 fi 25045 elif test "x$enable_full_docs" = xno; then 25046 ENABLE_FULL_DOCS=false 25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 25048 $as_echo "no, forced" >&6; } 25049 elif test "x$enable_full_docs" = x; then 25050 # Check for prerequisites 25051 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 25052 ENABLE_FULL_DOCS=false 25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25054 $as_echo "no, missing dependencies" >&6; } 25055 else 25056 ENABLE_FULL_DOCS=true 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 25058 $as_echo "yes, dependencies present" >&6; } 25059 fi 25060 else 25061 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 25062 fi 25063 25064 25065 25066 # Choose cacerts source file 25067 25068 # Check whether --with-cacerts-file was given. 25069 if test "${with_cacerts_file+set}" = set; then : 25070 withval=$with_cacerts_file; 25071 fi 25072 25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5 25074 $as_echo_n "checking for cacerts file... " >&6; } 25075 if test "x$with_cacerts_file" == x; then 25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 25077 $as_echo "default" >&6; } 25078 else 25079 CACERTS_FILE=$with_cacerts_file 25080 if test ! -f "$CACERTS_FILE"; then 25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 25082 $as_echo "fail" >&6; } 25083 as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5 25084 fi 25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5 25086 $as_echo "$CACERTS_FILE" >&6; } 25087 fi 25088 25089 25090 # Enable or disable unlimited crypto 25091 # Check whether --enable-unlimited-crypto was given. 25092 if test "${enable_unlimited_crypto+set}" = set; then : 25093 enableval=$enable_unlimited_crypto; 25094 else 25095 enable_unlimited_crypto=yes 25096 fi 25097 25098 if test "x$enable_unlimited_crypto" = "xyes"; then 25099 UNLIMITED_CRYPTO=true 25100 else 25101 UNLIMITED_CRYPTO=false 25102 fi 25103 25104 25105 # Should we build the serviceability agent (SA)? 25106 INCLUDE_SA=true 25107 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 25108 INCLUDE_SA=false 25109 fi 25110 if test "x$OPENJDK_TARGET_OS" = xaix ; then 25111 INCLUDE_SA=false 25112 fi 25113 25114 25115 # Compress jars 25116 COMPRESS_JARS=false 25117 25118 25119 25120 # Setup default copyright year. Mostly overridden when building close to a new year. 25121 25122 # Check whether --with-copyright-year was given. 25123 if test "${with_copyright_year+set}" = set; then : 25124 withval=$with_copyright_year; 25125 fi 25126 25127 if test "x$with_copyright_year" = xyes; then 25128 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 25129 elif test "x$with_copyright_year" != x; then 25130 COPYRIGHT_YEAR="$with_copyright_year" 25131 else 25132 COPYRIGHT_YEAR=`$DATE +'%Y'` 25133 fi 25134 25135 25136 25137 # Check whether --enable-keep-packaged-modules was given. 25138 if test "${enable_keep_packaged_modules+set}" = set; then : 25139 enableval=$enable_keep_packaged_modules; 25140 fi 25141 25142 25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 25144 $as_echo_n "checking if packaged modules are kept... " >&6; } 25145 if test "x$enable_keep_packaged_modules" = "xyes"; then 25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25147 $as_echo "yes" >&6; } 25148 JLINK_KEEP_PACKAGED_MODULES=true 25149 elif test "x$enable_keep_packaged_modules" = "xno"; then 25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25151 $as_echo "no" >&6; } 25152 JLINK_KEEP_PACKAGED_MODULES=false 25153 elif test "x$enable_keep_packaged_modules" = "x"; then 25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 25155 $as_echo "yes (default)" >&6; } 25156 JLINK_KEEP_PACKAGED_MODULES=true 25157 else 25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 25159 $as_echo "error" >&6; } 25160 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 25161 fi 25162 25163 25164 25165 25166 # Warn user that old version arguments are deprecated. 25167 25168 25169 # Check whether --with-milestone was given. 25170 if test "${with_milestone+set}" = set; then : 25171 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 25172 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 25173 fi 25174 25175 25176 25177 25178 # Check whether --with-update-version was given. 25179 if test "${with_update_version+set}" = set; then : 25180 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 25181 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 25182 fi 25183 25184 25185 25186 25187 # Check whether --with-user-release-suffix was given. 25188 if test "${with_user_release_suffix+set}" = set; then : 25189 withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5 25190 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25191 fi 25192 25193 25194 25195 25196 # Check whether --with-build-number was given. 25197 if test "${with_build_number+set}" = set; then : 25198 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25199 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25200 fi 25201 25202 25203 25204 # Source the version numbers file 25205 . $AUTOCONF_DIR/version-numbers 25206 25207 # Some non-version number information is set in that file 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 # Override version from arguments 25218 25219 # If --with-version-string is set, process it first. It is possible to 25220 # override parts with more specific flags, since these are processed later. 25221 25222 # Check whether --with-version-string was given. 25223 if test "${with_version_string+set}" = set; then : 25224 withval=$with_version_string; 25225 fi 25226 25227 if test "x$with_version_string" = xyes; then 25228 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25229 elif test "x$with_version_string" != x; then 25230 # Additional [] needed to keep m4 from mangling shell constructs. 25231 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25232 VERSION_MAJOR=${BASH_REMATCH[1]} 25233 VERSION_MINOR=${BASH_REMATCH[3]} 25234 VERSION_SECURITY=${BASH_REMATCH[5]} 25235 VERSION_PATCH=${BASH_REMATCH[7]} 25236 VERSION_PRE=${BASH_REMATCH[9]} 25237 version_plus_separator=${BASH_REMATCH[11]} 25238 VERSION_BUILD=${BASH_REMATCH[12]} 25239 VERSION_OPT=${BASH_REMATCH[14]} 25240 # Unspecified numerical fields are interpreted as 0. 25241 if test "x$VERSION_MINOR" = x; then 25242 VERSION_MINOR=0 25243 fi 25244 if test "x$VERSION_SECURITY" = x; then 25245 VERSION_SECURITY=0 25246 fi 25247 if test "x$VERSION_PATCH" = x; then 25248 VERSION_PATCH=0 25249 fi 25250 if test "x$version_plus_separator" != x \ 25251 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25252 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25253 fi 25254 # Stop the version part process from setting default values. 25255 # We still allow them to explicitly override though. 25256 NO_DEFAULT_VERSION_PARTS=true 25257 else 25258 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25259 fi 25260 fi 25261 25262 25263 # Check whether --with-version-pre was given. 25264 if test "${with_version_pre+set}" = set; then : 25265 withval=$with_version_pre; with_version_pre_present=true 25266 else 25267 with_version_pre_present=false 25268 fi 25269 25270 25271 if test "x$with_version_pre_present" = xtrue; then 25272 if test "x$with_version_pre" = xyes; then 25273 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25274 elif test "x$with_version_pre" = xno; then 25275 # Interpret --without-* as empty string instead of the literal "no" 25276 VERSION_PRE= 25277 else 25278 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25279 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25280 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25282 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25283 fi 25284 fi 25285 else 25286 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25287 # Default is to use "internal" as pre 25288 VERSION_PRE="internal" 25289 fi 25290 fi 25291 25292 25293 # Check whether --with-version-opt was given. 25294 if test "${with_version_opt+set}" = set; then : 25295 withval=$with_version_opt; with_version_opt_present=true 25296 else 25297 with_version_opt_present=false 25298 fi 25299 25300 25301 if test "x$with_version_opt_present" = xtrue; then 25302 if test "x$with_version_opt" = xyes; then 25303 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25304 elif test "x$with_version_opt" = xno; then 25305 # Interpret --without-* as empty string instead of the literal "no" 25306 VERSION_OPT= 25307 else 25308 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25309 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25310 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25312 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25313 fi 25314 fi 25315 else 25316 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25317 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25318 # Outer [ ] to quote m4. 25319 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25320 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25321 fi 25322 fi 25323 25324 25325 # Check whether --with-version-build was given. 25326 if test "${with_version_build+set}" = set; then : 25327 withval=$with_version_build; with_version_build_present=true 25328 else 25329 with_version_build_present=false 25330 fi 25331 25332 25333 if test "x$with_version_build_present" = xtrue; then 25334 if test "x$with_version_build" = xyes; then 25335 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25336 elif test "x$with_version_build" = xno; then 25337 # Interpret --without-* as empty string instead of the literal "no" 25338 VERSION_BUILD= 25339 elif test "x$with_version_build" = x; then 25340 VERSION_BUILD= 25341 else 25342 25343 # Additional [] needed to keep m4 from mangling shell constructs. 25344 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25345 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25346 fi 25347 # Extract the version number without leading zeros. 25348 cleaned_value=${BASH_REMATCH[1]} 25349 if test "x$cleaned_value" = x; then 25350 # Special case for zero 25351 cleaned_value=${BASH_REMATCH[2]} 25352 fi 25353 25354 if test $cleaned_value -gt 255; then 25355 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25356 fi 25357 if test "x$cleaned_value" != "x$with_version_build"; then 25358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25359 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25360 fi 25361 VERSION_BUILD=$cleaned_value 25362 25363 fi 25364 else 25365 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25366 # Default is to not have a build number. 25367 VERSION_BUILD="" 25368 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25369 VERSION_BUILD=0 25370 fi 25371 fi 25372 25373 25374 # Check whether --with-version-major was given. 25375 if test "${with_version_major+set}" = set; then : 25376 withval=$with_version_major; with_version_major_present=true 25377 else 25378 with_version_major_present=false 25379 fi 25380 25381 25382 if test "x$with_version_major_present" = xtrue; then 25383 if test "x$with_version_major" = xyes; then 25384 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 25385 else 25386 25387 # Additional [] needed to keep m4 from mangling shell constructs. 25388 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25389 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 25390 fi 25391 # Extract the version number without leading zeros. 25392 cleaned_value=${BASH_REMATCH[1]} 25393 if test "x$cleaned_value" = x; then 25394 # Special case for zero 25395 cleaned_value=${BASH_REMATCH[2]} 25396 fi 25397 25398 if test $cleaned_value -gt 255; then 25399 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 25400 fi 25401 if test "x$cleaned_value" != "x$with_version_major"; then 25402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 25403 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 25404 fi 25405 VERSION_MAJOR=$cleaned_value 25406 25407 fi 25408 else 25409 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25410 # Default is to get value from version-numbers 25411 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 25412 fi 25413 fi 25414 25415 25416 # Check whether --with-version-minor was given. 25417 if test "${with_version_minor+set}" = set; then : 25418 withval=$with_version_minor; with_version_minor_present=true 25419 else 25420 with_version_minor_present=false 25421 fi 25422 25423 25424 if test "x$with_version_minor_present" = xtrue; then 25425 if test "x$with_version_minor" = xyes; then 25426 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 25427 elif test "x$with_version_minor" = xno; then 25428 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25429 VERSION_MINOR=0 25430 elif test "x$with_version_minor" = x; then 25431 VERSION_MINOR=0 25432 else 25433 25434 # Additional [] needed to keep m4 from mangling shell constructs. 25435 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25436 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 25437 fi 25438 # Extract the version number without leading zeros. 25439 cleaned_value=${BASH_REMATCH[1]} 25440 if test "x$cleaned_value" = x; then 25441 # Special case for zero 25442 cleaned_value=${BASH_REMATCH[2]} 25443 fi 25444 25445 if test $cleaned_value -gt 255; then 25446 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 25447 fi 25448 if test "x$cleaned_value" != "x$with_version_minor"; then 25449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 25450 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 25451 fi 25452 VERSION_MINOR=$cleaned_value 25453 25454 fi 25455 else 25456 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25457 # Default is 0, if unspecified 25458 VERSION_MINOR=$DEFAULT_VERSION_MINOR 25459 fi 25460 fi 25461 25462 25463 # Check whether --with-version-security was given. 25464 if test "${with_version_security+set}" = set; then : 25465 withval=$with_version_security; with_version_security_present=true 25466 else 25467 with_version_security_present=false 25468 fi 25469 25470 25471 if test "x$with_version_security_present" = xtrue; then 25472 if test "x$with_version_security" = xyes; then 25473 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 25474 elif test "x$with_version_security" = xno; then 25475 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25476 VERSION_SECURITY=0 25477 elif test "x$with_version_security" = x; then 25478 VERSION_SECURITY=0 25479 else 25480 25481 # Additional [] needed to keep m4 from mangling shell constructs. 25482 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25483 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 25484 fi 25485 # Extract the version number without leading zeros. 25486 cleaned_value=${BASH_REMATCH[1]} 25487 if test "x$cleaned_value" = x; then 25488 # Special case for zero 25489 cleaned_value=${BASH_REMATCH[2]} 25490 fi 25491 25492 if test $cleaned_value -gt 255; then 25493 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 25494 fi 25495 if test "x$cleaned_value" != "x$with_version_security"; then 25496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 25497 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 25498 fi 25499 VERSION_SECURITY=$cleaned_value 25500 25501 fi 25502 else 25503 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25504 # Default is 0, if unspecified 25505 VERSION_SECURITY=$DEFAULT_VERSION_SECURITY 25506 fi 25507 fi 25508 25509 25510 # Check whether --with-version-patch was given. 25511 if test "${with_version_patch+set}" = set; then : 25512 withval=$with_version_patch; with_version_patch_present=true 25513 else 25514 with_version_patch_present=false 25515 fi 25516 25517 25518 if test "x$with_version_patch_present" = xtrue; then 25519 if test "x$with_version_patch" = xyes; then 25520 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25521 elif test "x$with_version_patch" = xno; then 25522 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25523 VERSION_PATCH=0 25524 elif test "x$with_version_patch" = x; then 25525 VERSION_PATCH=0 25526 else 25527 25528 # Additional [] needed to keep m4 from mangling shell constructs. 25529 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25530 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25531 fi 25532 # Extract the version number without leading zeros. 25533 cleaned_value=${BASH_REMATCH[1]} 25534 if test "x$cleaned_value" = x; then 25535 # Special case for zero 25536 cleaned_value=${BASH_REMATCH[2]} 25537 fi 25538 25539 if test $cleaned_value -gt 255; then 25540 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25541 fi 25542 if test "x$cleaned_value" != "x$with_version_patch"; then 25543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25544 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25545 fi 25546 VERSION_PATCH=$cleaned_value 25547 25548 fi 25549 else 25550 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25551 # Default is 0, if unspecified 25552 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25553 fi 25554 fi 25555 25556 # Calculate derived version properties 25557 25558 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25559 if test "x$VERSION_PRE" = x; then 25560 VERSION_IS_GA=true 25561 else 25562 VERSION_IS_GA=false 25563 fi 25564 25565 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25566 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 25567 25568 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25569 # Strip trailing zeroes from stripped_version_number 25570 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25571 VERSION_NUMBER=$stripped_version_number 25572 25573 # The complete version string, with additional build information 25574 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25575 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25576 else 25577 # If either build or opt is set, we need a + separator 25578 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25579 fi 25580 25581 # The short version string, just VERSION_NUMBER and PRE, if present. 25582 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25583 25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25585 $as_echo_n "checking for version string... " >&6; } 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25587 $as_echo "$VERSION_STRING" >&6; } 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 ############################################################################### 25604 # 25605 # Setup BootJDK, used to bootstrap the build. 25606 # 25607 ############################################################################### 25608 25609 25610 BOOT_JDK_FOUND=no 25611 25612 # Check whether --with-boot-jdk was given. 25613 if test "${with_boot_jdk+set}" = set; then : 25614 withval=$with_boot_jdk; 25615 fi 25616 25617 25618 # We look for the Boot JDK through various means, going from more certain to 25619 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25620 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25621 # must check if this is indeed valid; otherwise we'll continue looking. 25622 25623 # Test: Is bootjdk explicitly set by command line arguments? 25624 25625 if test "x$BOOT_JDK_FOUND" = xno; then 25626 # Now execute the test 25627 25628 if test "x$with_boot_jdk" != x; then 25629 BOOT_JDK=$with_boot_jdk 25630 BOOT_JDK_FOUND=maybe 25631 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25632 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25633 fi 25634 25635 25636 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25637 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25638 # Do we have a bin/java? 25639 if test ! -x "$BOOT_JDK/bin/java"; then 25640 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25641 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25642 BOOT_JDK_FOUND=no 25643 else 25644 # Do we have a bin/javac? 25645 if test ! -x "$BOOT_JDK/bin/javac"; then 25646 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25648 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25649 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25650 BOOT_JDK_FOUND=no 25651 else 25652 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25653 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25654 25655 # Extra M4 quote needed to protect [] in grep expression. 25656 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 25657 if test "x$FOUND_CORRECT_VERSION" = x; then 25658 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25659 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25660 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 25661 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 25662 BOOT_JDK_FOUND=no 25663 else 25664 # We're done! :-) 25665 BOOT_JDK_FOUND=yes 25666 25667 # Only process if variable expands to non-empty 25668 25669 if test "x$BOOT_JDK" != x; then 25670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25671 25672 # Input might be given as Windows format, start by converting to 25673 # unix format. 25674 path="$BOOT_JDK" 25675 new_path=`$CYGPATH -u "$path"` 25676 25677 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25678 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25679 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25680 # "foo.exe" is OK but "foo" is an error. 25681 # 25682 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25683 # It is also a way to make sure we got the proper file name for the real test later on. 25684 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25685 if test "x$test_shortpath" = x; then 25686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25687 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25688 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25689 fi 25690 25691 # Call helper function which possibly converts this using DOS-style short mode. 25692 # If so, the updated path is stored in $new_path. 25693 25694 input_path="$new_path" 25695 # Check if we need to convert this using DOS-style short mode. If the path 25696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25697 # take no chances and rewrite it. 25698 # Note: m4 eats our [], so we need to use [ and ] instead. 25699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25700 if test "x$has_forbidden_chars" != x; then 25701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25702 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25703 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25704 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25705 # Going to short mode and back again did indeed matter. Since short mode is 25706 # case insensitive, let's make it lowercase to improve readability. 25707 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25708 # Now convert it back to Unix-style (cygpath) 25709 input_path=`$CYGPATH -u "$shortmode_path"` 25710 new_path="$input_path" 25711 fi 25712 fi 25713 25714 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25715 if test "x$test_cygdrive_prefix" = x; then 25716 # As a simple fix, exclude /usr/bin since it's not a real path. 25717 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25718 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25719 # a path prefixed by /cygdrive for fixpath to work. 25720 new_path="$CYGWIN_ROOT_PATH$input_path" 25721 fi 25722 fi 25723 25724 25725 if test "x$path" != "x$new_path"; then 25726 BOOT_JDK="$new_path" 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25728 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25729 fi 25730 25731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25732 25733 path="$BOOT_JDK" 25734 has_colon=`$ECHO $path | $GREP ^.:` 25735 new_path="$path" 25736 if test "x$has_colon" = x; then 25737 # Not in mixed or Windows style, start by that. 25738 new_path=`cmd //c echo $path` 25739 fi 25740 25741 25742 input_path="$new_path" 25743 # Check if we need to convert this using DOS-style short mode. If the path 25744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25745 # take no chances and rewrite it. 25746 # Note: m4 eats our [], so we need to use [ and ] instead. 25747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25748 if test "x$has_forbidden_chars" != x; then 25749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25750 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25751 fi 25752 25753 25754 windows_path="$new_path" 25755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25756 unix_path=`$CYGPATH -u "$windows_path"` 25757 new_path="$unix_path" 25758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25760 new_path="$unix_path" 25761 fi 25762 25763 if test "x$path" != "x$new_path"; then 25764 BOOT_JDK="$new_path" 25765 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25766 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25767 fi 25768 25769 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25770 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25771 25772 else 25773 # We're on a unix platform. Hooray! :) 25774 path="$BOOT_JDK" 25775 has_space=`$ECHO "$path" | $GREP " "` 25776 if test "x$has_space" != x; then 25777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25778 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25779 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25780 fi 25781 25782 # Use eval to expand a potential ~ 25783 eval path="$path" 25784 if test ! -f "$path" && test ! -d "$path"; then 25785 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25786 fi 25787 25788 if test -d "$path"; then 25789 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25790 else 25791 dir="`$DIRNAME "$path"`" 25792 base="`$BASENAME "$path"`" 25793 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25794 fi 25795 fi 25796 fi 25797 25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25799 $as_echo_n "checking for Boot JDK... " >&6; } 25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25801 $as_echo "$BOOT_JDK" >&6; } 25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25803 $as_echo_n "checking Boot JDK version... " >&6; } 25804 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25806 $as_echo "$BOOT_JDK_VERSION" >&6; } 25807 fi # end check jdk version 25808 fi # end check javac 25809 fi # end check java 25810 fi # end check boot jdk found 25811 fi 25812 25813 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25814 # Having specified an argument which is incorrect will produce an instant failure; 25815 # we should not go on looking 25816 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25817 fi 25818 25819 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25820 25821 if test "x$BOOT_JDK_FOUND" = xno; then 25822 # Now execute the test 25823 25824 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25825 # First check at user selected default 25826 25827 if test "x$BOOT_JDK_FOUND" = xno; then 25828 # Now execute the test 25829 25830 if test -x /usr/libexec/java_home; then 25831 BOOT_JDK=`/usr/libexec/java_home ` 25832 BOOT_JDK_FOUND=maybe 25833 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25834 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25835 fi 25836 25837 25838 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25839 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25840 # Do we have a bin/java? 25841 if test ! -x "$BOOT_JDK/bin/java"; then 25842 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25843 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25844 BOOT_JDK_FOUND=no 25845 else 25846 # Do we have a bin/javac? 25847 if test ! -x "$BOOT_JDK/bin/javac"; then 25848 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25849 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25851 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25852 BOOT_JDK_FOUND=no 25853 else 25854 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25855 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25856 25857 # Extra M4 quote needed to protect [] in grep expression. 25858 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 25859 if test "x$FOUND_CORRECT_VERSION" = x; then 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25861 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25862 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 25863 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 25864 BOOT_JDK_FOUND=no 25865 else 25866 # We're done! :-) 25867 BOOT_JDK_FOUND=yes 25868 25869 # Only process if variable expands to non-empty 25870 25871 if test "x$BOOT_JDK" != x; then 25872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25873 25874 # Input might be given as Windows format, start by converting to 25875 # unix format. 25876 path="$BOOT_JDK" 25877 new_path=`$CYGPATH -u "$path"` 25878 25879 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25880 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25881 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25882 # "foo.exe" is OK but "foo" is an error. 25883 # 25884 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25885 # It is also a way to make sure we got the proper file name for the real test later on. 25886 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25887 if test "x$test_shortpath" = x; then 25888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25889 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25890 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25891 fi 25892 25893 # Call helper function which possibly converts this using DOS-style short mode. 25894 # If so, the updated path is stored in $new_path. 25895 25896 input_path="$new_path" 25897 # Check if we need to convert this using DOS-style short mode. If the path 25898 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25899 # take no chances and rewrite it. 25900 # Note: m4 eats our [], so we need to use [ and ] instead. 25901 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25902 if test "x$has_forbidden_chars" != x; then 25903 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25904 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25905 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25906 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25907 # Going to short mode and back again did indeed matter. Since short mode is 25908 # case insensitive, let's make it lowercase to improve readability. 25909 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25910 # Now convert it back to Unix-style (cygpath) 25911 input_path=`$CYGPATH -u "$shortmode_path"` 25912 new_path="$input_path" 25913 fi 25914 fi 25915 25916 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25917 if test "x$test_cygdrive_prefix" = x; then 25918 # As a simple fix, exclude /usr/bin since it's not a real path. 25919 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25920 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25921 # a path prefixed by /cygdrive for fixpath to work. 25922 new_path="$CYGWIN_ROOT_PATH$input_path" 25923 fi 25924 fi 25925 25926 25927 if test "x$path" != "x$new_path"; then 25928 BOOT_JDK="$new_path" 25929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25930 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25931 fi 25932 25933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25934 25935 path="$BOOT_JDK" 25936 has_colon=`$ECHO $path | $GREP ^.:` 25937 new_path="$path" 25938 if test "x$has_colon" = x; then 25939 # Not in mixed or Windows style, start by that. 25940 new_path=`cmd //c echo $path` 25941 fi 25942 25943 25944 input_path="$new_path" 25945 # Check if we need to convert this using DOS-style short mode. If the path 25946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25947 # take no chances and rewrite it. 25948 # Note: m4 eats our [], so we need to use [ and ] instead. 25949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25950 if test "x$has_forbidden_chars" != x; then 25951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25953 fi 25954 25955 25956 windows_path="$new_path" 25957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25958 unix_path=`$CYGPATH -u "$windows_path"` 25959 new_path="$unix_path" 25960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25962 new_path="$unix_path" 25963 fi 25964 25965 if test "x$path" != "x$new_path"; then 25966 BOOT_JDK="$new_path" 25967 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25968 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25969 fi 25970 25971 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25972 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25973 25974 else 25975 # We're on a unix platform. Hooray! :) 25976 path="$BOOT_JDK" 25977 has_space=`$ECHO "$path" | $GREP " "` 25978 if test "x$has_space" != x; then 25979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25980 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25981 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25982 fi 25983 25984 # Use eval to expand a potential ~ 25985 eval path="$path" 25986 if test ! -f "$path" && test ! -d "$path"; then 25987 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25988 fi 25989 25990 if test -d "$path"; then 25991 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25992 else 25993 dir="`$DIRNAME "$path"`" 25994 base="`$BASENAME "$path"`" 25995 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25996 fi 25997 fi 25998 fi 25999 26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26001 $as_echo_n "checking for Boot JDK... " >&6; } 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26003 $as_echo "$BOOT_JDK" >&6; } 26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26005 $as_echo_n "checking Boot JDK version... " >&6; } 26006 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26008 $as_echo "$BOOT_JDK_VERSION" >&6; } 26009 fi # end check jdk version 26010 fi # end check javac 26011 fi # end check java 26012 fi # end check boot jdk found 26013 fi 26014 26015 # If that did not work out (e.g. too old), try explicit versions instead 26016 26017 if test "x$BOOT_JDK_FOUND" = xno; then 26018 # Now execute the test 26019 26020 if test -x /usr/libexec/java_home; then 26021 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 26022 BOOT_JDK_FOUND=maybe 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 26024 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 26025 fi 26026 26027 26028 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26029 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26030 # Do we have a bin/java? 26031 if test ! -x "$BOOT_JDK/bin/java"; then 26032 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26034 BOOT_JDK_FOUND=no 26035 else 26036 # Do we have a bin/javac? 26037 if test ! -x "$BOOT_JDK/bin/javac"; then 26038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26040 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26041 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26042 BOOT_JDK_FOUND=no 26043 else 26044 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26045 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26046 26047 # Extra M4 quote needed to protect [] in grep expression. 26048 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 26049 if test "x$FOUND_CORRECT_VERSION" = x; then 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26052 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 26053 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 26054 BOOT_JDK_FOUND=no 26055 else 26056 # We're done! :-) 26057 BOOT_JDK_FOUND=yes 26058 26059 # Only process if variable expands to non-empty 26060 26061 if test "x$BOOT_JDK" != x; then 26062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26063 26064 # Input might be given as Windows format, start by converting to 26065 # unix format. 26066 path="$BOOT_JDK" 26067 new_path=`$CYGPATH -u "$path"` 26068 26069 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26070 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26071 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26072 # "foo.exe" is OK but "foo" is an error. 26073 # 26074 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26075 # It is also a way to make sure we got the proper file name for the real test later on. 26076 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26077 if test "x$test_shortpath" = x; then 26078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26079 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26080 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26081 fi 26082 26083 # Call helper function which possibly converts this using DOS-style short mode. 26084 # If so, the updated path is stored in $new_path. 26085 26086 input_path="$new_path" 26087 # Check if we need to convert this using DOS-style short mode. If the path 26088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26089 # take no chances and rewrite it. 26090 # Note: m4 eats our [], so we need to use [ and ] instead. 26091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26092 if test "x$has_forbidden_chars" != x; then 26093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26094 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26095 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26096 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26097 # Going to short mode and back again did indeed matter. Since short mode is 26098 # case insensitive, let's make it lowercase to improve readability. 26099 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26100 # Now convert it back to Unix-style (cygpath) 26101 input_path=`$CYGPATH -u "$shortmode_path"` 26102 new_path="$input_path" 26103 fi 26104 fi 26105 26106 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26107 if test "x$test_cygdrive_prefix" = x; then 26108 # As a simple fix, exclude /usr/bin since it's not a real path. 26109 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26110 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26111 # a path prefixed by /cygdrive for fixpath to work. 26112 new_path="$CYGWIN_ROOT_PATH$input_path" 26113 fi 26114 fi 26115 26116 26117 if test "x$path" != "x$new_path"; then 26118 BOOT_JDK="$new_path" 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26120 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26121 fi 26122 26123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26124 26125 path="$BOOT_JDK" 26126 has_colon=`$ECHO $path | $GREP ^.:` 26127 new_path="$path" 26128 if test "x$has_colon" = x; then 26129 # Not in mixed or Windows style, start by that. 26130 new_path=`cmd //c echo $path` 26131 fi 26132 26133 26134 input_path="$new_path" 26135 # Check if we need to convert this using DOS-style short mode. If the path 26136 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26137 # take no chances and rewrite it. 26138 # Note: m4 eats our [], so we need to use [ and ] instead. 26139 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26140 if test "x$has_forbidden_chars" != x; then 26141 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26142 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26143 fi 26144 26145 26146 windows_path="$new_path" 26147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26148 unix_path=`$CYGPATH -u "$windows_path"` 26149 new_path="$unix_path" 26150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26152 new_path="$unix_path" 26153 fi 26154 26155 if test "x$path" != "x$new_path"; then 26156 BOOT_JDK="$new_path" 26157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26158 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26159 fi 26160 26161 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26162 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26163 26164 else 26165 # We're on a unix platform. Hooray! :) 26166 path="$BOOT_JDK" 26167 has_space=`$ECHO "$path" | $GREP " "` 26168 if test "x$has_space" != x; then 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26170 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26171 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26172 fi 26173 26174 # Use eval to expand a potential ~ 26175 eval path="$path" 26176 if test ! -f "$path" && test ! -d "$path"; then 26177 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26178 fi 26179 26180 if test -d "$path"; then 26181 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26182 else 26183 dir="`$DIRNAME "$path"`" 26184 base="`$BASENAME "$path"`" 26185 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26186 fi 26187 fi 26188 fi 26189 26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26191 $as_echo_n "checking for Boot JDK... " >&6; } 26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26193 $as_echo "$BOOT_JDK" >&6; } 26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26195 $as_echo_n "checking Boot JDK version... " >&6; } 26196 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26198 $as_echo "$BOOT_JDK_VERSION" >&6; } 26199 fi # end check jdk version 26200 fi # end check javac 26201 fi # end check java 26202 fi # end check boot jdk found 26203 fi 26204 26205 26206 if test "x$BOOT_JDK_FOUND" = xno; then 26207 # Now execute the test 26208 26209 if test -x /usr/libexec/java_home; then 26210 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26211 BOOT_JDK_FOUND=maybe 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26213 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26214 fi 26215 26216 26217 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26218 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26219 # Do we have a bin/java? 26220 if test ! -x "$BOOT_JDK/bin/java"; then 26221 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26222 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26223 BOOT_JDK_FOUND=no 26224 else 26225 # Do we have a bin/javac? 26226 if test ! -x "$BOOT_JDK/bin/javac"; then 26227 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26229 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26230 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26231 BOOT_JDK_FOUND=no 26232 else 26233 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26234 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26235 26236 # Extra M4 quote needed to protect [] in grep expression. 26237 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 26238 if test "x$FOUND_CORRECT_VERSION" = x; then 26239 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26240 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26241 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 26242 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 26243 BOOT_JDK_FOUND=no 26244 else 26245 # We're done! :-) 26246 BOOT_JDK_FOUND=yes 26247 26248 # Only process if variable expands to non-empty 26249 26250 if test "x$BOOT_JDK" != x; then 26251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26252 26253 # Input might be given as Windows format, start by converting to 26254 # unix format. 26255 path="$BOOT_JDK" 26256 new_path=`$CYGPATH -u "$path"` 26257 26258 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26259 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26260 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26261 # "foo.exe" is OK but "foo" is an error. 26262 # 26263 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26264 # It is also a way to make sure we got the proper file name for the real test later on. 26265 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26266 if test "x$test_shortpath" = x; then 26267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26269 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26270 fi 26271 26272 # Call helper function which possibly converts this using DOS-style short mode. 26273 # If so, the updated path is stored in $new_path. 26274 26275 input_path="$new_path" 26276 # Check if we need to convert this using DOS-style short mode. If the path 26277 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26278 # take no chances and rewrite it. 26279 # Note: m4 eats our [], so we need to use [ and ] instead. 26280 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26281 if test "x$has_forbidden_chars" != x; then 26282 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26283 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26284 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26285 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26286 # Going to short mode and back again did indeed matter. Since short mode is 26287 # case insensitive, let's make it lowercase to improve readability. 26288 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26289 # Now convert it back to Unix-style (cygpath) 26290 input_path=`$CYGPATH -u "$shortmode_path"` 26291 new_path="$input_path" 26292 fi 26293 fi 26294 26295 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26296 if test "x$test_cygdrive_prefix" = x; then 26297 # As a simple fix, exclude /usr/bin since it's not a real path. 26298 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26299 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26300 # a path prefixed by /cygdrive for fixpath to work. 26301 new_path="$CYGWIN_ROOT_PATH$input_path" 26302 fi 26303 fi 26304 26305 26306 if test "x$path" != "x$new_path"; then 26307 BOOT_JDK="$new_path" 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26309 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26310 fi 26311 26312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26313 26314 path="$BOOT_JDK" 26315 has_colon=`$ECHO $path | $GREP ^.:` 26316 new_path="$path" 26317 if test "x$has_colon" = x; then 26318 # Not in mixed or Windows style, start by that. 26319 new_path=`cmd //c echo $path` 26320 fi 26321 26322 26323 input_path="$new_path" 26324 # Check if we need to convert this using DOS-style short mode. If the path 26325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26326 # take no chances and rewrite it. 26327 # Note: m4 eats our [], so we need to use [ and ] instead. 26328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26329 if test "x$has_forbidden_chars" != x; then 26330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26331 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26332 fi 26333 26334 26335 windows_path="$new_path" 26336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26337 unix_path=`$CYGPATH -u "$windows_path"` 26338 new_path="$unix_path" 26339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26340 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26341 new_path="$unix_path" 26342 fi 26343 26344 if test "x$path" != "x$new_path"; then 26345 BOOT_JDK="$new_path" 26346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26347 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26348 fi 26349 26350 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26351 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26352 26353 else 26354 # We're on a unix platform. Hooray! :) 26355 path="$BOOT_JDK" 26356 has_space=`$ECHO "$path" | $GREP " "` 26357 if test "x$has_space" != x; then 26358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26359 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26360 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26361 fi 26362 26363 # Use eval to expand a potential ~ 26364 eval path="$path" 26365 if test ! -f "$path" && test ! -d "$path"; then 26366 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26367 fi 26368 26369 if test -d "$path"; then 26370 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26371 else 26372 dir="`$DIRNAME "$path"`" 26373 base="`$BASENAME "$path"`" 26374 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26375 fi 26376 fi 26377 fi 26378 26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26380 $as_echo_n "checking for Boot JDK... " >&6; } 26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26382 $as_echo "$BOOT_JDK" >&6; } 26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26384 $as_echo_n "checking Boot JDK version... " >&6; } 26385 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26387 $as_echo "$BOOT_JDK_VERSION" >&6; } 26388 fi # end check jdk version 26389 fi # end check javac 26390 fi # end check java 26391 fi # end check boot jdk found 26392 fi 26393 26394 26395 if test "x$BOOT_JDK_FOUND" = xno; then 26396 # Now execute the test 26397 26398 if test -x /usr/libexec/java_home; then 26399 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26400 BOOT_JDK_FOUND=maybe 26401 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26402 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26403 fi 26404 26405 26406 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26407 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26408 # Do we have a bin/java? 26409 if test ! -x "$BOOT_JDK/bin/java"; then 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26412 BOOT_JDK_FOUND=no 26413 else 26414 # Do we have a bin/javac? 26415 if test ! -x "$BOOT_JDK/bin/javac"; then 26416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26418 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26419 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26420 BOOT_JDK_FOUND=no 26421 else 26422 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26423 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26424 26425 # Extra M4 quote needed to protect [] in grep expression. 26426 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 26427 if test "x$FOUND_CORRECT_VERSION" = x; then 26428 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26430 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 26431 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 26432 BOOT_JDK_FOUND=no 26433 else 26434 # We're done! :-) 26435 BOOT_JDK_FOUND=yes 26436 26437 # Only process if variable expands to non-empty 26438 26439 if test "x$BOOT_JDK" != x; then 26440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26441 26442 # Input might be given as Windows format, start by converting to 26443 # unix format. 26444 path="$BOOT_JDK" 26445 new_path=`$CYGPATH -u "$path"` 26446 26447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26450 # "foo.exe" is OK but "foo" is an error. 26451 # 26452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26453 # It is also a way to make sure we got the proper file name for the real test later on. 26454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26455 if test "x$test_shortpath" = x; then 26456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26458 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26459 fi 26460 26461 # Call helper function which possibly converts this using DOS-style short mode. 26462 # If so, the updated path is stored in $new_path. 26463 26464 input_path="$new_path" 26465 # Check if we need to convert this using DOS-style short mode. If the path 26466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26467 # take no chances and rewrite it. 26468 # Note: m4 eats our [], so we need to use [ and ] instead. 26469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26470 if test "x$has_forbidden_chars" != x; then 26471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26472 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26473 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26474 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26475 # Going to short mode and back again did indeed matter. Since short mode is 26476 # case insensitive, let's make it lowercase to improve readability. 26477 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26478 # Now convert it back to Unix-style (cygpath) 26479 input_path=`$CYGPATH -u "$shortmode_path"` 26480 new_path="$input_path" 26481 fi 26482 fi 26483 26484 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26485 if test "x$test_cygdrive_prefix" = x; then 26486 # As a simple fix, exclude /usr/bin since it's not a real path. 26487 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26488 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26489 # a path prefixed by /cygdrive for fixpath to work. 26490 new_path="$CYGWIN_ROOT_PATH$input_path" 26491 fi 26492 fi 26493 26494 26495 if test "x$path" != "x$new_path"; then 26496 BOOT_JDK="$new_path" 26497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26499 fi 26500 26501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26502 26503 path="$BOOT_JDK" 26504 has_colon=`$ECHO $path | $GREP ^.:` 26505 new_path="$path" 26506 if test "x$has_colon" = x; then 26507 # Not in mixed or Windows style, start by that. 26508 new_path=`cmd //c echo $path` 26509 fi 26510 26511 26512 input_path="$new_path" 26513 # Check if we need to convert this using DOS-style short mode. If the path 26514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26515 # take no chances and rewrite it. 26516 # Note: m4 eats our [], so we need to use [ and ] instead. 26517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26518 if test "x$has_forbidden_chars" != x; then 26519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26521 fi 26522 26523 26524 windows_path="$new_path" 26525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26526 unix_path=`$CYGPATH -u "$windows_path"` 26527 new_path="$unix_path" 26528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26530 new_path="$unix_path" 26531 fi 26532 26533 if test "x$path" != "x$new_path"; then 26534 BOOT_JDK="$new_path" 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26537 fi 26538 26539 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26540 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26541 26542 else 26543 # We're on a unix platform. Hooray! :) 26544 path="$BOOT_JDK" 26545 has_space=`$ECHO "$path" | $GREP " "` 26546 if test "x$has_space" != x; then 26547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26549 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26550 fi 26551 26552 # Use eval to expand a potential ~ 26553 eval path="$path" 26554 if test ! -f "$path" && test ! -d "$path"; then 26555 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26556 fi 26557 26558 if test -d "$path"; then 26559 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26560 else 26561 dir="`$DIRNAME "$path"`" 26562 base="`$BASENAME "$path"`" 26563 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26564 fi 26565 fi 26566 fi 26567 26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26569 $as_echo_n "checking for Boot JDK... " >&6; } 26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26571 $as_echo "$BOOT_JDK" >&6; } 26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26573 $as_echo_n "checking Boot JDK version... " >&6; } 26574 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26576 $as_echo "$BOOT_JDK_VERSION" >&6; } 26577 fi # end check jdk version 26578 fi # end check javac 26579 fi # end check java 26580 fi # end check boot jdk found 26581 fi 26582 26583 fi 26584 26585 26586 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26587 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26588 # Do we have a bin/java? 26589 if test ! -x "$BOOT_JDK/bin/java"; then 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26591 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26592 BOOT_JDK_FOUND=no 26593 else 26594 # Do we have a bin/javac? 26595 if test ! -x "$BOOT_JDK/bin/javac"; then 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26599 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26600 BOOT_JDK_FOUND=no 26601 else 26602 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26603 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26604 26605 # Extra M4 quote needed to protect [] in grep expression. 26606 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 26607 if test "x$FOUND_CORRECT_VERSION" = x; then 26608 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26609 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26610 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 26611 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 26612 BOOT_JDK_FOUND=no 26613 else 26614 # We're done! :-) 26615 BOOT_JDK_FOUND=yes 26616 26617 # Only process if variable expands to non-empty 26618 26619 if test "x$BOOT_JDK" != x; then 26620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26621 26622 # Input might be given as Windows format, start by converting to 26623 # unix format. 26624 path="$BOOT_JDK" 26625 new_path=`$CYGPATH -u "$path"` 26626 26627 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26628 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26629 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26630 # "foo.exe" is OK but "foo" is an error. 26631 # 26632 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26633 # It is also a way to make sure we got the proper file name for the real test later on. 26634 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26635 if test "x$test_shortpath" = x; then 26636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26637 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26638 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26639 fi 26640 26641 # Call helper function which possibly converts this using DOS-style short mode. 26642 # If so, the updated path is stored in $new_path. 26643 26644 input_path="$new_path" 26645 # Check if we need to convert this using DOS-style short mode. If the path 26646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26647 # take no chances and rewrite it. 26648 # Note: m4 eats our [], so we need to use [ and ] instead. 26649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26650 if test "x$has_forbidden_chars" != x; then 26651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26652 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26653 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26654 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26655 # Going to short mode and back again did indeed matter. Since short mode is 26656 # case insensitive, let's make it lowercase to improve readability. 26657 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26658 # Now convert it back to Unix-style (cygpath) 26659 input_path=`$CYGPATH -u "$shortmode_path"` 26660 new_path="$input_path" 26661 fi 26662 fi 26663 26664 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26665 if test "x$test_cygdrive_prefix" = x; then 26666 # As a simple fix, exclude /usr/bin since it's not a real path. 26667 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26668 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26669 # a path prefixed by /cygdrive for fixpath to work. 26670 new_path="$CYGWIN_ROOT_PATH$input_path" 26671 fi 26672 fi 26673 26674 26675 if test "x$path" != "x$new_path"; then 26676 BOOT_JDK="$new_path" 26677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26678 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26679 fi 26680 26681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26682 26683 path="$BOOT_JDK" 26684 has_colon=`$ECHO $path | $GREP ^.:` 26685 new_path="$path" 26686 if test "x$has_colon" = x; then 26687 # Not in mixed or Windows style, start by that. 26688 new_path=`cmd //c echo $path` 26689 fi 26690 26691 26692 input_path="$new_path" 26693 # Check if we need to convert this using DOS-style short mode. If the path 26694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26695 # take no chances and rewrite it. 26696 # Note: m4 eats our [], so we need to use [ and ] instead. 26697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26698 if test "x$has_forbidden_chars" != x; then 26699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26700 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26701 fi 26702 26703 26704 windows_path="$new_path" 26705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26706 unix_path=`$CYGPATH -u "$windows_path"` 26707 new_path="$unix_path" 26708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26710 new_path="$unix_path" 26711 fi 26712 26713 if test "x$path" != "x$new_path"; then 26714 BOOT_JDK="$new_path" 26715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26716 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26717 fi 26718 26719 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26720 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26721 26722 else 26723 # We're on a unix platform. Hooray! :) 26724 path="$BOOT_JDK" 26725 has_space=`$ECHO "$path" | $GREP " "` 26726 if test "x$has_space" != x; then 26727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26728 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26729 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26730 fi 26731 26732 # Use eval to expand a potential ~ 26733 eval path="$path" 26734 if test ! -f "$path" && test ! -d "$path"; then 26735 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26736 fi 26737 26738 if test -d "$path"; then 26739 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26740 else 26741 dir="`$DIRNAME "$path"`" 26742 base="`$BASENAME "$path"`" 26743 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26744 fi 26745 fi 26746 fi 26747 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26749 $as_echo_n "checking for Boot JDK... " >&6; } 26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26751 $as_echo "$BOOT_JDK" >&6; } 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26753 $as_echo_n "checking Boot JDK version... " >&6; } 26754 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26756 $as_echo "$BOOT_JDK_VERSION" >&6; } 26757 fi # end check jdk version 26758 fi # end check javac 26759 fi # end check java 26760 fi # end check boot jdk found 26761 fi 26762 26763 26764 # Test: Is $JAVA_HOME set? 26765 26766 if test "x$BOOT_JDK_FOUND" = xno; then 26767 # Now execute the test 26768 26769 if test "x$JAVA_HOME" != x; then 26770 JAVA_HOME_PROCESSED="$JAVA_HOME" 26771 26772 # Only process if variable expands to non-empty 26773 26774 if test "x$JAVA_HOME_PROCESSED" != x; then 26775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26776 26777 # Input might be given as Windows format, start by converting to 26778 # unix format. 26779 path="$JAVA_HOME_PROCESSED" 26780 new_path=`$CYGPATH -u "$path"` 26781 26782 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26783 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26784 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26785 # "foo.exe" is OK but "foo" is an error. 26786 # 26787 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26788 # It is also a way to make sure we got the proper file name for the real test later on. 26789 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26790 if test "x$test_shortpath" = x; then 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26792 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26793 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26794 fi 26795 26796 # Call helper function which possibly converts this using DOS-style short mode. 26797 # If so, the updated path is stored in $new_path. 26798 26799 input_path="$new_path" 26800 # Check if we need to convert this using DOS-style short mode. If the path 26801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26802 # take no chances and rewrite it. 26803 # Note: m4 eats our [], so we need to use [ and ] instead. 26804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26805 if test "x$has_forbidden_chars" != x; then 26806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26807 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26808 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26809 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26810 # Going to short mode and back again did indeed matter. Since short mode is 26811 # case insensitive, let's make it lowercase to improve readability. 26812 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26813 # Now convert it back to Unix-style (cygpath) 26814 input_path=`$CYGPATH -u "$shortmode_path"` 26815 new_path="$input_path" 26816 fi 26817 fi 26818 26819 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26820 if test "x$test_cygdrive_prefix" = x; then 26821 # As a simple fix, exclude /usr/bin since it's not a real path. 26822 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26823 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26824 # a path prefixed by /cygdrive for fixpath to work. 26825 new_path="$CYGWIN_ROOT_PATH$input_path" 26826 fi 26827 fi 26828 26829 26830 if test "x$path" != "x$new_path"; then 26831 JAVA_HOME_PROCESSED="$new_path" 26832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26833 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26834 fi 26835 26836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26837 26838 path="$JAVA_HOME_PROCESSED" 26839 has_colon=`$ECHO $path | $GREP ^.:` 26840 new_path="$path" 26841 if test "x$has_colon" = x; then 26842 # Not in mixed or Windows style, start by that. 26843 new_path=`cmd //c echo $path` 26844 fi 26845 26846 26847 input_path="$new_path" 26848 # Check if we need to convert this using DOS-style short mode. If the path 26849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26850 # take no chances and rewrite it. 26851 # Note: m4 eats our [], so we need to use [ and ] instead. 26852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26853 if test "x$has_forbidden_chars" != x; then 26854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26855 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26856 fi 26857 26858 26859 windows_path="$new_path" 26860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26861 unix_path=`$CYGPATH -u "$windows_path"` 26862 new_path="$unix_path" 26863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26864 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26865 new_path="$unix_path" 26866 fi 26867 26868 if test "x$path" != "x$new_path"; then 26869 JAVA_HOME_PROCESSED="$new_path" 26870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26871 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26872 fi 26873 26874 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26875 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26876 26877 else 26878 # We're on a unix platform. Hooray! :) 26879 path="$JAVA_HOME_PROCESSED" 26880 has_space=`$ECHO "$path" | $GREP " "` 26881 if test "x$has_space" != x; then 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26883 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26884 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26885 fi 26886 26887 # Use eval to expand a potential ~ 26888 eval path="$path" 26889 if test ! -f "$path" && test ! -d "$path"; then 26890 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26891 fi 26892 26893 if test -d "$path"; then 26894 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26895 else 26896 dir="`$DIRNAME "$path"`" 26897 base="`$BASENAME "$path"`" 26898 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26899 fi 26900 fi 26901 fi 26902 26903 if test ! -d "$JAVA_HOME_PROCESSED"; then 26904 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26905 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26906 else 26907 # Aha, the user has set a JAVA_HOME 26908 # let us use that as the Boot JDK. 26909 BOOT_JDK="$JAVA_HOME_PROCESSED" 26910 BOOT_JDK_FOUND=maybe 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26912 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26913 fi 26914 fi 26915 26916 26917 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26918 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26919 # Do we have a bin/java? 26920 if test ! -x "$BOOT_JDK/bin/java"; then 26921 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26923 BOOT_JDK_FOUND=no 26924 else 26925 # Do we have a bin/javac? 26926 if test ! -x "$BOOT_JDK/bin/javac"; then 26927 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26928 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26929 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26930 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26931 BOOT_JDK_FOUND=no 26932 else 26933 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26934 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26935 26936 # Extra M4 quote needed to protect [] in grep expression. 26937 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 26938 if test "x$FOUND_CORRECT_VERSION" = x; then 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26941 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 26942 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 26943 BOOT_JDK_FOUND=no 26944 else 26945 # We're done! :-) 26946 BOOT_JDK_FOUND=yes 26947 26948 # Only process if variable expands to non-empty 26949 26950 if test "x$BOOT_JDK" != x; then 26951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26952 26953 # Input might be given as Windows format, start by converting to 26954 # unix format. 26955 path="$BOOT_JDK" 26956 new_path=`$CYGPATH -u "$path"` 26957 26958 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26959 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26960 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26961 # "foo.exe" is OK but "foo" is an error. 26962 # 26963 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26964 # It is also a way to make sure we got the proper file name for the real test later on. 26965 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26966 if test "x$test_shortpath" = x; then 26967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26968 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26969 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26970 fi 26971 26972 # Call helper function which possibly converts this using DOS-style short mode. 26973 # If so, the updated path is stored in $new_path. 26974 26975 input_path="$new_path" 26976 # Check if we need to convert this using DOS-style short mode. If the path 26977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26978 # take no chances and rewrite it. 26979 # Note: m4 eats our [], so we need to use [ and ] instead. 26980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26981 if test "x$has_forbidden_chars" != x; then 26982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26983 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26984 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26985 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26986 # Going to short mode and back again did indeed matter. Since short mode is 26987 # case insensitive, let's make it lowercase to improve readability. 26988 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26989 # Now convert it back to Unix-style (cygpath) 26990 input_path=`$CYGPATH -u "$shortmode_path"` 26991 new_path="$input_path" 26992 fi 26993 fi 26994 26995 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26996 if test "x$test_cygdrive_prefix" = x; then 26997 # As a simple fix, exclude /usr/bin since it's not a real path. 26998 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26999 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27000 # a path prefixed by /cygdrive for fixpath to work. 27001 new_path="$CYGWIN_ROOT_PATH$input_path" 27002 fi 27003 fi 27004 27005 27006 if test "x$path" != "x$new_path"; then 27007 BOOT_JDK="$new_path" 27008 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27009 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27010 fi 27011 27012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27013 27014 path="$BOOT_JDK" 27015 has_colon=`$ECHO $path | $GREP ^.:` 27016 new_path="$path" 27017 if test "x$has_colon" = x; then 27018 # Not in mixed or Windows style, start by that. 27019 new_path=`cmd //c echo $path` 27020 fi 27021 27022 27023 input_path="$new_path" 27024 # Check if we need to convert this using DOS-style short mode. If the path 27025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27026 # take no chances and rewrite it. 27027 # Note: m4 eats our [], so we need to use [ and ] instead. 27028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27029 if test "x$has_forbidden_chars" != x; then 27030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27031 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27032 fi 27033 27034 27035 windows_path="$new_path" 27036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27037 unix_path=`$CYGPATH -u "$windows_path"` 27038 new_path="$unix_path" 27039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27041 new_path="$unix_path" 27042 fi 27043 27044 if test "x$path" != "x$new_path"; then 27045 BOOT_JDK="$new_path" 27046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27047 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27048 fi 27049 27050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27052 27053 else 27054 # We're on a unix platform. Hooray! :) 27055 path="$BOOT_JDK" 27056 has_space=`$ECHO "$path" | $GREP " "` 27057 if test "x$has_space" != x; then 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27059 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27060 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27061 fi 27062 27063 # Use eval to expand a potential ~ 27064 eval path="$path" 27065 if test ! -f "$path" && test ! -d "$path"; then 27066 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27067 fi 27068 27069 if test -d "$path"; then 27070 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27071 else 27072 dir="`$DIRNAME "$path"`" 27073 base="`$BASENAME "$path"`" 27074 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27075 fi 27076 fi 27077 fi 27078 27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27080 $as_echo_n "checking for Boot JDK... " >&6; } 27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27082 $as_echo "$BOOT_JDK" >&6; } 27083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27084 $as_echo_n "checking Boot JDK version... " >&6; } 27085 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27087 $as_echo "$BOOT_JDK_VERSION" >&6; } 27088 fi # end check jdk version 27089 fi # end check javac 27090 fi # end check java 27091 fi # end check boot jdk found 27092 fi 27093 27094 27095 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 27096 27097 if test "x$BOOT_JDK_FOUND" = xno; then 27098 # Now execute the test 27099 27100 # Extract the first word of "javac", so it can be a program name with args. 27101 set dummy javac; ac_word=$2 27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27103 $as_echo_n "checking for $ac_word... " >&6; } 27104 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 27105 $as_echo_n "(cached) " >&6 27106 else 27107 case $JAVAC_CHECK in 27108 [\\/]* | ?:[\\/]*) 27109 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 27110 ;; 27111 *) 27112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27113 for as_dir in $PATH 27114 do 27115 IFS=$as_save_IFS 27116 test -z "$as_dir" && as_dir=. 27117 for ac_exec_ext in '' $ac_executable_extensions; do 27118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27119 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27121 break 2 27122 fi 27123 done 27124 done 27125 IFS=$as_save_IFS 27126 27127 ;; 27128 esac 27129 fi 27130 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27131 if test -n "$JAVAC_CHECK"; then 27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27133 $as_echo "$JAVAC_CHECK" >&6; } 27134 else 27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27136 $as_echo "no" >&6; } 27137 fi 27138 27139 27140 # Extract the first word of "java", so it can be a program name with args. 27141 set dummy java; ac_word=$2 27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27143 $as_echo_n "checking for $ac_word... " >&6; } 27144 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27145 $as_echo_n "(cached) " >&6 27146 else 27147 case $JAVA_CHECK in 27148 [\\/]* | ?:[\\/]*) 27149 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27150 ;; 27151 *) 27152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27153 for as_dir in $PATH 27154 do 27155 IFS=$as_save_IFS 27156 test -z "$as_dir" && as_dir=. 27157 for ac_exec_ext in '' $ac_executable_extensions; do 27158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27159 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27161 break 2 27162 fi 27163 done 27164 done 27165 IFS=$as_save_IFS 27166 27167 ;; 27168 esac 27169 fi 27170 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27171 if test -n "$JAVA_CHECK"; then 27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27173 $as_echo "$JAVA_CHECK" >&6; } 27174 else 27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27176 $as_echo "no" >&6; } 27177 fi 27178 27179 27180 BINARY="$JAVAC_CHECK" 27181 if test "x$JAVAC_CHECK" = x; then 27182 BINARY="$JAVA_CHECK" 27183 fi 27184 if test "x$BINARY" != x; then 27185 # So there is a java(c) binary, it might be part of a JDK. 27186 # Lets find the JDK/JRE directory by following symbolic links. 27187 # Linux/GNU systems often have links from /usr/bin/java to 27188 # /etc/alternatives/java to the real JDK binary. 27189 27190 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27191 # Follow a chain of symbolic links. Use readlink 27192 # where it exists, else fall back to horribly 27193 # complicated shell code. 27194 if test "x$READLINK_TESTED" != yes; then 27195 # On MacOSX there is a readlink tool with a different 27196 # purpose than the GNU readlink tool. Check the found readlink. 27197 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27198 if test "x$ISGNU" = x; then 27199 # A readlink that we do not know how to use. 27200 # Are there other non-GNU readlinks out there? 27201 READLINK_TESTED=yes 27202 READLINK= 27203 fi 27204 fi 27205 27206 if test "x$READLINK" != x; then 27207 BINARY=`$READLINK -f $BINARY` 27208 else 27209 # Save the current directory for restoring afterwards 27210 STARTDIR=$PWD 27211 COUNTER=0 27212 sym_link_dir=`$DIRNAME $BINARY` 27213 sym_link_file=`$BASENAME $BINARY` 27214 cd $sym_link_dir 27215 # Use -P flag to resolve symlinks in directories. 27216 cd `$THEPWDCMD -P` 27217 sym_link_dir=`$THEPWDCMD -P` 27218 # Resolve file symlinks 27219 while test $COUNTER -lt 20; do 27220 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27221 if test "x$ISLINK" == x; then 27222 # This is not a symbolic link! We are done! 27223 break 27224 fi 27225 # Again resolve directory symlinks since the target of the just found 27226 # link could be in a different directory 27227 cd `$DIRNAME $ISLINK` 27228 sym_link_dir=`$THEPWDCMD -P` 27229 sym_link_file=`$BASENAME $ISLINK` 27230 let COUNTER=COUNTER+1 27231 done 27232 cd $STARTDIR 27233 BINARY=$sym_link_dir/$sym_link_file 27234 fi 27235 fi 27236 27237 BOOT_JDK=`dirname "$BINARY"` 27238 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27239 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27240 # Looks like we found ourselves an JDK 27241 BOOT_JDK_FOUND=maybe 27242 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27243 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27244 fi 27245 fi 27246 27247 27248 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27249 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27250 # Do we have a bin/java? 27251 if test ! -x "$BOOT_JDK/bin/java"; then 27252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27254 BOOT_JDK_FOUND=no 27255 else 27256 # Do we have a bin/javac? 27257 if test ! -x "$BOOT_JDK/bin/javac"; then 27258 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27260 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27261 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27262 BOOT_JDK_FOUND=no 27263 else 27264 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27265 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27266 27267 # Extra M4 quote needed to protect [] in grep expression. 27268 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 27269 if test "x$FOUND_CORRECT_VERSION" = x; then 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 27273 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 27274 BOOT_JDK_FOUND=no 27275 else 27276 # We're done! :-) 27277 BOOT_JDK_FOUND=yes 27278 27279 # Only process if variable expands to non-empty 27280 27281 if test "x$BOOT_JDK" != x; then 27282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27283 27284 # Input might be given as Windows format, start by converting to 27285 # unix format. 27286 path="$BOOT_JDK" 27287 new_path=`$CYGPATH -u "$path"` 27288 27289 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27290 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27291 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27292 # "foo.exe" is OK but "foo" is an error. 27293 # 27294 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27295 # It is also a way to make sure we got the proper file name for the real test later on. 27296 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27297 if test "x$test_shortpath" = x; then 27298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27299 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27300 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27301 fi 27302 27303 # Call helper function which possibly converts this using DOS-style short mode. 27304 # If so, the updated path is stored in $new_path. 27305 27306 input_path="$new_path" 27307 # Check if we need to convert this using DOS-style short mode. If the path 27308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27309 # take no chances and rewrite it. 27310 # Note: m4 eats our [], so we need to use [ and ] instead. 27311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27312 if test "x$has_forbidden_chars" != x; then 27313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27317 # Going to short mode and back again did indeed matter. Since short mode is 27318 # case insensitive, let's make it lowercase to improve readability. 27319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27320 # Now convert it back to Unix-style (cygpath) 27321 input_path=`$CYGPATH -u "$shortmode_path"` 27322 new_path="$input_path" 27323 fi 27324 fi 27325 27326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27327 if test "x$test_cygdrive_prefix" = x; then 27328 # As a simple fix, exclude /usr/bin since it's not a real path. 27329 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27331 # a path prefixed by /cygdrive for fixpath to work. 27332 new_path="$CYGWIN_ROOT_PATH$input_path" 27333 fi 27334 fi 27335 27336 27337 if test "x$path" != "x$new_path"; then 27338 BOOT_JDK="$new_path" 27339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27340 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27341 fi 27342 27343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27344 27345 path="$BOOT_JDK" 27346 has_colon=`$ECHO $path | $GREP ^.:` 27347 new_path="$path" 27348 if test "x$has_colon" = x; then 27349 # Not in mixed or Windows style, start by that. 27350 new_path=`cmd //c echo $path` 27351 fi 27352 27353 27354 input_path="$new_path" 27355 # Check if we need to convert this using DOS-style short mode. If the path 27356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27357 # take no chances and rewrite it. 27358 # Note: m4 eats our [], so we need to use [ and ] instead. 27359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27360 if test "x$has_forbidden_chars" != x; then 27361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27362 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27363 fi 27364 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 if test "x$path" != "x$new_path"; then 27376 BOOT_JDK="$new_path" 27377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27379 fi 27380 27381 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27382 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27383 27384 else 27385 # We're on a unix platform. Hooray! :) 27386 path="$BOOT_JDK" 27387 has_space=`$ECHO "$path" | $GREP " "` 27388 if test "x$has_space" != x; then 27389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27390 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27391 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27392 fi 27393 27394 # Use eval to expand a potential ~ 27395 eval path="$path" 27396 if test ! -f "$path" && test ! -d "$path"; then 27397 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27398 fi 27399 27400 if test -d "$path"; then 27401 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27402 else 27403 dir="`$DIRNAME "$path"`" 27404 base="`$BASENAME "$path"`" 27405 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27406 fi 27407 fi 27408 fi 27409 27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27411 $as_echo_n "checking for Boot JDK... " >&6; } 27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27413 $as_echo "$BOOT_JDK" >&6; } 27414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27415 $as_echo_n "checking Boot JDK version... " >&6; } 27416 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27418 $as_echo "$BOOT_JDK_VERSION" >&6; } 27419 fi # end check jdk version 27420 fi # end check javac 27421 fi # end check java 27422 fi # end check boot jdk found 27423 fi 27424 27425 27426 # Test: Is there a JDK installed in default, well-known locations? 27427 27428 if test "x$BOOT_JDK_FOUND" = xno; then 27429 # Now execute the test 27430 27431 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27432 27433 if test "x$BOOT_JDK_FOUND" = xno; then 27434 # Now execute the test 27435 27436 if test "x$ProgramW6432" != x; then 27437 VIRTUAL_DIR="$ProgramW6432/Java" 27438 27439 windows_path="$VIRTUAL_DIR" 27440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27441 unix_path=`$CYGPATH -u "$windows_path"` 27442 VIRTUAL_DIR="$unix_path" 27443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27445 VIRTUAL_DIR="$unix_path" 27446 fi 27447 27448 27449 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27450 BOOT_JDK_SUFFIX="" 27451 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27452 if test "x$ALL_JDKS_FOUND" != x; then 27453 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27454 27455 if test "x$BOOT_JDK_FOUND" = xno; then 27456 # Now execute the test 27457 27458 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27459 if test -d "$BOOT_JDK"; then 27460 BOOT_JDK_FOUND=maybe 27461 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27462 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27463 fi 27464 27465 27466 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27467 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27468 # Do we have a bin/java? 27469 if test ! -x "$BOOT_JDK/bin/java"; then 27470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27472 BOOT_JDK_FOUND=no 27473 else 27474 # Do we have a bin/javac? 27475 if test ! -x "$BOOT_JDK/bin/javac"; then 27476 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27478 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27479 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27480 BOOT_JDK_FOUND=no 27481 else 27482 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27483 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27484 27485 # Extra M4 quote needed to protect [] in grep expression. 27486 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 27487 if test "x$FOUND_CORRECT_VERSION" = x; then 27488 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27490 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 27491 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 27492 BOOT_JDK_FOUND=no 27493 else 27494 # We're done! :-) 27495 BOOT_JDK_FOUND=yes 27496 27497 # Only process if variable expands to non-empty 27498 27499 if test "x$BOOT_JDK" != x; then 27500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27501 27502 # Input might be given as Windows format, start by converting to 27503 # unix format. 27504 path="$BOOT_JDK" 27505 new_path=`$CYGPATH -u "$path"` 27506 27507 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27508 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27509 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27510 # "foo.exe" is OK but "foo" is an error. 27511 # 27512 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27513 # It is also a way to make sure we got the proper file name for the real test later on. 27514 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27515 if test "x$test_shortpath" = x; then 27516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27518 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27519 fi 27520 27521 # Call helper function which possibly converts this using DOS-style short mode. 27522 # If so, the updated path is stored in $new_path. 27523 27524 input_path="$new_path" 27525 # Check if we need to convert this using DOS-style short mode. If the path 27526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27527 # take no chances and rewrite it. 27528 # Note: m4 eats our [], so we need to use [ and ] instead. 27529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27530 if test "x$has_forbidden_chars" != x; then 27531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27535 # Going to short mode and back again did indeed matter. Since short mode is 27536 # case insensitive, let's make it lowercase to improve readability. 27537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27538 # Now convert it back to Unix-style (cygpath) 27539 input_path=`$CYGPATH -u "$shortmode_path"` 27540 new_path="$input_path" 27541 fi 27542 fi 27543 27544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27545 if test "x$test_cygdrive_prefix" = x; then 27546 # As a simple fix, exclude /usr/bin since it's not a real path. 27547 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27549 # a path prefixed by /cygdrive for fixpath to work. 27550 new_path="$CYGWIN_ROOT_PATH$input_path" 27551 fi 27552 fi 27553 27554 27555 if test "x$path" != "x$new_path"; then 27556 BOOT_JDK="$new_path" 27557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27558 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27559 fi 27560 27561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27562 27563 path="$BOOT_JDK" 27564 has_colon=`$ECHO $path | $GREP ^.:` 27565 new_path="$path" 27566 if test "x$has_colon" = x; then 27567 # Not in mixed or Windows style, start by that. 27568 new_path=`cmd //c echo $path` 27569 fi 27570 27571 27572 input_path="$new_path" 27573 # Check if we need to convert this using DOS-style short mode. If the path 27574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27575 # take no chances and rewrite it. 27576 # Note: m4 eats our [], so we need to use [ and ] instead. 27577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27578 if test "x$has_forbidden_chars" != x; then 27579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27580 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27581 fi 27582 27583 27584 windows_path="$new_path" 27585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27586 unix_path=`$CYGPATH -u "$windows_path"` 27587 new_path="$unix_path" 27588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27590 new_path="$unix_path" 27591 fi 27592 27593 if test "x$path" != "x$new_path"; then 27594 BOOT_JDK="$new_path" 27595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27596 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27597 fi 27598 27599 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27600 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27601 27602 else 27603 # We're on a unix platform. Hooray! :) 27604 path="$BOOT_JDK" 27605 has_space=`$ECHO "$path" | $GREP " "` 27606 if test "x$has_space" != x; then 27607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27609 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27610 fi 27611 27612 # Use eval to expand a potential ~ 27613 eval path="$path" 27614 if test ! -f "$path" && test ! -d "$path"; then 27615 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27616 fi 27617 27618 if test -d "$path"; then 27619 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27620 else 27621 dir="`$DIRNAME "$path"`" 27622 base="`$BASENAME "$path"`" 27623 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27624 fi 27625 fi 27626 fi 27627 27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27629 $as_echo_n "checking for Boot JDK... " >&6; } 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27631 $as_echo "$BOOT_JDK" >&6; } 27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27633 $as_echo_n "checking Boot JDK version... " >&6; } 27634 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27636 $as_echo "$BOOT_JDK_VERSION" >&6; } 27637 fi # end check jdk version 27638 fi # end check javac 27639 fi # end check java 27640 fi # end check boot jdk found 27641 fi 27642 27643 done 27644 fi 27645 27646 fi 27647 27648 27649 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27650 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27651 # Do we have a bin/java? 27652 if test ! -x "$BOOT_JDK/bin/java"; then 27653 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27654 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27655 BOOT_JDK_FOUND=no 27656 else 27657 # Do we have a bin/javac? 27658 if test ! -x "$BOOT_JDK/bin/javac"; then 27659 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27660 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27661 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27662 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27663 BOOT_JDK_FOUND=no 27664 else 27665 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27666 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27667 27668 # Extra M4 quote needed to protect [] in grep expression. 27669 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 27670 if test "x$FOUND_CORRECT_VERSION" = x; then 27671 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27673 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 27674 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 27675 BOOT_JDK_FOUND=no 27676 else 27677 # We're done! :-) 27678 BOOT_JDK_FOUND=yes 27679 27680 # Only process if variable expands to non-empty 27681 27682 if test "x$BOOT_JDK" != x; then 27683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27684 27685 # Input might be given as Windows format, start by converting to 27686 # unix format. 27687 path="$BOOT_JDK" 27688 new_path=`$CYGPATH -u "$path"` 27689 27690 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27691 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27692 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27693 # "foo.exe" is OK but "foo" is an error. 27694 # 27695 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27696 # It is also a way to make sure we got the proper file name for the real test later on. 27697 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27698 if test "x$test_shortpath" = x; then 27699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27700 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27701 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27702 fi 27703 27704 # Call helper function which possibly converts this using DOS-style short mode. 27705 # If so, the updated path is stored in $new_path. 27706 27707 input_path="$new_path" 27708 # Check if we need to convert this using DOS-style short mode. If the path 27709 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27710 # take no chances and rewrite it. 27711 # Note: m4 eats our [], so we need to use [ and ] instead. 27712 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27713 if test "x$has_forbidden_chars" != x; then 27714 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27715 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27716 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27717 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27718 # Going to short mode and back again did indeed matter. Since short mode is 27719 # case insensitive, let's make it lowercase to improve readability. 27720 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27721 # Now convert it back to Unix-style (cygpath) 27722 input_path=`$CYGPATH -u "$shortmode_path"` 27723 new_path="$input_path" 27724 fi 27725 fi 27726 27727 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27728 if test "x$test_cygdrive_prefix" = x; then 27729 # As a simple fix, exclude /usr/bin since it's not a real path. 27730 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27731 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27732 # a path prefixed by /cygdrive for fixpath to work. 27733 new_path="$CYGWIN_ROOT_PATH$input_path" 27734 fi 27735 fi 27736 27737 27738 if test "x$path" != "x$new_path"; then 27739 BOOT_JDK="$new_path" 27740 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27741 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27742 fi 27743 27744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27745 27746 path="$BOOT_JDK" 27747 has_colon=`$ECHO $path | $GREP ^.:` 27748 new_path="$path" 27749 if test "x$has_colon" = x; then 27750 # Not in mixed or Windows style, start by that. 27751 new_path=`cmd //c echo $path` 27752 fi 27753 27754 27755 input_path="$new_path" 27756 # Check if we need to convert this using DOS-style short mode. If the path 27757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27758 # take no chances and rewrite it. 27759 # Note: m4 eats our [], so we need to use [ and ] instead. 27760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27761 if test "x$has_forbidden_chars" != x; then 27762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27763 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27764 fi 27765 27766 27767 windows_path="$new_path" 27768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27769 unix_path=`$CYGPATH -u "$windows_path"` 27770 new_path="$unix_path" 27771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27773 new_path="$unix_path" 27774 fi 27775 27776 if test "x$path" != "x$new_path"; then 27777 BOOT_JDK="$new_path" 27778 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27779 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27780 fi 27781 27782 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27783 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27784 27785 else 27786 # We're on a unix platform. Hooray! :) 27787 path="$BOOT_JDK" 27788 has_space=`$ECHO "$path" | $GREP " "` 27789 if test "x$has_space" != x; then 27790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27792 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27793 fi 27794 27795 # Use eval to expand a potential ~ 27796 eval path="$path" 27797 if test ! -f "$path" && test ! -d "$path"; then 27798 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27799 fi 27800 27801 if test -d "$path"; then 27802 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27803 else 27804 dir="`$DIRNAME "$path"`" 27805 base="`$BASENAME "$path"`" 27806 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27807 fi 27808 fi 27809 fi 27810 27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27812 $as_echo_n "checking for Boot JDK... " >&6; } 27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27814 $as_echo "$BOOT_JDK" >&6; } 27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27816 $as_echo_n "checking Boot JDK version... " >&6; } 27817 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27819 $as_echo "$BOOT_JDK_VERSION" >&6; } 27820 fi # end check jdk version 27821 fi # end check javac 27822 fi # end check java 27823 fi # end check boot jdk found 27824 fi 27825 27826 27827 if test "x$BOOT_JDK_FOUND" = xno; then 27828 # Now execute the test 27829 27830 if test "x$PROGRAMW6432" != x; then 27831 VIRTUAL_DIR="$PROGRAMW6432/Java" 27832 27833 windows_path="$VIRTUAL_DIR" 27834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27835 unix_path=`$CYGPATH -u "$windows_path"` 27836 VIRTUAL_DIR="$unix_path" 27837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27839 VIRTUAL_DIR="$unix_path" 27840 fi 27841 27842 27843 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27844 BOOT_JDK_SUFFIX="" 27845 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27846 if test "x$ALL_JDKS_FOUND" != x; then 27847 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27848 27849 if test "x$BOOT_JDK_FOUND" = xno; then 27850 # Now execute the test 27851 27852 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27853 if test -d "$BOOT_JDK"; then 27854 BOOT_JDK_FOUND=maybe 27855 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27856 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27857 fi 27858 27859 27860 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27861 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27862 # Do we have a bin/java? 27863 if test ! -x "$BOOT_JDK/bin/java"; then 27864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27866 BOOT_JDK_FOUND=no 27867 else 27868 # Do we have a bin/javac? 27869 if test ! -x "$BOOT_JDK/bin/javac"; then 27870 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27872 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27873 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27874 BOOT_JDK_FOUND=no 27875 else 27876 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27877 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27878 27879 # Extra M4 quote needed to protect [] in grep expression. 27880 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 27881 if test "x$FOUND_CORRECT_VERSION" = x; then 27882 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27883 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27884 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 27885 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 27886 BOOT_JDK_FOUND=no 27887 else 27888 # We're done! :-) 27889 BOOT_JDK_FOUND=yes 27890 27891 # Only process if variable expands to non-empty 27892 27893 if test "x$BOOT_JDK" != x; then 27894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27895 27896 # Input might be given as Windows format, start by converting to 27897 # unix format. 27898 path="$BOOT_JDK" 27899 new_path=`$CYGPATH -u "$path"` 27900 27901 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27902 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27903 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27904 # "foo.exe" is OK but "foo" is an error. 27905 # 27906 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27907 # It is also a way to make sure we got the proper file name for the real test later on. 27908 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27909 if test "x$test_shortpath" = x; then 27910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27911 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27912 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27913 fi 27914 27915 # Call helper function which possibly converts this using DOS-style short mode. 27916 # If so, the updated path is stored in $new_path. 27917 27918 input_path="$new_path" 27919 # Check if we need to convert this using DOS-style short mode. If the path 27920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27921 # take no chances and rewrite it. 27922 # Note: m4 eats our [], so we need to use [ and ] instead. 27923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27924 if test "x$has_forbidden_chars" != x; then 27925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27926 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27927 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27928 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27929 # Going to short mode and back again did indeed matter. Since short mode is 27930 # case insensitive, let's make it lowercase to improve readability. 27931 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27932 # Now convert it back to Unix-style (cygpath) 27933 input_path=`$CYGPATH -u "$shortmode_path"` 27934 new_path="$input_path" 27935 fi 27936 fi 27937 27938 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27939 if test "x$test_cygdrive_prefix" = x; then 27940 # As a simple fix, exclude /usr/bin since it's not a real path. 27941 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27942 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27943 # a path prefixed by /cygdrive for fixpath to work. 27944 new_path="$CYGWIN_ROOT_PATH$input_path" 27945 fi 27946 fi 27947 27948 27949 if test "x$path" != "x$new_path"; then 27950 BOOT_JDK="$new_path" 27951 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27952 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27953 fi 27954 27955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27956 27957 path="$BOOT_JDK" 27958 has_colon=`$ECHO $path | $GREP ^.:` 27959 new_path="$path" 27960 if test "x$has_colon" = x; then 27961 # Not in mixed or Windows style, start by that. 27962 new_path=`cmd //c echo $path` 27963 fi 27964 27965 27966 input_path="$new_path" 27967 # Check if we need to convert this using DOS-style short mode. If the path 27968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27969 # take no chances and rewrite it. 27970 # Note: m4 eats our [], so we need to use [ and ] instead. 27971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27972 if test "x$has_forbidden_chars" != x; then 27973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27974 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27975 fi 27976 27977 27978 windows_path="$new_path" 27979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27980 unix_path=`$CYGPATH -u "$windows_path"` 27981 new_path="$unix_path" 27982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27984 new_path="$unix_path" 27985 fi 27986 27987 if test "x$path" != "x$new_path"; then 27988 BOOT_JDK="$new_path" 27989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27990 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27991 fi 27992 27993 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27994 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27995 27996 else 27997 # We're on a unix platform. Hooray! :) 27998 path="$BOOT_JDK" 27999 has_space=`$ECHO "$path" | $GREP " "` 28000 if test "x$has_space" != x; then 28001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28002 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28003 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28004 fi 28005 28006 # Use eval to expand a potential ~ 28007 eval path="$path" 28008 if test ! -f "$path" && test ! -d "$path"; then 28009 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28010 fi 28011 28012 if test -d "$path"; then 28013 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28014 else 28015 dir="`$DIRNAME "$path"`" 28016 base="`$BASENAME "$path"`" 28017 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28018 fi 28019 fi 28020 fi 28021 28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28023 $as_echo_n "checking for Boot JDK... " >&6; } 28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28025 $as_echo "$BOOT_JDK" >&6; } 28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28027 $as_echo_n "checking Boot JDK version... " >&6; } 28028 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28030 $as_echo "$BOOT_JDK_VERSION" >&6; } 28031 fi # end check jdk version 28032 fi # end check javac 28033 fi # end check java 28034 fi # end check boot jdk found 28035 fi 28036 28037 done 28038 fi 28039 28040 fi 28041 28042 28043 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28044 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28045 # Do we have a bin/java? 28046 if test ! -x "$BOOT_JDK/bin/java"; then 28047 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28049 BOOT_JDK_FOUND=no 28050 else 28051 # Do we have a bin/javac? 28052 if test ! -x "$BOOT_JDK/bin/javac"; then 28053 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28054 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28055 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28056 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28057 BOOT_JDK_FOUND=no 28058 else 28059 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28060 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28061 28062 # Extra M4 quote needed to protect [] in grep expression. 28063 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 28064 if test "x$FOUND_CORRECT_VERSION" = x; then 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28067 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 28068 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 28069 BOOT_JDK_FOUND=no 28070 else 28071 # We're done! :-) 28072 BOOT_JDK_FOUND=yes 28073 28074 # Only process if variable expands to non-empty 28075 28076 if test "x$BOOT_JDK" != x; then 28077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28078 28079 # Input might be given as Windows format, start by converting to 28080 # unix format. 28081 path="$BOOT_JDK" 28082 new_path=`$CYGPATH -u "$path"` 28083 28084 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28085 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28086 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28087 # "foo.exe" is OK but "foo" is an error. 28088 # 28089 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28090 # It is also a way to make sure we got the proper file name for the real test later on. 28091 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28092 if test "x$test_shortpath" = x; then 28093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28094 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28095 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28096 fi 28097 28098 # Call helper function which possibly converts this using DOS-style short mode. 28099 # If so, the updated path is stored in $new_path. 28100 28101 input_path="$new_path" 28102 # Check if we need to convert this using DOS-style short mode. If the path 28103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28104 # take no chances and rewrite it. 28105 # Note: m4 eats our [], so we need to use [ and ] instead. 28106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28107 if test "x$has_forbidden_chars" != x; then 28108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28109 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28110 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28111 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28112 # Going to short mode and back again did indeed matter. Since short mode is 28113 # case insensitive, let's make it lowercase to improve readability. 28114 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28115 # Now convert it back to Unix-style (cygpath) 28116 input_path=`$CYGPATH -u "$shortmode_path"` 28117 new_path="$input_path" 28118 fi 28119 fi 28120 28121 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28122 if test "x$test_cygdrive_prefix" = x; then 28123 # As a simple fix, exclude /usr/bin since it's not a real path. 28124 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28125 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28126 # a path prefixed by /cygdrive for fixpath to work. 28127 new_path="$CYGWIN_ROOT_PATH$input_path" 28128 fi 28129 fi 28130 28131 28132 if test "x$path" != "x$new_path"; then 28133 BOOT_JDK="$new_path" 28134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28135 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28136 fi 28137 28138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28139 28140 path="$BOOT_JDK" 28141 has_colon=`$ECHO $path | $GREP ^.:` 28142 new_path="$path" 28143 if test "x$has_colon" = x; then 28144 # Not in mixed or Windows style, start by that. 28145 new_path=`cmd //c echo $path` 28146 fi 28147 28148 28149 input_path="$new_path" 28150 # Check if we need to convert this using DOS-style short mode. If the path 28151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28152 # take no chances and rewrite it. 28153 # Note: m4 eats our [], so we need to use [ and ] instead. 28154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28155 if test "x$has_forbidden_chars" != x; then 28156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28157 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28158 fi 28159 28160 28161 windows_path="$new_path" 28162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28163 unix_path=`$CYGPATH -u "$windows_path"` 28164 new_path="$unix_path" 28165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28167 new_path="$unix_path" 28168 fi 28169 28170 if test "x$path" != "x$new_path"; then 28171 BOOT_JDK="$new_path" 28172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28173 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28174 fi 28175 28176 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28177 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28178 28179 else 28180 # We're on a unix platform. Hooray! :) 28181 path="$BOOT_JDK" 28182 has_space=`$ECHO "$path" | $GREP " "` 28183 if test "x$has_space" != x; then 28184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28185 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28186 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28187 fi 28188 28189 # Use eval to expand a potential ~ 28190 eval path="$path" 28191 if test ! -f "$path" && test ! -d "$path"; then 28192 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28193 fi 28194 28195 if test -d "$path"; then 28196 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28197 else 28198 dir="`$DIRNAME "$path"`" 28199 base="`$BASENAME "$path"`" 28200 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28201 fi 28202 fi 28203 fi 28204 28205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28206 $as_echo_n "checking for Boot JDK... " >&6; } 28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28208 $as_echo "$BOOT_JDK" >&6; } 28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28210 $as_echo_n "checking Boot JDK version... " >&6; } 28211 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28213 $as_echo "$BOOT_JDK_VERSION" >&6; } 28214 fi # end check jdk version 28215 fi # end check javac 28216 fi # end check java 28217 fi # end check boot jdk found 28218 fi 28219 28220 28221 if test "x$BOOT_JDK_FOUND" = xno; then 28222 # Now execute the test 28223 28224 if test "x$PROGRAMFILES" != x; then 28225 VIRTUAL_DIR="$PROGRAMFILES/Java" 28226 28227 windows_path="$VIRTUAL_DIR" 28228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28229 unix_path=`$CYGPATH -u "$windows_path"` 28230 VIRTUAL_DIR="$unix_path" 28231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28232 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28233 VIRTUAL_DIR="$unix_path" 28234 fi 28235 28236 28237 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28238 BOOT_JDK_SUFFIX="" 28239 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28240 if test "x$ALL_JDKS_FOUND" != x; then 28241 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28242 28243 if test "x$BOOT_JDK_FOUND" = xno; then 28244 # Now execute the test 28245 28246 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28247 if test -d "$BOOT_JDK"; then 28248 BOOT_JDK_FOUND=maybe 28249 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28250 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28251 fi 28252 28253 28254 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28255 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28256 # Do we have a bin/java? 28257 if test ! -x "$BOOT_JDK/bin/java"; then 28258 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28260 BOOT_JDK_FOUND=no 28261 else 28262 # Do we have a bin/javac? 28263 if test ! -x "$BOOT_JDK/bin/javac"; then 28264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28266 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28267 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28268 BOOT_JDK_FOUND=no 28269 else 28270 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28271 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28272 28273 # Extra M4 quote needed to protect [] in grep expression. 28274 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 28275 if test "x$FOUND_CORRECT_VERSION" = x; then 28276 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28277 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28278 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 28279 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 28280 BOOT_JDK_FOUND=no 28281 else 28282 # We're done! :-) 28283 BOOT_JDK_FOUND=yes 28284 28285 # Only process if variable expands to non-empty 28286 28287 if test "x$BOOT_JDK" != x; then 28288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28289 28290 # Input might be given as Windows format, start by converting to 28291 # unix format. 28292 path="$BOOT_JDK" 28293 new_path=`$CYGPATH -u "$path"` 28294 28295 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28296 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28297 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28298 # "foo.exe" is OK but "foo" is an error. 28299 # 28300 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28301 # It is also a way to make sure we got the proper file name for the real test later on. 28302 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28303 if test "x$test_shortpath" = x; then 28304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28305 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28306 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28307 fi 28308 28309 # Call helper function which possibly converts this using DOS-style short mode. 28310 # If so, the updated path is stored in $new_path. 28311 28312 input_path="$new_path" 28313 # Check if we need to convert this using DOS-style short mode. If the path 28314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28315 # take no chances and rewrite it. 28316 # Note: m4 eats our [], so we need to use [ and ] instead. 28317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28318 if test "x$has_forbidden_chars" != x; then 28319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28320 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28321 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28322 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28323 # Going to short mode and back again did indeed matter. Since short mode is 28324 # case insensitive, let's make it lowercase to improve readability. 28325 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28326 # Now convert it back to Unix-style (cygpath) 28327 input_path=`$CYGPATH -u "$shortmode_path"` 28328 new_path="$input_path" 28329 fi 28330 fi 28331 28332 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28333 if test "x$test_cygdrive_prefix" = x; then 28334 # As a simple fix, exclude /usr/bin since it's not a real path. 28335 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28336 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28337 # a path prefixed by /cygdrive for fixpath to work. 28338 new_path="$CYGWIN_ROOT_PATH$input_path" 28339 fi 28340 fi 28341 28342 28343 if test "x$path" != "x$new_path"; then 28344 BOOT_JDK="$new_path" 28345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28347 fi 28348 28349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28350 28351 path="$BOOT_JDK" 28352 has_colon=`$ECHO $path | $GREP ^.:` 28353 new_path="$path" 28354 if test "x$has_colon" = x; then 28355 # Not in mixed or Windows style, start by that. 28356 new_path=`cmd //c echo $path` 28357 fi 28358 28359 28360 input_path="$new_path" 28361 # Check if we need to convert this using DOS-style short mode. If the path 28362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28363 # take no chances and rewrite it. 28364 # Note: m4 eats our [], so we need to use [ and ] instead. 28365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28366 if test "x$has_forbidden_chars" != x; then 28367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28368 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28369 fi 28370 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 if test "x$path" != "x$new_path"; then 28382 BOOT_JDK="$new_path" 28383 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28385 fi 28386 28387 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28388 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28389 28390 else 28391 # We're on a unix platform. Hooray! :) 28392 path="$BOOT_JDK" 28393 has_space=`$ECHO "$path" | $GREP " "` 28394 if test "x$has_space" != x; then 28395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28397 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28398 fi 28399 28400 # Use eval to expand a potential ~ 28401 eval path="$path" 28402 if test ! -f "$path" && test ! -d "$path"; then 28403 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28404 fi 28405 28406 if test -d "$path"; then 28407 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28408 else 28409 dir="`$DIRNAME "$path"`" 28410 base="`$BASENAME "$path"`" 28411 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28412 fi 28413 fi 28414 fi 28415 28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28417 $as_echo_n "checking for Boot JDK... " >&6; } 28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28419 $as_echo "$BOOT_JDK" >&6; } 28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28421 $as_echo_n "checking Boot JDK version... " >&6; } 28422 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28424 $as_echo "$BOOT_JDK_VERSION" >&6; } 28425 fi # end check jdk version 28426 fi # end check javac 28427 fi # end check java 28428 fi # end check boot jdk found 28429 fi 28430 28431 done 28432 fi 28433 28434 fi 28435 28436 28437 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28438 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28439 # Do we have a bin/java? 28440 if test ! -x "$BOOT_JDK/bin/java"; then 28441 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28443 BOOT_JDK_FOUND=no 28444 else 28445 # Do we have a bin/javac? 28446 if test ! -x "$BOOT_JDK/bin/javac"; then 28447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28449 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28450 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28451 BOOT_JDK_FOUND=no 28452 else 28453 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28455 28456 # Extra M4 quote needed to protect [] in grep expression. 28457 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 28458 if test "x$FOUND_CORRECT_VERSION" = x; then 28459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28461 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 28462 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 28463 BOOT_JDK_FOUND=no 28464 else 28465 # We're done! :-) 28466 BOOT_JDK_FOUND=yes 28467 28468 # Only process if variable expands to non-empty 28469 28470 if test "x$BOOT_JDK" != x; then 28471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28472 28473 # Input might be given as Windows format, start by converting to 28474 # unix format. 28475 path="$BOOT_JDK" 28476 new_path=`$CYGPATH -u "$path"` 28477 28478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28481 # "foo.exe" is OK but "foo" is an error. 28482 # 28483 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28484 # It is also a way to make sure we got the proper file name for the real test later on. 28485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28486 if test "x$test_shortpath" = x; then 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28489 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28490 fi 28491 28492 # Call helper function which possibly converts this using DOS-style short mode. 28493 # If so, the updated path is stored in $new_path. 28494 28495 input_path="$new_path" 28496 # Check if we need to convert this using DOS-style short mode. If the path 28497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28498 # take no chances and rewrite it. 28499 # Note: m4 eats our [], so we need to use [ and ] instead. 28500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28501 if test "x$has_forbidden_chars" != x; then 28502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28506 # Going to short mode and back again did indeed matter. Since short mode is 28507 # case insensitive, let's make it lowercase to improve readability. 28508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28509 # Now convert it back to Unix-style (cygpath) 28510 input_path=`$CYGPATH -u "$shortmode_path"` 28511 new_path="$input_path" 28512 fi 28513 fi 28514 28515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28516 if test "x$test_cygdrive_prefix" = x; then 28517 # As a simple fix, exclude /usr/bin since it's not a real path. 28518 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28520 # a path prefixed by /cygdrive for fixpath to work. 28521 new_path="$CYGWIN_ROOT_PATH$input_path" 28522 fi 28523 fi 28524 28525 28526 if test "x$path" != "x$new_path"; then 28527 BOOT_JDK="$new_path" 28528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28529 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28530 fi 28531 28532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28533 28534 path="$BOOT_JDK" 28535 has_colon=`$ECHO $path | $GREP ^.:` 28536 new_path="$path" 28537 if test "x$has_colon" = x; then 28538 # Not in mixed or Windows style, start by that. 28539 new_path=`cmd //c echo $path` 28540 fi 28541 28542 28543 input_path="$new_path" 28544 # Check if we need to convert this using DOS-style short mode. If the path 28545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28546 # take no chances and rewrite it. 28547 # Note: m4 eats our [], so we need to use [ and ] instead. 28548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28549 if test "x$has_forbidden_chars" != x; then 28550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28552 fi 28553 28554 28555 windows_path="$new_path" 28556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28557 unix_path=`$CYGPATH -u "$windows_path"` 28558 new_path="$unix_path" 28559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28561 new_path="$unix_path" 28562 fi 28563 28564 if test "x$path" != "x$new_path"; then 28565 BOOT_JDK="$new_path" 28566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28567 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28568 fi 28569 28570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28572 28573 else 28574 # We're on a unix platform. Hooray! :) 28575 path="$BOOT_JDK" 28576 has_space=`$ECHO "$path" | $GREP " "` 28577 if test "x$has_space" != x; then 28578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28579 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28580 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28581 fi 28582 28583 # Use eval to expand a potential ~ 28584 eval path="$path" 28585 if test ! -f "$path" && test ! -d "$path"; then 28586 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28587 fi 28588 28589 if test -d "$path"; then 28590 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28591 else 28592 dir="`$DIRNAME "$path"`" 28593 base="`$BASENAME "$path"`" 28594 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28595 fi 28596 fi 28597 fi 28598 28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28600 $as_echo_n "checking for Boot JDK... " >&6; } 28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28602 $as_echo "$BOOT_JDK" >&6; } 28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28604 $as_echo_n "checking Boot JDK version... " >&6; } 28605 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28607 $as_echo "$BOOT_JDK_VERSION" >&6; } 28608 fi # end check jdk version 28609 fi # end check javac 28610 fi # end check java 28611 fi # end check boot jdk found 28612 fi 28613 28614 28615 if test "x$BOOT_JDK_FOUND" = xno; then 28616 # Now execute the test 28617 28618 if test "x$ProgramFiles" != x; then 28619 VIRTUAL_DIR="$ProgramFiles/Java" 28620 28621 windows_path="$VIRTUAL_DIR" 28622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28623 unix_path=`$CYGPATH -u "$windows_path"` 28624 VIRTUAL_DIR="$unix_path" 28625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28627 VIRTUAL_DIR="$unix_path" 28628 fi 28629 28630 28631 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28632 BOOT_JDK_SUFFIX="" 28633 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28634 if test "x$ALL_JDKS_FOUND" != x; then 28635 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28636 28637 if test "x$BOOT_JDK_FOUND" = xno; then 28638 # Now execute the test 28639 28640 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28641 if test -d "$BOOT_JDK"; then 28642 BOOT_JDK_FOUND=maybe 28643 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28644 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28645 fi 28646 28647 28648 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28649 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28650 # Do we have a bin/java? 28651 if test ! -x "$BOOT_JDK/bin/java"; then 28652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28654 BOOT_JDK_FOUND=no 28655 else 28656 # Do we have a bin/javac? 28657 if test ! -x "$BOOT_JDK/bin/javac"; then 28658 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28659 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28660 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28661 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28662 BOOT_JDK_FOUND=no 28663 else 28664 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28665 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28666 28667 # Extra M4 quote needed to protect [] in grep expression. 28668 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 28669 if test "x$FOUND_CORRECT_VERSION" = x; then 28670 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28672 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 28673 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 28674 BOOT_JDK_FOUND=no 28675 else 28676 # We're done! :-) 28677 BOOT_JDK_FOUND=yes 28678 28679 # Only process if variable expands to non-empty 28680 28681 if test "x$BOOT_JDK" != x; then 28682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28683 28684 # Input might be given as Windows format, start by converting to 28685 # unix format. 28686 path="$BOOT_JDK" 28687 new_path=`$CYGPATH -u "$path"` 28688 28689 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28690 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28691 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28692 # "foo.exe" is OK but "foo" is an error. 28693 # 28694 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28695 # It is also a way to make sure we got the proper file name for the real test later on. 28696 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28697 if test "x$test_shortpath" = x; then 28698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28700 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28701 fi 28702 28703 # Call helper function which possibly converts this using DOS-style short mode. 28704 # If so, the updated path is stored in $new_path. 28705 28706 input_path="$new_path" 28707 # Check if we need to convert this using DOS-style short mode. If the path 28708 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28709 # take no chances and rewrite it. 28710 # Note: m4 eats our [], so we need to use [ and ] instead. 28711 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28712 if test "x$has_forbidden_chars" != x; then 28713 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28714 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28715 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28716 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28717 # Going to short mode and back again did indeed matter. Since short mode is 28718 # case insensitive, let's make it lowercase to improve readability. 28719 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28720 # Now convert it back to Unix-style (cygpath) 28721 input_path=`$CYGPATH -u "$shortmode_path"` 28722 new_path="$input_path" 28723 fi 28724 fi 28725 28726 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28727 if test "x$test_cygdrive_prefix" = x; then 28728 # As a simple fix, exclude /usr/bin since it's not a real path. 28729 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28730 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28731 # a path prefixed by /cygdrive for fixpath to work. 28732 new_path="$CYGWIN_ROOT_PATH$input_path" 28733 fi 28734 fi 28735 28736 28737 if test "x$path" != "x$new_path"; then 28738 BOOT_JDK="$new_path" 28739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28740 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28741 fi 28742 28743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28744 28745 path="$BOOT_JDK" 28746 has_colon=`$ECHO $path | $GREP ^.:` 28747 new_path="$path" 28748 if test "x$has_colon" = x; then 28749 # Not in mixed or Windows style, start by that. 28750 new_path=`cmd //c echo $path` 28751 fi 28752 28753 28754 input_path="$new_path" 28755 # Check if we need to convert this using DOS-style short mode. If the path 28756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28757 # take no chances and rewrite it. 28758 # Note: m4 eats our [], so we need to use [ and ] instead. 28759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28760 if test "x$has_forbidden_chars" != x; then 28761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28762 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28763 fi 28764 28765 28766 windows_path="$new_path" 28767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28768 unix_path=`$CYGPATH -u "$windows_path"` 28769 new_path="$unix_path" 28770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28772 new_path="$unix_path" 28773 fi 28774 28775 if test "x$path" != "x$new_path"; then 28776 BOOT_JDK="$new_path" 28777 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28778 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28779 fi 28780 28781 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28782 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28783 28784 else 28785 # We're on a unix platform. Hooray! :) 28786 path="$BOOT_JDK" 28787 has_space=`$ECHO "$path" | $GREP " "` 28788 if test "x$has_space" != x; then 28789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28790 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28791 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28792 fi 28793 28794 # Use eval to expand a potential ~ 28795 eval path="$path" 28796 if test ! -f "$path" && test ! -d "$path"; then 28797 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28798 fi 28799 28800 if test -d "$path"; then 28801 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28802 else 28803 dir="`$DIRNAME "$path"`" 28804 base="`$BASENAME "$path"`" 28805 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28806 fi 28807 fi 28808 fi 28809 28810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28811 $as_echo_n "checking for Boot JDK... " >&6; } 28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28813 $as_echo "$BOOT_JDK" >&6; } 28814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28815 $as_echo_n "checking Boot JDK version... " >&6; } 28816 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28818 $as_echo "$BOOT_JDK_VERSION" >&6; } 28819 fi # end check jdk version 28820 fi # end check javac 28821 fi # end check java 28822 fi # end check boot jdk found 28823 fi 28824 28825 done 28826 fi 28827 28828 fi 28829 28830 28831 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28832 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28833 # Do we have a bin/java? 28834 if test ! -x "$BOOT_JDK/bin/java"; then 28835 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28837 BOOT_JDK_FOUND=no 28838 else 28839 # Do we have a bin/javac? 28840 if test ! -x "$BOOT_JDK/bin/javac"; then 28841 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28843 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28844 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28845 BOOT_JDK_FOUND=no 28846 else 28847 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28848 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28849 28850 # Extra M4 quote needed to protect [] in grep expression. 28851 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 28852 if test "x$FOUND_CORRECT_VERSION" = x; then 28853 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28855 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 28856 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 28857 BOOT_JDK_FOUND=no 28858 else 28859 # We're done! :-) 28860 BOOT_JDK_FOUND=yes 28861 28862 # Only process if variable expands to non-empty 28863 28864 if test "x$BOOT_JDK" != x; then 28865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28866 28867 # Input might be given as Windows format, start by converting to 28868 # unix format. 28869 path="$BOOT_JDK" 28870 new_path=`$CYGPATH -u "$path"` 28871 28872 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28873 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28874 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28875 # "foo.exe" is OK but "foo" is an error. 28876 # 28877 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28878 # It is also a way to make sure we got the proper file name for the real test later on. 28879 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28880 if test "x$test_shortpath" = x; then 28881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28882 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28883 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28884 fi 28885 28886 # Call helper function which possibly converts this using DOS-style short mode. 28887 # If so, the updated path is stored in $new_path. 28888 28889 input_path="$new_path" 28890 # Check if we need to convert this using DOS-style short mode. If the path 28891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28892 # take no chances and rewrite it. 28893 # Note: m4 eats our [], so we need to use [ and ] instead. 28894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28895 if test "x$has_forbidden_chars" != x; then 28896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28897 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28898 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28899 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28900 # Going to short mode and back again did indeed matter. Since short mode is 28901 # case insensitive, let's make it lowercase to improve readability. 28902 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28903 # Now convert it back to Unix-style (cygpath) 28904 input_path=`$CYGPATH -u "$shortmode_path"` 28905 new_path="$input_path" 28906 fi 28907 fi 28908 28909 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28910 if test "x$test_cygdrive_prefix" = x; then 28911 # As a simple fix, exclude /usr/bin since it's not a real path. 28912 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28913 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28914 # a path prefixed by /cygdrive for fixpath to work. 28915 new_path="$CYGWIN_ROOT_PATH$input_path" 28916 fi 28917 fi 28918 28919 28920 if test "x$path" != "x$new_path"; then 28921 BOOT_JDK="$new_path" 28922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28923 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28924 fi 28925 28926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28927 28928 path="$BOOT_JDK" 28929 has_colon=`$ECHO $path | $GREP ^.:` 28930 new_path="$path" 28931 if test "x$has_colon" = x; then 28932 # Not in mixed or Windows style, start by that. 28933 new_path=`cmd //c echo $path` 28934 fi 28935 28936 28937 input_path="$new_path" 28938 # Check if we need to convert this using DOS-style short mode. If the path 28939 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28940 # take no chances and rewrite it. 28941 # Note: m4 eats our [], so we need to use [ and ] instead. 28942 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28943 if test "x$has_forbidden_chars" != x; then 28944 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28945 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28946 fi 28947 28948 28949 windows_path="$new_path" 28950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28951 unix_path=`$CYGPATH -u "$windows_path"` 28952 new_path="$unix_path" 28953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28955 new_path="$unix_path" 28956 fi 28957 28958 if test "x$path" != "x$new_path"; then 28959 BOOT_JDK="$new_path" 28960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28961 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28962 fi 28963 28964 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28965 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28966 28967 else 28968 # We're on a unix platform. Hooray! :) 28969 path="$BOOT_JDK" 28970 has_space=`$ECHO "$path" | $GREP " "` 28971 if test "x$has_space" != x; then 28972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28973 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28974 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28975 fi 28976 28977 # Use eval to expand a potential ~ 28978 eval path="$path" 28979 if test ! -f "$path" && test ! -d "$path"; then 28980 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28981 fi 28982 28983 if test -d "$path"; then 28984 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28985 else 28986 dir="`$DIRNAME "$path"`" 28987 base="`$BASENAME "$path"`" 28988 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28989 fi 28990 fi 28991 fi 28992 28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28994 $as_echo_n "checking for Boot JDK... " >&6; } 28995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28996 $as_echo "$BOOT_JDK" >&6; } 28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28998 $as_echo_n "checking Boot JDK version... " >&6; } 28999 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29001 $as_echo "$BOOT_JDK_VERSION" >&6; } 29002 fi # end check jdk version 29003 fi # end check javac 29004 fi # end check java 29005 fi # end check boot jdk found 29006 fi 29007 29008 29009 if test "x$BOOT_JDK_FOUND" = xno; then 29010 # Now execute the test 29011 29012 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 29013 BOOT_JDK_SUFFIX="" 29014 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29015 if test "x$ALL_JDKS_FOUND" != x; then 29016 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29017 29018 if test "x$BOOT_JDK_FOUND" = xno; then 29019 # Now execute the test 29020 29021 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29022 if test -d "$BOOT_JDK"; then 29023 BOOT_JDK_FOUND=maybe 29024 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29025 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29026 fi 29027 29028 29029 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29030 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29031 # Do we have a bin/java? 29032 if test ! -x "$BOOT_JDK/bin/java"; then 29033 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29034 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29035 BOOT_JDK_FOUND=no 29036 else 29037 # Do we have a bin/javac? 29038 if test ! -x "$BOOT_JDK/bin/javac"; then 29039 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29040 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29041 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29042 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29043 BOOT_JDK_FOUND=no 29044 else 29045 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29046 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29047 29048 # Extra M4 quote needed to protect [] in grep expression. 29049 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 29050 if test "x$FOUND_CORRECT_VERSION" = x; then 29051 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29053 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 29054 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 29055 BOOT_JDK_FOUND=no 29056 else 29057 # We're done! :-) 29058 BOOT_JDK_FOUND=yes 29059 29060 # Only process if variable expands to non-empty 29061 29062 if test "x$BOOT_JDK" != x; then 29063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29064 29065 # Input might be given as Windows format, start by converting to 29066 # unix format. 29067 path="$BOOT_JDK" 29068 new_path=`$CYGPATH -u "$path"` 29069 29070 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29071 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29072 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29073 # "foo.exe" is OK but "foo" is an error. 29074 # 29075 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29076 # It is also a way to make sure we got the proper file name for the real test later on. 29077 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29078 if test "x$test_shortpath" = x; then 29079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29080 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29081 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29082 fi 29083 29084 # Call helper function which possibly converts this using DOS-style short mode. 29085 # If so, the updated path is stored in $new_path. 29086 29087 input_path="$new_path" 29088 # Check if we need to convert this using DOS-style short mode. If the path 29089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29090 # take no chances and rewrite it. 29091 # Note: m4 eats our [], so we need to use [ and ] instead. 29092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29093 if test "x$has_forbidden_chars" != x; then 29094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29095 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29096 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29097 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29098 # Going to short mode and back again did indeed matter. Since short mode is 29099 # case insensitive, let's make it lowercase to improve readability. 29100 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29101 # Now convert it back to Unix-style (cygpath) 29102 input_path=`$CYGPATH -u "$shortmode_path"` 29103 new_path="$input_path" 29104 fi 29105 fi 29106 29107 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29108 if test "x$test_cygdrive_prefix" = x; then 29109 # As a simple fix, exclude /usr/bin since it's not a real path. 29110 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29111 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29112 # a path prefixed by /cygdrive for fixpath to work. 29113 new_path="$CYGWIN_ROOT_PATH$input_path" 29114 fi 29115 fi 29116 29117 29118 if test "x$path" != "x$new_path"; then 29119 BOOT_JDK="$new_path" 29120 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29121 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29122 fi 29123 29124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29125 29126 path="$BOOT_JDK" 29127 has_colon=`$ECHO $path | $GREP ^.:` 29128 new_path="$path" 29129 if test "x$has_colon" = x; then 29130 # Not in mixed or Windows style, start by that. 29131 new_path=`cmd //c echo $path` 29132 fi 29133 29134 29135 input_path="$new_path" 29136 # Check if we need to convert this using DOS-style short mode. If the path 29137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29138 # take no chances and rewrite it. 29139 # Note: m4 eats our [], so we need to use [ and ] instead. 29140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29141 if test "x$has_forbidden_chars" != x; then 29142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29143 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29144 fi 29145 29146 29147 windows_path="$new_path" 29148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29149 unix_path=`$CYGPATH -u "$windows_path"` 29150 new_path="$unix_path" 29151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29153 new_path="$unix_path" 29154 fi 29155 29156 if test "x$path" != "x$new_path"; then 29157 BOOT_JDK="$new_path" 29158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29159 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29160 fi 29161 29162 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29163 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29164 29165 else 29166 # We're on a unix platform. Hooray! :) 29167 path="$BOOT_JDK" 29168 has_space=`$ECHO "$path" | $GREP " "` 29169 if test "x$has_space" != x; then 29170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29171 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29172 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29173 fi 29174 29175 # Use eval to expand a potential ~ 29176 eval path="$path" 29177 if test ! -f "$path" && test ! -d "$path"; then 29178 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29179 fi 29180 29181 if test -d "$path"; then 29182 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29183 else 29184 dir="`$DIRNAME "$path"`" 29185 base="`$BASENAME "$path"`" 29186 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29187 fi 29188 fi 29189 fi 29190 29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29192 $as_echo_n "checking for Boot JDK... " >&6; } 29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29194 $as_echo "$BOOT_JDK" >&6; } 29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29196 $as_echo_n "checking Boot JDK version... " >&6; } 29197 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29199 $as_echo "$BOOT_JDK_VERSION" >&6; } 29200 fi # end check jdk version 29201 fi # end check javac 29202 fi # end check java 29203 fi # end check boot jdk found 29204 fi 29205 29206 done 29207 fi 29208 29209 29210 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29211 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29212 # Do we have a bin/java? 29213 if test ! -x "$BOOT_JDK/bin/java"; then 29214 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29216 BOOT_JDK_FOUND=no 29217 else 29218 # Do we have a bin/javac? 29219 if test ! -x "$BOOT_JDK/bin/javac"; then 29220 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29223 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29224 BOOT_JDK_FOUND=no 29225 else 29226 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29227 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29228 29229 # Extra M4 quote needed to protect [] in grep expression. 29230 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 29231 if test "x$FOUND_CORRECT_VERSION" = x; then 29232 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29234 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 29235 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 29236 BOOT_JDK_FOUND=no 29237 else 29238 # We're done! :-) 29239 BOOT_JDK_FOUND=yes 29240 29241 # Only process if variable expands to non-empty 29242 29243 if test "x$BOOT_JDK" != x; then 29244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29245 29246 # Input might be given as Windows format, start by converting to 29247 # unix format. 29248 path="$BOOT_JDK" 29249 new_path=`$CYGPATH -u "$path"` 29250 29251 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29252 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29253 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29254 # "foo.exe" is OK but "foo" is an error. 29255 # 29256 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29257 # It is also a way to make sure we got the proper file name for the real test later on. 29258 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29259 if test "x$test_shortpath" = x; then 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29261 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29262 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29263 fi 29264 29265 # Call helper function which possibly converts this using DOS-style short mode. 29266 # If so, the updated path is stored in $new_path. 29267 29268 input_path="$new_path" 29269 # Check if we need to convert this using DOS-style short mode. If the path 29270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29271 # take no chances and rewrite it. 29272 # Note: m4 eats our [], so we need to use [ and ] instead. 29273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29274 if test "x$has_forbidden_chars" != x; then 29275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29276 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29277 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29278 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29279 # Going to short mode and back again did indeed matter. Since short mode is 29280 # case insensitive, let's make it lowercase to improve readability. 29281 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29282 # Now convert it back to Unix-style (cygpath) 29283 input_path=`$CYGPATH -u "$shortmode_path"` 29284 new_path="$input_path" 29285 fi 29286 fi 29287 29288 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29289 if test "x$test_cygdrive_prefix" = x; then 29290 # As a simple fix, exclude /usr/bin since it's not a real path. 29291 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29292 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29293 # a path prefixed by /cygdrive for fixpath to work. 29294 new_path="$CYGWIN_ROOT_PATH$input_path" 29295 fi 29296 fi 29297 29298 29299 if test "x$path" != "x$new_path"; then 29300 BOOT_JDK="$new_path" 29301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29302 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29303 fi 29304 29305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29306 29307 path="$BOOT_JDK" 29308 has_colon=`$ECHO $path | $GREP ^.:` 29309 new_path="$path" 29310 if test "x$has_colon" = x; then 29311 # Not in mixed or Windows style, start by that. 29312 new_path=`cmd //c echo $path` 29313 fi 29314 29315 29316 input_path="$new_path" 29317 # Check if we need to convert this using DOS-style short mode. If the path 29318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29319 # take no chances and rewrite it. 29320 # Note: m4 eats our [], so we need to use [ and ] instead. 29321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29322 if test "x$has_forbidden_chars" != x; then 29323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29324 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29325 fi 29326 29327 29328 windows_path="$new_path" 29329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29330 unix_path=`$CYGPATH -u "$windows_path"` 29331 new_path="$unix_path" 29332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29334 new_path="$unix_path" 29335 fi 29336 29337 if test "x$path" != "x$new_path"; then 29338 BOOT_JDK="$new_path" 29339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29340 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29341 fi 29342 29343 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29344 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29345 29346 else 29347 # We're on a unix platform. Hooray! :) 29348 path="$BOOT_JDK" 29349 has_space=`$ECHO "$path" | $GREP " "` 29350 if test "x$has_space" != x; then 29351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29352 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29353 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29354 fi 29355 29356 # Use eval to expand a potential ~ 29357 eval path="$path" 29358 if test ! -f "$path" && test ! -d "$path"; then 29359 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29360 fi 29361 29362 if test -d "$path"; then 29363 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29364 else 29365 dir="`$DIRNAME "$path"`" 29366 base="`$BASENAME "$path"`" 29367 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29368 fi 29369 fi 29370 fi 29371 29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29373 $as_echo_n "checking for Boot JDK... " >&6; } 29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29375 $as_echo "$BOOT_JDK" >&6; } 29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29377 $as_echo_n "checking Boot JDK version... " >&6; } 29378 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29380 $as_echo "$BOOT_JDK_VERSION" >&6; } 29381 fi # end check jdk version 29382 fi # end check javac 29383 fi # end check java 29384 fi # end check boot jdk found 29385 fi 29386 29387 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29388 29389 if test "x$BOOT_JDK_FOUND" = xno; then 29390 # Now execute the test 29391 29392 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29393 BOOT_JDK_SUFFIX="/Contents/Home" 29394 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29395 if test "x$ALL_JDKS_FOUND" != x; then 29396 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29397 29398 if test "x$BOOT_JDK_FOUND" = xno; then 29399 # Now execute the test 29400 29401 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29402 if test -d "$BOOT_JDK"; then 29403 BOOT_JDK_FOUND=maybe 29404 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29405 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29406 fi 29407 29408 29409 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29410 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29411 # Do we have a bin/java? 29412 if test ! -x "$BOOT_JDK/bin/java"; then 29413 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29415 BOOT_JDK_FOUND=no 29416 else 29417 # Do we have a bin/javac? 29418 if test ! -x "$BOOT_JDK/bin/javac"; then 29419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29421 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29422 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29423 BOOT_JDK_FOUND=no 29424 else 29425 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29426 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29427 29428 # Extra M4 quote needed to protect [] in grep expression. 29429 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 29430 if test "x$FOUND_CORRECT_VERSION" = x; then 29431 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 29434 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 29435 BOOT_JDK_FOUND=no 29436 else 29437 # We're done! :-) 29438 BOOT_JDK_FOUND=yes 29439 29440 # Only process if variable expands to non-empty 29441 29442 if test "x$BOOT_JDK" != x; then 29443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29444 29445 # Input might be given as Windows format, start by converting to 29446 # unix format. 29447 path="$BOOT_JDK" 29448 new_path=`$CYGPATH -u "$path"` 29449 29450 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29451 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29452 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29453 # "foo.exe" is OK but "foo" is an error. 29454 # 29455 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29456 # It is also a way to make sure we got the proper file name for the real test later on. 29457 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29458 if test "x$test_shortpath" = x; then 29459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29461 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29462 fi 29463 29464 # Call helper function which possibly converts this using DOS-style short mode. 29465 # If so, the updated path is stored in $new_path. 29466 29467 input_path="$new_path" 29468 # Check if we need to convert this using DOS-style short mode. If the path 29469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29470 # take no chances and rewrite it. 29471 # Note: m4 eats our [], so we need to use [ and ] instead. 29472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29473 if test "x$has_forbidden_chars" != x; then 29474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29478 # Going to short mode and back again did indeed matter. Since short mode is 29479 # case insensitive, let's make it lowercase to improve readability. 29480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29481 # Now convert it back to Unix-style (cygpath) 29482 input_path=`$CYGPATH -u "$shortmode_path"` 29483 new_path="$input_path" 29484 fi 29485 fi 29486 29487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29488 if test "x$test_cygdrive_prefix" = x; then 29489 # As a simple fix, exclude /usr/bin since it's not a real path. 29490 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29492 # a path prefixed by /cygdrive for fixpath to work. 29493 new_path="$CYGWIN_ROOT_PATH$input_path" 29494 fi 29495 fi 29496 29497 29498 if test "x$path" != "x$new_path"; then 29499 BOOT_JDK="$new_path" 29500 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29502 fi 29503 29504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29505 29506 path="$BOOT_JDK" 29507 has_colon=`$ECHO $path | $GREP ^.:` 29508 new_path="$path" 29509 if test "x$has_colon" = x; then 29510 # Not in mixed or Windows style, start by that. 29511 new_path=`cmd //c echo $path` 29512 fi 29513 29514 29515 input_path="$new_path" 29516 # Check if we need to convert this using DOS-style short mode. If the path 29517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29518 # take no chances and rewrite it. 29519 # Note: m4 eats our [], so we need to use [ and ] instead. 29520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29521 if test "x$has_forbidden_chars" != x; then 29522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29523 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29524 fi 29525 29526 29527 windows_path="$new_path" 29528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29529 unix_path=`$CYGPATH -u "$windows_path"` 29530 new_path="$unix_path" 29531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29533 new_path="$unix_path" 29534 fi 29535 29536 if test "x$path" != "x$new_path"; then 29537 BOOT_JDK="$new_path" 29538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29539 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29540 fi 29541 29542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29544 29545 else 29546 # We're on a unix platform. Hooray! :) 29547 path="$BOOT_JDK" 29548 has_space=`$ECHO "$path" | $GREP " "` 29549 if test "x$has_space" != x; then 29550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29552 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29553 fi 29554 29555 # Use eval to expand a potential ~ 29556 eval path="$path" 29557 if test ! -f "$path" && test ! -d "$path"; then 29558 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29559 fi 29560 29561 if test -d "$path"; then 29562 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29563 else 29564 dir="`$DIRNAME "$path"`" 29565 base="`$BASENAME "$path"`" 29566 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29567 fi 29568 fi 29569 fi 29570 29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29572 $as_echo_n "checking for Boot JDK... " >&6; } 29573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29574 $as_echo "$BOOT_JDK" >&6; } 29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29576 $as_echo_n "checking Boot JDK version... " >&6; } 29577 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29579 $as_echo "$BOOT_JDK_VERSION" >&6; } 29580 fi # end check jdk version 29581 fi # end check javac 29582 fi # end check java 29583 fi # end check boot jdk found 29584 fi 29585 29586 done 29587 fi 29588 29589 29590 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29591 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29592 # Do we have a bin/java? 29593 if test ! -x "$BOOT_JDK/bin/java"; then 29594 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29595 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29596 BOOT_JDK_FOUND=no 29597 else 29598 # Do we have a bin/javac? 29599 if test ! -x "$BOOT_JDK/bin/javac"; then 29600 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29602 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29603 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29604 BOOT_JDK_FOUND=no 29605 else 29606 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29607 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29608 29609 # Extra M4 quote needed to protect [] in grep expression. 29610 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 29611 if test "x$FOUND_CORRECT_VERSION" = x; then 29612 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29614 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 29615 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 29616 BOOT_JDK_FOUND=no 29617 else 29618 # We're done! :-) 29619 BOOT_JDK_FOUND=yes 29620 29621 # Only process if variable expands to non-empty 29622 29623 if test "x$BOOT_JDK" != x; then 29624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29625 29626 # Input might be given as Windows format, start by converting to 29627 # unix format. 29628 path="$BOOT_JDK" 29629 new_path=`$CYGPATH -u "$path"` 29630 29631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29634 # "foo.exe" is OK but "foo" is an error. 29635 # 29636 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29637 # It is also a way to make sure we got the proper file name for the real test later on. 29638 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29639 if test "x$test_shortpath" = x; then 29640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29641 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29642 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29643 fi 29644 29645 # Call helper function which possibly converts this using DOS-style short mode. 29646 # If so, the updated path is stored in $new_path. 29647 29648 input_path="$new_path" 29649 # Check if we need to convert this using DOS-style short mode. If the path 29650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29651 # take no chances and rewrite it. 29652 # Note: m4 eats our [], so we need to use [ and ] instead. 29653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29654 if test "x$has_forbidden_chars" != x; then 29655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29656 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29657 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29658 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29659 # Going to short mode and back again did indeed matter. Since short mode is 29660 # case insensitive, let's make it lowercase to improve readability. 29661 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29662 # Now convert it back to Unix-style (cygpath) 29663 input_path=`$CYGPATH -u "$shortmode_path"` 29664 new_path="$input_path" 29665 fi 29666 fi 29667 29668 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29669 if test "x$test_cygdrive_prefix" = x; then 29670 # As a simple fix, exclude /usr/bin since it's not a real path. 29671 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29672 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29673 # a path prefixed by /cygdrive for fixpath to work. 29674 new_path="$CYGWIN_ROOT_PATH$input_path" 29675 fi 29676 fi 29677 29678 29679 if test "x$path" != "x$new_path"; then 29680 BOOT_JDK="$new_path" 29681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29682 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29683 fi 29684 29685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29686 29687 path="$BOOT_JDK" 29688 has_colon=`$ECHO $path | $GREP ^.:` 29689 new_path="$path" 29690 if test "x$has_colon" = x; then 29691 # Not in mixed or Windows style, start by that. 29692 new_path=`cmd //c echo $path` 29693 fi 29694 29695 29696 input_path="$new_path" 29697 # Check if we need to convert this using DOS-style short mode. If the path 29698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29699 # take no chances and rewrite it. 29700 # Note: m4 eats our [], so we need to use [ and ] instead. 29701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29702 if test "x$has_forbidden_chars" != x; then 29703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29704 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29705 fi 29706 29707 29708 windows_path="$new_path" 29709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29710 unix_path=`$CYGPATH -u "$windows_path"` 29711 new_path="$unix_path" 29712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29714 new_path="$unix_path" 29715 fi 29716 29717 if test "x$path" != "x$new_path"; then 29718 BOOT_JDK="$new_path" 29719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29720 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29721 fi 29722 29723 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29724 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29725 29726 else 29727 # We're on a unix platform. Hooray! :) 29728 path="$BOOT_JDK" 29729 has_space=`$ECHO "$path" | $GREP " "` 29730 if test "x$has_space" != x; then 29731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29732 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29733 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29734 fi 29735 29736 # Use eval to expand a potential ~ 29737 eval path="$path" 29738 if test ! -f "$path" && test ! -d "$path"; then 29739 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29740 fi 29741 29742 if test -d "$path"; then 29743 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29744 else 29745 dir="`$DIRNAME "$path"`" 29746 base="`$BASENAME "$path"`" 29747 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29748 fi 29749 fi 29750 fi 29751 29752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29753 $as_echo_n "checking for Boot JDK... " >&6; } 29754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29755 $as_echo "$BOOT_JDK" >&6; } 29756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29757 $as_echo_n "checking Boot JDK version... " >&6; } 29758 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29760 $as_echo "$BOOT_JDK_VERSION" >&6; } 29761 fi # end check jdk version 29762 fi # end check javac 29763 fi # end check java 29764 fi # end check boot jdk found 29765 fi 29766 29767 29768 if test "x$BOOT_JDK_FOUND" = xno; then 29769 # Now execute the test 29770 29771 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29772 BOOT_JDK_SUFFIX="/Contents/Home" 29773 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29774 if test "x$ALL_JDKS_FOUND" != x; then 29775 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29776 29777 if test "x$BOOT_JDK_FOUND" = xno; then 29778 # Now execute the test 29779 29780 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29781 if test -d "$BOOT_JDK"; then 29782 BOOT_JDK_FOUND=maybe 29783 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29784 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29785 fi 29786 29787 29788 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29789 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29790 # Do we have a bin/java? 29791 if test ! -x "$BOOT_JDK/bin/java"; then 29792 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29794 BOOT_JDK_FOUND=no 29795 else 29796 # Do we have a bin/javac? 29797 if test ! -x "$BOOT_JDK/bin/javac"; then 29798 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29800 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29801 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29802 BOOT_JDK_FOUND=no 29803 else 29804 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29805 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29806 29807 # Extra M4 quote needed to protect [] in grep expression. 29808 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 29809 if test "x$FOUND_CORRECT_VERSION" = x; then 29810 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29812 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 29813 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 29814 BOOT_JDK_FOUND=no 29815 else 29816 # We're done! :-) 29817 BOOT_JDK_FOUND=yes 29818 29819 # Only process if variable expands to non-empty 29820 29821 if test "x$BOOT_JDK" != x; then 29822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29823 29824 # Input might be given as Windows format, start by converting to 29825 # unix format. 29826 path="$BOOT_JDK" 29827 new_path=`$CYGPATH -u "$path"` 29828 29829 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29830 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29831 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29832 # "foo.exe" is OK but "foo" is an error. 29833 # 29834 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29835 # It is also a way to make sure we got the proper file name for the real test later on. 29836 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29837 if test "x$test_shortpath" = x; then 29838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29839 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29840 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29841 fi 29842 29843 # Call helper function which possibly converts this using DOS-style short mode. 29844 # If so, the updated path is stored in $new_path. 29845 29846 input_path="$new_path" 29847 # Check if we need to convert this using DOS-style short mode. If the path 29848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29849 # take no chances and rewrite it. 29850 # Note: m4 eats our [], so we need to use [ and ] instead. 29851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29852 if test "x$has_forbidden_chars" != x; then 29853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29857 # Going to short mode and back again did indeed matter. Since short mode is 29858 # case insensitive, let's make it lowercase to improve readability. 29859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29860 # Now convert it back to Unix-style (cygpath) 29861 input_path=`$CYGPATH -u "$shortmode_path"` 29862 new_path="$input_path" 29863 fi 29864 fi 29865 29866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29867 if test "x$test_cygdrive_prefix" = x; then 29868 # As a simple fix, exclude /usr/bin since it's not a real path. 29869 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29871 # a path prefixed by /cygdrive for fixpath to work. 29872 new_path="$CYGWIN_ROOT_PATH$input_path" 29873 fi 29874 fi 29875 29876 29877 if test "x$path" != "x$new_path"; then 29878 BOOT_JDK="$new_path" 29879 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29880 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29881 fi 29882 29883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29884 29885 path="$BOOT_JDK" 29886 has_colon=`$ECHO $path | $GREP ^.:` 29887 new_path="$path" 29888 if test "x$has_colon" = x; then 29889 # Not in mixed or Windows style, start by that. 29890 new_path=`cmd //c echo $path` 29891 fi 29892 29893 29894 input_path="$new_path" 29895 # Check if we need to convert this using DOS-style short mode. If the path 29896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29897 # take no chances and rewrite it. 29898 # Note: m4 eats our [], so we need to use [ and ] instead. 29899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29900 if test "x$has_forbidden_chars" != x; then 29901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29902 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29903 fi 29904 29905 29906 windows_path="$new_path" 29907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29908 unix_path=`$CYGPATH -u "$windows_path"` 29909 new_path="$unix_path" 29910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29912 new_path="$unix_path" 29913 fi 29914 29915 if test "x$path" != "x$new_path"; then 29916 BOOT_JDK="$new_path" 29917 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29918 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29919 fi 29920 29921 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29922 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29923 29924 else 29925 # We're on a unix platform. Hooray! :) 29926 path="$BOOT_JDK" 29927 has_space=`$ECHO "$path" | $GREP " "` 29928 if test "x$has_space" != x; then 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29930 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29931 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29932 fi 29933 29934 # Use eval to expand a potential ~ 29935 eval path="$path" 29936 if test ! -f "$path" && test ! -d "$path"; then 29937 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29938 fi 29939 29940 if test -d "$path"; then 29941 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29942 else 29943 dir="`$DIRNAME "$path"`" 29944 base="`$BASENAME "$path"`" 29945 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29946 fi 29947 fi 29948 fi 29949 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29951 $as_echo_n "checking for Boot JDK... " >&6; } 29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29953 $as_echo "$BOOT_JDK" >&6; } 29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29955 $as_echo_n "checking Boot JDK version... " >&6; } 29956 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29958 $as_echo "$BOOT_JDK_VERSION" >&6; } 29959 fi # end check jdk version 29960 fi # end check javac 29961 fi # end check java 29962 fi # end check boot jdk found 29963 fi 29964 29965 done 29966 fi 29967 29968 29969 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29970 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29971 # Do we have a bin/java? 29972 if test ! -x "$BOOT_JDK/bin/java"; then 29973 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29974 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29975 BOOT_JDK_FOUND=no 29976 else 29977 # Do we have a bin/javac? 29978 if test ! -x "$BOOT_JDK/bin/javac"; then 29979 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29980 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29982 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29983 BOOT_JDK_FOUND=no 29984 else 29985 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29986 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29987 29988 # Extra M4 quote needed to protect [] in grep expression. 29989 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 29990 if test "x$FOUND_CORRECT_VERSION" = x; then 29991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29993 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 29994 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 29995 BOOT_JDK_FOUND=no 29996 else 29997 # We're done! :-) 29998 BOOT_JDK_FOUND=yes 29999 30000 # Only process if variable expands to non-empty 30001 30002 if test "x$BOOT_JDK" != x; then 30003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30004 30005 # Input might be given as Windows format, start by converting to 30006 # unix format. 30007 path="$BOOT_JDK" 30008 new_path=`$CYGPATH -u "$path"` 30009 30010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30013 # "foo.exe" is OK but "foo" is an error. 30014 # 30015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30016 # It is also a way to make sure we got the proper file name for the real test later on. 30017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30018 if test "x$test_shortpath" = x; then 30019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30020 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30021 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30022 fi 30023 30024 # Call helper function which possibly converts this using DOS-style short mode. 30025 # If so, the updated path is stored in $new_path. 30026 30027 input_path="$new_path" 30028 # Check if we need to convert this using DOS-style short mode. If the path 30029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30030 # take no chances and rewrite it. 30031 # Note: m4 eats our [], so we need to use [ and ] instead. 30032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30033 if test "x$has_forbidden_chars" != x; then 30034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30038 # Going to short mode and back again did indeed matter. Since short mode is 30039 # case insensitive, let's make it lowercase to improve readability. 30040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30041 # Now convert it back to Unix-style (cygpath) 30042 input_path=`$CYGPATH -u "$shortmode_path"` 30043 new_path="$input_path" 30044 fi 30045 fi 30046 30047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30048 if test "x$test_cygdrive_prefix" = x; then 30049 # As a simple fix, exclude /usr/bin since it's not a real path. 30050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30052 # a path prefixed by /cygdrive for fixpath to work. 30053 new_path="$CYGWIN_ROOT_PATH$input_path" 30054 fi 30055 fi 30056 30057 30058 if test "x$path" != "x$new_path"; then 30059 BOOT_JDK="$new_path" 30060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30061 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30062 fi 30063 30064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30065 30066 path="$BOOT_JDK" 30067 has_colon=`$ECHO $path | $GREP ^.:` 30068 new_path="$path" 30069 if test "x$has_colon" = x; then 30070 # Not in mixed or Windows style, start by that. 30071 new_path=`cmd //c echo $path` 30072 fi 30073 30074 30075 input_path="$new_path" 30076 # Check if we need to convert this using DOS-style short mode. If the path 30077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30078 # take no chances and rewrite it. 30079 # Note: m4 eats our [], so we need to use [ and ] instead. 30080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30081 if test "x$has_forbidden_chars" != x; then 30082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30084 fi 30085 30086 30087 windows_path="$new_path" 30088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30089 unix_path=`$CYGPATH -u "$windows_path"` 30090 new_path="$unix_path" 30091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30093 new_path="$unix_path" 30094 fi 30095 30096 if test "x$path" != "x$new_path"; then 30097 BOOT_JDK="$new_path" 30098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30099 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30100 fi 30101 30102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30104 30105 else 30106 # We're on a unix platform. Hooray! :) 30107 path="$BOOT_JDK" 30108 has_space=`$ECHO "$path" | $GREP " "` 30109 if test "x$has_space" != x; then 30110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30111 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30112 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30113 fi 30114 30115 # Use eval to expand a potential ~ 30116 eval path="$path" 30117 if test ! -f "$path" && test ! -d "$path"; then 30118 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30119 fi 30120 30121 if test -d "$path"; then 30122 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30123 else 30124 dir="`$DIRNAME "$path"`" 30125 base="`$BASENAME "$path"`" 30126 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30127 fi 30128 fi 30129 fi 30130 30131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30132 $as_echo_n "checking for Boot JDK... " >&6; } 30133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30134 $as_echo "$BOOT_JDK" >&6; } 30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30136 $as_echo_n "checking Boot JDK version... " >&6; } 30137 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30139 $as_echo "$BOOT_JDK_VERSION" >&6; } 30140 fi # end check jdk version 30141 fi # end check javac 30142 fi # end check java 30143 fi # end check boot jdk found 30144 fi 30145 30146 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30147 30148 if test "x$BOOT_JDK_FOUND" = xno; then 30149 # Now execute the test 30150 30151 BOOT_JDK_PREFIX="/usr/lib/jvm" 30152 BOOT_JDK_SUFFIX="" 30153 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30154 if test "x$ALL_JDKS_FOUND" != x; then 30155 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30156 30157 if test "x$BOOT_JDK_FOUND" = xno; then 30158 # Now execute the test 30159 30160 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30161 if test -d "$BOOT_JDK"; then 30162 BOOT_JDK_FOUND=maybe 30163 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30164 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30165 fi 30166 30167 30168 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30169 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30170 # Do we have a bin/java? 30171 if test ! -x "$BOOT_JDK/bin/java"; then 30172 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30173 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30174 BOOT_JDK_FOUND=no 30175 else 30176 # Do we have a bin/javac? 30177 if test ! -x "$BOOT_JDK/bin/javac"; then 30178 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30179 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30180 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30181 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30182 BOOT_JDK_FOUND=no 30183 else 30184 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30185 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30186 30187 # Extra M4 quote needed to protect [] in grep expression. 30188 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 30189 if test "x$FOUND_CORRECT_VERSION" = x; then 30190 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30192 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 30193 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 30194 BOOT_JDK_FOUND=no 30195 else 30196 # We're done! :-) 30197 BOOT_JDK_FOUND=yes 30198 30199 # Only process if variable expands to non-empty 30200 30201 if test "x$BOOT_JDK" != x; then 30202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30203 30204 # Input might be given as Windows format, start by converting to 30205 # unix format. 30206 path="$BOOT_JDK" 30207 new_path=`$CYGPATH -u "$path"` 30208 30209 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30210 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30211 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30212 # "foo.exe" is OK but "foo" is an error. 30213 # 30214 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30215 # It is also a way to make sure we got the proper file name for the real test later on. 30216 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30217 if test "x$test_shortpath" = x; then 30218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30219 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30220 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30221 fi 30222 30223 # Call helper function which possibly converts this using DOS-style short mode. 30224 # If so, the updated path is stored in $new_path. 30225 30226 input_path="$new_path" 30227 # Check if we need to convert this using DOS-style short mode. If the path 30228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30229 # take no chances and rewrite it. 30230 # Note: m4 eats our [], so we need to use [ and ] instead. 30231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30232 if test "x$has_forbidden_chars" != x; then 30233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30234 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30235 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30236 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30237 # Going to short mode and back again did indeed matter. Since short mode is 30238 # case insensitive, let's make it lowercase to improve readability. 30239 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30240 # Now convert it back to Unix-style (cygpath) 30241 input_path=`$CYGPATH -u "$shortmode_path"` 30242 new_path="$input_path" 30243 fi 30244 fi 30245 30246 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30247 if test "x$test_cygdrive_prefix" = x; then 30248 # As a simple fix, exclude /usr/bin since it's not a real path. 30249 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30250 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30251 # a path prefixed by /cygdrive for fixpath to work. 30252 new_path="$CYGWIN_ROOT_PATH$input_path" 30253 fi 30254 fi 30255 30256 30257 if test "x$path" != "x$new_path"; then 30258 BOOT_JDK="$new_path" 30259 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30260 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30261 fi 30262 30263 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30264 30265 path="$BOOT_JDK" 30266 has_colon=`$ECHO $path | $GREP ^.:` 30267 new_path="$path" 30268 if test "x$has_colon" = x; then 30269 # Not in mixed or Windows style, start by that. 30270 new_path=`cmd //c echo $path` 30271 fi 30272 30273 30274 input_path="$new_path" 30275 # Check if we need to convert this using DOS-style short mode. If the path 30276 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30277 # take no chances and rewrite it. 30278 # Note: m4 eats our [], so we need to use [ and ] instead. 30279 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30280 if test "x$has_forbidden_chars" != x; then 30281 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30282 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30283 fi 30284 30285 30286 windows_path="$new_path" 30287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30288 unix_path=`$CYGPATH -u "$windows_path"` 30289 new_path="$unix_path" 30290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30292 new_path="$unix_path" 30293 fi 30294 30295 if test "x$path" != "x$new_path"; then 30296 BOOT_JDK="$new_path" 30297 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30298 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30299 fi 30300 30301 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30302 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30303 30304 else 30305 # We're on a unix platform. Hooray! :) 30306 path="$BOOT_JDK" 30307 has_space=`$ECHO "$path" | $GREP " "` 30308 if test "x$has_space" != x; then 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30310 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30311 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30312 fi 30313 30314 # Use eval to expand a potential ~ 30315 eval path="$path" 30316 if test ! -f "$path" && test ! -d "$path"; then 30317 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30318 fi 30319 30320 if test -d "$path"; then 30321 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30322 else 30323 dir="`$DIRNAME "$path"`" 30324 base="`$BASENAME "$path"`" 30325 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30326 fi 30327 fi 30328 fi 30329 30330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30331 $as_echo_n "checking for Boot JDK... " >&6; } 30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30333 $as_echo "$BOOT_JDK" >&6; } 30334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30335 $as_echo_n "checking Boot JDK version... " >&6; } 30336 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30338 $as_echo "$BOOT_JDK_VERSION" >&6; } 30339 fi # end check jdk version 30340 fi # end check javac 30341 fi # end check java 30342 fi # end check boot jdk found 30343 fi 30344 30345 done 30346 fi 30347 30348 30349 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30350 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30351 # Do we have a bin/java? 30352 if test ! -x "$BOOT_JDK/bin/java"; then 30353 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30354 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30355 BOOT_JDK_FOUND=no 30356 else 30357 # Do we have a bin/javac? 30358 if test ! -x "$BOOT_JDK/bin/javac"; then 30359 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30360 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30361 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30362 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30363 BOOT_JDK_FOUND=no 30364 else 30365 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30366 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30367 30368 # Extra M4 quote needed to protect [] in grep expression. 30369 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 30370 if test "x$FOUND_CORRECT_VERSION" = x; then 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30373 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 30374 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 30375 BOOT_JDK_FOUND=no 30376 else 30377 # We're done! :-) 30378 BOOT_JDK_FOUND=yes 30379 30380 # Only process if variable expands to non-empty 30381 30382 if test "x$BOOT_JDK" != x; then 30383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30384 30385 # Input might be given as Windows format, start by converting to 30386 # unix format. 30387 path="$BOOT_JDK" 30388 new_path=`$CYGPATH -u "$path"` 30389 30390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30393 # "foo.exe" is OK but "foo" is an error. 30394 # 30395 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30396 # It is also a way to make sure we got the proper file name for the real test later on. 30397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30398 if test "x$test_shortpath" = x; then 30399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30400 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30401 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30402 fi 30403 30404 # Call helper function which possibly converts this using DOS-style short mode. 30405 # If so, the updated path is stored in $new_path. 30406 30407 input_path="$new_path" 30408 # Check if we need to convert this using DOS-style short mode. If the path 30409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30410 # take no chances and rewrite it. 30411 # Note: m4 eats our [], so we need to use [ and ] instead. 30412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30413 if test "x$has_forbidden_chars" != x; then 30414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30415 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30416 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30417 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30418 # Going to short mode and back again did indeed matter. Since short mode is 30419 # case insensitive, let's make it lowercase to improve readability. 30420 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30421 # Now convert it back to Unix-style (cygpath) 30422 input_path=`$CYGPATH -u "$shortmode_path"` 30423 new_path="$input_path" 30424 fi 30425 fi 30426 30427 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30428 if test "x$test_cygdrive_prefix" = x; then 30429 # As a simple fix, exclude /usr/bin since it's not a real path. 30430 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30431 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30432 # a path prefixed by /cygdrive for fixpath to work. 30433 new_path="$CYGWIN_ROOT_PATH$input_path" 30434 fi 30435 fi 30436 30437 30438 if test "x$path" != "x$new_path"; then 30439 BOOT_JDK="$new_path" 30440 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30441 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30442 fi 30443 30444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30445 30446 path="$BOOT_JDK" 30447 has_colon=`$ECHO $path | $GREP ^.:` 30448 new_path="$path" 30449 if test "x$has_colon" = x; then 30450 # Not in mixed or Windows style, start by that. 30451 new_path=`cmd //c echo $path` 30452 fi 30453 30454 30455 input_path="$new_path" 30456 # Check if we need to convert this using DOS-style short mode. If the path 30457 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30458 # take no chances and rewrite it. 30459 # Note: m4 eats our [], so we need to use [ and ] instead. 30460 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30461 if test "x$has_forbidden_chars" != x; then 30462 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30463 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30464 fi 30465 30466 30467 windows_path="$new_path" 30468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30469 unix_path=`$CYGPATH -u "$windows_path"` 30470 new_path="$unix_path" 30471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30473 new_path="$unix_path" 30474 fi 30475 30476 if test "x$path" != "x$new_path"; then 30477 BOOT_JDK="$new_path" 30478 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30479 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30480 fi 30481 30482 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30483 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30484 30485 else 30486 # We're on a unix platform. Hooray! :) 30487 path="$BOOT_JDK" 30488 has_space=`$ECHO "$path" | $GREP " "` 30489 if test "x$has_space" != x; then 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30491 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30492 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30493 fi 30494 30495 # Use eval to expand a potential ~ 30496 eval path="$path" 30497 if test ! -f "$path" && test ! -d "$path"; then 30498 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30499 fi 30500 30501 if test -d "$path"; then 30502 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30503 else 30504 dir="`$DIRNAME "$path"`" 30505 base="`$BASENAME "$path"`" 30506 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30507 fi 30508 fi 30509 fi 30510 30511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30512 $as_echo_n "checking for Boot JDK... " >&6; } 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30514 $as_echo "$BOOT_JDK" >&6; } 30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30516 $as_echo_n "checking Boot JDK version... " >&6; } 30517 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30519 $as_echo "$BOOT_JDK_VERSION" >&6; } 30520 fi # end check jdk version 30521 fi # end check javac 30522 fi # end check java 30523 fi # end check boot jdk found 30524 fi 30525 30526 fi 30527 30528 30529 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30530 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30531 # Do we have a bin/java? 30532 if test ! -x "$BOOT_JDK/bin/java"; then 30533 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30535 BOOT_JDK_FOUND=no 30536 else 30537 # Do we have a bin/javac? 30538 if test ! -x "$BOOT_JDK/bin/javac"; then 30539 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30541 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30542 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30543 BOOT_JDK_FOUND=no 30544 else 30545 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30546 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30547 30548 # Extra M4 quote needed to protect [] in grep expression. 30549 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'` 30550 if test "x$FOUND_CORRECT_VERSION" = x; then 30551 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30553 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5 30554 $as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;} 30555 BOOT_JDK_FOUND=no 30556 else 30557 # We're done! :-) 30558 BOOT_JDK_FOUND=yes 30559 30560 # Only process if variable expands to non-empty 30561 30562 if test "x$BOOT_JDK" != x; then 30563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30564 30565 # Input might be given as Windows format, start by converting to 30566 # unix format. 30567 path="$BOOT_JDK" 30568 new_path=`$CYGPATH -u "$path"` 30569 30570 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30571 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30572 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30573 # "foo.exe" is OK but "foo" is an error. 30574 # 30575 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30576 # It is also a way to make sure we got the proper file name for the real test later on. 30577 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30578 if test "x$test_shortpath" = x; then 30579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30580 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30581 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30582 fi 30583 30584 # Call helper function which possibly converts this using DOS-style short mode. 30585 # If so, the updated path is stored in $new_path. 30586 30587 input_path="$new_path" 30588 # Check if we need to convert this using DOS-style short mode. If the path 30589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30590 # take no chances and rewrite it. 30591 # Note: m4 eats our [], so we need to use [ and ] instead. 30592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30593 if test "x$has_forbidden_chars" != x; then 30594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30595 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30596 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30597 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30598 # Going to short mode and back again did indeed matter. Since short mode is 30599 # case insensitive, let's make it lowercase to improve readability. 30600 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30601 # Now convert it back to Unix-style (cygpath) 30602 input_path=`$CYGPATH -u "$shortmode_path"` 30603 new_path="$input_path" 30604 fi 30605 fi 30606 30607 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30608 if test "x$test_cygdrive_prefix" = x; then 30609 # As a simple fix, exclude /usr/bin since it's not a real path. 30610 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30611 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30612 # a path prefixed by /cygdrive for fixpath to work. 30613 new_path="$CYGWIN_ROOT_PATH$input_path" 30614 fi 30615 fi 30616 30617 30618 if test "x$path" != "x$new_path"; then 30619 BOOT_JDK="$new_path" 30620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30621 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30622 fi 30623 30624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30625 30626 path="$BOOT_JDK" 30627 has_colon=`$ECHO $path | $GREP ^.:` 30628 new_path="$path" 30629 if test "x$has_colon" = x; then 30630 # Not in mixed or Windows style, start by that. 30631 new_path=`cmd //c echo $path` 30632 fi 30633 30634 30635 input_path="$new_path" 30636 # Check if we need to convert this using DOS-style short mode. If the path 30637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30638 # take no chances and rewrite it. 30639 # Note: m4 eats our [], so we need to use [ and ] instead. 30640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30641 if test "x$has_forbidden_chars" != x; then 30642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30643 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30644 fi 30645 30646 30647 windows_path="$new_path" 30648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30649 unix_path=`$CYGPATH -u "$windows_path"` 30650 new_path="$unix_path" 30651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30653 new_path="$unix_path" 30654 fi 30655 30656 if test "x$path" != "x$new_path"; then 30657 BOOT_JDK="$new_path" 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30659 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30660 fi 30661 30662 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30663 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30664 30665 else 30666 # We're on a unix platform. Hooray! :) 30667 path="$BOOT_JDK" 30668 has_space=`$ECHO "$path" | $GREP " "` 30669 if test "x$has_space" != x; then 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30671 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30672 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30673 fi 30674 30675 # Use eval to expand a potential ~ 30676 eval path="$path" 30677 if test ! -f "$path" && test ! -d "$path"; then 30678 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30679 fi 30680 30681 if test -d "$path"; then 30682 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30683 else 30684 dir="`$DIRNAME "$path"`" 30685 base="`$BASENAME "$path"`" 30686 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30687 fi 30688 fi 30689 fi 30690 30691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30692 $as_echo_n "checking for Boot JDK... " >&6; } 30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30694 $as_echo "$BOOT_JDK" >&6; } 30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30696 $as_echo_n "checking Boot JDK version... " >&6; } 30697 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30699 $as_echo "$BOOT_JDK_VERSION" >&6; } 30700 fi # end check jdk version 30701 fi # end check javac 30702 fi # end check java 30703 fi # end check boot jdk found 30704 fi 30705 30706 30707 # If we haven't found anything yet, we've truly lost. Give up. 30708 if test "x$BOOT_JDK_FOUND" = xno; then 30709 30710 # Print a helpful message on how to acquire the necessary build dependency. 30711 # openjdk is the help tag: freetype, cups, alsa etc 30712 MISSING_DEPENDENCY=openjdk 30713 30714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30715 cygwin_help $MISSING_DEPENDENCY 30716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30717 msys_help $MISSING_DEPENDENCY 30718 else 30719 PKGHANDLER_COMMAND= 30720 30721 case $PKGHANDLER in 30722 apt-get) 30723 apt_help $MISSING_DEPENDENCY ;; 30724 yum) 30725 yum_help $MISSING_DEPENDENCY ;; 30726 brew) 30727 brew_help $MISSING_DEPENDENCY ;; 30728 port) 30729 port_help $MISSING_DEPENDENCY ;; 30730 pkgutil) 30731 pkgutil_help $MISSING_DEPENDENCY ;; 30732 pkgadd) 30733 pkgadd_help $MISSING_DEPENDENCY ;; 30734 esac 30735 30736 if test "x$PKGHANDLER_COMMAND" != x; then 30737 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30738 fi 30739 fi 30740 30741 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30742 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30743 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30744 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30745 as_fn_error $? "Cannot continue" "$LINENO" 5 30746 fi 30747 30748 30749 30750 # Setup tools from the Boot JDK. 30751 30752 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30753 30754 # Publish this variable in the help. 30755 30756 30757 if [ -z "${JAVA+x}" ]; then 30758 # The variable is not set by user, try to locate tool using the code snippet 30759 30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30761 $as_echo_n "checking for java in Boot JDK... " >&6; } 30762 JAVA=$BOOT_JDK/bin/java 30763 if test ! -x $JAVA; then 30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30765 $as_echo "not found" >&6; } 30766 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30767 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30768 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30769 fi 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30771 $as_echo "ok" >&6; } 30772 30773 30774 else 30775 # The variable is set, but is it from the command line or the environment? 30776 30777 # Try to remove the string !JAVA! from our list. 30778 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30779 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30780 # If it failed, the variable was not from the command line. Ignore it, 30781 # but warn the user (except for BASH, which is always set by the calling BASH). 30782 if test "xJAVA" != xBASH; then 30783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30784 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30785 fi 30786 # Try to locate tool using the code snippet 30787 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30789 $as_echo_n "checking for java in Boot JDK... " >&6; } 30790 JAVA=$BOOT_JDK/bin/java 30791 if test ! -x $JAVA; then 30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30793 $as_echo "not found" >&6; } 30794 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30795 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30796 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30797 fi 30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30799 $as_echo "ok" >&6; } 30800 30801 30802 else 30803 # If it succeeded, then it was overridden by the user. We will use it 30804 # for the tool. 30805 30806 # First remove it from the list of overridden variables, so we can test 30807 # for unknown variables in the end. 30808 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30809 30810 # Check if we try to supply an empty value 30811 if test "x$JAVA" = x; then 30812 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30813 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30815 $as_echo_n "checking for JAVA... " >&6; } 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30817 $as_echo "disabled" >&6; } 30818 else 30819 # Check if the provided tool contains a complete path. 30820 tool_specified="$JAVA" 30821 tool_basename="${tool_specified##*/}" 30822 if test "x$tool_basename" = "x$tool_specified"; then 30823 # A command without a complete path is provided, search $PATH. 30824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30825 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30826 # Extract the first word of "$tool_basename", so it can be a program name with args. 30827 set dummy $tool_basename; ac_word=$2 30828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30829 $as_echo_n "checking for $ac_word... " >&6; } 30830 if ${ac_cv_path_JAVA+:} false; then : 30831 $as_echo_n "(cached) " >&6 30832 else 30833 case $JAVA in 30834 [\\/]* | ?:[\\/]*) 30835 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30836 ;; 30837 *) 30838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30839 for as_dir in $PATH 30840 do 30841 IFS=$as_save_IFS 30842 test -z "$as_dir" && as_dir=. 30843 for ac_exec_ext in '' $ac_executable_extensions; do 30844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30845 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30847 break 2 30848 fi 30849 done 30850 done 30851 IFS=$as_save_IFS 30852 30853 ;; 30854 esac 30855 fi 30856 JAVA=$ac_cv_path_JAVA 30857 if test -n "$JAVA"; then 30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30859 $as_echo "$JAVA" >&6; } 30860 else 30861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30862 $as_echo "no" >&6; } 30863 fi 30864 30865 30866 if test "x$JAVA" = x; then 30867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30868 fi 30869 else 30870 # Otherwise we believe it is a complete path. Use it as it is. 30871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30872 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30874 $as_echo_n "checking for JAVA... " >&6; } 30875 if test ! -x "$tool_specified"; then 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30877 $as_echo "not found" >&6; } 30878 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30879 fi 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30881 $as_echo "$tool_specified" >&6; } 30882 fi 30883 fi 30884 fi 30885 30886 fi 30887 30888 30889 30890 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30891 30892 # Publish this variable in the help. 30893 30894 30895 if [ -z "${JAVAC+x}" ]; then 30896 # The variable is not set by user, try to locate tool using the code snippet 30897 30898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30899 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30900 JAVAC=$BOOT_JDK/bin/javac 30901 if test ! -x $JAVAC; then 30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30903 $as_echo "not found" >&6; } 30904 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30905 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30906 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30907 fi 30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30909 $as_echo "ok" >&6; } 30910 30911 30912 else 30913 # The variable is set, but is it from the command line or the environment? 30914 30915 # Try to remove the string !JAVAC! from our list. 30916 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30917 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30918 # If it failed, the variable was not from the command line. Ignore it, 30919 # but warn the user (except for BASH, which is always set by the calling BASH). 30920 if test "xJAVAC" != xBASH; then 30921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30922 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30923 fi 30924 # Try to locate tool using the code snippet 30925 30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30927 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30928 JAVAC=$BOOT_JDK/bin/javac 30929 if test ! -x $JAVAC; then 30930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30931 $as_echo "not found" >&6; } 30932 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30933 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30934 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30935 fi 30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30937 $as_echo "ok" >&6; } 30938 30939 30940 else 30941 # If it succeeded, then it was overridden by the user. We will use it 30942 # for the tool. 30943 30944 # First remove it from the list of overridden variables, so we can test 30945 # for unknown variables in the end. 30946 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30947 30948 # Check if we try to supply an empty value 30949 if test "x$JAVAC" = x; then 30950 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30951 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30953 $as_echo_n "checking for JAVAC... " >&6; } 30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30955 $as_echo "disabled" >&6; } 30956 else 30957 # Check if the provided tool contains a complete path. 30958 tool_specified="$JAVAC" 30959 tool_basename="${tool_specified##*/}" 30960 if test "x$tool_basename" = "x$tool_specified"; then 30961 # A command without a complete path is provided, search $PATH. 30962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30963 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30964 # Extract the first word of "$tool_basename", so it can be a program name with args. 30965 set dummy $tool_basename; ac_word=$2 30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30967 $as_echo_n "checking for $ac_word... " >&6; } 30968 if ${ac_cv_path_JAVAC+:} false; then : 30969 $as_echo_n "(cached) " >&6 30970 else 30971 case $JAVAC in 30972 [\\/]* | ?:[\\/]*) 30973 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30974 ;; 30975 *) 30976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30977 for as_dir in $PATH 30978 do 30979 IFS=$as_save_IFS 30980 test -z "$as_dir" && as_dir=. 30981 for ac_exec_ext in '' $ac_executable_extensions; do 30982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30983 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30985 break 2 30986 fi 30987 done 30988 done 30989 IFS=$as_save_IFS 30990 30991 ;; 30992 esac 30993 fi 30994 JAVAC=$ac_cv_path_JAVAC 30995 if test -n "$JAVAC"; then 30996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30997 $as_echo "$JAVAC" >&6; } 30998 else 30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31000 $as_echo "no" >&6; } 31001 fi 31002 31003 31004 if test "x$JAVAC" = x; then 31005 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31006 fi 31007 else 31008 # Otherwise we believe it is a complete path. Use it as it is. 31009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 31010 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 31012 $as_echo_n "checking for JAVAC... " >&6; } 31013 if test ! -x "$tool_specified"; then 31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31015 $as_echo "not found" >&6; } 31016 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 31017 fi 31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31019 $as_echo "$tool_specified" >&6; } 31020 fi 31021 fi 31022 fi 31023 31024 fi 31025 31026 31027 31028 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31029 31030 # Publish this variable in the help. 31031 31032 31033 if [ -z "${JAVAH+x}" ]; then 31034 # The variable is not set by user, try to locate tool using the code snippet 31035 31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31037 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31038 JAVAH=$BOOT_JDK/bin/javah 31039 if test ! -x $JAVAH; then 31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31041 $as_echo "not found" >&6; } 31042 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31043 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31044 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31045 fi 31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31047 $as_echo "ok" >&6; } 31048 31049 31050 else 31051 # The variable is set, but is it from the command line or the environment? 31052 31053 # Try to remove the string !JAVAH! from our list. 31054 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 31055 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31056 # If it failed, the variable was not from the command line. Ignore it, 31057 # but warn the user (except for BASH, which is always set by the calling BASH). 31058 if test "xJAVAH" != xBASH; then 31059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 31060 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 31061 fi 31062 # Try to locate tool using the code snippet 31063 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31065 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31066 JAVAH=$BOOT_JDK/bin/javah 31067 if test ! -x $JAVAH; then 31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31069 $as_echo "not found" >&6; } 31070 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31071 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31072 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31073 fi 31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31075 $as_echo "ok" >&6; } 31076 31077 31078 else 31079 # If it succeeded, then it was overridden by the user. We will use it 31080 # for the tool. 31081 31082 # First remove it from the list of overridden variables, so we can test 31083 # for unknown variables in the end. 31084 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31085 31086 # Check if we try to supply an empty value 31087 if test "x$JAVAH" = x; then 31088 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 31089 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 31090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31091 $as_echo_n "checking for JAVAH... " >&6; } 31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31093 $as_echo "disabled" >&6; } 31094 else 31095 # Check if the provided tool contains a complete path. 31096 tool_specified="$JAVAH" 31097 tool_basename="${tool_specified##*/}" 31098 if test "x$tool_basename" = "x$tool_specified"; then 31099 # A command without a complete path is provided, search $PATH. 31100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 31101 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 31102 # Extract the first word of "$tool_basename", so it can be a program name with args. 31103 set dummy $tool_basename; ac_word=$2 31104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31105 $as_echo_n "checking for $ac_word... " >&6; } 31106 if ${ac_cv_path_JAVAH+:} false; then : 31107 $as_echo_n "(cached) " >&6 31108 else 31109 case $JAVAH in 31110 [\\/]* | ?:[\\/]*) 31111 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 31112 ;; 31113 *) 31114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31115 for as_dir in $PATH 31116 do 31117 IFS=$as_save_IFS 31118 test -z "$as_dir" && as_dir=. 31119 for ac_exec_ext in '' $ac_executable_extensions; do 31120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31121 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 31122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31123 break 2 31124 fi 31125 done 31126 done 31127 IFS=$as_save_IFS 31128 31129 ;; 31130 esac 31131 fi 31132 JAVAH=$ac_cv_path_JAVAH 31133 if test -n "$JAVAH"; then 31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 31135 $as_echo "$JAVAH" >&6; } 31136 else 31137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31138 $as_echo "no" >&6; } 31139 fi 31140 31141 31142 if test "x$JAVAH" = x; then 31143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31144 fi 31145 else 31146 # Otherwise we believe it is a complete path. Use it as it is. 31147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 31148 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 31149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31150 $as_echo_n "checking for JAVAH... " >&6; } 31151 if test ! -x "$tool_specified"; then 31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31153 $as_echo "not found" >&6; } 31154 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 31155 fi 31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31157 $as_echo "$tool_specified" >&6; } 31158 fi 31159 fi 31160 fi 31161 31162 fi 31163 31164 31165 31166 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31167 31168 # Publish this variable in the help. 31169 31170 31171 if [ -z "${JAR+x}" ]; then 31172 # The variable is not set by user, try to locate tool using the code snippet 31173 31174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31175 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31176 JAR=$BOOT_JDK/bin/jar 31177 if test ! -x $JAR; then 31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31179 $as_echo "not found" >&6; } 31180 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31181 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31182 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31183 fi 31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31185 $as_echo "ok" >&6; } 31186 31187 31188 else 31189 # The variable is set, but is it from the command line or the environment? 31190 31191 # Try to remove the string !JAR! from our list. 31192 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31193 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31194 # If it failed, the variable was not from the command line. Ignore it, 31195 # but warn the user (except for BASH, which is always set by the calling BASH). 31196 if test "xJAR" != xBASH; then 31197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31198 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31199 fi 31200 # Try to locate tool using the code snippet 31201 31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31203 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31204 JAR=$BOOT_JDK/bin/jar 31205 if test ! -x $JAR; then 31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31207 $as_echo "not found" >&6; } 31208 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31209 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31210 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31211 fi 31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31213 $as_echo "ok" >&6; } 31214 31215 31216 else 31217 # If it succeeded, then it was overridden by the user. We will use it 31218 # for the tool. 31219 31220 # First remove it from the list of overridden variables, so we can test 31221 # for unknown variables in the end. 31222 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31223 31224 # Check if we try to supply an empty value 31225 if test "x$JAR" = x; then 31226 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31227 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31229 $as_echo_n "checking for JAR... " >&6; } 31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31231 $as_echo "disabled" >&6; } 31232 else 31233 # Check if the provided tool contains a complete path. 31234 tool_specified="$JAR" 31235 tool_basename="${tool_specified##*/}" 31236 if test "x$tool_basename" = "x$tool_specified"; then 31237 # A command without a complete path is provided, search $PATH. 31238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31239 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31240 # Extract the first word of "$tool_basename", so it can be a program name with args. 31241 set dummy $tool_basename; ac_word=$2 31242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31243 $as_echo_n "checking for $ac_word... " >&6; } 31244 if ${ac_cv_path_JAR+:} false; then : 31245 $as_echo_n "(cached) " >&6 31246 else 31247 case $JAR in 31248 [\\/]* | ?:[\\/]*) 31249 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31250 ;; 31251 *) 31252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31253 for as_dir in $PATH 31254 do 31255 IFS=$as_save_IFS 31256 test -z "$as_dir" && as_dir=. 31257 for ac_exec_ext in '' $ac_executable_extensions; do 31258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31259 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31261 break 2 31262 fi 31263 done 31264 done 31265 IFS=$as_save_IFS 31266 31267 ;; 31268 esac 31269 fi 31270 JAR=$ac_cv_path_JAR 31271 if test -n "$JAR"; then 31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31273 $as_echo "$JAR" >&6; } 31274 else 31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31276 $as_echo "no" >&6; } 31277 fi 31278 31279 31280 if test "x$JAR" = x; then 31281 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31282 fi 31283 else 31284 # Otherwise we believe it is a complete path. Use it as it is. 31285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31286 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31288 $as_echo_n "checking for JAR... " >&6; } 31289 if test ! -x "$tool_specified"; then 31290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31291 $as_echo "not found" >&6; } 31292 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31293 fi 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31295 $as_echo "$tool_specified" >&6; } 31296 fi 31297 fi 31298 fi 31299 31300 fi 31301 31302 31303 31304 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31305 31306 # Publish this variable in the help. 31307 31308 31309 if [ -z "${JARSIGNER+x}" ]; then 31310 # The variable is not set by user, try to locate tool using the code snippet 31311 31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31313 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31314 JARSIGNER=$BOOT_JDK/bin/jarsigner 31315 if test ! -x $JARSIGNER; then 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31317 $as_echo "not found" >&6; } 31318 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31319 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31320 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31321 fi 31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31323 $as_echo "ok" >&6; } 31324 31325 31326 else 31327 # The variable is set, but is it from the command line or the environment? 31328 31329 # Try to remove the string !JARSIGNER! from our list. 31330 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31331 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31332 # If it failed, the variable was not from the command line. Ignore it, 31333 # but warn the user (except for BASH, which is always set by the calling BASH). 31334 if test "xJARSIGNER" != xBASH; then 31335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31336 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31337 fi 31338 # Try to locate tool using the code snippet 31339 31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31341 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31342 JARSIGNER=$BOOT_JDK/bin/jarsigner 31343 if test ! -x $JARSIGNER; then 31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31345 $as_echo "not found" >&6; } 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31347 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31348 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31349 fi 31350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31351 $as_echo "ok" >&6; } 31352 31353 31354 else 31355 # If it succeeded, then it was overridden by the user. We will use it 31356 # for the tool. 31357 31358 # First remove it from the list of overridden variables, so we can test 31359 # for unknown variables in the end. 31360 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31361 31362 # Check if we try to supply an empty value 31363 if test "x$JARSIGNER" = x; then 31364 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31365 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31367 $as_echo_n "checking for JARSIGNER... " >&6; } 31368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31369 $as_echo "disabled" >&6; } 31370 else 31371 # Check if the provided tool contains a complete path. 31372 tool_specified="$JARSIGNER" 31373 tool_basename="${tool_specified##*/}" 31374 if test "x$tool_basename" = "x$tool_specified"; then 31375 # A command without a complete path is provided, search $PATH. 31376 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31377 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31378 # Extract the first word of "$tool_basename", so it can be a program name with args. 31379 set dummy $tool_basename; ac_word=$2 31380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31381 $as_echo_n "checking for $ac_word... " >&6; } 31382 if ${ac_cv_path_JARSIGNER+:} false; then : 31383 $as_echo_n "(cached) " >&6 31384 else 31385 case $JARSIGNER in 31386 [\\/]* | ?:[\\/]*) 31387 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31388 ;; 31389 *) 31390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31391 for as_dir in $PATH 31392 do 31393 IFS=$as_save_IFS 31394 test -z "$as_dir" && as_dir=. 31395 for ac_exec_ext in '' $ac_executable_extensions; do 31396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31397 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31399 break 2 31400 fi 31401 done 31402 done 31403 IFS=$as_save_IFS 31404 31405 ;; 31406 esac 31407 fi 31408 JARSIGNER=$ac_cv_path_JARSIGNER 31409 if test -n "$JARSIGNER"; then 31410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31411 $as_echo "$JARSIGNER" >&6; } 31412 else 31413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31414 $as_echo "no" >&6; } 31415 fi 31416 31417 31418 if test "x$JARSIGNER" = x; then 31419 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31420 fi 31421 else 31422 # Otherwise we believe it is a complete path. Use it as it is. 31423 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31424 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31426 $as_echo_n "checking for JARSIGNER... " >&6; } 31427 if test ! -x "$tool_specified"; then 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31429 $as_echo "not found" >&6; } 31430 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31431 fi 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31433 $as_echo "$tool_specified" >&6; } 31434 fi 31435 fi 31436 fi 31437 31438 fi 31439 31440 31441 31442 # Finally, set some other options... 31443 31444 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 31445 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 31446 31447 31448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 31449 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 31450 if "$JAVA" --list-modules > /dev/null 2>&1; then 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31452 $as_echo "yes" >&6; } 31453 BOOT_JDK_MODULAR="true" 31454 else 31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31456 $as_echo "no" >&6; } 31457 BOOT_JDK_MODULAR="false" 31458 fi 31459 31460 31461 31462 31463 # Check if the boot jdk is 32 or 64 bit 31464 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31465 BOOT_JDK_BITS="64" 31466 else 31467 BOOT_JDK_BITS="32" 31468 fi 31469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31470 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31472 $as_echo "$BOOT_JDK_BITS" >&6; } 31473 31474 # Try to enable CDS 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Boot JDK Class Data Sharing (CDS)" >&5 31476 $as_echo_n "checking for local Boot JDK Class Data Sharing (CDS)... " >&6; } 31477 BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa 31478 31479 $ECHO "Check if jvm arg is ok: -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" >&5 31480 $ECHO "Command: $JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version" >&5 31481 OUTPUT=`$JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version 2>&1` 31482 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 31483 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 31484 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 31485 boot_jdk_cds_args="$boot_jdk_cds_args -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" 31486 JVM_ARG_OK=true 31487 else 31488 $ECHO "Arg failed:" >&5 31489 $ECHO "$OUTPUT" >&5 31490 JVM_ARG_OK=false 31491 fi 31492 31493 31494 if test "x$boot_jdk_cds_args" != x; then 31495 # Try creating a CDS archive 31496 "$JAVA" $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1 31497 if test $? -eq 0; then 31498 BOOTJDK_USE_LOCAL_CDS=true 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, created" >&5 31500 $as_echo "yes, created" >&6; } 31501 else 31502 # Generation failed, don't use CDS. 31503 BOOTJDK_USE_LOCAL_CDS=false 31504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, creation failed" >&5 31505 $as_echo "no, creation failed" >&6; } 31506 fi 31507 else 31508 BOOTJDK_USE_LOCAL_CDS=false 31509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, -XX:SharedArchiveFile not supported" >&5 31510 $as_echo "no, -XX:SharedArchiveFile not supported" >&6; } 31511 fi 31512 31513 31514 31515 # Check whether --with-build-jdk was given. 31516 if test "${with_build_jdk+set}" = set; then : 31517 withval=$with_build_jdk; 31518 fi 31519 31520 31521 CREATE_BUILDJDK=false 31522 EXTERNAL_BUILDJDK=false 31523 BUILD_JDK_FOUND="no" 31524 if test "x$with_build_jdk" != "x"; then 31525 31526 if test "x$BUILD_JDK_FOUND" = xno; then 31527 # Execute the test 31528 31529 if test "x$with_build_jdk" != x; then 31530 BUILD_JDK=$with_build_jdk 31531 BUILD_JDK_FOUND=maybe 31532 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31533 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31534 fi 31535 31536 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31537 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31538 # Do we have a bin/java? 31539 if test ! -x "$BUILD_JDK/bin/java"; then 31540 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31541 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31542 BUILD_JDK_FOUND=no 31543 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31544 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31545 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31546 BUILD_JDK_FOUND=no 31547 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31548 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31549 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31550 BUILD_JDK_FOUND=no 31551 elif test ! -x "$BUILD_JDK/bin/javac"; then 31552 # Do we have a bin/javac? 31553 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31554 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31555 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31556 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31557 BUILD_JDK_FOUND=no 31558 else 31559 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31560 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31561 31562 # Extra M4 quote needed to protect [] in grep expression. 31563 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"'` 31564 if test "x$FOUND_CORRECT_VERSION" = x; then 31565 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31566 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31567 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 10)" >&5 31568 $as_echo "$as_me: (Your Build JDK must be version 10)" >&6;} 31569 BUILD_JDK_FOUND=no 31570 else 31571 # We're done! 31572 BUILD_JDK_FOUND=yes 31573 31574 # Only process if variable expands to non-empty 31575 31576 if test "x$BUILD_JDK" != x; then 31577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31578 31579 # Input might be given as Windows format, start by converting to 31580 # unix format. 31581 path="$BUILD_JDK" 31582 new_path=`$CYGPATH -u "$path"` 31583 31584 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31585 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31586 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31587 # "foo.exe" is OK but "foo" is an error. 31588 # 31589 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31590 # It is also a way to make sure we got the proper file name for the real test later on. 31591 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31592 if test "x$test_shortpath" = x; then 31593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31594 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31595 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31596 fi 31597 31598 # Call helper function which possibly converts this using DOS-style short mode. 31599 # If so, the updated path is stored in $new_path. 31600 31601 input_path="$new_path" 31602 # Check if we need to convert this using DOS-style short mode. If the path 31603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31604 # take no chances and rewrite it. 31605 # Note: m4 eats our [], so we need to use [ and ] instead. 31606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31607 if test "x$has_forbidden_chars" != x; then 31608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31609 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31610 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31611 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31612 # Going to short mode and back again did indeed matter. Since short mode is 31613 # case insensitive, let's make it lowercase to improve readability. 31614 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31615 # Now convert it back to Unix-style (cygpath) 31616 input_path=`$CYGPATH -u "$shortmode_path"` 31617 new_path="$input_path" 31618 fi 31619 fi 31620 31621 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31622 if test "x$test_cygdrive_prefix" = x; then 31623 # As a simple fix, exclude /usr/bin since it's not a real path. 31624 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31625 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31626 # a path prefixed by /cygdrive for fixpath to work. 31627 new_path="$CYGWIN_ROOT_PATH$input_path" 31628 fi 31629 fi 31630 31631 31632 if test "x$path" != "x$new_path"; then 31633 BUILD_JDK="$new_path" 31634 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31635 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31636 fi 31637 31638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31639 31640 path="$BUILD_JDK" 31641 has_colon=`$ECHO $path | $GREP ^.:` 31642 new_path="$path" 31643 if test "x$has_colon" = x; then 31644 # Not in mixed or Windows style, start by that. 31645 new_path=`cmd //c echo $path` 31646 fi 31647 31648 31649 input_path="$new_path" 31650 # Check if we need to convert this using DOS-style short mode. If the path 31651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31652 # take no chances and rewrite it. 31653 # Note: m4 eats our [], so we need to use [ and ] instead. 31654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31655 if test "x$has_forbidden_chars" != x; then 31656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31657 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31658 fi 31659 31660 31661 windows_path="$new_path" 31662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31663 unix_path=`$CYGPATH -u "$windows_path"` 31664 new_path="$unix_path" 31665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31667 new_path="$unix_path" 31668 fi 31669 31670 if test "x$path" != "x$new_path"; then 31671 BUILD_JDK="$new_path" 31672 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31673 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31674 fi 31675 31676 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31677 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31678 31679 else 31680 # We're on a unix platform. Hooray! :) 31681 path="$BUILD_JDK" 31682 has_space=`$ECHO "$path" | $GREP " "` 31683 if test "x$has_space" != x; then 31684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31685 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31686 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31687 fi 31688 31689 # Use eval to expand a potential ~ 31690 eval path="$path" 31691 if test ! -f "$path" && test ! -d "$path"; then 31692 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31693 fi 31694 31695 if test -d "$path"; then 31696 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31697 else 31698 dir="`$DIRNAME "$path"`" 31699 base="`$BASENAME "$path"`" 31700 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31701 fi 31702 fi 31703 fi 31704 31705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31706 $as_echo_n "checking for Build JDK... " >&6; } 31707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31708 $as_echo "$BUILD_JDK" >&6; } 31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31710 $as_echo_n "checking Build JDK version... " >&6; } 31711 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31713 $as_echo "$BUILD_JDK_VERSION" >&6; } 31714 fi # end check jdk version 31715 fi # end check java 31716 fi # end check build jdk found 31717 fi 31718 31719 EXTERNAL_BUILDJDK=true 31720 else 31721 if test "x$COMPILE_TYPE" = "xcross"; then 31722 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31723 BUILD_JDK_FOUND=yes 31724 CREATE_BUILDJDK=true 31725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31726 $as_echo_n "checking for Build JDK... " >&6; } 31727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31728 $as_echo "yes, will build it for the host platform" >&6; } 31729 else 31730 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31731 BUILD_JDK_FOUND=yes 31732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31733 $as_echo_n "checking for Build JDK... " >&6; } 31734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31735 $as_echo "yes, will use output dir" >&6; } 31736 fi 31737 fi 31738 31739 JMOD="$BUILD_JDK/bin/jmod" 31740 JLINK="$BUILD_JDK/bin/jlink" 31741 31742 31743 31744 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31746 $as_echo_n "checking for Build JDK... " >&6; } 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31748 $as_echo "no" >&6; } 31749 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31750 fi 31751 31752 31753 31754 31755 31756 31757 ############################################################################### 31758 # 31759 # Configure the sources to use. We can add or override individual directories. 31760 # 31761 ############################################################################### 31762 31763 31764 OUTPUTDIR="$OUTPUTDIR" 31765 31766 JDK_OUTPUTDIR="$OUTPUTDIR/jdk" 31767 31768 # Where are the sources. 31769 31770 31771 31772 31773 # Check whether --with-import-modules was given. 31774 if test "${with_import_modules+set}" = set; then : 31775 withval=$with_import_modules; 31776 fi 31777 31778 31779 if test "x$with_import_modules" != x \ 31780 && test "x$with_import_modules" != "xno"; then 31781 if test -d "$with_import_modules"; then 31782 IMPORT_MODULES_TOPDIR="$with_import_modules" 31783 31784 # Only process if variable expands to non-empty 31785 31786 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31788 31789 # Input might be given as Windows format, start by converting to 31790 # unix format. 31791 path="$IMPORT_MODULES_TOPDIR" 31792 new_path=`$CYGPATH -u "$path"` 31793 31794 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31795 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31796 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31797 # "foo.exe" is OK but "foo" is an error. 31798 # 31799 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31800 # It is also a way to make sure we got the proper file name for the real test later on. 31801 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31802 if test "x$test_shortpath" = x; then 31803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31804 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31805 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31806 fi 31807 31808 # Call helper function which possibly converts this using DOS-style short mode. 31809 # If so, the updated path is stored in $new_path. 31810 31811 input_path="$new_path" 31812 # Check if we need to convert this using DOS-style short mode. If the path 31813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31814 # take no chances and rewrite it. 31815 # Note: m4 eats our [], so we need to use [ and ] instead. 31816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31817 if test "x$has_forbidden_chars" != x; then 31818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31819 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31820 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31821 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31822 # Going to short mode and back again did indeed matter. Since short mode is 31823 # case insensitive, let's make it lowercase to improve readability. 31824 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31825 # Now convert it back to Unix-style (cygpath) 31826 input_path=`$CYGPATH -u "$shortmode_path"` 31827 new_path="$input_path" 31828 fi 31829 fi 31830 31831 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31832 if test "x$test_cygdrive_prefix" = x; then 31833 # As a simple fix, exclude /usr/bin since it's not a real path. 31834 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31835 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31836 # a path prefixed by /cygdrive for fixpath to work. 31837 new_path="$CYGWIN_ROOT_PATH$input_path" 31838 fi 31839 fi 31840 31841 31842 if test "x$path" != "x$new_path"; then 31843 IMPORT_MODULES_TOPDIR="$new_path" 31844 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31845 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31846 fi 31847 31848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31849 31850 path="$IMPORT_MODULES_TOPDIR" 31851 has_colon=`$ECHO $path | $GREP ^.:` 31852 new_path="$path" 31853 if test "x$has_colon" = x; then 31854 # Not in mixed or Windows style, start by that. 31855 new_path=`cmd //c echo $path` 31856 fi 31857 31858 31859 input_path="$new_path" 31860 # Check if we need to convert this using DOS-style short mode. If the path 31861 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31862 # take no chances and rewrite it. 31863 # Note: m4 eats our [], so we need to use [ and ] instead. 31864 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31865 if test "x$has_forbidden_chars" != x; then 31866 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31867 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31868 fi 31869 31870 31871 windows_path="$new_path" 31872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31873 unix_path=`$CYGPATH -u "$windows_path"` 31874 new_path="$unix_path" 31875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31877 new_path="$unix_path" 31878 fi 31879 31880 if test "x$path" != "x$new_path"; then 31881 IMPORT_MODULES_TOPDIR="$new_path" 31882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31883 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31884 fi 31885 31886 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31887 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31888 31889 else 31890 # We're on a unix platform. Hooray! :) 31891 path="$IMPORT_MODULES_TOPDIR" 31892 has_space=`$ECHO "$path" | $GREP " "` 31893 if test "x$has_space" != x; then 31894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31895 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31896 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31897 fi 31898 31899 # Use eval to expand a potential ~ 31900 eval path="$path" 31901 if test ! -f "$path" && test ! -d "$path"; then 31902 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31903 fi 31904 31905 if test -d "$path"; then 31906 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31907 else 31908 dir="`$DIRNAME "$path"`" 31909 base="`$BASENAME "$path"`" 31910 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31911 fi 31912 fi 31913 fi 31914 31915 elif test -e "$with_import_modules"; then 31916 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31917 $RM -rf "$IMPORT_MODULES_TOPDIR" 31918 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31919 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31920 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31921 fi 31922 else 31923 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31924 fi 31925 fi 31926 31927 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31928 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31929 fi 31930 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31931 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31932 fi 31933 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31934 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31935 fi 31936 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31937 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31938 fi 31939 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31940 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31941 fi 31942 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31943 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31944 fi 31945 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31946 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31947 fi 31948 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31949 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31950 fi 31951 31952 31953 31954 31955 31956 31957 31958 31959 31960 31961 31962 ############################################################################### 31963 # 31964 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31965 # native code. 31966 # 31967 ############################################################################### 31968 31969 # See if we are doing a complete static build or not 31970 31971 # Check whether --enable-static-build was given. 31972 if test "${enable_static_build+set}" = set; then : 31973 enableval=$enable_static_build; 31974 fi 31975 31976 STATIC_BUILD=false 31977 if test "x$enable_static_build" = "xyes"; then 31978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31979 $as_echo_n "checking if static build is enabled... " >&6; } 31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31981 $as_echo "yes" >&6; } 31982 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31983 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31984 fi 31985 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31986 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31987 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31988 STATIC_BUILD=true 31989 elif test "x$enable_static_build" = "xno"; then 31990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31991 $as_echo_n "checking if static build is enabled... " >&6; } 31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31993 $as_echo "no" >&6; } 31994 elif test "x$enable_static_build" != "x"; then 31995 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31996 fi 31997 31998 31999 32000 32001 # First determine the toolchain type (compiler family) 32002 32003 32004 # Check whether --with-toolchain-type was given. 32005 if test "${with_toolchain_type+set}" = set; then : 32006 withval=$with_toolchain_type; 32007 fi 32008 32009 32010 # Use indirect variable referencing 32011 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 32012 VALID_TOOLCHAINS=${!toolchain_var_name} 32013 32014 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32015 if test -n "$XCODEBUILD"; then 32016 # On Mac OS X, default toolchain to clang after Xcode 5 32017 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 32018 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 32019 if test $? -ne 0; then 32020 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 32021 fi 32022 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 32023 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 32024 $CUT -f 1 -d .` 32025 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 32026 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 32027 if test $XCODE_MAJOR_VERSION -ge 5; then 32028 DEFAULT_TOOLCHAIN="clang" 32029 else 32030 DEFAULT_TOOLCHAIN="gcc" 32031 fi 32032 else 32033 # If Xcode is not installed, but the command line tools are 32034 # then we can't run xcodebuild. On these systems we should 32035 # default to clang 32036 DEFAULT_TOOLCHAIN="clang" 32037 fi 32038 else 32039 # First toolchain type in the list is the default 32040 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 32041 fi 32042 32043 if test "x$with_toolchain_type" = xlist; then 32044 # List all toolchains 32045 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 32046 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 32047 for toolchain in $VALID_TOOLCHAINS; do 32048 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 32049 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32050 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 32051 done 32052 32053 exit 0 32054 elif test "x$with_toolchain_type" != x; then 32055 # User override; check that it is valid 32056 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32057 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32058 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32059 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32060 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32061 as_fn_error $? "Cannot continue." "$LINENO" 5 32062 fi 32063 TOOLCHAIN_TYPE=$with_toolchain_type 32064 else 32065 # No flag given, use default 32066 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32067 fi 32068 32069 32070 TOOLCHAIN_CC_BINARY_clang="clang" 32071 TOOLCHAIN_CC_BINARY_gcc="gcc" 32072 TOOLCHAIN_CC_BINARY_microsoft="cl" 32073 TOOLCHAIN_CC_BINARY_solstudio="cc" 32074 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32075 32076 TOOLCHAIN_CXX_BINARY_clang="clang++" 32077 TOOLCHAIN_CXX_BINARY_gcc="g++" 32078 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32079 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32080 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32081 32082 # Use indirect variable referencing 32083 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32084 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32085 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32086 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32087 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32088 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32089 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32090 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32091 32092 32093 # Define filename patterns 32094 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32095 LIBRARY_PREFIX= 32096 SHARED_LIBRARY_SUFFIX='.dll' 32097 STATIC_LIBRARY_SUFFIX='.lib' 32098 SHARED_LIBRARY='$1.dll' 32099 STATIC_LIBRARY='$1.lib' 32100 OBJ_SUFFIX='.obj' 32101 EXE_SUFFIX='.exe' 32102 else 32103 LIBRARY_PREFIX=lib 32104 SHARED_LIBRARY_SUFFIX='.so' 32105 STATIC_LIBRARY_SUFFIX='.a' 32106 SHARED_LIBRARY='lib$1.so' 32107 STATIC_LIBRARY='lib$1.a' 32108 OBJ_SUFFIX='.o' 32109 EXE_SUFFIX='' 32110 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32111 # For full static builds, we're overloading the SHARED_LIBRARY 32112 # variables in order to limit the amount of changes required. 32113 # It would be better to remove SHARED and just use LIBRARY and 32114 # LIBRARY_SUFFIX for libraries that can be built either 32115 # shared or static and use STATIC_* for libraries that are 32116 # always built statically. 32117 if test "x$STATIC_BUILD" = xtrue; then 32118 SHARED_LIBRARY='lib$1.a' 32119 SHARED_LIBRARY_SUFFIX='.a' 32120 else 32121 SHARED_LIBRARY='lib$1.dylib' 32122 SHARED_LIBRARY_SUFFIX='.dylib' 32123 fi 32124 fi 32125 fi 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32137 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32138 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32139 else 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32141 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32142 fi 32143 32144 32145 # User supplied flags should be used when configure detects compilers 32146 32147 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32149 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32150 fi 32151 32152 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32154 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32155 fi 32156 32157 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32159 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32160 fi 32161 32162 32163 # Check whether --with-extra-cflags was given. 32164 if test "${with_extra_cflags+set}" = set; then : 32165 withval=$with_extra_cflags; 32166 fi 32167 32168 32169 32170 # Check whether --with-extra-cxxflags was given. 32171 if test "${with_extra_cxxflags+set}" = set; then : 32172 withval=$with_extra_cxxflags; 32173 fi 32174 32175 32176 32177 # Check whether --with-extra-ldflags was given. 32178 if test "${with_extra_ldflags+set}" = set; then : 32179 withval=$with_extra_ldflags; 32180 fi 32181 32182 32183 EXTRA_CFLAGS="$with_extra_cflags" 32184 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32185 EXTRA_LDFLAGS="$with_extra_ldflags" 32186 32187 32188 32189 32190 32191 # The global CFLAGS and LDLAGS variables are used by configure tests and 32192 # should include the extra parameters 32193 CFLAGS="$EXTRA_CFLAGS" 32194 CXXFLAGS="$EXTRA_CXXFLAGS" 32195 LDFLAGS="$EXTRA_LDFLAGS" 32196 CPPFLAGS="" 32197 32198 # The sysroot cflags are needed for configure to be able to run the compilers 32199 32200 if test "x$SYSROOT" != "x"; then 32201 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32202 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32203 # Solaris Studio does not have a concept of sysroot. Instead we must 32204 # make sure the default include and lib dirs are appended to each 32205 # compile and link command line. Must also add -I-xbuiltin to enable 32206 # inlining of system functions and intrinsics. 32207 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32208 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32209 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32210 fi 32211 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32212 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32213 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32214 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32215 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32216 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32217 fi 32218 # The global CFLAGS and LDFLAGS variables need these for configure to function 32219 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32220 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32221 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32222 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32223 fi 32224 32225 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32226 # We also need -iframework<path>/System/Library/Frameworks 32227 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32228 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32229 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32230 # set this here so it doesn't have to be peppered throughout the forest 32231 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32232 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32233 fi 32234 32235 32236 32237 32238 32239 # Then detect the actual binaries needed 32240 32241 # FIXME: Is this needed? 32242 ac_ext=cpp 32243 ac_cpp='$CXXCPP $CPPFLAGS' 32244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32247 32248 32249 # Store the CFLAGS etc passed to the configure script. 32250 ORG_CFLAGS="$CFLAGS" 32251 ORG_CXXFLAGS="$CXXFLAGS" 32252 32253 # autoconf magic only relies on PATH, so update it if tools dir is specified 32254 OLD_PATH="$PATH" 32255 32256 # On Windows, we need to detect the visual studio installation first. 32257 # This will change the PATH, but we need to keep that new PATH even 32258 # after toolchain detection is done, since the compiler (on x86) uses 32259 # it for DLL resolution in runtime. 32260 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32261 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32262 32263 # Store path to cygwin link.exe to help excluding it when searching for 32264 # VS linker. This must be done before changing the PATH when looking for VS. 32265 # Extract the first word of "link", so it can be a program name with args. 32266 set dummy link; ac_word=$2 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32268 $as_echo_n "checking for $ac_word... " >&6; } 32269 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32270 $as_echo_n "(cached) " >&6 32271 else 32272 case $CYGWIN_LINK in 32273 [\\/]* | ?:[\\/]*) 32274 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32275 ;; 32276 *) 32277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32278 for as_dir in $PATH 32279 do 32280 IFS=$as_save_IFS 32281 test -z "$as_dir" && as_dir=. 32282 for ac_exec_ext in '' $ac_executable_extensions; do 32283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32284 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32286 break 2 32287 fi 32288 done 32289 done 32290 IFS=$as_save_IFS 32291 32292 ;; 32293 esac 32294 fi 32295 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32296 if test -n "$CYGWIN_LINK"; then 32297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32298 $as_echo "$CYGWIN_LINK" >&6; } 32299 else 32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32301 $as_echo "no" >&6; } 32302 fi 32303 32304 32305 if test "x$CYGWIN_LINK" != x; then 32306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32307 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32308 "$CYGWIN_LINK" --version > /dev/null 32309 if test $? -eq 0 ; then 32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32311 $as_echo "yes" >&6; } 32312 else 32313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32314 $as_echo "no" >&6; } 32315 # This might be the VS linker. Don't exclude it later on. 32316 CYGWIN_LINK="" 32317 fi 32318 fi 32319 32320 # First-hand choice is to locate and run the vsvars bat file. 32321 32322 32323 # Check whether --with-toolchain-version was given. 32324 if test "${with_toolchain_version+set}" = set; then : 32325 withval=$with_toolchain_version; 32326 fi 32327 32328 32329 if test "x$with_toolchain_version" = xlist; then 32330 # List all toolchains 32331 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32332 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32333 for version in $VALID_VS_VERSIONS; do 32334 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32335 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32336 done 32337 32338 exit 0 32339 elif test "x$DEVKIT_VS_VERSION" != x; then 32340 VS_VERSION=$DEVKIT_VS_VERSION 32341 TOOLCHAIN_VERSION=$VS_VERSION 32342 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32343 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32344 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32345 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32346 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32347 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32348 32349 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32350 # can still be exported as INCLUDE for compiler invocations without 32351 # SYSROOT_CFLAGS 32352 OLDIFS="$IFS" 32353 IFS=";" 32354 for i in $DEVKIT_VS_INCLUDE; do 32355 ipath=$i 32356 32357 unix_path="$ipath" 32358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32359 windows_path=`$CYGPATH -m "$unix_path"` 32360 ipath="$windows_path" 32361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32362 windows_path=`cmd //c echo $unix_path` 32363 ipath="$windows_path" 32364 fi 32365 32366 VS_INCLUDE="$VS_INCLUDE;$ipath" 32367 done 32368 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32369 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32370 for i in $DEVKIT_VS_LIB; do 32371 libpath=$i 32372 32373 unix_path="$libpath" 32374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32375 windows_path=`$CYGPATH -m "$unix_path"` 32376 libpath="$windows_path" 32377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32378 windows_path=`cmd //c echo $unix_path` 32379 libpath="$windows_path" 32380 fi 32381 32382 VS_LIB="$VS_LIB;$libpath" 32383 done 32384 IFS="$OLDIFS" 32385 32386 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32387 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32388 32389 elif test "x$with_toolchain_version" != x; then 32390 # User override; check that it is valid 32391 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32392 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32393 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32394 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32395 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32396 as_fn_error $? "Cannot continue." "$LINENO" 5 32397 fi 32398 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32399 else 32400 # No flag given, use default 32401 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32402 fi 32403 32404 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32405 32406 VS_VERSION="$VS_VERSION" 32407 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32408 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32409 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32410 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32411 32412 # When using --with-tools-dir, assume it points to the correct and default 32413 # version of Visual Studio or that --with-toolchain-version was also set. 32414 if test "x$with_tools_dir" != x; then 32415 32416 if test "x$VS_ENV_CMD" = x; then 32417 VS_VERSION="${VS_VERSION}" 32418 VS_BASE="$with_tools_dir/../.." 32419 METHOD="--with-tools-dir" 32420 32421 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32422 VCVARSFILE="vc/bin/vcvars32.bat" 32423 else 32424 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32425 fi 32426 32427 32428 windows_path="$VS_BASE" 32429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32430 unix_path=`$CYGPATH -u "$windows_path"` 32431 VS_BASE="$unix_path" 32432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32434 VS_BASE="$unix_path" 32435 fi 32436 32437 if test -d "$VS_BASE"; then 32438 if test -f "$VS_BASE/$VCVARSFILE"; then 32439 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32440 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32441 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32442 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32443 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32444 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32445 else 32446 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32447 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32448 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32449 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32450 fi 32451 fi 32452 fi 32453 32454 32455 if test "x$VS_ENV_CMD" = x; then 32456 VS_VERSION="${VS_VERSION}" 32457 VS_BASE="$with_tools_dir/../../.." 32458 METHOD="--with-tools-dir" 32459 32460 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32461 VCVARSFILE="vc/bin/vcvars32.bat" 32462 else 32463 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32464 fi 32465 32466 32467 windows_path="$VS_BASE" 32468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32469 unix_path=`$CYGPATH -u "$windows_path"` 32470 VS_BASE="$unix_path" 32471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32473 VS_BASE="$unix_path" 32474 fi 32475 32476 if test -d "$VS_BASE"; then 32477 if test -f "$VS_BASE/$VCVARSFILE"; then 32478 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32479 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32480 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32481 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32482 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32483 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32484 else 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32486 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32487 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32488 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32489 fi 32490 fi 32491 fi 32492 32493 if test "x$VS_ENV_CMD" = x; then 32494 # Having specified an argument which is incorrect will produce an instant failure; 32495 # we should not go on looking 32496 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32497 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32498 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32499 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32500 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32501 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32502 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32503 fi 32504 fi 32505 32506 VS_ENV_CMD="" 32507 VS_ENV_ARGS="" 32508 32509 if test "x$VS_COMNTOOLS" != x; then 32510 32511 if test "x$VS_ENV_CMD" = x; then 32512 VS_VERSION="${VS_VERSION}" 32513 VS_BASE="$VS_COMNTOOLS/../.." 32514 METHOD="$VS_COMNTOOLS_VAR variable" 32515 32516 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32517 VCVARSFILE="vc/bin/vcvars32.bat" 32518 else 32519 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32520 fi 32521 32522 32523 windows_path="$VS_BASE" 32524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32525 unix_path=`$CYGPATH -u "$windows_path"` 32526 VS_BASE="$unix_path" 32527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32529 VS_BASE="$unix_path" 32530 fi 32531 32532 if test -d "$VS_BASE"; then 32533 if test -f "$VS_BASE/$VCVARSFILE"; then 32534 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32535 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32536 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32537 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32538 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32539 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32540 else 32541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32542 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32543 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32544 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32545 fi 32546 fi 32547 fi 32548 32549 fi 32550 if test "x$PROGRAMFILES" != x; then 32551 32552 if test "x$VS_ENV_CMD" = x; then 32553 VS_VERSION="${VS_VERSION}" 32554 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32555 METHOD="well-known name" 32556 32557 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32558 VCVARSFILE="vc/bin/vcvars32.bat" 32559 else 32560 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32561 fi 32562 32563 32564 windows_path="$VS_BASE" 32565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32566 unix_path=`$CYGPATH -u "$windows_path"` 32567 VS_BASE="$unix_path" 32568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32569 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32570 VS_BASE="$unix_path" 32571 fi 32572 32573 if test -d "$VS_BASE"; then 32574 if test -f "$VS_BASE/$VCVARSFILE"; then 32575 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32576 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32577 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32578 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32579 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32580 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32581 else 32582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32583 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32584 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32585 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32586 fi 32587 fi 32588 fi 32589 32590 fi 32591 # Work around the insanely named ProgramFiles(x86) env variable 32592 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32593 if test "x$PROGRAMFILES_X86" != x; then 32594 32595 if test "x$VS_ENV_CMD" = x; then 32596 VS_VERSION="${VS_VERSION}" 32597 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32598 METHOD="well-known name" 32599 32600 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32601 VCVARSFILE="vc/bin/vcvars32.bat" 32602 else 32603 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32604 fi 32605 32606 32607 windows_path="$VS_BASE" 32608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32609 unix_path=`$CYGPATH -u "$windows_path"` 32610 VS_BASE="$unix_path" 32611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32613 VS_BASE="$unix_path" 32614 fi 32615 32616 if test -d "$VS_BASE"; then 32617 if test -f "$VS_BASE/$VCVARSFILE"; then 32618 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32619 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32620 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32621 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32622 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32623 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32624 else 32625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32626 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32627 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32628 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32629 fi 32630 fi 32631 fi 32632 32633 fi 32634 32635 if test "x$VS_ENV_CMD" = x; then 32636 VS_VERSION="${VS_VERSION}" 32637 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32638 METHOD="well-known name" 32639 32640 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32641 VCVARSFILE="vc/bin/vcvars32.bat" 32642 else 32643 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32644 fi 32645 32646 32647 windows_path="$VS_BASE" 32648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32649 unix_path=`$CYGPATH -u "$windows_path"` 32650 VS_BASE="$unix_path" 32651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32653 VS_BASE="$unix_path" 32654 fi 32655 32656 if test -d "$VS_BASE"; then 32657 if test -f "$VS_BASE/$VCVARSFILE"; then 32658 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32659 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32660 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32661 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32662 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32663 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32664 else 32665 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32666 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32667 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32668 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32669 fi 32670 fi 32671 fi 32672 32673 32674 if test "x$VS_ENV_CMD" = x; then 32675 VS_VERSION="${VS_VERSION}" 32676 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32677 METHOD="well-known name" 32678 32679 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32680 VCVARSFILE="vc/bin/vcvars32.bat" 32681 else 32682 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32683 fi 32684 32685 32686 windows_path="$VS_BASE" 32687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32688 unix_path=`$CYGPATH -u "$windows_path"` 32689 VS_BASE="$unix_path" 32690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32692 VS_BASE="$unix_path" 32693 fi 32694 32695 if test -d "$VS_BASE"; then 32696 if test -f "$VS_BASE/$VCVARSFILE"; then 32697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32698 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32699 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32700 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32701 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32702 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32703 else 32704 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32705 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32706 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32707 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32708 fi 32709 fi 32710 fi 32711 32712 32713 if test "x$SDK_INSTALL_DIR" != x; then 32714 if test "x$ProgramW6432" != x; then 32715 32716 if test "x$VS_ENV_CMD" = x; then 32717 VS_VERSION="${VS_VERSION}" 32718 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32719 METHOD="well-known name" 32720 32721 windows_path="$WIN_SDK_BASE" 32722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32723 unix_path=`$CYGPATH -u "$windows_path"` 32724 WIN_SDK_BASE="$unix_path" 32725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32727 WIN_SDK_BASE="$unix_path" 32728 fi 32729 32730 if test -d "$WIN_SDK_BASE"; then 32731 # There have been cases of partial or broken SDK installations. A missing 32732 # lib dir is not going to work. 32733 if test ! -d "$WIN_SDK_BASE/lib"; then 32734 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32735 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32736 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32737 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32738 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32739 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32740 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32741 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32742 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32743 VS_ENV_ARGS="/x86" 32744 else 32745 VS_ENV_ARGS="/x64" 32746 fi 32747 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32748 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32749 # TODO: improve detection for other versions of SDK 32750 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32751 else 32752 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32753 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32754 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32755 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32756 fi 32757 fi 32758 fi 32759 32760 fi 32761 if test "x$PROGRAMW6432" != x; then 32762 32763 if test "x$VS_ENV_CMD" = x; then 32764 VS_VERSION="${VS_VERSION}" 32765 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32766 METHOD="well-known name" 32767 32768 windows_path="$WIN_SDK_BASE" 32769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32770 unix_path=`$CYGPATH -u "$windows_path"` 32771 WIN_SDK_BASE="$unix_path" 32772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32773 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32774 WIN_SDK_BASE="$unix_path" 32775 fi 32776 32777 if test -d "$WIN_SDK_BASE"; then 32778 # There have been cases of partial or broken SDK installations. A missing 32779 # lib dir is not going to work. 32780 if test ! -d "$WIN_SDK_BASE/lib"; then 32781 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32782 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32783 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32784 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32785 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32786 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32787 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32788 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32789 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32790 VS_ENV_ARGS="/x86" 32791 else 32792 VS_ENV_ARGS="/x64" 32793 fi 32794 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32795 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32796 # TODO: improve detection for other versions of SDK 32797 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32798 else 32799 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32800 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32801 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32802 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32803 fi 32804 fi 32805 fi 32806 32807 fi 32808 if test "x$PROGRAMFILES" != x; then 32809 32810 if test "x$VS_ENV_CMD" = x; then 32811 VS_VERSION="${VS_VERSION}" 32812 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32813 METHOD="well-known name" 32814 32815 windows_path="$WIN_SDK_BASE" 32816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32817 unix_path=`$CYGPATH -u "$windows_path"` 32818 WIN_SDK_BASE="$unix_path" 32819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32821 WIN_SDK_BASE="$unix_path" 32822 fi 32823 32824 if test -d "$WIN_SDK_BASE"; then 32825 # There have been cases of partial or broken SDK installations. A missing 32826 # lib dir is not going to work. 32827 if test ! -d "$WIN_SDK_BASE/lib"; then 32828 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32829 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32830 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32831 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32832 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32833 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32834 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32835 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32836 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32837 VS_ENV_ARGS="/x86" 32838 else 32839 VS_ENV_ARGS="/x64" 32840 fi 32841 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32842 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32843 # TODO: improve detection for other versions of SDK 32844 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32845 else 32846 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32847 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32848 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32849 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32850 fi 32851 fi 32852 fi 32853 32854 fi 32855 32856 if test "x$VS_ENV_CMD" = x; then 32857 VS_VERSION="${VS_VERSION}" 32858 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32859 METHOD="well-known name" 32860 32861 windows_path="$WIN_SDK_BASE" 32862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32863 unix_path=`$CYGPATH -u "$windows_path"` 32864 WIN_SDK_BASE="$unix_path" 32865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32867 WIN_SDK_BASE="$unix_path" 32868 fi 32869 32870 if test -d "$WIN_SDK_BASE"; then 32871 # There have been cases of partial or broken SDK installations. A missing 32872 # lib dir is not going to work. 32873 if test ! -d "$WIN_SDK_BASE/lib"; then 32874 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32875 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32876 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32877 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32878 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32879 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32880 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32881 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32882 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32883 VS_ENV_ARGS="/x86" 32884 else 32885 VS_ENV_ARGS="/x64" 32886 fi 32887 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32888 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32889 # TODO: improve detection for other versions of SDK 32890 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32891 else 32892 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32893 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32894 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32895 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32896 fi 32897 fi 32898 fi 32899 32900 32901 if test "x$VS_ENV_CMD" = x; then 32902 VS_VERSION="${VS_VERSION}" 32903 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32904 METHOD="well-known name" 32905 32906 windows_path="$WIN_SDK_BASE" 32907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32908 unix_path=`$CYGPATH -u "$windows_path"` 32909 WIN_SDK_BASE="$unix_path" 32910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32912 WIN_SDK_BASE="$unix_path" 32913 fi 32914 32915 if test -d "$WIN_SDK_BASE"; then 32916 # There have been cases of partial or broken SDK installations. A missing 32917 # lib dir is not going to work. 32918 if test ! -d "$WIN_SDK_BASE/lib"; then 32919 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32920 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32921 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32922 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32923 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32925 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32926 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32927 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32928 VS_ENV_ARGS="/x86" 32929 else 32930 VS_ENV_ARGS="/x64" 32931 fi 32932 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32933 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32934 # TODO: improve detection for other versions of SDK 32935 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32936 else 32937 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32938 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32939 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32940 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32941 fi 32942 fi 32943 fi 32944 32945 fi 32946 32947 if test "x$VS_ENV_CMD" != x; then 32948 TOOLCHAIN_VERSION=$VS_VERSION 32949 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32950 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32951 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32952 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32953 # The rest of the variables are already evaled while probing 32954 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32955 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32956 break 32957 fi 32958 done 32959 32960 32961 # If we have a devkit, skip all of the below. 32962 if test "x$DEVKIT_VS_VERSION" = x; then 32963 if test "x$VS_ENV_CMD" != x; then 32964 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32965 32966 # Only process if variable expands to non-empty 32967 32968 if test "x$VS_ENV_CMD" != x; then 32969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32970 32971 # First separate the path from the arguments. This will split at the first 32972 # space. 32973 complete="$VS_ENV_CMD" 32974 path="${complete%% *}" 32975 tmp="$complete EOL" 32976 arguments="${tmp#* }" 32977 32978 # Input might be given as Windows format, start by converting to 32979 # unix format. 32980 new_path=`$CYGPATH -u "$path"` 32981 32982 # Now try to locate executable using which 32983 new_path=`$WHICH "$new_path" 2> /dev/null` 32984 # bat and cmd files are not always considered executable in cygwin causing which 32985 # to not find them 32986 if test "x$new_path" = x \ 32987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32989 new_path=`$CYGPATH -u "$path"` 32990 fi 32991 if test "x$new_path" = x; then 32992 # Oops. Which didn't find the executable. 32993 # The splitting of arguments from the executable at a space might have been incorrect, 32994 # since paths with space are more likely in Windows. Give it another try with the whole 32995 # argument. 32996 path="$complete" 32997 arguments="EOL" 32998 new_path=`$CYGPATH -u "$path"` 32999 new_path=`$WHICH "$new_path" 2> /dev/null` 33000 # bat and cmd files are not always considered executable in cygwin causing which 33001 # to not find them 33002 if test "x$new_path" = x \ 33003 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33004 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33005 new_path=`$CYGPATH -u "$path"` 33006 fi 33007 if test "x$new_path" = x; then 33008 # It's still not found. Now this is an unrecoverable error. 33009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33010 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33011 has_space=`$ECHO "$complete" | $GREP " "` 33012 if test "x$has_space" != x; then 33013 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33014 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33015 fi 33016 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33017 fi 33018 fi 33019 33020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33023 # "foo.exe" is OK but "foo" is an error. 33024 # 33025 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33026 # It is also a way to make sure we got the proper file name for the real test later on. 33027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33028 if test "x$test_shortpath" = x; then 33029 # Short path failed, file does not exist as specified. 33030 # Try adding .exe or .cmd 33031 if test -f "${new_path}.exe"; then 33032 input_to_shortpath="${new_path}.exe" 33033 elif test -f "${new_path}.cmd"; then 33034 input_to_shortpath="${new_path}.cmd" 33035 else 33036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 33037 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 33038 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33039 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33040 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33041 fi 33042 else 33043 input_to_shortpath="$new_path" 33044 fi 33045 33046 # Call helper function which possibly converts this using DOS-style short mode. 33047 # If so, the updated path is stored in $new_path. 33048 new_path="$input_to_shortpath" 33049 33050 input_path="$input_to_shortpath" 33051 # Check if we need to convert this using DOS-style short mode. If the path 33052 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33053 # take no chances and rewrite it. 33054 # Note: m4 eats our [], so we need to use [ and ] instead. 33055 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33056 if test "x$has_forbidden_chars" != x; then 33057 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33058 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33059 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33060 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33061 # Going to short mode and back again did indeed matter. Since short mode is 33062 # case insensitive, let's make it lowercase to improve readability. 33063 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33064 # Now convert it back to Unix-style (cygpath) 33065 input_path=`$CYGPATH -u "$shortmode_path"` 33066 new_path="$input_path" 33067 fi 33068 fi 33069 33070 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33071 if test "x$test_cygdrive_prefix" = x; then 33072 # As a simple fix, exclude /usr/bin since it's not a real path. 33073 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33074 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33075 # a path prefixed by /cygdrive for fixpath to work. 33076 new_path="$CYGWIN_ROOT_PATH$input_path" 33077 fi 33078 fi 33079 33080 # remove trailing .exe if any 33081 new_path="${new_path/%.exe/}" 33082 33083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33084 33085 # First separate the path from the arguments. This will split at the first 33086 # space. 33087 complete="$VS_ENV_CMD" 33088 path="${complete%% *}" 33089 tmp="$complete EOL" 33090 arguments="${tmp#* }" 33091 33092 # Input might be given as Windows format, start by converting to 33093 # unix format. 33094 new_path="$path" 33095 33096 windows_path="$new_path" 33097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33098 unix_path=`$CYGPATH -u "$windows_path"` 33099 new_path="$unix_path" 33100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33102 new_path="$unix_path" 33103 fi 33104 33105 33106 # Now try to locate executable using which 33107 new_path=`$WHICH "$new_path" 2> /dev/null` 33108 33109 if test "x$new_path" = x; then 33110 # Oops. Which didn't find the executable. 33111 # The splitting of arguments from the executable at a space might have been incorrect, 33112 # since paths with space are more likely in Windows. Give it another try with the whole 33113 # argument. 33114 path="$complete" 33115 arguments="EOL" 33116 new_path="$path" 33117 33118 windows_path="$new_path" 33119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33120 unix_path=`$CYGPATH -u "$windows_path"` 33121 new_path="$unix_path" 33122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33124 new_path="$unix_path" 33125 fi 33126 33127 33128 new_path=`$WHICH "$new_path" 2> /dev/null` 33129 # bat and cmd files are not always considered executable in MSYS causing which 33130 # to not find them 33131 if test "x$new_path" = x \ 33132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33134 new_path="$path" 33135 33136 windows_path="$new_path" 33137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33138 unix_path=`$CYGPATH -u "$windows_path"` 33139 new_path="$unix_path" 33140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33142 new_path="$unix_path" 33143 fi 33144 33145 fi 33146 33147 if test "x$new_path" = x; then 33148 # It's still not found. Now this is an unrecoverable error. 33149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33150 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33151 has_space=`$ECHO "$complete" | $GREP " "` 33152 if test "x$has_space" != x; then 33153 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33155 fi 33156 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33157 fi 33158 fi 33159 33160 # Now new_path has a complete unix path to the binary 33161 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33162 # Keep paths in /bin as-is, but remove trailing .exe if any 33163 new_path="${new_path/%.exe/}" 33164 # Do not save /bin paths to all_fixpath_prefixes! 33165 else 33166 # Not in mixed or Windows style, start by that. 33167 new_path=`cmd //c echo $new_path` 33168 33169 input_path="$new_path" 33170 # Check if we need to convert this using DOS-style short mode. If the path 33171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33172 # take no chances and rewrite it. 33173 # Note: m4 eats our [], so we need to use [ and ] instead. 33174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33175 if test "x$has_forbidden_chars" != x; then 33176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33178 fi 33179 33180 # Output is in $new_path 33181 33182 windows_path="$new_path" 33183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33184 unix_path=`$CYGPATH -u "$windows_path"` 33185 new_path="$unix_path" 33186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33188 new_path="$unix_path" 33189 fi 33190 33191 # remove trailing .exe if any 33192 new_path="${new_path/%.exe/}" 33193 33194 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33195 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33196 fi 33197 33198 else 33199 # We're on a unix platform. Hooray! :) 33200 # First separate the path from the arguments. This will split at the first 33201 # space. 33202 complete="$VS_ENV_CMD" 33203 path="${complete%% *}" 33204 tmp="$complete EOL" 33205 arguments="${tmp#* }" 33206 33207 # Cannot rely on the command "which" here since it doesn't always work. 33208 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33209 if test -z "$is_absolute_path"; then 33210 # Path to executable is not absolute. Find it. 33211 IFS_save="$IFS" 33212 IFS=: 33213 for p in $PATH; do 33214 if test -f "$p/$path" && test -x "$p/$path"; then 33215 new_path="$p/$path" 33216 break 33217 fi 33218 done 33219 IFS="$IFS_save" 33220 else 33221 # This is an absolute path, we can use it without further modifications. 33222 new_path="$path" 33223 fi 33224 33225 if test "x$new_path" = x; then 33226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33227 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33228 has_space=`$ECHO "$complete" | $GREP " "` 33229 if test "x$has_space" != x; then 33230 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33231 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33232 fi 33233 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33234 fi 33235 fi 33236 33237 # Now join together the path and the arguments once again 33238 if test "x$arguments" != xEOL; then 33239 new_complete="$new_path ${arguments% *}" 33240 else 33241 new_complete="$new_path" 33242 fi 33243 33244 if test "x$complete" != "x$new_complete"; then 33245 VS_ENV_CMD="$new_complete" 33246 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33247 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33248 fi 33249 fi 33250 33251 33252 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33253 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33254 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33255 33256 # We need to create a couple of temporary files. 33257 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33258 $MKDIR -p $VS_ENV_TMP_DIR 33259 33260 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33261 # Instead create a shell script which will set the relevant variables when run. 33262 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33263 33264 unix_path="$WINPATH_VS_ENV_CMD" 33265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33266 windows_path=`$CYGPATH -m "$unix_path"` 33267 WINPATH_VS_ENV_CMD="$windows_path" 33268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33269 windows_path=`cmd //c echo $unix_path` 33270 WINPATH_VS_ENV_CMD="$windows_path" 33271 fi 33272 33273 WINPATH_BASH="$BASH" 33274 33275 unix_path="$WINPATH_BASH" 33276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33277 windows_path=`$CYGPATH -m "$unix_path"` 33278 WINPATH_BASH="$windows_path" 33279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33280 windows_path=`cmd //c echo $unix_path` 33281 WINPATH_BASH="$windows_path" 33282 fi 33283 33284 33285 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33286 # script (executable by bash) that will setup the important variables. 33287 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33288 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33289 # This will end up something like: 33290 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33291 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33292 # These will end up something like: 33293 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33294 # The trailing space for everyone except PATH is no typo, but is needed due 33295 # to trailing \ in the Windows paths. These will be stripped later. 33296 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33297 >> $EXTRACT_VC_ENV_BAT_FILE 33298 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33299 >> $EXTRACT_VC_ENV_BAT_FILE 33300 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33301 >> $EXTRACT_VC_ENV_BAT_FILE 33302 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33303 >> $EXTRACT_VC_ENV_BAT_FILE 33304 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33305 >> $EXTRACT_VC_ENV_BAT_FILE 33306 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33307 >> $EXTRACT_VC_ENV_BAT_FILE 33308 33309 # Now execute the newly created bat file. 33310 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33311 # Change directory so we don't need to mess with Windows paths in redirects. 33312 cd $VS_ENV_TMP_DIR 33313 cmd /c extract-vs-env.bat | $CAT 33314 cd $CURDIR 33315 33316 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33317 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33318 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33319 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33320 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33321 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33322 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33323 as_fn_error $? "Cannot continue" "$LINENO" 5 33324 fi 33325 33326 # Now set all paths and other env variables. This will allow the rest of 33327 # the configure script to find and run the compiler in the proper way. 33328 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33329 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33330 . $VS_ENV_TMP_DIR/set-vs-env.sh 33331 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33332 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33333 else 33334 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33335 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33336 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33337 fi 33338 fi 33339 33340 # At this point, we should have correct variables in the environment, or we can't continue. 33341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33342 $as_echo_n "checking for Visual Studio variables... " >&6; } 33343 33344 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33345 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33346 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33348 $as_echo "present but broken" >&6; } 33349 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33350 else 33351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33352 $as_echo "ok" >&6; } 33353 # Remove any trailing "\" ";" and " " from the variables. 33354 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33355 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33356 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33357 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33358 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33359 # Remove any paths containing # (typically F#) as that messes up make. This 33360 # is needed if visual studio was installed with F# support. 33361 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33362 33363 33364 33365 33366 33367 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33368 OLDIFS="$IFS" 33369 IFS=";" 33370 for i in $VS_INCLUDE; do 33371 ipath=$i 33372 # Only process non-empty elements 33373 if test "x$ipath" != x; then 33374 IFS="$OLDIFS" 33375 # Check that directory exists before calling fixup_path 33376 testpath=$ipath 33377 33378 windows_path="$testpath" 33379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33380 unix_path=`$CYGPATH -u "$windows_path"` 33381 testpath="$unix_path" 33382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33384 testpath="$unix_path" 33385 fi 33386 33387 if test -d "$testpath"; then 33388 33389 # Only process if variable expands to non-empty 33390 33391 if test "x$ipath" != x; then 33392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33393 33394 # Input might be given as Windows format, start by converting to 33395 # unix format. 33396 path="$ipath" 33397 new_path=`$CYGPATH -u "$path"` 33398 33399 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33400 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33401 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33402 # "foo.exe" is OK but "foo" is an error. 33403 # 33404 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33405 # It is also a way to make sure we got the proper file name for the real test later on. 33406 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33407 if test "x$test_shortpath" = x; then 33408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33409 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33410 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33411 fi 33412 33413 # Call helper function which possibly converts this using DOS-style short mode. 33414 # If so, the updated path is stored in $new_path. 33415 33416 input_path="$new_path" 33417 # Check if we need to convert this using DOS-style short mode. If the path 33418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33419 # take no chances and rewrite it. 33420 # Note: m4 eats our [], so we need to use [ and ] instead. 33421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33422 if test "x$has_forbidden_chars" != x; then 33423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33424 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33425 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33426 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33427 # Going to short mode and back again did indeed matter. Since short mode is 33428 # case insensitive, let's make it lowercase to improve readability. 33429 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33430 # Now convert it back to Unix-style (cygpath) 33431 input_path=`$CYGPATH -u "$shortmode_path"` 33432 new_path="$input_path" 33433 fi 33434 fi 33435 33436 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33437 if test "x$test_cygdrive_prefix" = x; then 33438 # As a simple fix, exclude /usr/bin since it's not a real path. 33439 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33440 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33441 # a path prefixed by /cygdrive for fixpath to work. 33442 new_path="$CYGWIN_ROOT_PATH$input_path" 33443 fi 33444 fi 33445 33446 33447 if test "x$path" != "x$new_path"; then 33448 ipath="$new_path" 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33450 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33451 fi 33452 33453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33454 33455 path="$ipath" 33456 has_colon=`$ECHO $path | $GREP ^.:` 33457 new_path="$path" 33458 if test "x$has_colon" = x; then 33459 # Not in mixed or Windows style, start by that. 33460 new_path=`cmd //c echo $path` 33461 fi 33462 33463 33464 input_path="$new_path" 33465 # Check if we need to convert this using DOS-style short mode. If the path 33466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33467 # take no chances and rewrite it. 33468 # Note: m4 eats our [], so we need to use [ and ] instead. 33469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33470 if test "x$has_forbidden_chars" != x; then 33471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33472 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33473 fi 33474 33475 33476 windows_path="$new_path" 33477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33478 unix_path=`$CYGPATH -u "$windows_path"` 33479 new_path="$unix_path" 33480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33482 new_path="$unix_path" 33483 fi 33484 33485 if test "x$path" != "x$new_path"; then 33486 ipath="$new_path" 33487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33488 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33489 fi 33490 33491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33493 33494 else 33495 # We're on a unix platform. Hooray! :) 33496 path="$ipath" 33497 has_space=`$ECHO "$path" | $GREP " "` 33498 if test "x$has_space" != x; then 33499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33500 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33501 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33502 fi 33503 33504 # Use eval to expand a potential ~ 33505 eval path="$path" 33506 if test ! -f "$path" && test ! -d "$path"; then 33507 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33508 fi 33509 33510 if test -d "$path"; then 33511 ipath="`cd "$path"; $THEPWDCMD -L`" 33512 else 33513 dir="`$DIRNAME "$path"`" 33514 base="`$BASENAME "$path"`" 33515 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33516 fi 33517 fi 33518 fi 33519 33520 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33521 fi 33522 IFS=";" 33523 fi 33524 done 33525 # Convert VS_LIB into SYSROOT_LDFLAGS 33526 for i in $VS_LIB; do 33527 libpath=$i 33528 # Only process non-empty elements 33529 if test "x$libpath" != x; then 33530 IFS="$OLDIFS" 33531 # Check that directory exists before calling fixup_path 33532 testpath=$libpath 33533 33534 windows_path="$testpath" 33535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33536 unix_path=`$CYGPATH -u "$windows_path"` 33537 testpath="$unix_path" 33538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33540 testpath="$unix_path" 33541 fi 33542 33543 if test -d "$testpath"; then 33544 33545 # Only process if variable expands to non-empty 33546 33547 if test "x$libpath" != x; then 33548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33549 33550 # Input might be given as Windows format, start by converting to 33551 # unix format. 33552 path="$libpath" 33553 new_path=`$CYGPATH -u "$path"` 33554 33555 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33556 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33557 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33558 # "foo.exe" is OK but "foo" is an error. 33559 # 33560 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33561 # It is also a way to make sure we got the proper file name for the real test later on. 33562 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33563 if test "x$test_shortpath" = x; then 33564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33565 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33566 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33567 fi 33568 33569 # Call helper function which possibly converts this using DOS-style short mode. 33570 # If so, the updated path is stored in $new_path. 33571 33572 input_path="$new_path" 33573 # Check if we need to convert this using DOS-style short mode. If the path 33574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33575 # take no chances and rewrite it. 33576 # Note: m4 eats our [], so we need to use [ and ] instead. 33577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33578 if test "x$has_forbidden_chars" != x; then 33579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33580 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33581 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33582 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33583 # Going to short mode and back again did indeed matter. Since short mode is 33584 # case insensitive, let's make it lowercase to improve readability. 33585 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33586 # Now convert it back to Unix-style (cygpath) 33587 input_path=`$CYGPATH -u "$shortmode_path"` 33588 new_path="$input_path" 33589 fi 33590 fi 33591 33592 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33593 if test "x$test_cygdrive_prefix" = x; then 33594 # As a simple fix, exclude /usr/bin since it's not a real path. 33595 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33596 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33597 # a path prefixed by /cygdrive for fixpath to work. 33598 new_path="$CYGWIN_ROOT_PATH$input_path" 33599 fi 33600 fi 33601 33602 33603 if test "x$path" != "x$new_path"; then 33604 libpath="$new_path" 33605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33606 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33607 fi 33608 33609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33610 33611 path="$libpath" 33612 has_colon=`$ECHO $path | $GREP ^.:` 33613 new_path="$path" 33614 if test "x$has_colon" = x; then 33615 # Not in mixed or Windows style, start by that. 33616 new_path=`cmd //c echo $path` 33617 fi 33618 33619 33620 input_path="$new_path" 33621 # Check if we need to convert this using DOS-style short mode. If the path 33622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33623 # take no chances and rewrite it. 33624 # Note: m4 eats our [], so we need to use [ and ] instead. 33625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33626 if test "x$has_forbidden_chars" != x; then 33627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33628 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33629 fi 33630 33631 33632 windows_path="$new_path" 33633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33634 unix_path=`$CYGPATH -u "$windows_path"` 33635 new_path="$unix_path" 33636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33638 new_path="$unix_path" 33639 fi 33640 33641 if test "x$path" != "x$new_path"; then 33642 libpath="$new_path" 33643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33644 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33645 fi 33646 33647 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33648 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33649 33650 else 33651 # We're on a unix platform. Hooray! :) 33652 path="$libpath" 33653 has_space=`$ECHO "$path" | $GREP " "` 33654 if test "x$has_space" != x; then 33655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33656 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33657 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33658 fi 33659 33660 # Use eval to expand a potential ~ 33661 eval path="$path" 33662 if test ! -f "$path" && test ! -d "$path"; then 33663 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33664 fi 33665 33666 if test -d "$path"; then 33667 libpath="`cd "$path"; $THEPWDCMD -L`" 33668 else 33669 dir="`$DIRNAME "$path"`" 33670 base="`$BASENAME "$path"`" 33671 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33672 fi 33673 fi 33674 fi 33675 33676 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33677 fi 33678 IFS=";" 33679 fi 33680 done 33681 IFS="$OLDIFS" 33682 fi 33683 else 33684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33685 $as_echo "not found" >&6; } 33686 33687 if test "x$VS_ENV_CMD" = x; then 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33689 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33690 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33691 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33692 else 33693 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33694 $as_echo "$as_me: Running the extraction script failed." >&6;} 33695 fi 33696 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33697 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33698 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33699 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33700 as_fn_error $? "Cannot continue" "$LINENO" 5 33701 fi 33702 33703 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33704 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33705 PATH="$VS_PATH" 33706 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33707 export INCLUDE="$VS_INCLUDE" 33708 export LIB="$VS_LIB" 33709 else 33710 if test "x$XCODE_VERSION_OUTPUT" != x; then 33711 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33712 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33713 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33714 else 33715 # Currently we do not define this for other toolchains. This might change as the need arise. 33716 TOOLCHAIN_VERSION= 33717 fi 33718 fi 33719 33720 33721 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33722 # override all other locations. 33723 if test "x$TOOLCHAIN_PATH" != x; then 33724 PATH=$TOOLCHAIN_PATH:$PATH 33725 fi 33726 33727 33728 # 33729 # Setup the compilers (CC and CXX) 33730 # 33731 33732 COMPILER_NAME=C 33733 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33734 33735 if test "x$CC" != x; then 33736 # User has supplied compiler name already, always let that override. 33737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33738 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33739 if test "x`basename $CC`" = "x$CC"; then 33740 # A command without a complete path is provided, search $PATH. 33741 33742 for ac_prog in $CC 33743 do 33744 # Extract the first word of "$ac_prog", so it can be a program name with args. 33745 set dummy $ac_prog; ac_word=$2 33746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33747 $as_echo_n "checking for $ac_word... " >&6; } 33748 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33749 $as_echo_n "(cached) " >&6 33750 else 33751 case $POTENTIAL_CC in 33752 [\\/]* | ?:[\\/]*) 33753 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33754 ;; 33755 *) 33756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33757 for as_dir in $PATH 33758 do 33759 IFS=$as_save_IFS 33760 test -z "$as_dir" && as_dir=. 33761 for ac_exec_ext in '' $ac_executable_extensions; do 33762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33763 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33765 break 2 33766 fi 33767 done 33768 done 33769 IFS=$as_save_IFS 33770 33771 ;; 33772 esac 33773 fi 33774 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33775 if test -n "$POTENTIAL_CC"; then 33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33777 $as_echo "$POTENTIAL_CC" >&6; } 33778 else 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33780 $as_echo "no" >&6; } 33781 fi 33782 33783 33784 test -n "$POTENTIAL_CC" && break 33785 done 33786 33787 if test "x$POTENTIAL_CC" != x; then 33788 CC=$POTENTIAL_CC 33789 else 33790 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33791 fi 33792 else 33793 # Otherwise it might already be a complete path 33794 if test ! -x "$CC"; then 33795 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33796 fi 33797 fi 33798 else 33799 # No user supplied value. Locate compiler ourselves. 33800 33801 # If we are cross compiling, assume cross compilation tools follows the 33802 # cross compilation standard where they are prefixed with the autoconf 33803 # standard name for the target. For example the binary 33804 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33805 # If we are not cross compiling, then the default compiler name will be 33806 # used. 33807 33808 CC= 33809 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33810 # before checking the rest of the PATH. 33811 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33812 # step, this should not be necessary. 33813 if test -n "$TOOLCHAIN_PATH"; then 33814 PATH_save="$PATH" 33815 PATH="$TOOLCHAIN_PATH" 33816 if test -n "$ac_tool_prefix"; then 33817 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33818 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33820 $as_echo_n "checking for $ac_word... " >&6; } 33821 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33822 $as_echo_n "(cached) " >&6 33823 else 33824 case $TOOLCHAIN_PATH_CC in 33825 [\\/]* | ?:[\\/]*) 33826 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33827 ;; 33828 *) 33829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33830 for as_dir in $PATH 33831 do 33832 IFS=$as_save_IFS 33833 test -z "$as_dir" && as_dir=. 33834 for ac_exec_ext in '' $ac_executable_extensions; do 33835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33836 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33838 break 2 33839 fi 33840 done 33841 done 33842 IFS=$as_save_IFS 33843 33844 ;; 33845 esac 33846 fi 33847 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33848 if test -n "$TOOLCHAIN_PATH_CC"; then 33849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33850 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33851 else 33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33853 $as_echo "no" >&6; } 33854 fi 33855 33856 33857 fi 33858 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33859 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33860 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33861 set dummy $SEARCH_LIST; ac_word=$2 33862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33863 $as_echo_n "checking for $ac_word... " >&6; } 33864 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33865 $as_echo_n "(cached) " >&6 33866 else 33867 case $ac_pt_TOOLCHAIN_PATH_CC in 33868 [\\/]* | ?:[\\/]*) 33869 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33870 ;; 33871 *) 33872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33873 for as_dir in $PATH 33874 do 33875 IFS=$as_save_IFS 33876 test -z "$as_dir" && as_dir=. 33877 for ac_exec_ext in '' $ac_executable_extensions; do 33878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33879 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33881 break 2 33882 fi 33883 done 33884 done 33885 IFS=$as_save_IFS 33886 33887 ;; 33888 esac 33889 fi 33890 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33891 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33893 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33894 else 33895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33896 $as_echo "no" >&6; } 33897 fi 33898 33899 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33900 TOOLCHAIN_PATH_CC="" 33901 else 33902 case $cross_compiling:$ac_tool_warned in 33903 yes:) 33904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33906 ac_tool_warned=yes ;; 33907 esac 33908 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 33909 fi 33910 else 33911 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 33912 fi 33913 33914 CC=$TOOLCHAIN_PATH_CC 33915 PATH="$PATH_save" 33916 fi 33917 33918 # AC_PATH_TOOL can't be run multiple times with the same variable, 33919 # so create a new name for this run. 33920 if test "x$CC" = x; then 33921 if test -n "$ac_tool_prefix"; then 33922 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33923 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33925 $as_echo_n "checking for $ac_word... " >&6; } 33926 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33927 $as_echo_n "(cached) " >&6 33928 else 33929 case $POTENTIAL_CC in 33930 [\\/]* | ?:[\\/]*) 33931 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33932 ;; 33933 *) 33934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33935 for as_dir in $PATH 33936 do 33937 IFS=$as_save_IFS 33938 test -z "$as_dir" && as_dir=. 33939 for ac_exec_ext in '' $ac_executable_extensions; do 33940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33941 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33943 break 2 33944 fi 33945 done 33946 done 33947 IFS=$as_save_IFS 33948 33949 ;; 33950 esac 33951 fi 33952 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33953 if test -n "$POTENTIAL_CC"; then 33954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33955 $as_echo "$POTENTIAL_CC" >&6; } 33956 else 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33958 $as_echo "no" >&6; } 33959 fi 33960 33961 33962 fi 33963 if test -z "$ac_cv_path_POTENTIAL_CC"; then 33964 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 33965 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33966 set dummy $SEARCH_LIST; ac_word=$2 33967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33968 $as_echo_n "checking for $ac_word... " >&6; } 33969 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 33970 $as_echo_n "(cached) " >&6 33971 else 33972 case $ac_pt_POTENTIAL_CC in 33973 [\\/]* | ?:[\\/]*) 33974 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 33975 ;; 33976 *) 33977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33978 for as_dir in $PATH 33979 do 33980 IFS=$as_save_IFS 33981 test -z "$as_dir" && as_dir=. 33982 for ac_exec_ext in '' $ac_executable_extensions; do 33983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33984 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33986 break 2 33987 fi 33988 done 33989 done 33990 IFS=$as_save_IFS 33991 33992 ;; 33993 esac 33994 fi 33995 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 33996 if test -n "$ac_pt_POTENTIAL_CC"; then 33997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 33998 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 33999 else 34000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34001 $as_echo "no" >&6; } 34002 fi 34003 34004 if test "x$ac_pt_POTENTIAL_CC" = x; then 34005 POTENTIAL_CC="" 34006 else 34007 case $cross_compiling:$ac_tool_warned in 34008 yes:) 34009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34011 ac_tool_warned=yes ;; 34012 esac 34013 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 34014 fi 34015 else 34016 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 34017 fi 34018 34019 CC=$POTENTIAL_CC 34020 fi 34021 34022 if test "x$CC" = x; then 34023 34024 # Print a helpful message on how to acquire the necessary build dependency. 34025 # devkit is the help tag: freetype, cups, alsa etc 34026 MISSING_DEPENDENCY=devkit 34027 34028 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34029 cygwin_help $MISSING_DEPENDENCY 34030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34031 msys_help $MISSING_DEPENDENCY 34032 else 34033 PKGHANDLER_COMMAND= 34034 34035 case $PKGHANDLER in 34036 apt-get) 34037 apt_help $MISSING_DEPENDENCY ;; 34038 yum) 34039 yum_help $MISSING_DEPENDENCY ;; 34040 brew) 34041 brew_help $MISSING_DEPENDENCY ;; 34042 port) 34043 port_help $MISSING_DEPENDENCY ;; 34044 pkgutil) 34045 pkgutil_help $MISSING_DEPENDENCY ;; 34046 pkgadd) 34047 pkgadd_help $MISSING_DEPENDENCY ;; 34048 esac 34049 34050 if test "x$PKGHANDLER_COMMAND" != x; then 34051 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34052 fi 34053 fi 34054 34055 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34056 fi 34057 fi 34058 34059 # Now we have a compiler binary in CC. Make sure it's okay. 34060 34061 # Only process if variable expands to non-empty 34062 34063 if test "x$CC" != x; then 34064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34065 34066 # First separate the path from the arguments. This will split at the first 34067 # space. 34068 complete="$CC" 34069 path="${complete%% *}" 34070 tmp="$complete EOL" 34071 arguments="${tmp#* }" 34072 34073 # Input might be given as Windows format, start by converting to 34074 # unix format. 34075 new_path=`$CYGPATH -u "$path"` 34076 34077 # Now try to locate executable using which 34078 new_path=`$WHICH "$new_path" 2> /dev/null` 34079 # bat and cmd files are not always considered executable in cygwin causing which 34080 # to not find them 34081 if test "x$new_path" = x \ 34082 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34083 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34084 new_path=`$CYGPATH -u "$path"` 34085 fi 34086 if test "x$new_path" = x; then 34087 # Oops. Which didn't find the executable. 34088 # The splitting of arguments from the executable at a space might have been incorrect, 34089 # since paths with space are more likely in Windows. Give it another try with the whole 34090 # argument. 34091 path="$complete" 34092 arguments="EOL" 34093 new_path=`$CYGPATH -u "$path"` 34094 new_path=`$WHICH "$new_path" 2> /dev/null` 34095 # bat and cmd files are not always considered executable in cygwin causing which 34096 # to not find them 34097 if test "x$new_path" = x \ 34098 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34099 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34100 new_path=`$CYGPATH -u "$path"` 34101 fi 34102 if test "x$new_path" = x; then 34103 # It's still not found. Now this is an unrecoverable error. 34104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34105 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34106 has_space=`$ECHO "$complete" | $GREP " "` 34107 if test "x$has_space" != x; then 34108 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34109 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34110 fi 34111 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34112 fi 34113 fi 34114 34115 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34116 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34117 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34118 # "foo.exe" is OK but "foo" is an error. 34119 # 34120 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34121 # It is also a way to make sure we got the proper file name for the real test later on. 34122 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34123 if test "x$test_shortpath" = x; then 34124 # Short path failed, file does not exist as specified. 34125 # Try adding .exe or .cmd 34126 if test -f "${new_path}.exe"; then 34127 input_to_shortpath="${new_path}.exe" 34128 elif test -f "${new_path}.cmd"; then 34129 input_to_shortpath="${new_path}.cmd" 34130 else 34131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34132 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34133 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34134 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34135 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34136 fi 34137 else 34138 input_to_shortpath="$new_path" 34139 fi 34140 34141 # Call helper function which possibly converts this using DOS-style short mode. 34142 # If so, the updated path is stored in $new_path. 34143 new_path="$input_to_shortpath" 34144 34145 input_path="$input_to_shortpath" 34146 # Check if we need to convert this using DOS-style short mode. If the path 34147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34148 # take no chances and rewrite it. 34149 # Note: m4 eats our [], so we need to use [ and ] instead. 34150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34151 if test "x$has_forbidden_chars" != x; then 34152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34153 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34154 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34155 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34156 # Going to short mode and back again did indeed matter. Since short mode is 34157 # case insensitive, let's make it lowercase to improve readability. 34158 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34159 # Now convert it back to Unix-style (cygpath) 34160 input_path=`$CYGPATH -u "$shortmode_path"` 34161 new_path="$input_path" 34162 fi 34163 fi 34164 34165 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34166 if test "x$test_cygdrive_prefix" = x; then 34167 # As a simple fix, exclude /usr/bin since it's not a real path. 34168 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34169 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34170 # a path prefixed by /cygdrive for fixpath to work. 34171 new_path="$CYGWIN_ROOT_PATH$input_path" 34172 fi 34173 fi 34174 34175 # remove trailing .exe if any 34176 new_path="${new_path/%.exe/}" 34177 34178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34179 34180 # First separate the path from the arguments. This will split at the first 34181 # space. 34182 complete="$CC" 34183 path="${complete%% *}" 34184 tmp="$complete EOL" 34185 arguments="${tmp#* }" 34186 34187 # Input might be given as Windows format, start by converting to 34188 # unix format. 34189 new_path="$path" 34190 34191 windows_path="$new_path" 34192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34193 unix_path=`$CYGPATH -u "$windows_path"` 34194 new_path="$unix_path" 34195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34197 new_path="$unix_path" 34198 fi 34199 34200 34201 # Now try to locate executable using which 34202 new_path=`$WHICH "$new_path" 2> /dev/null` 34203 34204 if test "x$new_path" = x; then 34205 # Oops. Which didn't find the executable. 34206 # The splitting of arguments from the executable at a space might have been incorrect, 34207 # since paths with space are more likely in Windows. Give it another try with the whole 34208 # argument. 34209 path="$complete" 34210 arguments="EOL" 34211 new_path="$path" 34212 34213 windows_path="$new_path" 34214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34215 unix_path=`$CYGPATH -u "$windows_path"` 34216 new_path="$unix_path" 34217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34219 new_path="$unix_path" 34220 fi 34221 34222 34223 new_path=`$WHICH "$new_path" 2> /dev/null` 34224 # bat and cmd files are not always considered executable in MSYS causing which 34225 # to not find them 34226 if test "x$new_path" = x \ 34227 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34228 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34229 new_path="$path" 34230 34231 windows_path="$new_path" 34232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34233 unix_path=`$CYGPATH -u "$windows_path"` 34234 new_path="$unix_path" 34235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34237 new_path="$unix_path" 34238 fi 34239 34240 fi 34241 34242 if test "x$new_path" = x; then 34243 # It's still not found. Now this is an unrecoverable error. 34244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34245 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34246 has_space=`$ECHO "$complete" | $GREP " "` 34247 if test "x$has_space" != x; then 34248 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34249 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34250 fi 34251 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34252 fi 34253 fi 34254 34255 # Now new_path has a complete unix path to the binary 34256 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34257 # Keep paths in /bin as-is, but remove trailing .exe if any 34258 new_path="${new_path/%.exe/}" 34259 # Do not save /bin paths to all_fixpath_prefixes! 34260 else 34261 # Not in mixed or Windows style, start by that. 34262 new_path=`cmd //c echo $new_path` 34263 34264 input_path="$new_path" 34265 # Check if we need to convert this using DOS-style short mode. If the path 34266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34267 # take no chances and rewrite it. 34268 # Note: m4 eats our [], so we need to use [ and ] instead. 34269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34270 if test "x$has_forbidden_chars" != x; then 34271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34272 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34273 fi 34274 34275 # Output is in $new_path 34276 34277 windows_path="$new_path" 34278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34279 unix_path=`$CYGPATH -u "$windows_path"` 34280 new_path="$unix_path" 34281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34283 new_path="$unix_path" 34284 fi 34285 34286 # remove trailing .exe if any 34287 new_path="${new_path/%.exe/}" 34288 34289 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34290 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34291 fi 34292 34293 else 34294 # We're on a unix platform. Hooray! :) 34295 # First separate the path from the arguments. This will split at the first 34296 # space. 34297 complete="$CC" 34298 path="${complete%% *}" 34299 tmp="$complete EOL" 34300 arguments="${tmp#* }" 34301 34302 # Cannot rely on the command "which" here since it doesn't always work. 34303 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34304 if test -z "$is_absolute_path"; then 34305 # Path to executable is not absolute. Find it. 34306 IFS_save="$IFS" 34307 IFS=: 34308 for p in $PATH; do 34309 if test -f "$p/$path" && test -x "$p/$path"; then 34310 new_path="$p/$path" 34311 break 34312 fi 34313 done 34314 IFS="$IFS_save" 34315 else 34316 # This is an absolute path, we can use it without further modifications. 34317 new_path="$path" 34318 fi 34319 34320 if test "x$new_path" = x; then 34321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34322 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34323 has_space=`$ECHO "$complete" | $GREP " "` 34324 if test "x$has_space" != x; then 34325 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34326 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34327 fi 34328 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34329 fi 34330 fi 34331 34332 # Now join together the path and the arguments once again 34333 if test "x$arguments" != xEOL; then 34334 new_complete="$new_path ${arguments% *}" 34335 else 34336 new_complete="$new_path" 34337 fi 34338 34339 if test "x$complete" != "x$new_complete"; then 34340 CC="$new_complete" 34341 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34342 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34343 fi 34344 fi 34345 34346 TEST_COMPILER="$CC" 34347 34348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34349 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34350 SYMLINK_ORIGINAL="$TEST_COMPILER" 34351 34352 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34353 # Follow a chain of symbolic links. Use readlink 34354 # where it exists, else fall back to horribly 34355 # complicated shell code. 34356 if test "x$READLINK_TESTED" != yes; then 34357 # On MacOSX there is a readlink tool with a different 34358 # purpose than the GNU readlink tool. Check the found readlink. 34359 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34360 if test "x$ISGNU" = x; then 34361 # A readlink that we do not know how to use. 34362 # Are there other non-GNU readlinks out there? 34363 READLINK_TESTED=yes 34364 READLINK= 34365 fi 34366 fi 34367 34368 if test "x$READLINK" != x; then 34369 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34370 else 34371 # Save the current directory for restoring afterwards 34372 STARTDIR=$PWD 34373 COUNTER=0 34374 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34375 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34376 cd $sym_link_dir 34377 # Use -P flag to resolve symlinks in directories. 34378 cd `$THEPWDCMD -P` 34379 sym_link_dir=`$THEPWDCMD -P` 34380 # Resolve file symlinks 34381 while test $COUNTER -lt 20; do 34382 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34383 if test "x$ISLINK" == x; then 34384 # This is not a symbolic link! We are done! 34385 break 34386 fi 34387 # Again resolve directory symlinks since the target of the just found 34388 # link could be in a different directory 34389 cd `$DIRNAME $ISLINK` 34390 sym_link_dir=`$THEPWDCMD -P` 34391 sym_link_file=`$BASENAME $ISLINK` 34392 let COUNTER=COUNTER+1 34393 done 34394 cd $STARTDIR 34395 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34396 fi 34397 fi 34398 34399 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34401 $as_echo "no symlink" >&6; } 34402 else 34403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34404 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34405 34406 # We can't handle ccache by gcc wrappers, since we need to know if we're 34407 # using ccache. Instead ccache usage must be controlled by a configure option. 34408 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34409 if test "x$COMPILER_BASENAME" = "xccache"; then 34410 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34411 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34412 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34413 fi 34414 fi 34415 34416 34417 COMPILER=$CC 34418 COMPILER_NAME=$COMPILER_NAME 34419 34420 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34421 # cc -V output typically looks like 34422 # cc: Sun C 5.12 Linux_i386 2011/11/16 34423 # or 34424 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34425 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34426 # Check that this is likely to be the Solaris Studio cc. 34427 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34428 if test $? -ne 0; then 34429 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34430 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 34431 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34432 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34433 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34434 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34435 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34436 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34437 fi 34438 # Remove usage instructions (if present), and 34439 # collapse compiler output into a single line 34440 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34441 $SED -e 's/ *[Uu]sage:.*//'` 34442 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34443 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34444 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34445 # xlc -qversion output typically looks like 34446 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34447 # Version: 11.01.0000.0015 34448 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34449 # Check that this is likely to be the IBM XL C compiler. 34450 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34451 if test $? -ne 0; then 34452 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34453 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 34454 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34455 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34456 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34457 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34458 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34459 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34460 fi 34461 # Collapse compiler output into a single line 34462 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34463 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34464 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34465 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34466 # There is no specific version flag, but all output starts with a version string. 34467 # First line typically looks something like: 34468 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34469 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34470 # Check that this is likely to be Microsoft CL.EXE. 34471 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34472 if test $? -ne 0; then 34473 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 34474 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34475 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34476 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34477 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34478 fi 34479 # Collapse compiler output into a single line 34480 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34481 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34482 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34483 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34484 # gcc --version output typically looks like 34485 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34486 # Copyright (C) 2013 Free Software Foundation, Inc. 34487 # This is free software; see the source for copying conditions. There is NO 34488 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34489 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34490 # Check that this is likely to be GCC. 34491 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34492 if test $? -ne 0; then 34493 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 34494 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34495 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34496 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34497 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34498 fi 34499 # Remove Copyright and legalese from version string, and 34500 # collapse into a single line 34501 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34502 $SED -e 's/ *Copyright .*//'` 34503 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34504 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34505 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34506 # clang --version output typically looks like 34507 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34508 # clang version 3.3 (tags/RELEASE_33/final) 34509 # or 34510 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34511 # Target: x86_64-pc-linux-gnu 34512 # Thread model: posix 34513 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34514 # Check that this is likely to be clang 34515 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34516 if test $? -ne 0; then 34517 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 34518 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34519 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34520 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34521 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34522 fi 34523 # Collapse compiler output into a single line 34524 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34525 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34526 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34527 else 34528 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34529 fi 34530 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34531 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34532 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34533 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34534 34535 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34536 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34537 34538 34539 # Now that we have resolved CC ourself, let autoconf have its go at it 34540 ac_ext=c 34541 ac_cpp='$CPP $CPPFLAGS' 34542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34544 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34545 if test -n "$ac_tool_prefix"; then 34546 for ac_prog in $CC 34547 do 34548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34551 $as_echo_n "checking for $ac_word... " >&6; } 34552 if ${ac_cv_prog_CC+:} false; then : 34553 $as_echo_n "(cached) " >&6 34554 else 34555 if test -n "$CC"; then 34556 ac_cv_prog_CC="$CC" # Let the user override the test. 34557 else 34558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34559 for as_dir in $PATH 34560 do 34561 IFS=$as_save_IFS 34562 test -z "$as_dir" && as_dir=. 34563 for ac_exec_ext in '' $ac_executable_extensions; do 34564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34567 break 2 34568 fi 34569 done 34570 done 34571 IFS=$as_save_IFS 34572 34573 fi 34574 fi 34575 CC=$ac_cv_prog_CC 34576 if test -n "$CC"; then 34577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34578 $as_echo "$CC" >&6; } 34579 else 34580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34581 $as_echo "no" >&6; } 34582 fi 34583 34584 34585 test -n "$CC" && break 34586 done 34587 fi 34588 if test -z "$CC"; then 34589 ac_ct_CC=$CC 34590 for ac_prog in $CC 34591 do 34592 # Extract the first word of "$ac_prog", so it can be a program name with args. 34593 set dummy $ac_prog; ac_word=$2 34594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34595 $as_echo_n "checking for $ac_word... " >&6; } 34596 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34597 $as_echo_n "(cached) " >&6 34598 else 34599 if test -n "$ac_ct_CC"; then 34600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34601 else 34602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34603 for as_dir in $PATH 34604 do 34605 IFS=$as_save_IFS 34606 test -z "$as_dir" && as_dir=. 34607 for ac_exec_ext in '' $ac_executable_extensions; do 34608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34609 ac_cv_prog_ac_ct_CC="$ac_prog" 34610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34611 break 2 34612 fi 34613 done 34614 done 34615 IFS=$as_save_IFS 34616 34617 fi 34618 fi 34619 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34620 if test -n "$ac_ct_CC"; then 34621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34622 $as_echo "$ac_ct_CC" >&6; } 34623 else 34624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34625 $as_echo "no" >&6; } 34626 fi 34627 34628 34629 test -n "$ac_ct_CC" && break 34630 done 34631 34632 if test "x$ac_ct_CC" = x; then 34633 CC="" 34634 else 34635 case $cross_compiling:$ac_tool_warned in 34636 yes:) 34637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34639 ac_tool_warned=yes ;; 34640 esac 34641 CC=$ac_ct_CC 34642 fi 34643 fi 34644 34645 34646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34648 as_fn_error $? "no acceptable C compiler found in \$PATH 34649 See \`config.log' for more details" "$LINENO" 5; } 34650 34651 # Provide some information about the compiler. 34652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34653 set X $ac_compile 34654 ac_compiler=$2 34655 for ac_option in --version -v -V -qversion; do 34656 { { ac_try="$ac_compiler $ac_option >&5" 34657 case "(($ac_try" in 34658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34659 *) ac_try_echo=$ac_try;; 34660 esac 34661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34662 $as_echo "$ac_try_echo"; } >&5 34663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34664 ac_status=$? 34665 if test -s conftest.err; then 34666 sed '10a\ 34667 ... rest of stderr output deleted ... 34668 10q' conftest.err >conftest.er1 34669 cat conftest.er1 >&5 34670 fi 34671 rm -f conftest.er1 conftest.err 34672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34673 test $ac_status = 0; } 34674 done 34675 34676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34677 /* end confdefs.h. */ 34678 34679 int 34680 main () 34681 { 34682 34683 ; 34684 return 0; 34685 } 34686 _ACEOF 34687 ac_clean_files_save=$ac_clean_files 34688 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34689 # Try to create an executable without -o first, disregard a.out. 34690 # It will help us diagnose broken compilers, and finding out an intuition 34691 # of exeext. 34692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34693 $as_echo_n "checking whether the C compiler works... " >&6; } 34694 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34695 34696 # The possible output files: 34697 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34698 34699 ac_rmfiles= 34700 for ac_file in $ac_files 34701 do 34702 case $ac_file in 34703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34704 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34705 esac 34706 done 34707 rm -f $ac_rmfiles 34708 34709 if { { ac_try="$ac_link_default" 34710 case "(($ac_try" in 34711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34712 *) ac_try_echo=$ac_try;; 34713 esac 34714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34715 $as_echo "$ac_try_echo"; } >&5 34716 (eval "$ac_link_default") 2>&5 34717 ac_status=$? 34718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34719 test $ac_status = 0; }; then : 34720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34722 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34723 # so that the user can short-circuit this test for compilers unknown to 34724 # Autoconf. 34725 for ac_file in $ac_files '' 34726 do 34727 test -f "$ac_file" || continue 34728 case $ac_file in 34729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34730 ;; 34731 [ab].out ) 34732 # We found the default executable, but exeext='' is most 34733 # certainly right. 34734 break;; 34735 *.* ) 34736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34737 then :; else 34738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34739 fi 34740 # We set ac_cv_exeext here because the later test for it is not 34741 # safe: cross compilers may not add the suffix if given an `-o' 34742 # argument, so we may need to know it at that point already. 34743 # Even if this section looks crufty: it has the advantage of 34744 # actually working. 34745 break;; 34746 * ) 34747 break;; 34748 esac 34749 done 34750 test "$ac_cv_exeext" = no && ac_cv_exeext= 34751 34752 else 34753 ac_file='' 34754 fi 34755 if test -z "$ac_file"; then : 34756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34757 $as_echo "no" >&6; } 34758 $as_echo "$as_me: failed program was:" >&5 34759 sed 's/^/| /' conftest.$ac_ext >&5 34760 34761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34763 as_fn_error 77 "C compiler cannot create executables 34764 See \`config.log' for more details" "$LINENO" 5; } 34765 else 34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34767 $as_echo "yes" >&6; } 34768 fi 34769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34770 $as_echo_n "checking for C compiler default output file name... " >&6; } 34771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34772 $as_echo "$ac_file" >&6; } 34773 ac_exeext=$ac_cv_exeext 34774 34775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34776 ac_clean_files=$ac_clean_files_save 34777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34778 $as_echo_n "checking for suffix of executables... " >&6; } 34779 if { { ac_try="$ac_link" 34780 case "(($ac_try" in 34781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34782 *) ac_try_echo=$ac_try;; 34783 esac 34784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34785 $as_echo "$ac_try_echo"; } >&5 34786 (eval "$ac_link") 2>&5 34787 ac_status=$? 34788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34789 test $ac_status = 0; }; then : 34790 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34792 # work properly (i.e., refer to `conftest.exe'), while it won't with 34793 # `rm'. 34794 for ac_file in conftest.exe conftest conftest.*; do 34795 test -f "$ac_file" || continue 34796 case $ac_file in 34797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34799 break;; 34800 * ) break;; 34801 esac 34802 done 34803 else 34804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34806 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34807 See \`config.log' for more details" "$LINENO" 5; } 34808 fi 34809 rm -f conftest conftest$ac_cv_exeext 34810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34811 $as_echo "$ac_cv_exeext" >&6; } 34812 34813 rm -f conftest.$ac_ext 34814 EXEEXT=$ac_cv_exeext 34815 ac_exeext=$EXEEXT 34816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34817 /* end confdefs.h. */ 34818 #include <stdio.h> 34819 int 34820 main () 34821 { 34822 FILE *f = fopen ("conftest.out", "w"); 34823 return ferror (f) || fclose (f) != 0; 34824 34825 ; 34826 return 0; 34827 } 34828 _ACEOF 34829 ac_clean_files="$ac_clean_files conftest.out" 34830 # Check that the compiler produces executables we can run. If not, either 34831 # the compiler is broken, or we cross compile. 34832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34833 $as_echo_n "checking whether we are cross compiling... " >&6; } 34834 if test "$cross_compiling" != yes; then 34835 { { ac_try="$ac_link" 34836 case "(($ac_try" in 34837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34838 *) ac_try_echo=$ac_try;; 34839 esac 34840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34841 $as_echo "$ac_try_echo"; } >&5 34842 (eval "$ac_link") 2>&5 34843 ac_status=$? 34844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34845 test $ac_status = 0; } 34846 if { ac_try='./conftest$ac_cv_exeext' 34847 { { case "(($ac_try" in 34848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34849 *) ac_try_echo=$ac_try;; 34850 esac 34851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34852 $as_echo "$ac_try_echo"; } >&5 34853 (eval "$ac_try") 2>&5 34854 ac_status=$? 34855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34856 test $ac_status = 0; }; }; then 34857 cross_compiling=no 34858 else 34859 if test "$cross_compiling" = maybe; then 34860 cross_compiling=yes 34861 else 34862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34864 as_fn_error $? "cannot run C compiled programs. 34865 If you meant to cross compile, use \`--host'. 34866 See \`config.log' for more details" "$LINENO" 5; } 34867 fi 34868 fi 34869 fi 34870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34871 $as_echo "$cross_compiling" >&6; } 34872 34873 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34874 ac_clean_files=$ac_clean_files_save 34875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34876 $as_echo_n "checking for suffix of object files... " >&6; } 34877 if ${ac_cv_objext+:} false; then : 34878 $as_echo_n "(cached) " >&6 34879 else 34880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34881 /* end confdefs.h. */ 34882 34883 int 34884 main () 34885 { 34886 34887 ; 34888 return 0; 34889 } 34890 _ACEOF 34891 rm -f conftest.o conftest.obj 34892 if { { ac_try="$ac_compile" 34893 case "(($ac_try" in 34894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34895 *) ac_try_echo=$ac_try;; 34896 esac 34897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34898 $as_echo "$ac_try_echo"; } >&5 34899 (eval "$ac_compile") 2>&5 34900 ac_status=$? 34901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34902 test $ac_status = 0; }; then : 34903 for ac_file in conftest.o conftest.obj conftest.*; do 34904 test -f "$ac_file" || continue; 34905 case $ac_file in 34906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34908 break;; 34909 esac 34910 done 34911 else 34912 $as_echo "$as_me: failed program was:" >&5 34913 sed 's/^/| /' conftest.$ac_ext >&5 34914 34915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34917 as_fn_error $? "cannot compute suffix of object files: cannot compile 34918 See \`config.log' for more details" "$LINENO" 5; } 34919 fi 34920 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34921 fi 34922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34923 $as_echo "$ac_cv_objext" >&6; } 34924 OBJEXT=$ac_cv_objext 34925 ac_objext=$OBJEXT 34926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34928 if ${ac_cv_c_compiler_gnu+:} false; then : 34929 $as_echo_n "(cached) " >&6 34930 else 34931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34932 /* end confdefs.h. */ 34933 34934 int 34935 main () 34936 { 34937 #ifndef __GNUC__ 34938 choke me 34939 #endif 34940 34941 ; 34942 return 0; 34943 } 34944 _ACEOF 34945 if ac_fn_c_try_compile "$LINENO"; then : 34946 ac_compiler_gnu=yes 34947 else 34948 ac_compiler_gnu=no 34949 fi 34950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34951 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34952 34953 fi 34954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34955 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34956 if test $ac_compiler_gnu = yes; then 34957 GCC=yes 34958 else 34959 GCC= 34960 fi 34961 ac_test_CFLAGS=${CFLAGS+set} 34962 ac_save_CFLAGS=$CFLAGS 34963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34964 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34965 if ${ac_cv_prog_cc_g+:} false; then : 34966 $as_echo_n "(cached) " >&6 34967 else 34968 ac_save_c_werror_flag=$ac_c_werror_flag 34969 ac_c_werror_flag=yes 34970 ac_cv_prog_cc_g=no 34971 CFLAGS="-g" 34972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34973 /* end confdefs.h. */ 34974 34975 int 34976 main () 34977 { 34978 34979 ; 34980 return 0; 34981 } 34982 _ACEOF 34983 if ac_fn_c_try_compile "$LINENO"; then : 34984 ac_cv_prog_cc_g=yes 34985 else 34986 CFLAGS="" 34987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34988 /* end confdefs.h. */ 34989 34990 int 34991 main () 34992 { 34993 34994 ; 34995 return 0; 34996 } 34997 _ACEOF 34998 if ac_fn_c_try_compile "$LINENO"; then : 34999 35000 else 35001 ac_c_werror_flag=$ac_save_c_werror_flag 35002 CFLAGS="-g" 35003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35004 /* end confdefs.h. */ 35005 35006 int 35007 main () 35008 { 35009 35010 ; 35011 return 0; 35012 } 35013 _ACEOF 35014 if ac_fn_c_try_compile "$LINENO"; then : 35015 ac_cv_prog_cc_g=yes 35016 fi 35017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35018 fi 35019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35020 fi 35021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35022 ac_c_werror_flag=$ac_save_c_werror_flag 35023 fi 35024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35025 $as_echo "$ac_cv_prog_cc_g" >&6; } 35026 if test "$ac_test_CFLAGS" = set; then 35027 CFLAGS=$ac_save_CFLAGS 35028 elif test $ac_cv_prog_cc_g = yes; then 35029 if test "$GCC" = yes; then 35030 CFLAGS="-g -O2" 35031 else 35032 CFLAGS="-g" 35033 fi 35034 else 35035 if test "$GCC" = yes; then 35036 CFLAGS="-O2" 35037 else 35038 CFLAGS= 35039 fi 35040 fi 35041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35043 if ${ac_cv_prog_cc_c89+:} false; then : 35044 $as_echo_n "(cached) " >&6 35045 else 35046 ac_cv_prog_cc_c89=no 35047 ac_save_CC=$CC 35048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35049 /* end confdefs.h. */ 35050 #include <stdarg.h> 35051 #include <stdio.h> 35052 struct stat; 35053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35054 struct buf { int x; }; 35055 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35056 static char *e (p, i) 35057 char **p; 35058 int i; 35059 { 35060 return p[i]; 35061 } 35062 static char *f (char * (*g) (char **, int), char **p, ...) 35063 { 35064 char *s; 35065 va_list v; 35066 va_start (v,p); 35067 s = g (p, va_arg (v,int)); 35068 va_end (v); 35069 return s; 35070 } 35071 35072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35073 function prototypes and stuff, but not '\xHH' hex character constants. 35074 These don't provoke an error unfortunately, instead are silently treated 35075 as 'x'. The following induces an error, until -std is added to get 35076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35077 array size at least. It's necessary to write '\x00'==0 to get something 35078 that's true only with -std. */ 35079 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35080 35081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35082 inside strings and character constants. */ 35083 #define FOO(x) 'x' 35084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35085 35086 int test (int i, double x); 35087 struct s1 {int (*f) (int a);}; 35088 struct s2 {int (*f) (double a);}; 35089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35090 int argc; 35091 char **argv; 35092 int 35093 main () 35094 { 35095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35096 ; 35097 return 0; 35098 } 35099 _ACEOF 35100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35102 do 35103 CC="$ac_save_CC $ac_arg" 35104 if ac_fn_c_try_compile "$LINENO"; then : 35105 ac_cv_prog_cc_c89=$ac_arg 35106 fi 35107 rm -f core conftest.err conftest.$ac_objext 35108 test "x$ac_cv_prog_cc_c89" != "xno" && break 35109 done 35110 rm -f conftest.$ac_ext 35111 CC=$ac_save_CC 35112 35113 fi 35114 # AC_CACHE_VAL 35115 case "x$ac_cv_prog_cc_c89" in 35116 x) 35117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35118 $as_echo "none needed" >&6; } ;; 35119 xno) 35120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35121 $as_echo "unsupported" >&6; } ;; 35122 *) 35123 CC="$CC $ac_cv_prog_cc_c89" 35124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35126 esac 35127 if test "x$ac_cv_prog_cc_c89" != xno; then : 35128 35129 fi 35130 35131 ac_ext=cpp 35132 ac_cpp='$CXXCPP $CPPFLAGS' 35133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35136 35137 35138 35139 COMPILER_NAME=C++ 35140 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35141 35142 if test "x$CXX" != x; then 35143 # User has supplied compiler name already, always let that override. 35144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35145 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35146 if test "x`basename $CXX`" = "x$CXX"; then 35147 # A command without a complete path is provided, search $PATH. 35148 35149 for ac_prog in $CXX 35150 do 35151 # Extract the first word of "$ac_prog", so it can be a program name with args. 35152 set dummy $ac_prog; ac_word=$2 35153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35154 $as_echo_n "checking for $ac_word... " >&6; } 35155 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35156 $as_echo_n "(cached) " >&6 35157 else 35158 case $POTENTIAL_CXX in 35159 [\\/]* | ?:[\\/]*) 35160 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35161 ;; 35162 *) 35163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35164 for as_dir in $PATH 35165 do 35166 IFS=$as_save_IFS 35167 test -z "$as_dir" && as_dir=. 35168 for ac_exec_ext in '' $ac_executable_extensions; do 35169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35170 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35172 break 2 35173 fi 35174 done 35175 done 35176 IFS=$as_save_IFS 35177 35178 ;; 35179 esac 35180 fi 35181 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35182 if test -n "$POTENTIAL_CXX"; then 35183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35184 $as_echo "$POTENTIAL_CXX" >&6; } 35185 else 35186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35187 $as_echo "no" >&6; } 35188 fi 35189 35190 35191 test -n "$POTENTIAL_CXX" && break 35192 done 35193 35194 if test "x$POTENTIAL_CXX" != x; then 35195 CXX=$POTENTIAL_CXX 35196 else 35197 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35198 fi 35199 else 35200 # Otherwise it might already be a complete path 35201 if test ! -x "$CXX"; then 35202 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35203 fi 35204 fi 35205 else 35206 # No user supplied value. Locate compiler ourselves. 35207 35208 # If we are cross compiling, assume cross compilation tools follows the 35209 # cross compilation standard where they are prefixed with the autoconf 35210 # standard name for the target. For example the binary 35211 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35212 # If we are not cross compiling, then the default compiler name will be 35213 # used. 35214 35215 CXX= 35216 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35217 # before checking the rest of the PATH. 35218 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35219 # step, this should not be necessary. 35220 if test -n "$TOOLCHAIN_PATH"; then 35221 PATH_save="$PATH" 35222 PATH="$TOOLCHAIN_PATH" 35223 if test -n "$ac_tool_prefix"; then 35224 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35225 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35227 $as_echo_n "checking for $ac_word... " >&6; } 35228 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35229 $as_echo_n "(cached) " >&6 35230 else 35231 case $TOOLCHAIN_PATH_CXX in 35232 [\\/]* | ?:[\\/]*) 35233 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35234 ;; 35235 *) 35236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35237 for as_dir in $PATH 35238 do 35239 IFS=$as_save_IFS 35240 test -z "$as_dir" && as_dir=. 35241 for ac_exec_ext in '' $ac_executable_extensions; do 35242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35243 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35245 break 2 35246 fi 35247 done 35248 done 35249 IFS=$as_save_IFS 35250 35251 ;; 35252 esac 35253 fi 35254 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35255 if test -n "$TOOLCHAIN_PATH_CXX"; then 35256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35257 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35258 else 35259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35260 $as_echo "no" >&6; } 35261 fi 35262 35263 35264 fi 35265 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35266 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35267 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35268 set dummy $SEARCH_LIST; ac_word=$2 35269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35270 $as_echo_n "checking for $ac_word... " >&6; } 35271 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35272 $as_echo_n "(cached) " >&6 35273 else 35274 case $ac_pt_TOOLCHAIN_PATH_CXX in 35275 [\\/]* | ?:[\\/]*) 35276 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35277 ;; 35278 *) 35279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35280 for as_dir in $PATH 35281 do 35282 IFS=$as_save_IFS 35283 test -z "$as_dir" && as_dir=. 35284 for ac_exec_ext in '' $ac_executable_extensions; do 35285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35286 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35288 break 2 35289 fi 35290 done 35291 done 35292 IFS=$as_save_IFS 35293 35294 ;; 35295 esac 35296 fi 35297 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35298 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35300 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35301 else 35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35303 $as_echo "no" >&6; } 35304 fi 35305 35306 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35307 TOOLCHAIN_PATH_CXX="" 35308 else 35309 case $cross_compiling:$ac_tool_warned in 35310 yes:) 35311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35313 ac_tool_warned=yes ;; 35314 esac 35315 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35316 fi 35317 else 35318 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35319 fi 35320 35321 CXX=$TOOLCHAIN_PATH_CXX 35322 PATH="$PATH_save" 35323 fi 35324 35325 # AC_PATH_TOOL can't be run multiple times with the same variable, 35326 # so create a new name for this run. 35327 if test "x$CXX" = x; then 35328 if test -n "$ac_tool_prefix"; then 35329 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35330 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35332 $as_echo_n "checking for $ac_word... " >&6; } 35333 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35334 $as_echo_n "(cached) " >&6 35335 else 35336 case $POTENTIAL_CXX in 35337 [\\/]* | ?:[\\/]*) 35338 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35339 ;; 35340 *) 35341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35342 for as_dir in $PATH 35343 do 35344 IFS=$as_save_IFS 35345 test -z "$as_dir" && as_dir=. 35346 for ac_exec_ext in '' $ac_executable_extensions; do 35347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35348 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35350 break 2 35351 fi 35352 done 35353 done 35354 IFS=$as_save_IFS 35355 35356 ;; 35357 esac 35358 fi 35359 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35360 if test -n "$POTENTIAL_CXX"; then 35361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35362 $as_echo "$POTENTIAL_CXX" >&6; } 35363 else 35364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35365 $as_echo "no" >&6; } 35366 fi 35367 35368 35369 fi 35370 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35371 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35372 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35373 set dummy $SEARCH_LIST; ac_word=$2 35374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35375 $as_echo_n "checking for $ac_word... " >&6; } 35376 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35377 $as_echo_n "(cached) " >&6 35378 else 35379 case $ac_pt_POTENTIAL_CXX in 35380 [\\/]* | ?:[\\/]*) 35381 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35382 ;; 35383 *) 35384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35385 for as_dir in $PATH 35386 do 35387 IFS=$as_save_IFS 35388 test -z "$as_dir" && as_dir=. 35389 for ac_exec_ext in '' $ac_executable_extensions; do 35390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35391 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35393 break 2 35394 fi 35395 done 35396 done 35397 IFS=$as_save_IFS 35398 35399 ;; 35400 esac 35401 fi 35402 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35403 if test -n "$ac_pt_POTENTIAL_CXX"; then 35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35405 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35406 else 35407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35408 $as_echo "no" >&6; } 35409 fi 35410 35411 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35412 POTENTIAL_CXX="" 35413 else 35414 case $cross_compiling:$ac_tool_warned in 35415 yes:) 35416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35418 ac_tool_warned=yes ;; 35419 esac 35420 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35421 fi 35422 else 35423 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35424 fi 35425 35426 CXX=$POTENTIAL_CXX 35427 fi 35428 35429 if test "x$CXX" = x; then 35430 35431 # Print a helpful message on how to acquire the necessary build dependency. 35432 # devkit is the help tag: freetype, cups, alsa etc 35433 MISSING_DEPENDENCY=devkit 35434 35435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35436 cygwin_help $MISSING_DEPENDENCY 35437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35438 msys_help $MISSING_DEPENDENCY 35439 else 35440 PKGHANDLER_COMMAND= 35441 35442 case $PKGHANDLER in 35443 apt-get) 35444 apt_help $MISSING_DEPENDENCY ;; 35445 yum) 35446 yum_help $MISSING_DEPENDENCY ;; 35447 brew) 35448 brew_help $MISSING_DEPENDENCY ;; 35449 port) 35450 port_help $MISSING_DEPENDENCY ;; 35451 pkgutil) 35452 pkgutil_help $MISSING_DEPENDENCY ;; 35453 pkgadd) 35454 pkgadd_help $MISSING_DEPENDENCY ;; 35455 esac 35456 35457 if test "x$PKGHANDLER_COMMAND" != x; then 35458 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35459 fi 35460 fi 35461 35462 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35463 fi 35464 fi 35465 35466 # Now we have a compiler binary in CXX. Make sure it's okay. 35467 35468 # Only process if variable expands to non-empty 35469 35470 if test "x$CXX" != x; then 35471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35472 35473 # First separate the path from the arguments. This will split at the first 35474 # space. 35475 complete="$CXX" 35476 path="${complete%% *}" 35477 tmp="$complete EOL" 35478 arguments="${tmp#* }" 35479 35480 # Input might be given as Windows format, start by converting to 35481 # unix format. 35482 new_path=`$CYGPATH -u "$path"` 35483 35484 # Now try to locate executable using which 35485 new_path=`$WHICH "$new_path" 2> /dev/null` 35486 # bat and cmd files are not always considered executable in cygwin causing which 35487 # to not find them 35488 if test "x$new_path" = x \ 35489 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35490 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35491 new_path=`$CYGPATH -u "$path"` 35492 fi 35493 if test "x$new_path" = x; then 35494 # Oops. Which didn't find the executable. 35495 # The splitting of arguments from the executable at a space might have been incorrect, 35496 # since paths with space are more likely in Windows. Give it another try with the whole 35497 # argument. 35498 path="$complete" 35499 arguments="EOL" 35500 new_path=`$CYGPATH -u "$path"` 35501 new_path=`$WHICH "$new_path" 2> /dev/null` 35502 # bat and cmd files are not always considered executable in cygwin causing which 35503 # to not find them 35504 if test "x$new_path" = x \ 35505 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35506 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35507 new_path=`$CYGPATH -u "$path"` 35508 fi 35509 if test "x$new_path" = x; then 35510 # It's still not found. Now this is an unrecoverable error. 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35512 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35513 has_space=`$ECHO "$complete" | $GREP " "` 35514 if test "x$has_space" != x; then 35515 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35516 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35517 fi 35518 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35519 fi 35520 fi 35521 35522 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35523 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35524 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35525 # "foo.exe" is OK but "foo" is an error. 35526 # 35527 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35528 # It is also a way to make sure we got the proper file name for the real test later on. 35529 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35530 if test "x$test_shortpath" = x; then 35531 # Short path failed, file does not exist as specified. 35532 # Try adding .exe or .cmd 35533 if test -f "${new_path}.exe"; then 35534 input_to_shortpath="${new_path}.exe" 35535 elif test -f "${new_path}.cmd"; then 35536 input_to_shortpath="${new_path}.cmd" 35537 else 35538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35539 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35540 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35541 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35542 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35543 fi 35544 else 35545 input_to_shortpath="$new_path" 35546 fi 35547 35548 # Call helper function which possibly converts this using DOS-style short mode. 35549 # If so, the updated path is stored in $new_path. 35550 new_path="$input_to_shortpath" 35551 35552 input_path="$input_to_shortpath" 35553 # Check if we need to convert this using DOS-style short mode. If the path 35554 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35555 # take no chances and rewrite it. 35556 # Note: m4 eats our [], so we need to use [ and ] instead. 35557 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35558 if test "x$has_forbidden_chars" != x; then 35559 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35560 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35561 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35562 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35563 # Going to short mode and back again did indeed matter. Since short mode is 35564 # case insensitive, let's make it lowercase to improve readability. 35565 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35566 # Now convert it back to Unix-style (cygpath) 35567 input_path=`$CYGPATH -u "$shortmode_path"` 35568 new_path="$input_path" 35569 fi 35570 fi 35571 35572 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35573 if test "x$test_cygdrive_prefix" = x; then 35574 # As a simple fix, exclude /usr/bin since it's not a real path. 35575 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35576 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35577 # a path prefixed by /cygdrive for fixpath to work. 35578 new_path="$CYGWIN_ROOT_PATH$input_path" 35579 fi 35580 fi 35581 35582 # remove trailing .exe if any 35583 new_path="${new_path/%.exe/}" 35584 35585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35586 35587 # First separate the path from the arguments. This will split at the first 35588 # space. 35589 complete="$CXX" 35590 path="${complete%% *}" 35591 tmp="$complete EOL" 35592 arguments="${tmp#* }" 35593 35594 # Input might be given as Windows format, start by converting to 35595 # unix format. 35596 new_path="$path" 35597 35598 windows_path="$new_path" 35599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35600 unix_path=`$CYGPATH -u "$windows_path"` 35601 new_path="$unix_path" 35602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35603 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35604 new_path="$unix_path" 35605 fi 35606 35607 35608 # Now try to locate executable using which 35609 new_path=`$WHICH "$new_path" 2> /dev/null` 35610 35611 if test "x$new_path" = x; then 35612 # Oops. Which didn't find the executable. 35613 # The splitting of arguments from the executable at a space might have been incorrect, 35614 # since paths with space are more likely in Windows. Give it another try with the whole 35615 # argument. 35616 path="$complete" 35617 arguments="EOL" 35618 new_path="$path" 35619 35620 windows_path="$new_path" 35621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35622 unix_path=`$CYGPATH -u "$windows_path"` 35623 new_path="$unix_path" 35624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35625 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35626 new_path="$unix_path" 35627 fi 35628 35629 35630 new_path=`$WHICH "$new_path" 2> /dev/null` 35631 # bat and cmd files are not always considered executable in MSYS causing which 35632 # to not find them 35633 if test "x$new_path" = x \ 35634 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35635 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35636 new_path="$path" 35637 35638 windows_path="$new_path" 35639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35640 unix_path=`$CYGPATH -u "$windows_path"` 35641 new_path="$unix_path" 35642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35644 new_path="$unix_path" 35645 fi 35646 35647 fi 35648 35649 if test "x$new_path" = x; then 35650 # It's still not found. Now this is an unrecoverable error. 35651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35652 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35653 has_space=`$ECHO "$complete" | $GREP " "` 35654 if test "x$has_space" != x; then 35655 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35657 fi 35658 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35659 fi 35660 fi 35661 35662 # Now new_path has a complete unix path to the binary 35663 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35664 # Keep paths in /bin as-is, but remove trailing .exe if any 35665 new_path="${new_path/%.exe/}" 35666 # Do not save /bin paths to all_fixpath_prefixes! 35667 else 35668 # Not in mixed or Windows style, start by that. 35669 new_path=`cmd //c echo $new_path` 35670 35671 input_path="$new_path" 35672 # Check if we need to convert this using DOS-style short mode. If the path 35673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35674 # take no chances and rewrite it. 35675 # Note: m4 eats our [], so we need to use [ and ] instead. 35676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35677 if test "x$has_forbidden_chars" != x; then 35678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35679 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35680 fi 35681 35682 # Output is in $new_path 35683 35684 windows_path="$new_path" 35685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35686 unix_path=`$CYGPATH -u "$windows_path"` 35687 new_path="$unix_path" 35688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35690 new_path="$unix_path" 35691 fi 35692 35693 # remove trailing .exe if any 35694 new_path="${new_path/%.exe/}" 35695 35696 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35697 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35698 fi 35699 35700 else 35701 # We're on a unix platform. Hooray! :) 35702 # First separate the path from the arguments. This will split at the first 35703 # space. 35704 complete="$CXX" 35705 path="${complete%% *}" 35706 tmp="$complete EOL" 35707 arguments="${tmp#* }" 35708 35709 # Cannot rely on the command "which" here since it doesn't always work. 35710 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35711 if test -z "$is_absolute_path"; then 35712 # Path to executable is not absolute. Find it. 35713 IFS_save="$IFS" 35714 IFS=: 35715 for p in $PATH; do 35716 if test -f "$p/$path" && test -x "$p/$path"; then 35717 new_path="$p/$path" 35718 break 35719 fi 35720 done 35721 IFS="$IFS_save" 35722 else 35723 # This is an absolute path, we can use it without further modifications. 35724 new_path="$path" 35725 fi 35726 35727 if test "x$new_path" = x; then 35728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35729 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35730 has_space=`$ECHO "$complete" | $GREP " "` 35731 if test "x$has_space" != x; then 35732 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35733 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35734 fi 35735 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35736 fi 35737 fi 35738 35739 # Now join together the path and the arguments once again 35740 if test "x$arguments" != xEOL; then 35741 new_complete="$new_path ${arguments% *}" 35742 else 35743 new_complete="$new_path" 35744 fi 35745 35746 if test "x$complete" != "x$new_complete"; then 35747 CXX="$new_complete" 35748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35749 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35750 fi 35751 fi 35752 35753 TEST_COMPILER="$CXX" 35754 35755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35756 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35757 SYMLINK_ORIGINAL="$TEST_COMPILER" 35758 35759 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35760 # Follow a chain of symbolic links. Use readlink 35761 # where it exists, else fall back to horribly 35762 # complicated shell code. 35763 if test "x$READLINK_TESTED" != yes; then 35764 # On MacOSX there is a readlink tool with a different 35765 # purpose than the GNU readlink tool. Check the found readlink. 35766 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35767 if test "x$ISGNU" = x; then 35768 # A readlink that we do not know how to use. 35769 # Are there other non-GNU readlinks out there? 35770 READLINK_TESTED=yes 35771 READLINK= 35772 fi 35773 fi 35774 35775 if test "x$READLINK" != x; then 35776 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35777 else 35778 # Save the current directory for restoring afterwards 35779 STARTDIR=$PWD 35780 COUNTER=0 35781 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35782 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35783 cd $sym_link_dir 35784 # Use -P flag to resolve symlinks in directories. 35785 cd `$THEPWDCMD -P` 35786 sym_link_dir=`$THEPWDCMD -P` 35787 # Resolve file symlinks 35788 while test $COUNTER -lt 20; do 35789 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35790 if test "x$ISLINK" == x; then 35791 # This is not a symbolic link! We are done! 35792 break 35793 fi 35794 # Again resolve directory symlinks since the target of the just found 35795 # link could be in a different directory 35796 cd `$DIRNAME $ISLINK` 35797 sym_link_dir=`$THEPWDCMD -P` 35798 sym_link_file=`$BASENAME $ISLINK` 35799 let COUNTER=COUNTER+1 35800 done 35801 cd $STARTDIR 35802 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35803 fi 35804 fi 35805 35806 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35808 $as_echo "no symlink" >&6; } 35809 else 35810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35811 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35812 35813 # We can't handle ccache by gcc wrappers, since we need to know if we're 35814 # using ccache. Instead ccache usage must be controlled by a configure option. 35815 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35816 if test "x$COMPILER_BASENAME" = "xccache"; then 35817 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35818 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35819 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35820 fi 35821 fi 35822 35823 35824 COMPILER=$CXX 35825 COMPILER_NAME=$COMPILER_NAME 35826 35827 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35828 # cc -V output typically looks like 35829 # cc: Sun C 5.12 Linux_i386 2011/11/16 35830 # or 35831 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35832 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35833 # Check that this is likely to be the Solaris Studio cc. 35834 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35835 if test $? -ne 0; then 35836 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35837 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 35838 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35839 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35840 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35841 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35842 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35843 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35844 fi 35845 # Remove usage instructions (if present), and 35846 # collapse compiler output into a single line 35847 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35848 $SED -e 's/ *[Uu]sage:.*//'` 35849 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35850 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35851 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35852 # xlc -qversion output typically looks like 35853 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35854 # Version: 11.01.0000.0015 35855 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35856 # Check that this is likely to be the IBM XL C compiler. 35857 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35858 if test $? -ne 0; then 35859 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35860 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 35861 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35862 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35863 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35864 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35865 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35866 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35867 fi 35868 # Collapse compiler output into a single line 35869 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35870 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35871 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35872 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35873 # There is no specific version flag, but all output starts with a version string. 35874 # First line typically looks something like: 35875 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35876 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35877 # Check that this is likely to be Microsoft CL.EXE. 35878 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35879 if test $? -ne 0; then 35880 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 35881 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35882 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35883 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35884 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35885 fi 35886 # Collapse compiler output into a single line 35887 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35888 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35889 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35890 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35891 # gcc --version output typically looks like 35892 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35893 # Copyright (C) 2013 Free Software Foundation, Inc. 35894 # This is free software; see the source for copying conditions. There is NO 35895 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35896 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35897 # Check that this is likely to be GCC. 35898 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35899 if test $? -ne 0; then 35900 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 35901 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35902 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35903 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35904 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35905 fi 35906 # Remove Copyright and legalese from version string, and 35907 # collapse into a single line 35908 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35909 $SED -e 's/ *Copyright .*//'` 35910 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35911 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35912 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35913 # clang --version output typically looks like 35914 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35915 # clang version 3.3 (tags/RELEASE_33/final) 35916 # or 35917 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35918 # Target: x86_64-pc-linux-gnu 35919 # Thread model: posix 35920 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35921 # Check that this is likely to be clang 35922 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35923 if test $? -ne 0; then 35924 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 35925 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35926 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35927 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35928 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35929 fi 35930 # Collapse compiler output into a single line 35931 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35932 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35933 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35934 else 35935 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35936 fi 35937 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35938 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35939 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35940 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35941 35942 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35943 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35944 35945 35946 # Now that we have resolved CXX ourself, let autoconf have its go at it 35947 ac_ext=cpp 35948 ac_cpp='$CXXCPP $CPPFLAGS' 35949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35952 if test -z "$CXX"; then 35953 if test -n "$CCC"; then 35954 CXX=$CCC 35955 else 35956 if test -n "$ac_tool_prefix"; then 35957 for ac_prog in $CXX 35958 do 35959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35962 $as_echo_n "checking for $ac_word... " >&6; } 35963 if ${ac_cv_prog_CXX+:} false; then : 35964 $as_echo_n "(cached) " >&6 35965 else 35966 if test -n "$CXX"; then 35967 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35968 else 35969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35970 for as_dir in $PATH 35971 do 35972 IFS=$as_save_IFS 35973 test -z "$as_dir" && as_dir=. 35974 for ac_exec_ext in '' $ac_executable_extensions; do 35975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35976 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35978 break 2 35979 fi 35980 done 35981 done 35982 IFS=$as_save_IFS 35983 35984 fi 35985 fi 35986 CXX=$ac_cv_prog_CXX 35987 if test -n "$CXX"; then 35988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35989 $as_echo "$CXX" >&6; } 35990 else 35991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35992 $as_echo "no" >&6; } 35993 fi 35994 35995 35996 test -n "$CXX" && break 35997 done 35998 fi 35999 if test -z "$CXX"; then 36000 ac_ct_CXX=$CXX 36001 for ac_prog in $CXX 36002 do 36003 # Extract the first word of "$ac_prog", so it can be a program name with args. 36004 set dummy $ac_prog; ac_word=$2 36005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36006 $as_echo_n "checking for $ac_word... " >&6; } 36007 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 36008 $as_echo_n "(cached) " >&6 36009 else 36010 if test -n "$ac_ct_CXX"; then 36011 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 36012 else 36013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36014 for as_dir in $PATH 36015 do 36016 IFS=$as_save_IFS 36017 test -z "$as_dir" && as_dir=. 36018 for ac_exec_ext in '' $ac_executable_extensions; do 36019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36020 ac_cv_prog_ac_ct_CXX="$ac_prog" 36021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36022 break 2 36023 fi 36024 done 36025 done 36026 IFS=$as_save_IFS 36027 36028 fi 36029 fi 36030 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 36031 if test -n "$ac_ct_CXX"; then 36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 36033 $as_echo "$ac_ct_CXX" >&6; } 36034 else 36035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36036 $as_echo "no" >&6; } 36037 fi 36038 36039 36040 test -n "$ac_ct_CXX" && break 36041 done 36042 36043 if test "x$ac_ct_CXX" = x; then 36044 CXX="g++" 36045 else 36046 case $cross_compiling:$ac_tool_warned in 36047 yes:) 36048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36050 ac_tool_warned=yes ;; 36051 esac 36052 CXX=$ac_ct_CXX 36053 fi 36054 fi 36055 36056 fi 36057 fi 36058 # Provide some information about the compiler. 36059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36060 set X $ac_compile 36061 ac_compiler=$2 36062 for ac_option in --version -v -V -qversion; do 36063 { { ac_try="$ac_compiler $ac_option >&5" 36064 case "(($ac_try" in 36065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36066 *) ac_try_echo=$ac_try;; 36067 esac 36068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36069 $as_echo "$ac_try_echo"; } >&5 36070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36071 ac_status=$? 36072 if test -s conftest.err; then 36073 sed '10a\ 36074 ... rest of stderr output deleted ... 36075 10q' conftest.err >conftest.er1 36076 cat conftest.er1 >&5 36077 fi 36078 rm -f conftest.er1 conftest.err 36079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36080 test $ac_status = 0; } 36081 done 36082 36083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36084 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36085 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36086 $as_echo_n "(cached) " >&6 36087 else 36088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36089 /* end confdefs.h. */ 36090 36091 int 36092 main () 36093 { 36094 #ifndef __GNUC__ 36095 choke me 36096 #endif 36097 36098 ; 36099 return 0; 36100 } 36101 _ACEOF 36102 if ac_fn_cxx_try_compile "$LINENO"; then : 36103 ac_compiler_gnu=yes 36104 else 36105 ac_compiler_gnu=no 36106 fi 36107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36108 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36109 36110 fi 36111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36112 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36113 if test $ac_compiler_gnu = yes; then 36114 GXX=yes 36115 else 36116 GXX= 36117 fi 36118 ac_test_CXXFLAGS=${CXXFLAGS+set} 36119 ac_save_CXXFLAGS=$CXXFLAGS 36120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36121 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36122 if ${ac_cv_prog_cxx_g+:} false; then : 36123 $as_echo_n "(cached) " >&6 36124 else 36125 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36126 ac_cxx_werror_flag=yes 36127 ac_cv_prog_cxx_g=no 36128 CXXFLAGS="-g" 36129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36130 /* end confdefs.h. */ 36131 36132 int 36133 main () 36134 { 36135 36136 ; 36137 return 0; 36138 } 36139 _ACEOF 36140 if ac_fn_cxx_try_compile "$LINENO"; then : 36141 ac_cv_prog_cxx_g=yes 36142 else 36143 CXXFLAGS="" 36144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36145 /* end confdefs.h. */ 36146 36147 int 36148 main () 36149 { 36150 36151 ; 36152 return 0; 36153 } 36154 _ACEOF 36155 if ac_fn_cxx_try_compile "$LINENO"; then : 36156 36157 else 36158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36159 CXXFLAGS="-g" 36160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36161 /* end confdefs.h. */ 36162 36163 int 36164 main () 36165 { 36166 36167 ; 36168 return 0; 36169 } 36170 _ACEOF 36171 if ac_fn_cxx_try_compile "$LINENO"; then : 36172 ac_cv_prog_cxx_g=yes 36173 fi 36174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36175 fi 36176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36177 fi 36178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36180 fi 36181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36182 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36183 if test "$ac_test_CXXFLAGS" = set; then 36184 CXXFLAGS=$ac_save_CXXFLAGS 36185 elif test $ac_cv_prog_cxx_g = yes; then 36186 if test "$GXX" = yes; then 36187 CXXFLAGS="-g -O2" 36188 else 36189 CXXFLAGS="-g" 36190 fi 36191 else 36192 if test "$GXX" = yes; then 36193 CXXFLAGS="-O2" 36194 else 36195 CXXFLAGS= 36196 fi 36197 fi 36198 ac_ext=cpp 36199 ac_cpp='$CXXCPP $CPPFLAGS' 36200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36203 36204 36205 # This is the compiler version number on the form X.Y[.Z] 36206 36207 36208 36209 36210 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36212 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36214 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36215 fi 36216 36217 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36218 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 36220 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36221 fi 36222 36223 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 36225 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36226 fi 36227 36228 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36229 36230 36231 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36232 36233 36234 36235 36236 36237 36238 36239 36240 36241 36242 36243 36244 36245 36246 36247 36248 36249 36250 36251 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 36267 36268 36269 36270 36271 36272 36273 36274 36275 36276 36277 36278 36279 36280 36281 # Execute function body 36282 36283 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36284 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36285 36286 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36287 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36288 fi 36289 36290 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36291 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36292 fi 36293 36294 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36295 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36296 36297 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36298 : 36299 36300 else 36301 : 36302 36303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&5 36304 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36305 36306 36307 fi 36308 36309 36310 36311 36312 36313 36314 36315 36316 36317 36318 36319 36320 36321 36322 fi 36323 36324 # 36325 # Setup the preprocessor (CPP and CXXCPP) 36326 # 36327 ac_ext=c 36328 ac_cpp='$CPP $CPPFLAGS' 36329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36331 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36333 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36334 # On Suns, sometimes $CPP names a directory. 36335 if test -n "$CPP" && test -d "$CPP"; then 36336 CPP= 36337 fi 36338 if test -z "$CPP"; then 36339 if ${ac_cv_prog_CPP+:} false; then : 36340 $as_echo_n "(cached) " >&6 36341 else 36342 # Double quotes because CPP needs to be expanded 36343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36344 do 36345 ac_preproc_ok=false 36346 for ac_c_preproc_warn_flag in '' yes 36347 do 36348 # Use a header file that comes with gcc, so configuring glibc 36349 # with a fresh cross-compiler works. 36350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36351 # <limits.h> exists even on freestanding compilers. 36352 # On the NeXT, cc -E runs the code through the compiler's parser, 36353 # not just through cpp. "Syntax error" is here to catch this case. 36354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36355 /* end confdefs.h. */ 36356 #ifdef __STDC__ 36357 # include <limits.h> 36358 #else 36359 # include <assert.h> 36360 #endif 36361 Syntax error 36362 _ACEOF 36363 if ac_fn_c_try_cpp "$LINENO"; then : 36364 36365 else 36366 # Broken: fails on valid input. 36367 continue 36368 fi 36369 rm -f conftest.err conftest.i conftest.$ac_ext 36370 36371 # OK, works on sane cases. Now check whether nonexistent headers 36372 # can be detected and how. 36373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36374 /* end confdefs.h. */ 36375 #include <ac_nonexistent.h> 36376 _ACEOF 36377 if ac_fn_c_try_cpp "$LINENO"; then : 36378 # Broken: success on invalid input. 36379 continue 36380 else 36381 # Passes both tests. 36382 ac_preproc_ok=: 36383 break 36384 fi 36385 rm -f conftest.err conftest.i conftest.$ac_ext 36386 36387 done 36388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36389 rm -f conftest.i conftest.err conftest.$ac_ext 36390 if $ac_preproc_ok; then : 36391 break 36392 fi 36393 36394 done 36395 ac_cv_prog_CPP=$CPP 36396 36397 fi 36398 CPP=$ac_cv_prog_CPP 36399 else 36400 ac_cv_prog_CPP=$CPP 36401 fi 36402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36403 $as_echo "$CPP" >&6; } 36404 ac_preproc_ok=false 36405 for ac_c_preproc_warn_flag in '' yes 36406 do 36407 # Use a header file that comes with gcc, so configuring glibc 36408 # with a fresh cross-compiler works. 36409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36410 # <limits.h> exists even on freestanding compilers. 36411 # On the NeXT, cc -E runs the code through the compiler's parser, 36412 # not just through cpp. "Syntax error" is here to catch this case. 36413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36414 /* end confdefs.h. */ 36415 #ifdef __STDC__ 36416 # include <limits.h> 36417 #else 36418 # include <assert.h> 36419 #endif 36420 Syntax error 36421 _ACEOF 36422 if ac_fn_c_try_cpp "$LINENO"; then : 36423 36424 else 36425 # Broken: fails on valid input. 36426 continue 36427 fi 36428 rm -f conftest.err conftest.i conftest.$ac_ext 36429 36430 # OK, works on sane cases. Now check whether nonexistent headers 36431 # can be detected and how. 36432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36433 /* end confdefs.h. */ 36434 #include <ac_nonexistent.h> 36435 _ACEOF 36436 if ac_fn_c_try_cpp "$LINENO"; then : 36437 # Broken: success on invalid input. 36438 continue 36439 else 36440 # Passes both tests. 36441 ac_preproc_ok=: 36442 break 36443 fi 36444 rm -f conftest.err conftest.i conftest.$ac_ext 36445 36446 done 36447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36448 rm -f conftest.i conftest.err conftest.$ac_ext 36449 if $ac_preproc_ok; then : 36450 36451 else 36452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36454 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36455 See \`config.log' for more details" "$LINENO" 5; } 36456 fi 36457 36458 ac_ext=cpp 36459 ac_cpp='$CXXCPP $CPPFLAGS' 36460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36463 36464 36465 # Only process if variable expands to non-empty 36466 36467 if test "x$CPP" != x; then 36468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36469 36470 # First separate the path from the arguments. This will split at the first 36471 # space. 36472 complete="$CPP" 36473 path="${complete%% *}" 36474 tmp="$complete EOL" 36475 arguments="${tmp#* }" 36476 36477 # Input might be given as Windows format, start by converting to 36478 # unix format. 36479 new_path=`$CYGPATH -u "$path"` 36480 36481 # Now try to locate executable using which 36482 new_path=`$WHICH "$new_path" 2> /dev/null` 36483 # bat and cmd files are not always considered executable in cygwin causing which 36484 # to not find them 36485 if test "x$new_path" = x \ 36486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36488 new_path=`$CYGPATH -u "$path"` 36489 fi 36490 if test "x$new_path" = x; then 36491 # Oops. Which didn't find the executable. 36492 # The splitting of arguments from the executable at a space might have been incorrect, 36493 # since paths with space are more likely in Windows. Give it another try with the whole 36494 # argument. 36495 path="$complete" 36496 arguments="EOL" 36497 new_path=`$CYGPATH -u "$path"` 36498 new_path=`$WHICH "$new_path" 2> /dev/null` 36499 # bat and cmd files are not always considered executable in cygwin causing which 36500 # to not find them 36501 if test "x$new_path" = x \ 36502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36504 new_path=`$CYGPATH -u "$path"` 36505 fi 36506 if test "x$new_path" = x; then 36507 # It's still not found. Now this is an unrecoverable error. 36508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36509 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36510 has_space=`$ECHO "$complete" | $GREP " "` 36511 if test "x$has_space" != x; then 36512 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36513 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36514 fi 36515 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36516 fi 36517 fi 36518 36519 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36520 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36521 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36522 # "foo.exe" is OK but "foo" is an error. 36523 # 36524 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36525 # It is also a way to make sure we got the proper file name for the real test later on. 36526 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36527 if test "x$test_shortpath" = x; then 36528 # Short path failed, file does not exist as specified. 36529 # Try adding .exe or .cmd 36530 if test -f "${new_path}.exe"; then 36531 input_to_shortpath="${new_path}.exe" 36532 elif test -f "${new_path}.cmd"; then 36533 input_to_shortpath="${new_path}.cmd" 36534 else 36535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36536 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36537 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36538 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36539 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36540 fi 36541 else 36542 input_to_shortpath="$new_path" 36543 fi 36544 36545 # Call helper function which possibly converts this using DOS-style short mode. 36546 # If so, the updated path is stored in $new_path. 36547 new_path="$input_to_shortpath" 36548 36549 input_path="$input_to_shortpath" 36550 # Check if we need to convert this using DOS-style short mode. If the path 36551 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36552 # take no chances and rewrite it. 36553 # Note: m4 eats our [], so we need to use [ and ] instead. 36554 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36555 if test "x$has_forbidden_chars" != x; then 36556 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36557 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36558 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36559 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36560 # Going to short mode and back again did indeed matter. Since short mode is 36561 # case insensitive, let's make it lowercase to improve readability. 36562 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36563 # Now convert it back to Unix-style (cygpath) 36564 input_path=`$CYGPATH -u "$shortmode_path"` 36565 new_path="$input_path" 36566 fi 36567 fi 36568 36569 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36570 if test "x$test_cygdrive_prefix" = x; then 36571 # As a simple fix, exclude /usr/bin since it's not a real path. 36572 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36573 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36574 # a path prefixed by /cygdrive for fixpath to work. 36575 new_path="$CYGWIN_ROOT_PATH$input_path" 36576 fi 36577 fi 36578 36579 # remove trailing .exe if any 36580 new_path="${new_path/%.exe/}" 36581 36582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36583 36584 # First separate the path from the arguments. This will split at the first 36585 # space. 36586 complete="$CPP" 36587 path="${complete%% *}" 36588 tmp="$complete EOL" 36589 arguments="${tmp#* }" 36590 36591 # Input might be given as Windows format, start by converting to 36592 # unix format. 36593 new_path="$path" 36594 36595 windows_path="$new_path" 36596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36597 unix_path=`$CYGPATH -u "$windows_path"` 36598 new_path="$unix_path" 36599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36601 new_path="$unix_path" 36602 fi 36603 36604 36605 # Now try to locate executable using which 36606 new_path=`$WHICH "$new_path" 2> /dev/null` 36607 36608 if test "x$new_path" = x; then 36609 # Oops. Which didn't find the executable. 36610 # The splitting of arguments from the executable at a space might have been incorrect, 36611 # since paths with space are more likely in Windows. Give it another try with the whole 36612 # argument. 36613 path="$complete" 36614 arguments="EOL" 36615 new_path="$path" 36616 36617 windows_path="$new_path" 36618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36619 unix_path=`$CYGPATH -u "$windows_path"` 36620 new_path="$unix_path" 36621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36622 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36623 new_path="$unix_path" 36624 fi 36625 36626 36627 new_path=`$WHICH "$new_path" 2> /dev/null` 36628 # bat and cmd files are not always considered executable in MSYS causing which 36629 # to not find them 36630 if test "x$new_path" = x \ 36631 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36632 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36633 new_path="$path" 36634 36635 windows_path="$new_path" 36636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36637 unix_path=`$CYGPATH -u "$windows_path"` 36638 new_path="$unix_path" 36639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36641 new_path="$unix_path" 36642 fi 36643 36644 fi 36645 36646 if test "x$new_path" = x; then 36647 # It's still not found. Now this is an unrecoverable error. 36648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36649 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36650 has_space=`$ECHO "$complete" | $GREP " "` 36651 if test "x$has_space" != x; then 36652 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36653 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36654 fi 36655 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36656 fi 36657 fi 36658 36659 # Now new_path has a complete unix path to the binary 36660 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36661 # Keep paths in /bin as-is, but remove trailing .exe if any 36662 new_path="${new_path/%.exe/}" 36663 # Do not save /bin paths to all_fixpath_prefixes! 36664 else 36665 # Not in mixed or Windows style, start by that. 36666 new_path=`cmd //c echo $new_path` 36667 36668 input_path="$new_path" 36669 # Check if we need to convert this using DOS-style short mode. If the path 36670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36671 # take no chances and rewrite it. 36672 # Note: m4 eats our [], so we need to use [ and ] instead. 36673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36674 if test "x$has_forbidden_chars" != x; then 36675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36676 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36677 fi 36678 36679 # Output is in $new_path 36680 36681 windows_path="$new_path" 36682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36683 unix_path=`$CYGPATH -u "$windows_path"` 36684 new_path="$unix_path" 36685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36687 new_path="$unix_path" 36688 fi 36689 36690 # remove trailing .exe if any 36691 new_path="${new_path/%.exe/}" 36692 36693 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36694 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36695 fi 36696 36697 else 36698 # We're on a unix platform. Hooray! :) 36699 # First separate the path from the arguments. This will split at the first 36700 # space. 36701 complete="$CPP" 36702 path="${complete%% *}" 36703 tmp="$complete EOL" 36704 arguments="${tmp#* }" 36705 36706 # Cannot rely on the command "which" here since it doesn't always work. 36707 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36708 if test -z "$is_absolute_path"; then 36709 # Path to executable is not absolute. Find it. 36710 IFS_save="$IFS" 36711 IFS=: 36712 for p in $PATH; do 36713 if test -f "$p/$path" && test -x "$p/$path"; then 36714 new_path="$p/$path" 36715 break 36716 fi 36717 done 36718 IFS="$IFS_save" 36719 else 36720 # This is an absolute path, we can use it without further modifications. 36721 new_path="$path" 36722 fi 36723 36724 if test "x$new_path" = x; then 36725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36726 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36727 has_space=`$ECHO "$complete" | $GREP " "` 36728 if test "x$has_space" != x; then 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36730 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36731 fi 36732 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36733 fi 36734 fi 36735 36736 # Now join together the path and the arguments once again 36737 if test "x$arguments" != xEOL; then 36738 new_complete="$new_path ${arguments% *}" 36739 else 36740 new_complete="$new_path" 36741 fi 36742 36743 if test "x$complete" != "x$new_complete"; then 36744 CPP="$new_complete" 36745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36746 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36747 fi 36748 fi 36749 36750 ac_ext=cpp 36751 ac_cpp='$CXXCPP $CPPFLAGS' 36752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36756 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36757 if test -z "$CXXCPP"; then 36758 if ${ac_cv_prog_CXXCPP+:} false; then : 36759 $as_echo_n "(cached) " >&6 36760 else 36761 # Double quotes because CXXCPP needs to be expanded 36762 for CXXCPP in "$CXX -E" "/lib/cpp" 36763 do 36764 ac_preproc_ok=false 36765 for ac_cxx_preproc_warn_flag in '' yes 36766 do 36767 # Use a header file that comes with gcc, so configuring glibc 36768 # with a fresh cross-compiler works. 36769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36770 # <limits.h> exists even on freestanding compilers. 36771 # On the NeXT, cc -E runs the code through the compiler's parser, 36772 # not just through cpp. "Syntax error" is here to catch this case. 36773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36774 /* end confdefs.h. */ 36775 #ifdef __STDC__ 36776 # include <limits.h> 36777 #else 36778 # include <assert.h> 36779 #endif 36780 Syntax error 36781 _ACEOF 36782 if ac_fn_cxx_try_cpp "$LINENO"; then : 36783 36784 else 36785 # Broken: fails on valid input. 36786 continue 36787 fi 36788 rm -f conftest.err conftest.i conftest.$ac_ext 36789 36790 # OK, works on sane cases. Now check whether nonexistent headers 36791 # can be detected and how. 36792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36793 /* end confdefs.h. */ 36794 #include <ac_nonexistent.h> 36795 _ACEOF 36796 if ac_fn_cxx_try_cpp "$LINENO"; then : 36797 # Broken: success on invalid input. 36798 continue 36799 else 36800 # Passes both tests. 36801 ac_preproc_ok=: 36802 break 36803 fi 36804 rm -f conftest.err conftest.i conftest.$ac_ext 36805 36806 done 36807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36808 rm -f conftest.i conftest.err conftest.$ac_ext 36809 if $ac_preproc_ok; then : 36810 break 36811 fi 36812 36813 done 36814 ac_cv_prog_CXXCPP=$CXXCPP 36815 36816 fi 36817 CXXCPP=$ac_cv_prog_CXXCPP 36818 else 36819 ac_cv_prog_CXXCPP=$CXXCPP 36820 fi 36821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36822 $as_echo "$CXXCPP" >&6; } 36823 ac_preproc_ok=false 36824 for ac_cxx_preproc_warn_flag in '' yes 36825 do 36826 # Use a header file that comes with gcc, so configuring glibc 36827 # with a fresh cross-compiler works. 36828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36829 # <limits.h> exists even on freestanding compilers. 36830 # On the NeXT, cc -E runs the code through the compiler's parser, 36831 # not just through cpp. "Syntax error" is here to catch this case. 36832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36833 /* end confdefs.h. */ 36834 #ifdef __STDC__ 36835 # include <limits.h> 36836 #else 36837 # include <assert.h> 36838 #endif 36839 Syntax error 36840 _ACEOF 36841 if ac_fn_cxx_try_cpp "$LINENO"; then : 36842 36843 else 36844 # Broken: fails on valid input. 36845 continue 36846 fi 36847 rm -f conftest.err conftest.i conftest.$ac_ext 36848 36849 # OK, works on sane cases. Now check whether nonexistent headers 36850 # can be detected and how. 36851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36852 /* end confdefs.h. */ 36853 #include <ac_nonexistent.h> 36854 _ACEOF 36855 if ac_fn_cxx_try_cpp "$LINENO"; then : 36856 # Broken: success on invalid input. 36857 continue 36858 else 36859 # Passes both tests. 36860 ac_preproc_ok=: 36861 break 36862 fi 36863 rm -f conftest.err conftest.i conftest.$ac_ext 36864 36865 done 36866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36867 rm -f conftest.i conftest.err conftest.$ac_ext 36868 if $ac_preproc_ok; then : 36869 36870 else 36871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36873 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36874 See \`config.log' for more details" "$LINENO" 5; } 36875 fi 36876 36877 ac_ext=cpp 36878 ac_cpp='$CXXCPP $CPPFLAGS' 36879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36882 36883 36884 # Only process if variable expands to non-empty 36885 36886 if test "x$CXXCPP" != x; then 36887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36888 36889 # First separate the path from the arguments. This will split at the first 36890 # space. 36891 complete="$CXXCPP" 36892 path="${complete%% *}" 36893 tmp="$complete EOL" 36894 arguments="${tmp#* }" 36895 36896 # Input might be given as Windows format, start by converting to 36897 # unix format. 36898 new_path=`$CYGPATH -u "$path"` 36899 36900 # Now try to locate executable using which 36901 new_path=`$WHICH "$new_path" 2> /dev/null` 36902 # bat and cmd files are not always considered executable in cygwin causing which 36903 # to not find them 36904 if test "x$new_path" = x \ 36905 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36906 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36907 new_path=`$CYGPATH -u "$path"` 36908 fi 36909 if test "x$new_path" = x; then 36910 # Oops. Which didn't find the executable. 36911 # The splitting of arguments from the executable at a space might have been incorrect, 36912 # since paths with space are more likely in Windows. Give it another try with the whole 36913 # argument. 36914 path="$complete" 36915 arguments="EOL" 36916 new_path=`$CYGPATH -u "$path"` 36917 new_path=`$WHICH "$new_path" 2> /dev/null` 36918 # bat and cmd files are not always considered executable in cygwin causing which 36919 # to not find them 36920 if test "x$new_path" = x \ 36921 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36922 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36923 new_path=`$CYGPATH -u "$path"` 36924 fi 36925 if test "x$new_path" = x; then 36926 # It's still not found. Now this is an unrecoverable error. 36927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36928 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36929 has_space=`$ECHO "$complete" | $GREP " "` 36930 if test "x$has_space" != x; then 36931 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36932 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36933 fi 36934 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36935 fi 36936 fi 36937 36938 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36939 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36940 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36941 # "foo.exe" is OK but "foo" is an error. 36942 # 36943 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36944 # It is also a way to make sure we got the proper file name for the real test later on. 36945 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36946 if test "x$test_shortpath" = x; then 36947 # Short path failed, file does not exist as specified. 36948 # Try adding .exe or .cmd 36949 if test -f "${new_path}.exe"; then 36950 input_to_shortpath="${new_path}.exe" 36951 elif test -f "${new_path}.cmd"; then 36952 input_to_shortpath="${new_path}.cmd" 36953 else 36954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36955 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36956 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36957 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36958 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36959 fi 36960 else 36961 input_to_shortpath="$new_path" 36962 fi 36963 36964 # Call helper function which possibly converts this using DOS-style short mode. 36965 # If so, the updated path is stored in $new_path. 36966 new_path="$input_to_shortpath" 36967 36968 input_path="$input_to_shortpath" 36969 # Check if we need to convert this using DOS-style short mode. If the path 36970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36971 # take no chances and rewrite it. 36972 # Note: m4 eats our [], so we need to use [ and ] instead. 36973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36974 if test "x$has_forbidden_chars" != x; then 36975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36976 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36977 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36978 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36979 # Going to short mode and back again did indeed matter. Since short mode is 36980 # case insensitive, let's make it lowercase to improve readability. 36981 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36982 # Now convert it back to Unix-style (cygpath) 36983 input_path=`$CYGPATH -u "$shortmode_path"` 36984 new_path="$input_path" 36985 fi 36986 fi 36987 36988 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36989 if test "x$test_cygdrive_prefix" = x; then 36990 # As a simple fix, exclude /usr/bin since it's not a real path. 36991 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36992 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36993 # a path prefixed by /cygdrive for fixpath to work. 36994 new_path="$CYGWIN_ROOT_PATH$input_path" 36995 fi 36996 fi 36997 36998 # remove trailing .exe if any 36999 new_path="${new_path/%.exe/}" 37000 37001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37002 37003 # First separate the path from the arguments. This will split at the first 37004 # space. 37005 complete="$CXXCPP" 37006 path="${complete%% *}" 37007 tmp="$complete EOL" 37008 arguments="${tmp#* }" 37009 37010 # Input might be given as Windows format, start by converting to 37011 # unix format. 37012 new_path="$path" 37013 37014 windows_path="$new_path" 37015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37016 unix_path=`$CYGPATH -u "$windows_path"` 37017 new_path="$unix_path" 37018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37020 new_path="$unix_path" 37021 fi 37022 37023 37024 # Now try to locate executable using which 37025 new_path=`$WHICH "$new_path" 2> /dev/null` 37026 37027 if test "x$new_path" = x; then 37028 # Oops. Which didn't find the executable. 37029 # The splitting of arguments from the executable at a space might have been incorrect, 37030 # since paths with space are more likely in Windows. Give it another try with the whole 37031 # argument. 37032 path="$complete" 37033 arguments="EOL" 37034 new_path="$path" 37035 37036 windows_path="$new_path" 37037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37038 unix_path=`$CYGPATH -u "$windows_path"` 37039 new_path="$unix_path" 37040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37042 new_path="$unix_path" 37043 fi 37044 37045 37046 new_path=`$WHICH "$new_path" 2> /dev/null` 37047 # bat and cmd files are not always considered executable in MSYS causing which 37048 # to not find them 37049 if test "x$new_path" = x \ 37050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37052 new_path="$path" 37053 37054 windows_path="$new_path" 37055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37056 unix_path=`$CYGPATH -u "$windows_path"` 37057 new_path="$unix_path" 37058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37060 new_path="$unix_path" 37061 fi 37062 37063 fi 37064 37065 if test "x$new_path" = x; then 37066 # It's still not found. Now this is an unrecoverable error. 37067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37068 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37069 has_space=`$ECHO "$complete" | $GREP " "` 37070 if test "x$has_space" != x; then 37071 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37072 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37073 fi 37074 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37075 fi 37076 fi 37077 37078 # Now new_path has a complete unix path to the binary 37079 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37080 # Keep paths in /bin as-is, but remove trailing .exe if any 37081 new_path="${new_path/%.exe/}" 37082 # Do not save /bin paths to all_fixpath_prefixes! 37083 else 37084 # Not in mixed or Windows style, start by that. 37085 new_path=`cmd //c echo $new_path` 37086 37087 input_path="$new_path" 37088 # Check if we need to convert this using DOS-style short mode. If the path 37089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37090 # take no chances and rewrite it. 37091 # Note: m4 eats our [], so we need to use [ and ] instead. 37092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37093 if test "x$has_forbidden_chars" != x; then 37094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37096 fi 37097 37098 # Output is in $new_path 37099 37100 windows_path="$new_path" 37101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37102 unix_path=`$CYGPATH -u "$windows_path"` 37103 new_path="$unix_path" 37104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37106 new_path="$unix_path" 37107 fi 37108 37109 # remove trailing .exe if any 37110 new_path="${new_path/%.exe/}" 37111 37112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37114 fi 37115 37116 else 37117 # We're on a unix platform. Hooray! :) 37118 # First separate the path from the arguments. This will split at the first 37119 # space. 37120 complete="$CXXCPP" 37121 path="${complete%% *}" 37122 tmp="$complete EOL" 37123 arguments="${tmp#* }" 37124 37125 # Cannot rely on the command "which" here since it doesn't always work. 37126 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37127 if test -z "$is_absolute_path"; then 37128 # Path to executable is not absolute. Find it. 37129 IFS_save="$IFS" 37130 IFS=: 37131 for p in $PATH; do 37132 if test -f "$p/$path" && test -x "$p/$path"; then 37133 new_path="$p/$path" 37134 break 37135 fi 37136 done 37137 IFS="$IFS_save" 37138 else 37139 # This is an absolute path, we can use it without further modifications. 37140 new_path="$path" 37141 fi 37142 37143 if test "x$new_path" = x; then 37144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37145 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37146 has_space=`$ECHO "$complete" | $GREP " "` 37147 if test "x$has_space" != x; then 37148 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37149 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37150 fi 37151 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37152 fi 37153 fi 37154 37155 # Now join together the path and the arguments once again 37156 if test "x$arguments" != xEOL; then 37157 new_complete="$new_path ${arguments% *}" 37158 else 37159 new_complete="$new_path" 37160 fi 37161 37162 if test "x$complete" != "x$new_complete"; then 37163 CXXCPP="$new_complete" 37164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37165 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37166 fi 37167 fi 37168 37169 37170 # 37171 # Setup the linker (LD) 37172 # 37173 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37174 # In the Microsoft toolchain we have a separate LD command "link". 37175 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37176 # a cygwin program for something completely different. 37177 # Extract the first word of "link", so it can be a program name with args. 37178 set dummy link; ac_word=$2 37179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37180 $as_echo_n "checking for $ac_word... " >&6; } 37181 if ${ac_cv_prog_LD+:} false; then : 37182 $as_echo_n "(cached) " >&6 37183 else 37184 if test -n "$LD"; then 37185 ac_cv_prog_LD="$LD" # Let the user override the test. 37186 else 37187 ac_prog_rejected=no 37188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37189 for as_dir in $PATH 37190 do 37191 IFS=$as_save_IFS 37192 test -z "$as_dir" && as_dir=. 37193 for ac_exec_ext in '' $ac_executable_extensions; do 37194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37195 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37196 ac_prog_rejected=yes 37197 continue 37198 fi 37199 ac_cv_prog_LD="link" 37200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37201 break 2 37202 fi 37203 done 37204 done 37205 IFS=$as_save_IFS 37206 37207 if test $ac_prog_rejected = yes; then 37208 # We found a bogon in the path, so make sure we never use it. 37209 set dummy $ac_cv_prog_LD 37210 shift 37211 if test $# != 0; then 37212 # We chose a different compiler from the bogus one. 37213 # However, it has the same basename, so the bogon will be chosen 37214 # first if we set LD to just the basename; use the full file name. 37215 shift 37216 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37217 fi 37218 fi 37219 fi 37220 fi 37221 LD=$ac_cv_prog_LD 37222 if test -n "$LD"; then 37223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37224 $as_echo "$LD" >&6; } 37225 else 37226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37227 $as_echo "no" >&6; } 37228 fi 37229 37230 37231 37232 # Only process if variable expands to non-empty 37233 37234 if test "x$LD" != x; then 37235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37236 37237 # First separate the path from the arguments. This will split at the first 37238 # space. 37239 complete="$LD" 37240 path="${complete%% *}" 37241 tmp="$complete EOL" 37242 arguments="${tmp#* }" 37243 37244 # Input might be given as Windows format, start by converting to 37245 # unix format. 37246 new_path=`$CYGPATH -u "$path"` 37247 37248 # Now try to locate executable using which 37249 new_path=`$WHICH "$new_path" 2> /dev/null` 37250 # bat and cmd files are not always considered executable in cygwin causing which 37251 # to not find them 37252 if test "x$new_path" = x \ 37253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37255 new_path=`$CYGPATH -u "$path"` 37256 fi 37257 if test "x$new_path" = x; then 37258 # Oops. Which didn't find the executable. 37259 # The splitting of arguments from the executable at a space might have been incorrect, 37260 # since paths with space are more likely in Windows. Give it another try with the whole 37261 # argument. 37262 path="$complete" 37263 arguments="EOL" 37264 new_path=`$CYGPATH -u "$path"` 37265 new_path=`$WHICH "$new_path" 2> /dev/null` 37266 # bat and cmd files are not always considered executable in cygwin causing which 37267 # to not find them 37268 if test "x$new_path" = x \ 37269 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37270 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37271 new_path=`$CYGPATH -u "$path"` 37272 fi 37273 if test "x$new_path" = x; then 37274 # It's still not found. Now this is an unrecoverable error. 37275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37276 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37277 has_space=`$ECHO "$complete" | $GREP " "` 37278 if test "x$has_space" != x; then 37279 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37280 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37281 fi 37282 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37283 fi 37284 fi 37285 37286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37289 # "foo.exe" is OK but "foo" is an error. 37290 # 37291 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37292 # It is also a way to make sure we got the proper file name for the real test later on. 37293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37294 if test "x$test_shortpath" = x; then 37295 # Short path failed, file does not exist as specified. 37296 # Try adding .exe or .cmd 37297 if test -f "${new_path}.exe"; then 37298 input_to_shortpath="${new_path}.exe" 37299 elif test -f "${new_path}.cmd"; then 37300 input_to_shortpath="${new_path}.cmd" 37301 else 37302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37303 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37304 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37305 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37306 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37307 fi 37308 else 37309 input_to_shortpath="$new_path" 37310 fi 37311 37312 # Call helper function which possibly converts this using DOS-style short mode. 37313 # If so, the updated path is stored in $new_path. 37314 new_path="$input_to_shortpath" 37315 37316 input_path="$input_to_shortpath" 37317 # Check if we need to convert this using DOS-style short mode. If the path 37318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37319 # take no chances and rewrite it. 37320 # Note: m4 eats our [], so we need to use [ and ] instead. 37321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37322 if test "x$has_forbidden_chars" != x; then 37323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37324 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37325 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37326 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37327 # Going to short mode and back again did indeed matter. Since short mode is 37328 # case insensitive, let's make it lowercase to improve readability. 37329 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37330 # Now convert it back to Unix-style (cygpath) 37331 input_path=`$CYGPATH -u "$shortmode_path"` 37332 new_path="$input_path" 37333 fi 37334 fi 37335 37336 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37337 if test "x$test_cygdrive_prefix" = x; then 37338 # As a simple fix, exclude /usr/bin since it's not a real path. 37339 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37340 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37341 # a path prefixed by /cygdrive for fixpath to work. 37342 new_path="$CYGWIN_ROOT_PATH$input_path" 37343 fi 37344 fi 37345 37346 # remove trailing .exe if any 37347 new_path="${new_path/%.exe/}" 37348 37349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37350 37351 # First separate the path from the arguments. This will split at the first 37352 # space. 37353 complete="$LD" 37354 path="${complete%% *}" 37355 tmp="$complete EOL" 37356 arguments="${tmp#* }" 37357 37358 # Input might be given as Windows format, start by converting to 37359 # unix format. 37360 new_path="$path" 37361 37362 windows_path="$new_path" 37363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37364 unix_path=`$CYGPATH -u "$windows_path"` 37365 new_path="$unix_path" 37366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37368 new_path="$unix_path" 37369 fi 37370 37371 37372 # Now try to locate executable using which 37373 new_path=`$WHICH "$new_path" 2> /dev/null` 37374 37375 if test "x$new_path" = x; then 37376 # Oops. Which didn't find the executable. 37377 # The splitting of arguments from the executable at a space might have been incorrect, 37378 # since paths with space are more likely in Windows. Give it another try with the whole 37379 # argument. 37380 path="$complete" 37381 arguments="EOL" 37382 new_path="$path" 37383 37384 windows_path="$new_path" 37385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37386 unix_path=`$CYGPATH -u "$windows_path"` 37387 new_path="$unix_path" 37388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37390 new_path="$unix_path" 37391 fi 37392 37393 37394 new_path=`$WHICH "$new_path" 2> /dev/null` 37395 # bat and cmd files are not always considered executable in MSYS causing which 37396 # to not find them 37397 if test "x$new_path" = x \ 37398 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37399 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37400 new_path="$path" 37401 37402 windows_path="$new_path" 37403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37404 unix_path=`$CYGPATH -u "$windows_path"` 37405 new_path="$unix_path" 37406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37408 new_path="$unix_path" 37409 fi 37410 37411 fi 37412 37413 if test "x$new_path" = x; then 37414 # It's still not found. Now this is an unrecoverable error. 37415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37416 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37417 has_space=`$ECHO "$complete" | $GREP " "` 37418 if test "x$has_space" != x; then 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37421 fi 37422 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37423 fi 37424 fi 37425 37426 # Now new_path has a complete unix path to the binary 37427 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37428 # Keep paths in /bin as-is, but remove trailing .exe if any 37429 new_path="${new_path/%.exe/}" 37430 # Do not save /bin paths to all_fixpath_prefixes! 37431 else 37432 # Not in mixed or Windows style, start by that. 37433 new_path=`cmd //c echo $new_path` 37434 37435 input_path="$new_path" 37436 # Check if we need to convert this using DOS-style short mode. If the path 37437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37438 # take no chances and rewrite it. 37439 # Note: m4 eats our [], so we need to use [ and ] instead. 37440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37441 if test "x$has_forbidden_chars" != x; then 37442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37444 fi 37445 37446 # Output is in $new_path 37447 37448 windows_path="$new_path" 37449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37450 unix_path=`$CYGPATH -u "$windows_path"` 37451 new_path="$unix_path" 37452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37454 new_path="$unix_path" 37455 fi 37456 37457 # remove trailing .exe if any 37458 new_path="${new_path/%.exe/}" 37459 37460 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37461 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37462 fi 37463 37464 else 37465 # We're on a unix platform. Hooray! :) 37466 # First separate the path from the arguments. This will split at the first 37467 # space. 37468 complete="$LD" 37469 path="${complete%% *}" 37470 tmp="$complete EOL" 37471 arguments="${tmp#* }" 37472 37473 # Cannot rely on the command "which" here since it doesn't always work. 37474 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37475 if test -z "$is_absolute_path"; then 37476 # Path to executable is not absolute. Find it. 37477 IFS_save="$IFS" 37478 IFS=: 37479 for p in $PATH; do 37480 if test -f "$p/$path" && test -x "$p/$path"; then 37481 new_path="$p/$path" 37482 break 37483 fi 37484 done 37485 IFS="$IFS_save" 37486 else 37487 # This is an absolute path, we can use it without further modifications. 37488 new_path="$path" 37489 fi 37490 37491 if test "x$new_path" = x; then 37492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37493 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37494 has_space=`$ECHO "$complete" | $GREP " "` 37495 if test "x$has_space" != x; then 37496 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37497 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37498 fi 37499 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37500 fi 37501 fi 37502 37503 # Now join together the path and the arguments once again 37504 if test "x$arguments" != xEOL; then 37505 new_complete="$new_path ${arguments% *}" 37506 else 37507 new_complete="$new_path" 37508 fi 37509 37510 if test "x$complete" != "x$new_complete"; then 37511 LD="$new_complete" 37512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37513 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37514 fi 37515 fi 37516 37517 # Verify that we indeed succeeded with this trick. 37518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37519 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37520 "$LD" --version > /dev/null 37521 if test $? -eq 0 ; then 37522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37523 $as_echo "no" >&6; } 37524 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37525 else 37526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37527 $as_echo "yes" >&6; } 37528 fi 37529 LDCXX="$LD" 37530 else 37531 # All other toolchains use the compiler to link. 37532 LD="$CC" 37533 LDCXX="$CXX" 37534 fi 37535 37536 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37537 37538 37539 # 37540 # Setup the assembler (AS) 37541 # 37542 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37543 37544 37545 # Publish this variable in the help. 37546 37547 37548 if [ -z "${AS+x}" ]; then 37549 # The variable is not set by user, try to locate tool using the code snippet 37550 for ac_prog in as 37551 do 37552 # Extract the first word of "$ac_prog", so it can be a program name with args. 37553 set dummy $ac_prog; ac_word=$2 37554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37555 $as_echo_n "checking for $ac_word... " >&6; } 37556 if ${ac_cv_path_AS+:} false; then : 37557 $as_echo_n "(cached) " >&6 37558 else 37559 case $AS in 37560 [\\/]* | ?:[\\/]*) 37561 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37562 ;; 37563 *) 37564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37565 for as_dir in $PATH 37566 do 37567 IFS=$as_save_IFS 37568 test -z "$as_dir" && as_dir=. 37569 for ac_exec_ext in '' $ac_executable_extensions; do 37570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37571 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37573 break 2 37574 fi 37575 done 37576 done 37577 IFS=$as_save_IFS 37578 37579 ;; 37580 esac 37581 fi 37582 AS=$ac_cv_path_AS 37583 if test -n "$AS"; then 37584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37585 $as_echo "$AS" >&6; } 37586 else 37587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37588 $as_echo "no" >&6; } 37589 fi 37590 37591 37592 test -n "$AS" && break 37593 done 37594 37595 else 37596 # The variable is set, but is it from the command line or the environment? 37597 37598 # Try to remove the string !AS! from our list. 37599 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37600 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37601 # If it failed, the variable was not from the command line. Ignore it, 37602 # but warn the user (except for BASH, which is always set by the calling BASH). 37603 if test "xAS" != xBASH; then 37604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37605 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37606 fi 37607 # Try to locate tool using the code snippet 37608 for ac_prog in as 37609 do 37610 # Extract the first word of "$ac_prog", so it can be a program name with args. 37611 set dummy $ac_prog; ac_word=$2 37612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37613 $as_echo_n "checking for $ac_word... " >&6; } 37614 if ${ac_cv_path_AS+:} false; then : 37615 $as_echo_n "(cached) " >&6 37616 else 37617 case $AS in 37618 [\\/]* | ?:[\\/]*) 37619 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37620 ;; 37621 *) 37622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37623 for as_dir in $PATH 37624 do 37625 IFS=$as_save_IFS 37626 test -z "$as_dir" && as_dir=. 37627 for ac_exec_ext in '' $ac_executable_extensions; do 37628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37629 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37631 break 2 37632 fi 37633 done 37634 done 37635 IFS=$as_save_IFS 37636 37637 ;; 37638 esac 37639 fi 37640 AS=$ac_cv_path_AS 37641 if test -n "$AS"; then 37642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37643 $as_echo "$AS" >&6; } 37644 else 37645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37646 $as_echo "no" >&6; } 37647 fi 37648 37649 37650 test -n "$AS" && break 37651 done 37652 37653 else 37654 # If it succeeded, then it was overridden by the user. We will use it 37655 # for the tool. 37656 37657 # First remove it from the list of overridden variables, so we can test 37658 # for unknown variables in the end. 37659 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37660 37661 # Check if we try to supply an empty value 37662 if test "x$AS" = x; then 37663 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37664 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37666 $as_echo_n "checking for AS... " >&6; } 37667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37668 $as_echo "disabled" >&6; } 37669 else 37670 # Check if the provided tool contains a complete path. 37671 tool_specified="$AS" 37672 tool_basename="${tool_specified##*/}" 37673 if test "x$tool_basename" = "x$tool_specified"; then 37674 # A command without a complete path is provided, search $PATH. 37675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37676 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37677 # Extract the first word of "$tool_basename", so it can be a program name with args. 37678 set dummy $tool_basename; ac_word=$2 37679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37680 $as_echo_n "checking for $ac_word... " >&6; } 37681 if ${ac_cv_path_AS+:} false; then : 37682 $as_echo_n "(cached) " >&6 37683 else 37684 case $AS in 37685 [\\/]* | ?:[\\/]*) 37686 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37687 ;; 37688 *) 37689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37690 for as_dir in $PATH 37691 do 37692 IFS=$as_save_IFS 37693 test -z "$as_dir" && as_dir=. 37694 for ac_exec_ext in '' $ac_executable_extensions; do 37695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37696 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37698 break 2 37699 fi 37700 done 37701 done 37702 IFS=$as_save_IFS 37703 37704 ;; 37705 esac 37706 fi 37707 AS=$ac_cv_path_AS 37708 if test -n "$AS"; then 37709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37710 $as_echo "$AS" >&6; } 37711 else 37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37713 $as_echo "no" >&6; } 37714 fi 37715 37716 37717 if test "x$AS" = x; then 37718 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37719 fi 37720 else 37721 # Otherwise we believe it is a complete path. Use it as it is. 37722 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37723 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37725 $as_echo_n "checking for AS... " >&6; } 37726 if test ! -x "$tool_specified"; then 37727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37728 $as_echo "not found" >&6; } 37729 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37730 fi 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37732 $as_echo "$tool_specified" >&6; } 37733 fi 37734 fi 37735 fi 37736 37737 fi 37738 37739 37740 37741 # Only process if variable expands to non-empty 37742 37743 if test "x$AS" != x; then 37744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37745 37746 # First separate the path from the arguments. This will split at the first 37747 # space. 37748 complete="$AS" 37749 path="${complete%% *}" 37750 tmp="$complete EOL" 37751 arguments="${tmp#* }" 37752 37753 # Input might be given as Windows format, start by converting to 37754 # unix format. 37755 new_path=`$CYGPATH -u "$path"` 37756 37757 # Now try to locate executable using which 37758 new_path=`$WHICH "$new_path" 2> /dev/null` 37759 # bat and cmd files are not always considered executable in cygwin causing which 37760 # to not find them 37761 if test "x$new_path" = x \ 37762 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37763 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37764 new_path=`$CYGPATH -u "$path"` 37765 fi 37766 if test "x$new_path" = x; then 37767 # Oops. Which didn't find the executable. 37768 # The splitting of arguments from the executable at a space might have been incorrect, 37769 # since paths with space are more likely in Windows. Give it another try with the whole 37770 # argument. 37771 path="$complete" 37772 arguments="EOL" 37773 new_path=`$CYGPATH -u "$path"` 37774 new_path=`$WHICH "$new_path" 2> /dev/null` 37775 # bat and cmd files are not always considered executable in cygwin causing which 37776 # to not find them 37777 if test "x$new_path" = x \ 37778 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37779 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37780 new_path=`$CYGPATH -u "$path"` 37781 fi 37782 if test "x$new_path" = x; then 37783 # It's still not found. Now this is an unrecoverable error. 37784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37785 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37786 has_space=`$ECHO "$complete" | $GREP " "` 37787 if test "x$has_space" != x; then 37788 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37789 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37790 fi 37791 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37792 fi 37793 fi 37794 37795 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37796 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37797 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37798 # "foo.exe" is OK but "foo" is an error. 37799 # 37800 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37801 # It is also a way to make sure we got the proper file name for the real test later on. 37802 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37803 if test "x$test_shortpath" = x; then 37804 # Short path failed, file does not exist as specified. 37805 # Try adding .exe or .cmd 37806 if test -f "${new_path}.exe"; then 37807 input_to_shortpath="${new_path}.exe" 37808 elif test -f "${new_path}.cmd"; then 37809 input_to_shortpath="${new_path}.cmd" 37810 else 37811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37812 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37813 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37814 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37815 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37816 fi 37817 else 37818 input_to_shortpath="$new_path" 37819 fi 37820 37821 # Call helper function which possibly converts this using DOS-style short mode. 37822 # If so, the updated path is stored in $new_path. 37823 new_path="$input_to_shortpath" 37824 37825 input_path="$input_to_shortpath" 37826 # Check if we need to convert this using DOS-style short mode. If the path 37827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37828 # take no chances and rewrite it. 37829 # Note: m4 eats our [], so we need to use [ and ] instead. 37830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37831 if test "x$has_forbidden_chars" != x; then 37832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37836 # Going to short mode and back again did indeed matter. Since short mode is 37837 # case insensitive, let's make it lowercase to improve readability. 37838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37839 # Now convert it back to Unix-style (cygpath) 37840 input_path=`$CYGPATH -u "$shortmode_path"` 37841 new_path="$input_path" 37842 fi 37843 fi 37844 37845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37846 if test "x$test_cygdrive_prefix" = x; then 37847 # As a simple fix, exclude /usr/bin since it's not a real path. 37848 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37850 # a path prefixed by /cygdrive for fixpath to work. 37851 new_path="$CYGWIN_ROOT_PATH$input_path" 37852 fi 37853 fi 37854 37855 # remove trailing .exe if any 37856 new_path="${new_path/%.exe/}" 37857 37858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37859 37860 # First separate the path from the arguments. This will split at the first 37861 # space. 37862 complete="$AS" 37863 path="${complete%% *}" 37864 tmp="$complete EOL" 37865 arguments="${tmp#* }" 37866 37867 # Input might be given as Windows format, start by converting to 37868 # unix format. 37869 new_path="$path" 37870 37871 windows_path="$new_path" 37872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37873 unix_path=`$CYGPATH -u "$windows_path"` 37874 new_path="$unix_path" 37875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37877 new_path="$unix_path" 37878 fi 37879 37880 37881 # Now try to locate executable using which 37882 new_path=`$WHICH "$new_path" 2> /dev/null` 37883 37884 if test "x$new_path" = x; then 37885 # Oops. Which didn't find the executable. 37886 # The splitting of arguments from the executable at a space might have been incorrect, 37887 # since paths with space are more likely in Windows. Give it another try with the whole 37888 # argument. 37889 path="$complete" 37890 arguments="EOL" 37891 new_path="$path" 37892 37893 windows_path="$new_path" 37894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37895 unix_path=`$CYGPATH -u "$windows_path"` 37896 new_path="$unix_path" 37897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37899 new_path="$unix_path" 37900 fi 37901 37902 37903 new_path=`$WHICH "$new_path" 2> /dev/null` 37904 # bat and cmd files are not always considered executable in MSYS causing which 37905 # to not find them 37906 if test "x$new_path" = x \ 37907 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37908 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37909 new_path="$path" 37910 37911 windows_path="$new_path" 37912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37913 unix_path=`$CYGPATH -u "$windows_path"` 37914 new_path="$unix_path" 37915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37917 new_path="$unix_path" 37918 fi 37919 37920 fi 37921 37922 if test "x$new_path" = x; then 37923 # It's still not found. Now this is an unrecoverable error. 37924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37925 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37926 has_space=`$ECHO "$complete" | $GREP " "` 37927 if test "x$has_space" != x; then 37928 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37929 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37930 fi 37931 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37932 fi 37933 fi 37934 37935 # Now new_path has a complete unix path to the binary 37936 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37937 # Keep paths in /bin as-is, but remove trailing .exe if any 37938 new_path="${new_path/%.exe/}" 37939 # Do not save /bin paths to all_fixpath_prefixes! 37940 else 37941 # Not in mixed or Windows style, start by that. 37942 new_path=`cmd //c echo $new_path` 37943 37944 input_path="$new_path" 37945 # Check if we need to convert this using DOS-style short mode. If the path 37946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37947 # take no chances and rewrite it. 37948 # Note: m4 eats our [], so we need to use [ and ] instead. 37949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37950 if test "x$has_forbidden_chars" != x; then 37951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37953 fi 37954 37955 # Output is in $new_path 37956 37957 windows_path="$new_path" 37958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37959 unix_path=`$CYGPATH -u "$windows_path"` 37960 new_path="$unix_path" 37961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37963 new_path="$unix_path" 37964 fi 37965 37966 # remove trailing .exe if any 37967 new_path="${new_path/%.exe/}" 37968 37969 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37970 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37971 fi 37972 37973 else 37974 # We're on a unix platform. Hooray! :) 37975 # First separate the path from the arguments. This will split at the first 37976 # space. 37977 complete="$AS" 37978 path="${complete%% *}" 37979 tmp="$complete EOL" 37980 arguments="${tmp#* }" 37981 37982 # Cannot rely on the command "which" here since it doesn't always work. 37983 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37984 if test -z "$is_absolute_path"; then 37985 # Path to executable is not absolute. Find it. 37986 IFS_save="$IFS" 37987 IFS=: 37988 for p in $PATH; do 37989 if test -f "$p/$path" && test -x "$p/$path"; then 37990 new_path="$p/$path" 37991 break 37992 fi 37993 done 37994 IFS="$IFS_save" 37995 else 37996 # This is an absolute path, we can use it without further modifications. 37997 new_path="$path" 37998 fi 37999 38000 if test "x$new_path" = x; then 38001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38002 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38003 has_space=`$ECHO "$complete" | $GREP " "` 38004 if test "x$has_space" != x; then 38005 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38006 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38007 fi 38008 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38009 fi 38010 fi 38011 38012 # Now join together the path and the arguments once again 38013 if test "x$arguments" != xEOL; then 38014 new_complete="$new_path ${arguments% *}" 38015 else 38016 new_complete="$new_path" 38017 fi 38018 38019 if test "x$complete" != "x$new_complete"; then 38020 AS="$new_complete" 38021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 38022 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 38023 fi 38024 fi 38025 38026 if test "x$AS" = x; then 38027 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 38028 fi 38029 else 38030 # FIXME: is this correct for microsoft? 38031 AS="$CC -c" 38032 fi 38033 38034 38035 # 38036 # Setup the archiver (AR) 38037 # 38038 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38039 # The corresponding ar tool is lib.exe (used to create static libraries) 38040 # Extract the first word of "lib", so it can be a program name with args. 38041 set dummy lib; ac_word=$2 38042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38043 $as_echo_n "checking for $ac_word... " >&6; } 38044 if ${ac_cv_prog_AR+:} false; then : 38045 $as_echo_n "(cached) " >&6 38046 else 38047 if test -n "$AR"; then 38048 ac_cv_prog_AR="$AR" # Let the user override the test. 38049 else 38050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38051 for as_dir in $PATH 38052 do 38053 IFS=$as_save_IFS 38054 test -z "$as_dir" && as_dir=. 38055 for ac_exec_ext in '' $ac_executable_extensions; do 38056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38057 ac_cv_prog_AR="lib" 38058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38059 break 2 38060 fi 38061 done 38062 done 38063 IFS=$as_save_IFS 38064 38065 fi 38066 fi 38067 AR=$ac_cv_prog_AR 38068 if test -n "$AR"; then 38069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38070 $as_echo "$AR" >&6; } 38071 else 38072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38073 $as_echo "no" >&6; } 38074 fi 38075 38076 38077 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38078 38079 38080 # Publish this variable in the help. 38081 38082 38083 if [ -z "${AR+x}" ]; then 38084 # The variable is not set by user, try to locate tool using the code snippet 38085 if test -n "$ac_tool_prefix"; then 38086 for ac_prog in ar gcc-ar 38087 do 38088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38091 $as_echo_n "checking for $ac_word... " >&6; } 38092 if ${ac_cv_prog_AR+:} false; then : 38093 $as_echo_n "(cached) " >&6 38094 else 38095 if test -n "$AR"; then 38096 ac_cv_prog_AR="$AR" # Let the user override the test. 38097 else 38098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38099 for as_dir in $PATH 38100 do 38101 IFS=$as_save_IFS 38102 test -z "$as_dir" && as_dir=. 38103 for ac_exec_ext in '' $ac_executable_extensions; do 38104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38105 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38107 break 2 38108 fi 38109 done 38110 done 38111 IFS=$as_save_IFS 38112 38113 fi 38114 fi 38115 AR=$ac_cv_prog_AR 38116 if test -n "$AR"; then 38117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38118 $as_echo "$AR" >&6; } 38119 else 38120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38121 $as_echo "no" >&6; } 38122 fi 38123 38124 38125 test -n "$AR" && break 38126 done 38127 fi 38128 if test -z "$AR"; then 38129 ac_ct_AR=$AR 38130 for ac_prog in ar gcc-ar 38131 do 38132 # Extract the first word of "$ac_prog", so it can be a program name with args. 38133 set dummy $ac_prog; ac_word=$2 38134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38135 $as_echo_n "checking for $ac_word... " >&6; } 38136 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38137 $as_echo_n "(cached) " >&6 38138 else 38139 if test -n "$ac_ct_AR"; then 38140 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38141 else 38142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38143 for as_dir in $PATH 38144 do 38145 IFS=$as_save_IFS 38146 test -z "$as_dir" && as_dir=. 38147 for ac_exec_ext in '' $ac_executable_extensions; do 38148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38149 ac_cv_prog_ac_ct_AR="$ac_prog" 38150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38151 break 2 38152 fi 38153 done 38154 done 38155 IFS=$as_save_IFS 38156 38157 fi 38158 fi 38159 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38160 if test -n "$ac_ct_AR"; then 38161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38162 $as_echo "$ac_ct_AR" >&6; } 38163 else 38164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38165 $as_echo "no" >&6; } 38166 fi 38167 38168 38169 test -n "$ac_ct_AR" && break 38170 done 38171 38172 if test "x$ac_ct_AR" = x; then 38173 AR="" 38174 else 38175 case $cross_compiling:$ac_tool_warned in 38176 yes:) 38177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38179 ac_tool_warned=yes ;; 38180 esac 38181 AR=$ac_ct_AR 38182 fi 38183 fi 38184 38185 else 38186 # The variable is set, but is it from the command line or the environment? 38187 38188 # Try to remove the string !AR! from our list. 38189 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38190 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38191 # If it failed, the variable was not from the command line. Ignore it, 38192 # but warn the user (except for BASH, which is always set by the calling BASH). 38193 if test "xAR" != xBASH; then 38194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38195 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38196 fi 38197 # Try to locate tool using the code snippet 38198 if test -n "$ac_tool_prefix"; then 38199 for ac_prog in ar gcc-ar 38200 do 38201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38204 $as_echo_n "checking for $ac_word... " >&6; } 38205 if ${ac_cv_prog_AR+:} false; then : 38206 $as_echo_n "(cached) " >&6 38207 else 38208 if test -n "$AR"; then 38209 ac_cv_prog_AR="$AR" # Let the user override the test. 38210 else 38211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38212 for as_dir in $PATH 38213 do 38214 IFS=$as_save_IFS 38215 test -z "$as_dir" && as_dir=. 38216 for ac_exec_ext in '' $ac_executable_extensions; do 38217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38218 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38220 break 2 38221 fi 38222 done 38223 done 38224 IFS=$as_save_IFS 38225 38226 fi 38227 fi 38228 AR=$ac_cv_prog_AR 38229 if test -n "$AR"; then 38230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38231 $as_echo "$AR" >&6; } 38232 else 38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38234 $as_echo "no" >&6; } 38235 fi 38236 38237 38238 test -n "$AR" && break 38239 done 38240 fi 38241 if test -z "$AR"; then 38242 ac_ct_AR=$AR 38243 for ac_prog in ar gcc-ar 38244 do 38245 # Extract the first word of "$ac_prog", so it can be a program name with args. 38246 set dummy $ac_prog; ac_word=$2 38247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38248 $as_echo_n "checking for $ac_word... " >&6; } 38249 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38250 $as_echo_n "(cached) " >&6 38251 else 38252 if test -n "$ac_ct_AR"; then 38253 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38254 else 38255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38256 for as_dir in $PATH 38257 do 38258 IFS=$as_save_IFS 38259 test -z "$as_dir" && as_dir=. 38260 for ac_exec_ext in '' $ac_executable_extensions; do 38261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38262 ac_cv_prog_ac_ct_AR="$ac_prog" 38263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38264 break 2 38265 fi 38266 done 38267 done 38268 IFS=$as_save_IFS 38269 38270 fi 38271 fi 38272 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38273 if test -n "$ac_ct_AR"; then 38274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38275 $as_echo "$ac_ct_AR" >&6; } 38276 else 38277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38278 $as_echo "no" >&6; } 38279 fi 38280 38281 38282 test -n "$ac_ct_AR" && break 38283 done 38284 38285 if test "x$ac_ct_AR" = x; then 38286 AR="" 38287 else 38288 case $cross_compiling:$ac_tool_warned in 38289 yes:) 38290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38292 ac_tool_warned=yes ;; 38293 esac 38294 AR=$ac_ct_AR 38295 fi 38296 fi 38297 38298 else 38299 # If it succeeded, then it was overridden by the user. We will use it 38300 # for the tool. 38301 38302 # First remove it from the list of overridden variables, so we can test 38303 # for unknown variables in the end. 38304 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38305 38306 # Check if we try to supply an empty value 38307 if test "x$AR" = x; then 38308 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38309 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38311 $as_echo_n "checking for AR... " >&6; } 38312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38313 $as_echo "disabled" >&6; } 38314 else 38315 # Check if the provided tool contains a complete path. 38316 tool_specified="$AR" 38317 tool_basename="${tool_specified##*/}" 38318 if test "x$tool_basename" = "x$tool_specified"; then 38319 # A command without a complete path is provided, search $PATH. 38320 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38321 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38322 # Extract the first word of "$tool_basename", so it can be a program name with args. 38323 set dummy $tool_basename; ac_word=$2 38324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38325 $as_echo_n "checking for $ac_word... " >&6; } 38326 if ${ac_cv_path_AR+:} false; then : 38327 $as_echo_n "(cached) " >&6 38328 else 38329 case $AR in 38330 [\\/]* | ?:[\\/]*) 38331 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38332 ;; 38333 *) 38334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38335 for as_dir in $PATH 38336 do 38337 IFS=$as_save_IFS 38338 test -z "$as_dir" && as_dir=. 38339 for ac_exec_ext in '' $ac_executable_extensions; do 38340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38341 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38343 break 2 38344 fi 38345 done 38346 done 38347 IFS=$as_save_IFS 38348 38349 ;; 38350 esac 38351 fi 38352 AR=$ac_cv_path_AR 38353 if test -n "$AR"; then 38354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38355 $as_echo "$AR" >&6; } 38356 else 38357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38358 $as_echo "no" >&6; } 38359 fi 38360 38361 38362 if test "x$AR" = x; then 38363 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38364 fi 38365 else 38366 # Otherwise we believe it is a complete path. Use it as it is. 38367 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38368 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38370 $as_echo_n "checking for AR... " >&6; } 38371 if test ! -x "$tool_specified"; then 38372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38373 $as_echo "not found" >&6; } 38374 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38375 fi 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38377 $as_echo "$tool_specified" >&6; } 38378 fi 38379 fi 38380 fi 38381 38382 fi 38383 38384 38385 else 38386 38387 38388 # Publish this variable in the help. 38389 38390 38391 if [ -z "${AR+x}" ]; then 38392 # The variable is not set by user, try to locate tool using the code snippet 38393 if test -n "$ac_tool_prefix"; then 38394 for ac_prog in ar 38395 do 38396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38399 $as_echo_n "checking for $ac_word... " >&6; } 38400 if ${ac_cv_prog_AR+:} false; then : 38401 $as_echo_n "(cached) " >&6 38402 else 38403 if test -n "$AR"; then 38404 ac_cv_prog_AR="$AR" # Let the user override the test. 38405 else 38406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38407 for as_dir in $PATH 38408 do 38409 IFS=$as_save_IFS 38410 test -z "$as_dir" && as_dir=. 38411 for ac_exec_ext in '' $ac_executable_extensions; do 38412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38413 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38415 break 2 38416 fi 38417 done 38418 done 38419 IFS=$as_save_IFS 38420 38421 fi 38422 fi 38423 AR=$ac_cv_prog_AR 38424 if test -n "$AR"; then 38425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38426 $as_echo "$AR" >&6; } 38427 else 38428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38429 $as_echo "no" >&6; } 38430 fi 38431 38432 38433 test -n "$AR" && break 38434 done 38435 fi 38436 if test -z "$AR"; then 38437 ac_ct_AR=$AR 38438 for ac_prog in ar 38439 do 38440 # Extract the first word of "$ac_prog", so it can be a program name with args. 38441 set dummy $ac_prog; ac_word=$2 38442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38443 $as_echo_n "checking for $ac_word... " >&6; } 38444 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38445 $as_echo_n "(cached) " >&6 38446 else 38447 if test -n "$ac_ct_AR"; then 38448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38449 else 38450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38451 for as_dir in $PATH 38452 do 38453 IFS=$as_save_IFS 38454 test -z "$as_dir" && as_dir=. 38455 for ac_exec_ext in '' $ac_executable_extensions; do 38456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38457 ac_cv_prog_ac_ct_AR="$ac_prog" 38458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38459 break 2 38460 fi 38461 done 38462 done 38463 IFS=$as_save_IFS 38464 38465 fi 38466 fi 38467 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38468 if test -n "$ac_ct_AR"; then 38469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38470 $as_echo "$ac_ct_AR" >&6; } 38471 else 38472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38473 $as_echo "no" >&6; } 38474 fi 38475 38476 38477 test -n "$ac_ct_AR" && break 38478 done 38479 38480 if test "x$ac_ct_AR" = x; then 38481 AR="" 38482 else 38483 case $cross_compiling:$ac_tool_warned in 38484 yes:) 38485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38487 ac_tool_warned=yes ;; 38488 esac 38489 AR=$ac_ct_AR 38490 fi 38491 fi 38492 38493 else 38494 # The variable is set, but is it from the command line or the environment? 38495 38496 # Try to remove the string !AR! from our list. 38497 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38498 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38499 # If it failed, the variable was not from the command line. Ignore it, 38500 # but warn the user (except for BASH, which is always set by the calling BASH). 38501 if test "xAR" != xBASH; then 38502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38503 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38504 fi 38505 # Try to locate tool using the code snippet 38506 if test -n "$ac_tool_prefix"; then 38507 for ac_prog in ar 38508 do 38509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38512 $as_echo_n "checking for $ac_word... " >&6; } 38513 if ${ac_cv_prog_AR+:} false; then : 38514 $as_echo_n "(cached) " >&6 38515 else 38516 if test -n "$AR"; then 38517 ac_cv_prog_AR="$AR" # Let the user override the test. 38518 else 38519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38520 for as_dir in $PATH 38521 do 38522 IFS=$as_save_IFS 38523 test -z "$as_dir" && as_dir=. 38524 for ac_exec_ext in '' $ac_executable_extensions; do 38525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38526 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38528 break 2 38529 fi 38530 done 38531 done 38532 IFS=$as_save_IFS 38533 38534 fi 38535 fi 38536 AR=$ac_cv_prog_AR 38537 if test -n "$AR"; then 38538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38539 $as_echo "$AR" >&6; } 38540 else 38541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38542 $as_echo "no" >&6; } 38543 fi 38544 38545 38546 test -n "$AR" && break 38547 done 38548 fi 38549 if test -z "$AR"; then 38550 ac_ct_AR=$AR 38551 for ac_prog in ar 38552 do 38553 # Extract the first word of "$ac_prog", so it can be a program name with args. 38554 set dummy $ac_prog; ac_word=$2 38555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38556 $as_echo_n "checking for $ac_word... " >&6; } 38557 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38558 $as_echo_n "(cached) " >&6 38559 else 38560 if test -n "$ac_ct_AR"; then 38561 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38562 else 38563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38564 for as_dir in $PATH 38565 do 38566 IFS=$as_save_IFS 38567 test -z "$as_dir" && as_dir=. 38568 for ac_exec_ext in '' $ac_executable_extensions; do 38569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38570 ac_cv_prog_ac_ct_AR="$ac_prog" 38571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38572 break 2 38573 fi 38574 done 38575 done 38576 IFS=$as_save_IFS 38577 38578 fi 38579 fi 38580 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38581 if test -n "$ac_ct_AR"; then 38582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38583 $as_echo "$ac_ct_AR" >&6; } 38584 else 38585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38586 $as_echo "no" >&6; } 38587 fi 38588 38589 38590 test -n "$ac_ct_AR" && break 38591 done 38592 38593 if test "x$ac_ct_AR" = x; then 38594 AR="" 38595 else 38596 case $cross_compiling:$ac_tool_warned in 38597 yes:) 38598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38600 ac_tool_warned=yes ;; 38601 esac 38602 AR=$ac_ct_AR 38603 fi 38604 fi 38605 38606 else 38607 # If it succeeded, then it was overridden by the user. We will use it 38608 # for the tool. 38609 38610 # First remove it from the list of overridden variables, so we can test 38611 # for unknown variables in the end. 38612 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38613 38614 # Check if we try to supply an empty value 38615 if test "x$AR" = x; then 38616 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38617 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38619 $as_echo_n "checking for AR... " >&6; } 38620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38621 $as_echo "disabled" >&6; } 38622 else 38623 # Check if the provided tool contains a complete path. 38624 tool_specified="$AR" 38625 tool_basename="${tool_specified##*/}" 38626 if test "x$tool_basename" = "x$tool_specified"; then 38627 # A command without a complete path is provided, search $PATH. 38628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38629 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38630 # Extract the first word of "$tool_basename", so it can be a program name with args. 38631 set dummy $tool_basename; ac_word=$2 38632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38633 $as_echo_n "checking for $ac_word... " >&6; } 38634 if ${ac_cv_path_AR+:} false; then : 38635 $as_echo_n "(cached) " >&6 38636 else 38637 case $AR in 38638 [\\/]* | ?:[\\/]*) 38639 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38640 ;; 38641 *) 38642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38643 for as_dir in $PATH 38644 do 38645 IFS=$as_save_IFS 38646 test -z "$as_dir" && as_dir=. 38647 for ac_exec_ext in '' $ac_executable_extensions; do 38648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38649 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38651 break 2 38652 fi 38653 done 38654 done 38655 IFS=$as_save_IFS 38656 38657 ;; 38658 esac 38659 fi 38660 AR=$ac_cv_path_AR 38661 if test -n "$AR"; then 38662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38663 $as_echo "$AR" >&6; } 38664 else 38665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38666 $as_echo "no" >&6; } 38667 fi 38668 38669 38670 if test "x$AR" = x; then 38671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38672 fi 38673 else 38674 # Otherwise we believe it is a complete path. Use it as it is. 38675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38676 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38678 $as_echo_n "checking for AR... " >&6; } 38679 if test ! -x "$tool_specified"; then 38680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38681 $as_echo "not found" >&6; } 38682 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38683 fi 38684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38685 $as_echo "$tool_specified" >&6; } 38686 fi 38687 fi 38688 fi 38689 38690 fi 38691 38692 38693 fi 38694 38695 # Only process if variable expands to non-empty 38696 38697 if test "x$AR" != x; then 38698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38699 38700 # First separate the path from the arguments. This will split at the first 38701 # space. 38702 complete="$AR" 38703 path="${complete%% *}" 38704 tmp="$complete EOL" 38705 arguments="${tmp#* }" 38706 38707 # Input might be given as Windows format, start by converting to 38708 # unix format. 38709 new_path=`$CYGPATH -u "$path"` 38710 38711 # Now try to locate executable using which 38712 new_path=`$WHICH "$new_path" 2> /dev/null` 38713 # bat and cmd files are not always considered executable in cygwin causing which 38714 # to not find them 38715 if test "x$new_path" = x \ 38716 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38717 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38718 new_path=`$CYGPATH -u "$path"` 38719 fi 38720 if test "x$new_path" = x; then 38721 # Oops. Which didn't find the executable. 38722 # The splitting of arguments from the executable at a space might have been incorrect, 38723 # since paths with space are more likely in Windows. Give it another try with the whole 38724 # argument. 38725 path="$complete" 38726 arguments="EOL" 38727 new_path=`$CYGPATH -u "$path"` 38728 new_path=`$WHICH "$new_path" 2> /dev/null` 38729 # bat and cmd files are not always considered executable in cygwin causing which 38730 # to not find them 38731 if test "x$new_path" = x \ 38732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38734 new_path=`$CYGPATH -u "$path"` 38735 fi 38736 if test "x$new_path" = x; then 38737 # It's still not found. Now this is an unrecoverable error. 38738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38739 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38740 has_space=`$ECHO "$complete" | $GREP " "` 38741 if test "x$has_space" != x; then 38742 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38743 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38744 fi 38745 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38746 fi 38747 fi 38748 38749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38752 # "foo.exe" is OK but "foo" is an error. 38753 # 38754 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38755 # It is also a way to make sure we got the proper file name for the real test later on. 38756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38757 if test "x$test_shortpath" = x; then 38758 # Short path failed, file does not exist as specified. 38759 # Try adding .exe or .cmd 38760 if test -f "${new_path}.exe"; then 38761 input_to_shortpath="${new_path}.exe" 38762 elif test -f "${new_path}.cmd"; then 38763 input_to_shortpath="${new_path}.cmd" 38764 else 38765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38766 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38767 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38768 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38769 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38770 fi 38771 else 38772 input_to_shortpath="$new_path" 38773 fi 38774 38775 # Call helper function which possibly converts this using DOS-style short mode. 38776 # If so, the updated path is stored in $new_path. 38777 new_path="$input_to_shortpath" 38778 38779 input_path="$input_to_shortpath" 38780 # Check if we need to convert this using DOS-style short mode. If the path 38781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38782 # take no chances and rewrite it. 38783 # Note: m4 eats our [], so we need to use [ and ] instead. 38784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38785 if test "x$has_forbidden_chars" != x; then 38786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38787 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38788 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38789 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38790 # Going to short mode and back again did indeed matter. Since short mode is 38791 # case insensitive, let's make it lowercase to improve readability. 38792 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38793 # Now convert it back to Unix-style (cygpath) 38794 input_path=`$CYGPATH -u "$shortmode_path"` 38795 new_path="$input_path" 38796 fi 38797 fi 38798 38799 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38800 if test "x$test_cygdrive_prefix" = x; then 38801 # As a simple fix, exclude /usr/bin since it's not a real path. 38802 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38803 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38804 # a path prefixed by /cygdrive for fixpath to work. 38805 new_path="$CYGWIN_ROOT_PATH$input_path" 38806 fi 38807 fi 38808 38809 # remove trailing .exe if any 38810 new_path="${new_path/%.exe/}" 38811 38812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38813 38814 # First separate the path from the arguments. This will split at the first 38815 # space. 38816 complete="$AR" 38817 path="${complete%% *}" 38818 tmp="$complete EOL" 38819 arguments="${tmp#* }" 38820 38821 # Input might be given as Windows format, start by converting to 38822 # unix format. 38823 new_path="$path" 38824 38825 windows_path="$new_path" 38826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38827 unix_path=`$CYGPATH -u "$windows_path"` 38828 new_path="$unix_path" 38829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38831 new_path="$unix_path" 38832 fi 38833 38834 38835 # Now try to locate executable using which 38836 new_path=`$WHICH "$new_path" 2> /dev/null` 38837 38838 if test "x$new_path" = x; then 38839 # Oops. Which didn't find the executable. 38840 # The splitting of arguments from the executable at a space might have been incorrect, 38841 # since paths with space are more likely in Windows. Give it another try with the whole 38842 # argument. 38843 path="$complete" 38844 arguments="EOL" 38845 new_path="$path" 38846 38847 windows_path="$new_path" 38848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38849 unix_path=`$CYGPATH -u "$windows_path"` 38850 new_path="$unix_path" 38851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38853 new_path="$unix_path" 38854 fi 38855 38856 38857 new_path=`$WHICH "$new_path" 2> /dev/null` 38858 # bat and cmd files are not always considered executable in MSYS causing which 38859 # to not find them 38860 if test "x$new_path" = x \ 38861 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38862 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38863 new_path="$path" 38864 38865 windows_path="$new_path" 38866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38867 unix_path=`$CYGPATH -u "$windows_path"` 38868 new_path="$unix_path" 38869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38871 new_path="$unix_path" 38872 fi 38873 38874 fi 38875 38876 if test "x$new_path" = x; then 38877 # It's still not found. Now this is an unrecoverable error. 38878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38879 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38880 has_space=`$ECHO "$complete" | $GREP " "` 38881 if test "x$has_space" != x; then 38882 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38883 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38884 fi 38885 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38886 fi 38887 fi 38888 38889 # Now new_path has a complete unix path to the binary 38890 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38891 # Keep paths in /bin as-is, but remove trailing .exe if any 38892 new_path="${new_path/%.exe/}" 38893 # Do not save /bin paths to all_fixpath_prefixes! 38894 else 38895 # Not in mixed or Windows style, start by that. 38896 new_path=`cmd //c echo $new_path` 38897 38898 input_path="$new_path" 38899 # Check if we need to convert this using DOS-style short mode. If the path 38900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38901 # take no chances and rewrite it. 38902 # Note: m4 eats our [], so we need to use [ and ] instead. 38903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38904 if test "x$has_forbidden_chars" != x; then 38905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38906 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38907 fi 38908 38909 # Output is in $new_path 38910 38911 windows_path="$new_path" 38912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38913 unix_path=`$CYGPATH -u "$windows_path"` 38914 new_path="$unix_path" 38915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38917 new_path="$unix_path" 38918 fi 38919 38920 # remove trailing .exe if any 38921 new_path="${new_path/%.exe/}" 38922 38923 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38924 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38925 fi 38926 38927 else 38928 # We're on a unix platform. Hooray! :) 38929 # First separate the path from the arguments. This will split at the first 38930 # space. 38931 complete="$AR" 38932 path="${complete%% *}" 38933 tmp="$complete EOL" 38934 arguments="${tmp#* }" 38935 38936 # Cannot rely on the command "which" here since it doesn't always work. 38937 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38938 if test -z "$is_absolute_path"; then 38939 # Path to executable is not absolute. Find it. 38940 IFS_save="$IFS" 38941 IFS=: 38942 for p in $PATH; do 38943 if test -f "$p/$path" && test -x "$p/$path"; then 38944 new_path="$p/$path" 38945 break 38946 fi 38947 done 38948 IFS="$IFS_save" 38949 else 38950 # This is an absolute path, we can use it without further modifications. 38951 new_path="$path" 38952 fi 38953 38954 if test "x$new_path" = x; then 38955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38956 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38957 has_space=`$ECHO "$complete" | $GREP " "` 38958 if test "x$has_space" != x; then 38959 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38960 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38961 fi 38962 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38963 fi 38964 fi 38965 38966 # Now join together the path and the arguments once again 38967 if test "x$arguments" != xEOL; then 38968 new_complete="$new_path ${arguments% *}" 38969 else 38970 new_complete="$new_path" 38971 fi 38972 38973 if test "x$complete" != "x$new_complete"; then 38974 AR="$new_complete" 38975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38976 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38977 fi 38978 fi 38979 38980 38981 38982 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38983 38984 38985 # Publish this variable in the help. 38986 38987 38988 if [ -z "${LIPO+x}" ]; then 38989 # The variable is not set by user, try to locate tool using the code snippet 38990 for ac_prog in lipo 38991 do 38992 # Extract the first word of "$ac_prog", so it can be a program name with args. 38993 set dummy $ac_prog; ac_word=$2 38994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38995 $as_echo_n "checking for $ac_word... " >&6; } 38996 if ${ac_cv_path_LIPO+:} false; then : 38997 $as_echo_n "(cached) " >&6 38998 else 38999 case $LIPO in 39000 [\\/]* | ?:[\\/]*) 39001 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39002 ;; 39003 *) 39004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39005 for as_dir in $PATH 39006 do 39007 IFS=$as_save_IFS 39008 test -z "$as_dir" && as_dir=. 39009 for ac_exec_ext in '' $ac_executable_extensions; do 39010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39011 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39013 break 2 39014 fi 39015 done 39016 done 39017 IFS=$as_save_IFS 39018 39019 ;; 39020 esac 39021 fi 39022 LIPO=$ac_cv_path_LIPO 39023 if test -n "$LIPO"; then 39024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39025 $as_echo "$LIPO" >&6; } 39026 else 39027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39028 $as_echo "no" >&6; } 39029 fi 39030 39031 39032 test -n "$LIPO" && break 39033 done 39034 39035 else 39036 # The variable is set, but is it from the command line or the environment? 39037 39038 # Try to remove the string !LIPO! from our list. 39039 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 39040 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39041 # If it failed, the variable was not from the command line. Ignore it, 39042 # but warn the user (except for BASH, which is always set by the calling BASH). 39043 if test "xLIPO" != xBASH; then 39044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 39045 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 39046 fi 39047 # Try to locate tool using the code snippet 39048 for ac_prog in lipo 39049 do 39050 # Extract the first word of "$ac_prog", so it can be a program name with args. 39051 set dummy $ac_prog; ac_word=$2 39052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39053 $as_echo_n "checking for $ac_word... " >&6; } 39054 if ${ac_cv_path_LIPO+:} false; then : 39055 $as_echo_n "(cached) " >&6 39056 else 39057 case $LIPO in 39058 [\\/]* | ?:[\\/]*) 39059 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39060 ;; 39061 *) 39062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39063 for as_dir in $PATH 39064 do 39065 IFS=$as_save_IFS 39066 test -z "$as_dir" && as_dir=. 39067 for ac_exec_ext in '' $ac_executable_extensions; do 39068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39069 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39071 break 2 39072 fi 39073 done 39074 done 39075 IFS=$as_save_IFS 39076 39077 ;; 39078 esac 39079 fi 39080 LIPO=$ac_cv_path_LIPO 39081 if test -n "$LIPO"; then 39082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39083 $as_echo "$LIPO" >&6; } 39084 else 39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39086 $as_echo "no" >&6; } 39087 fi 39088 39089 39090 test -n "$LIPO" && break 39091 done 39092 39093 else 39094 # If it succeeded, then it was overridden by the user. We will use it 39095 # for the tool. 39096 39097 # First remove it from the list of overridden variables, so we can test 39098 # for unknown variables in the end. 39099 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39100 39101 # Check if we try to supply an empty value 39102 if test "x$LIPO" = x; then 39103 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39104 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39106 $as_echo_n "checking for LIPO... " >&6; } 39107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39108 $as_echo "disabled" >&6; } 39109 else 39110 # Check if the provided tool contains a complete path. 39111 tool_specified="$LIPO" 39112 tool_basename="${tool_specified##*/}" 39113 if test "x$tool_basename" = "x$tool_specified"; then 39114 # A command without a complete path is provided, search $PATH. 39115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39116 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39117 # Extract the first word of "$tool_basename", so it can be a program name with args. 39118 set dummy $tool_basename; ac_word=$2 39119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39120 $as_echo_n "checking for $ac_word... " >&6; } 39121 if ${ac_cv_path_LIPO+:} false; then : 39122 $as_echo_n "(cached) " >&6 39123 else 39124 case $LIPO in 39125 [\\/]* | ?:[\\/]*) 39126 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39127 ;; 39128 *) 39129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39130 for as_dir in $PATH 39131 do 39132 IFS=$as_save_IFS 39133 test -z "$as_dir" && as_dir=. 39134 for ac_exec_ext in '' $ac_executable_extensions; do 39135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39136 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39138 break 2 39139 fi 39140 done 39141 done 39142 IFS=$as_save_IFS 39143 39144 ;; 39145 esac 39146 fi 39147 LIPO=$ac_cv_path_LIPO 39148 if test -n "$LIPO"; then 39149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39150 $as_echo "$LIPO" >&6; } 39151 else 39152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39153 $as_echo "no" >&6; } 39154 fi 39155 39156 39157 if test "x$LIPO" = x; then 39158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39159 fi 39160 else 39161 # Otherwise we believe it is a complete path. Use it as it is. 39162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39163 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39165 $as_echo_n "checking for LIPO... " >&6; } 39166 if test ! -x "$tool_specified"; then 39167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39168 $as_echo "not found" >&6; } 39169 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39170 fi 39171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39172 $as_echo "$tool_specified" >&6; } 39173 fi 39174 fi 39175 fi 39176 39177 fi 39178 39179 39180 39181 # Only process if variable expands to non-empty 39182 39183 if test "x$LIPO" != x; then 39184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39185 39186 # First separate the path from the arguments. This will split at the first 39187 # space. 39188 complete="$LIPO" 39189 path="${complete%% *}" 39190 tmp="$complete EOL" 39191 arguments="${tmp#* }" 39192 39193 # Input might be given as Windows format, start by converting to 39194 # unix format. 39195 new_path=`$CYGPATH -u "$path"` 39196 39197 # Now try to locate executable using which 39198 new_path=`$WHICH "$new_path" 2> /dev/null` 39199 # bat and cmd files are not always considered executable in cygwin causing which 39200 # to not find them 39201 if test "x$new_path" = x \ 39202 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39203 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39204 new_path=`$CYGPATH -u "$path"` 39205 fi 39206 if test "x$new_path" = x; then 39207 # Oops. Which didn't find the executable. 39208 # The splitting of arguments from the executable at a space might have been incorrect, 39209 # since paths with space are more likely in Windows. Give it another try with the whole 39210 # argument. 39211 path="$complete" 39212 arguments="EOL" 39213 new_path=`$CYGPATH -u "$path"` 39214 new_path=`$WHICH "$new_path" 2> /dev/null` 39215 # bat and cmd files are not always considered executable in cygwin causing which 39216 # to not find them 39217 if test "x$new_path" = x \ 39218 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39219 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39220 new_path=`$CYGPATH -u "$path"` 39221 fi 39222 if test "x$new_path" = x; then 39223 # It's still not found. Now this is an unrecoverable error. 39224 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39225 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39226 has_space=`$ECHO "$complete" | $GREP " "` 39227 if test "x$has_space" != x; then 39228 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39229 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39230 fi 39231 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39232 fi 39233 fi 39234 39235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39238 # "foo.exe" is OK but "foo" is an error. 39239 # 39240 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39241 # It is also a way to make sure we got the proper file name for the real test later on. 39242 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39243 if test "x$test_shortpath" = x; then 39244 # Short path failed, file does not exist as specified. 39245 # Try adding .exe or .cmd 39246 if test -f "${new_path}.exe"; then 39247 input_to_shortpath="${new_path}.exe" 39248 elif test -f "${new_path}.cmd"; then 39249 input_to_shortpath="${new_path}.cmd" 39250 else 39251 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39252 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39253 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39254 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39255 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39256 fi 39257 else 39258 input_to_shortpath="$new_path" 39259 fi 39260 39261 # Call helper function which possibly converts this using DOS-style short mode. 39262 # If so, the updated path is stored in $new_path. 39263 new_path="$input_to_shortpath" 39264 39265 input_path="$input_to_shortpath" 39266 # Check if we need to convert this using DOS-style short mode. If the path 39267 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39268 # take no chances and rewrite it. 39269 # Note: m4 eats our [], so we need to use [ and ] instead. 39270 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39271 if test "x$has_forbidden_chars" != x; then 39272 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39273 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39274 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39275 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39276 # Going to short mode and back again did indeed matter. Since short mode is 39277 # case insensitive, let's make it lowercase to improve readability. 39278 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39279 # Now convert it back to Unix-style (cygpath) 39280 input_path=`$CYGPATH -u "$shortmode_path"` 39281 new_path="$input_path" 39282 fi 39283 fi 39284 39285 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39286 if test "x$test_cygdrive_prefix" = x; then 39287 # As a simple fix, exclude /usr/bin since it's not a real path. 39288 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39289 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39290 # a path prefixed by /cygdrive for fixpath to work. 39291 new_path="$CYGWIN_ROOT_PATH$input_path" 39292 fi 39293 fi 39294 39295 # remove trailing .exe if any 39296 new_path="${new_path/%.exe/}" 39297 39298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39299 39300 # First separate the path from the arguments. This will split at the first 39301 # space. 39302 complete="$LIPO" 39303 path="${complete%% *}" 39304 tmp="$complete EOL" 39305 arguments="${tmp#* }" 39306 39307 # Input might be given as Windows format, start by converting to 39308 # unix format. 39309 new_path="$path" 39310 39311 windows_path="$new_path" 39312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39313 unix_path=`$CYGPATH -u "$windows_path"` 39314 new_path="$unix_path" 39315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39317 new_path="$unix_path" 39318 fi 39319 39320 39321 # Now try to locate executable using which 39322 new_path=`$WHICH "$new_path" 2> /dev/null` 39323 39324 if test "x$new_path" = x; then 39325 # Oops. Which didn't find the executable. 39326 # The splitting of arguments from the executable at a space might have been incorrect, 39327 # since paths with space are more likely in Windows. Give it another try with the whole 39328 # argument. 39329 path="$complete" 39330 arguments="EOL" 39331 new_path="$path" 39332 39333 windows_path="$new_path" 39334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39335 unix_path=`$CYGPATH -u "$windows_path"` 39336 new_path="$unix_path" 39337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39339 new_path="$unix_path" 39340 fi 39341 39342 39343 new_path=`$WHICH "$new_path" 2> /dev/null` 39344 # bat and cmd files are not always considered executable in MSYS causing which 39345 # to not find them 39346 if test "x$new_path" = x \ 39347 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39348 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39349 new_path="$path" 39350 39351 windows_path="$new_path" 39352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39353 unix_path=`$CYGPATH -u "$windows_path"` 39354 new_path="$unix_path" 39355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39356 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39357 new_path="$unix_path" 39358 fi 39359 39360 fi 39361 39362 if test "x$new_path" = x; then 39363 # It's still not found. Now this is an unrecoverable error. 39364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39365 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39366 has_space=`$ECHO "$complete" | $GREP " "` 39367 if test "x$has_space" != x; then 39368 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39370 fi 39371 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39372 fi 39373 fi 39374 39375 # Now new_path has a complete unix path to the binary 39376 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39377 # Keep paths in /bin as-is, but remove trailing .exe if any 39378 new_path="${new_path/%.exe/}" 39379 # Do not save /bin paths to all_fixpath_prefixes! 39380 else 39381 # Not in mixed or Windows style, start by that. 39382 new_path=`cmd //c echo $new_path` 39383 39384 input_path="$new_path" 39385 # Check if we need to convert this using DOS-style short mode. If the path 39386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39387 # take no chances and rewrite it. 39388 # Note: m4 eats our [], so we need to use [ and ] instead. 39389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39390 if test "x$has_forbidden_chars" != x; then 39391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39392 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39393 fi 39394 39395 # Output is in $new_path 39396 39397 windows_path="$new_path" 39398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39399 unix_path=`$CYGPATH -u "$windows_path"` 39400 new_path="$unix_path" 39401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39403 new_path="$unix_path" 39404 fi 39405 39406 # remove trailing .exe if any 39407 new_path="${new_path/%.exe/}" 39408 39409 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39410 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39411 fi 39412 39413 else 39414 # We're on a unix platform. Hooray! :) 39415 # First separate the path from the arguments. This will split at the first 39416 # space. 39417 complete="$LIPO" 39418 path="${complete%% *}" 39419 tmp="$complete EOL" 39420 arguments="${tmp#* }" 39421 39422 # Cannot rely on the command "which" here since it doesn't always work. 39423 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39424 if test -z "$is_absolute_path"; then 39425 # Path to executable is not absolute. Find it. 39426 IFS_save="$IFS" 39427 IFS=: 39428 for p in $PATH; do 39429 if test -f "$p/$path" && test -x "$p/$path"; then 39430 new_path="$p/$path" 39431 break 39432 fi 39433 done 39434 IFS="$IFS_save" 39435 else 39436 # This is an absolute path, we can use it without further modifications. 39437 new_path="$path" 39438 fi 39439 39440 if test "x$new_path" = x; then 39441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39442 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39443 has_space=`$ECHO "$complete" | $GREP " "` 39444 if test "x$has_space" != x; then 39445 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39446 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39447 fi 39448 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39449 fi 39450 fi 39451 39452 # Now join together the path and the arguments once again 39453 if test "x$arguments" != xEOL; then 39454 new_complete="$new_path ${arguments% *}" 39455 else 39456 new_complete="$new_path" 39457 fi 39458 39459 if test "x$complete" != "x$new_complete"; then 39460 LIPO="$new_complete" 39461 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39462 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39463 fi 39464 fi 39465 39466 fi 39467 39468 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39469 # Extract the first word of "mt", so it can be a program name with args. 39470 set dummy mt; ac_word=$2 39471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39472 $as_echo_n "checking for $ac_word... " >&6; } 39473 if ${ac_cv_prog_MT+:} false; then : 39474 $as_echo_n "(cached) " >&6 39475 else 39476 if test -n "$MT"; then 39477 ac_cv_prog_MT="$MT" # Let the user override the test. 39478 else 39479 ac_prog_rejected=no 39480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39481 for as_dir in $PATH 39482 do 39483 IFS=$as_save_IFS 39484 test -z "$as_dir" && as_dir=. 39485 for ac_exec_ext in '' $ac_executable_extensions; do 39486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 39488 ac_prog_rejected=yes 39489 continue 39490 fi 39491 ac_cv_prog_MT="mt" 39492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39493 break 2 39494 fi 39495 done 39496 done 39497 IFS=$as_save_IFS 39498 39499 if test $ac_prog_rejected = yes; then 39500 # We found a bogon in the path, so make sure we never use it. 39501 set dummy $ac_cv_prog_MT 39502 shift 39503 if test $# != 0; then 39504 # We chose a different compiler from the bogus one. 39505 # However, it has the same basename, so the bogon will be chosen 39506 # first if we set MT to just the basename; use the full file name. 39507 shift 39508 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 39509 fi 39510 fi 39511 fi 39512 fi 39513 MT=$ac_cv_prog_MT 39514 if test -n "$MT"; then 39515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 39516 $as_echo "$MT" >&6; } 39517 else 39518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39519 $as_echo "no" >&6; } 39520 fi 39521 39522 39523 39524 # Only process if variable expands to non-empty 39525 39526 if test "x$MT" != x; then 39527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39528 39529 # First separate the path from the arguments. This will split at the first 39530 # space. 39531 complete="$MT" 39532 path="${complete%% *}" 39533 tmp="$complete EOL" 39534 arguments="${tmp#* }" 39535 39536 # Input might be given as Windows format, start by converting to 39537 # unix format. 39538 new_path=`$CYGPATH -u "$path"` 39539 39540 # Now try to locate executable using which 39541 new_path=`$WHICH "$new_path" 2> /dev/null` 39542 # bat and cmd files are not always considered executable in cygwin causing which 39543 # to not find them 39544 if test "x$new_path" = x \ 39545 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39546 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39547 new_path=`$CYGPATH -u "$path"` 39548 fi 39549 if test "x$new_path" = x; then 39550 # Oops. Which didn't find the executable. 39551 # The splitting of arguments from the executable at a space might have been incorrect, 39552 # since paths with space are more likely in Windows. Give it another try with the whole 39553 # argument. 39554 path="$complete" 39555 arguments="EOL" 39556 new_path=`$CYGPATH -u "$path"` 39557 new_path=`$WHICH "$new_path" 2> /dev/null` 39558 # bat and cmd files are not always considered executable in cygwin causing which 39559 # to not find them 39560 if test "x$new_path" = x \ 39561 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39562 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39563 new_path=`$CYGPATH -u "$path"` 39564 fi 39565 if test "x$new_path" = x; then 39566 # It's still not found. Now this is an unrecoverable error. 39567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39568 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39569 has_space=`$ECHO "$complete" | $GREP " "` 39570 if test "x$has_space" != x; then 39571 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39572 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39573 fi 39574 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39575 fi 39576 fi 39577 39578 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39579 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39580 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39581 # "foo.exe" is OK but "foo" is an error. 39582 # 39583 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39584 # It is also a way to make sure we got the proper file name for the real test later on. 39585 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39586 if test "x$test_shortpath" = x; then 39587 # Short path failed, file does not exist as specified. 39588 # Try adding .exe or .cmd 39589 if test -f "${new_path}.exe"; then 39590 input_to_shortpath="${new_path}.exe" 39591 elif test -f "${new_path}.cmd"; then 39592 input_to_shortpath="${new_path}.cmd" 39593 else 39594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 39595 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 39596 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39597 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39598 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39599 fi 39600 else 39601 input_to_shortpath="$new_path" 39602 fi 39603 39604 # Call helper function which possibly converts this using DOS-style short mode. 39605 # If so, the updated path is stored in $new_path. 39606 new_path="$input_to_shortpath" 39607 39608 input_path="$input_to_shortpath" 39609 # Check if we need to convert this using DOS-style short mode. If the path 39610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39611 # take no chances and rewrite it. 39612 # Note: m4 eats our [], so we need to use [ and ] instead. 39613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39614 if test "x$has_forbidden_chars" != x; then 39615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39616 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39617 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39618 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39619 # Going to short mode and back again did indeed matter. Since short mode is 39620 # case insensitive, let's make it lowercase to improve readability. 39621 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39622 # Now convert it back to Unix-style (cygpath) 39623 input_path=`$CYGPATH -u "$shortmode_path"` 39624 new_path="$input_path" 39625 fi 39626 fi 39627 39628 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39629 if test "x$test_cygdrive_prefix" = x; then 39630 # As a simple fix, exclude /usr/bin since it's not a real path. 39631 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39632 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39633 # a path prefixed by /cygdrive for fixpath to work. 39634 new_path="$CYGWIN_ROOT_PATH$input_path" 39635 fi 39636 fi 39637 39638 # remove trailing .exe if any 39639 new_path="${new_path/%.exe/}" 39640 39641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39642 39643 # First separate the path from the arguments. This will split at the first 39644 # space. 39645 complete="$MT" 39646 path="${complete%% *}" 39647 tmp="$complete EOL" 39648 arguments="${tmp#* }" 39649 39650 # Input might be given as Windows format, start by converting to 39651 # unix format. 39652 new_path="$path" 39653 39654 windows_path="$new_path" 39655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39656 unix_path=`$CYGPATH -u "$windows_path"` 39657 new_path="$unix_path" 39658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39659 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39660 new_path="$unix_path" 39661 fi 39662 39663 39664 # Now try to locate executable using which 39665 new_path=`$WHICH "$new_path" 2> /dev/null` 39666 39667 if test "x$new_path" = x; then 39668 # Oops. Which didn't find the executable. 39669 # The splitting of arguments from the executable at a space might have been incorrect, 39670 # since paths with space are more likely in Windows. Give it another try with the whole 39671 # argument. 39672 path="$complete" 39673 arguments="EOL" 39674 new_path="$path" 39675 39676 windows_path="$new_path" 39677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39678 unix_path=`$CYGPATH -u "$windows_path"` 39679 new_path="$unix_path" 39680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39682 new_path="$unix_path" 39683 fi 39684 39685 39686 new_path=`$WHICH "$new_path" 2> /dev/null` 39687 # bat and cmd files are not always considered executable in MSYS causing which 39688 # to not find them 39689 if test "x$new_path" = x \ 39690 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39691 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39692 new_path="$path" 39693 39694 windows_path="$new_path" 39695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39696 unix_path=`$CYGPATH -u "$windows_path"` 39697 new_path="$unix_path" 39698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39700 new_path="$unix_path" 39701 fi 39702 39703 fi 39704 39705 if test "x$new_path" = x; then 39706 # It's still not found. Now this is an unrecoverable error. 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39708 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39709 has_space=`$ECHO "$complete" | $GREP " "` 39710 if test "x$has_space" != x; then 39711 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39712 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39713 fi 39714 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39715 fi 39716 fi 39717 39718 # Now new_path has a complete unix path to the binary 39719 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39720 # Keep paths in /bin as-is, but remove trailing .exe if any 39721 new_path="${new_path/%.exe/}" 39722 # Do not save /bin paths to all_fixpath_prefixes! 39723 else 39724 # Not in mixed or Windows style, start by that. 39725 new_path=`cmd //c echo $new_path` 39726 39727 input_path="$new_path" 39728 # Check if we need to convert this using DOS-style short mode. If the path 39729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39730 # take no chances and rewrite it. 39731 # Note: m4 eats our [], so we need to use [ and ] instead. 39732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39733 if test "x$has_forbidden_chars" != x; then 39734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39736 fi 39737 39738 # Output is in $new_path 39739 39740 windows_path="$new_path" 39741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39742 unix_path=`$CYGPATH -u "$windows_path"` 39743 new_path="$unix_path" 39744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39746 new_path="$unix_path" 39747 fi 39748 39749 # remove trailing .exe if any 39750 new_path="${new_path/%.exe/}" 39751 39752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39754 fi 39755 39756 else 39757 # We're on a unix platform. Hooray! :) 39758 # First separate the path from the arguments. This will split at the first 39759 # space. 39760 complete="$MT" 39761 path="${complete%% *}" 39762 tmp="$complete EOL" 39763 arguments="${tmp#* }" 39764 39765 # Cannot rely on the command "which" here since it doesn't always work. 39766 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39767 if test -z "$is_absolute_path"; then 39768 # Path to executable is not absolute. Find it. 39769 IFS_save="$IFS" 39770 IFS=: 39771 for p in $PATH; do 39772 if test -f "$p/$path" && test -x "$p/$path"; then 39773 new_path="$p/$path" 39774 break 39775 fi 39776 done 39777 IFS="$IFS_save" 39778 else 39779 # This is an absolute path, we can use it without further modifications. 39780 new_path="$path" 39781 fi 39782 39783 if test "x$new_path" = x; then 39784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39785 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39786 has_space=`$ECHO "$complete" | $GREP " "` 39787 if test "x$has_space" != x; then 39788 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39789 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39790 fi 39791 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39792 fi 39793 fi 39794 39795 # Now join together the path and the arguments once again 39796 if test "x$arguments" != xEOL; then 39797 new_complete="$new_path ${arguments% *}" 39798 else 39799 new_complete="$new_path" 39800 fi 39801 39802 if test "x$complete" != "x$new_complete"; then 39803 MT="$new_complete" 39804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 39805 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 39806 fi 39807 fi 39808 39809 # Setup the resource compiler (RC) 39810 # Extract the first word of "rc", so it can be a program name with args. 39811 set dummy rc; ac_word=$2 39812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39813 $as_echo_n "checking for $ac_word... " >&6; } 39814 if ${ac_cv_prog_RC+:} false; then : 39815 $as_echo_n "(cached) " >&6 39816 else 39817 if test -n "$RC"; then 39818 ac_cv_prog_RC="$RC" # Let the user override the test. 39819 else 39820 ac_prog_rejected=no 39821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39822 for as_dir in $PATH 39823 do 39824 IFS=$as_save_IFS 39825 test -z "$as_dir" && as_dir=. 39826 for ac_exec_ext in '' $ac_executable_extensions; do 39827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 39829 ac_prog_rejected=yes 39830 continue 39831 fi 39832 ac_cv_prog_RC="rc" 39833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39834 break 2 39835 fi 39836 done 39837 done 39838 IFS=$as_save_IFS 39839 39840 if test $ac_prog_rejected = yes; then 39841 # We found a bogon in the path, so make sure we never use it. 39842 set dummy $ac_cv_prog_RC 39843 shift 39844 if test $# != 0; then 39845 # We chose a different compiler from the bogus one. 39846 # However, it has the same basename, so the bogon will be chosen 39847 # first if we set RC to just the basename; use the full file name. 39848 shift 39849 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 39850 fi 39851 fi 39852 fi 39853 fi 39854 RC=$ac_cv_prog_RC 39855 if test -n "$RC"; then 39856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 39857 $as_echo "$RC" >&6; } 39858 else 39859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39860 $as_echo "no" >&6; } 39861 fi 39862 39863 39864 39865 # Only process if variable expands to non-empty 39866 39867 if test "x$RC" != x; then 39868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39869 39870 # First separate the path from the arguments. This will split at the first 39871 # space. 39872 complete="$RC" 39873 path="${complete%% *}" 39874 tmp="$complete EOL" 39875 arguments="${tmp#* }" 39876 39877 # Input might be given as Windows format, start by converting to 39878 # unix format. 39879 new_path=`$CYGPATH -u "$path"` 39880 39881 # Now try to locate executable using which 39882 new_path=`$WHICH "$new_path" 2> /dev/null` 39883 # bat and cmd files are not always considered executable in cygwin causing which 39884 # to not find them 39885 if test "x$new_path" = x \ 39886 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39887 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39888 new_path=`$CYGPATH -u "$path"` 39889 fi 39890 if test "x$new_path" = x; then 39891 # Oops. Which didn't find the executable. 39892 # The splitting of arguments from the executable at a space might have been incorrect, 39893 # since paths with space are more likely in Windows. Give it another try with the whole 39894 # argument. 39895 path="$complete" 39896 arguments="EOL" 39897 new_path=`$CYGPATH -u "$path"` 39898 new_path=`$WHICH "$new_path" 2> /dev/null` 39899 # bat and cmd files are not always considered executable in cygwin causing which 39900 # to not find them 39901 if test "x$new_path" = x \ 39902 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39903 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39904 new_path=`$CYGPATH -u "$path"` 39905 fi 39906 if test "x$new_path" = x; then 39907 # It's still not found. Now this is an unrecoverable error. 39908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39909 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39910 has_space=`$ECHO "$complete" | $GREP " "` 39911 if test "x$has_space" != x; then 39912 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39913 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39914 fi 39915 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39916 fi 39917 fi 39918 39919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39922 # "foo.exe" is OK but "foo" is an error. 39923 # 39924 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39925 # It is also a way to make sure we got the proper file name for the real test later on. 39926 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39927 if test "x$test_shortpath" = x; then 39928 # Short path failed, file does not exist as specified. 39929 # Try adding .exe or .cmd 39930 if test -f "${new_path}.exe"; then 39931 input_to_shortpath="${new_path}.exe" 39932 elif test -f "${new_path}.cmd"; then 39933 input_to_shortpath="${new_path}.cmd" 39934 else 39935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 39936 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 39937 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39938 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39939 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39940 fi 39941 else 39942 input_to_shortpath="$new_path" 39943 fi 39944 39945 # Call helper function which possibly converts this using DOS-style short mode. 39946 # If so, the updated path is stored in $new_path. 39947 new_path="$input_to_shortpath" 39948 39949 input_path="$input_to_shortpath" 39950 # Check if we need to convert this using DOS-style short mode. If the path 39951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39952 # take no chances and rewrite it. 39953 # Note: m4 eats our [], so we need to use [ and ] instead. 39954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39955 if test "x$has_forbidden_chars" != x; then 39956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39960 # Going to short mode and back again did indeed matter. Since short mode is 39961 # case insensitive, let's make it lowercase to improve readability. 39962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39963 # Now convert it back to Unix-style (cygpath) 39964 input_path=`$CYGPATH -u "$shortmode_path"` 39965 new_path="$input_path" 39966 fi 39967 fi 39968 39969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39970 if test "x$test_cygdrive_prefix" = x; then 39971 # As a simple fix, exclude /usr/bin since it's not a real path. 39972 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39974 # a path prefixed by /cygdrive for fixpath to work. 39975 new_path="$CYGWIN_ROOT_PATH$input_path" 39976 fi 39977 fi 39978 39979 # remove trailing .exe if any 39980 new_path="${new_path/%.exe/}" 39981 39982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39983 39984 # First separate the path from the arguments. This will split at the first 39985 # space. 39986 complete="$RC" 39987 path="${complete%% *}" 39988 tmp="$complete EOL" 39989 arguments="${tmp#* }" 39990 39991 # Input might be given as Windows format, start by converting to 39992 # unix format. 39993 new_path="$path" 39994 39995 windows_path="$new_path" 39996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39997 unix_path=`$CYGPATH -u "$windows_path"` 39998 new_path="$unix_path" 39999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40001 new_path="$unix_path" 40002 fi 40003 40004 40005 # Now try to locate executable using which 40006 new_path=`$WHICH "$new_path" 2> /dev/null` 40007 40008 if test "x$new_path" = x; then 40009 # Oops. Which didn't find the executable. 40010 # The splitting of arguments from the executable at a space might have been incorrect, 40011 # since paths with space are more likely in Windows. Give it another try with the whole 40012 # argument. 40013 path="$complete" 40014 arguments="EOL" 40015 new_path="$path" 40016 40017 windows_path="$new_path" 40018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40019 unix_path=`$CYGPATH -u "$windows_path"` 40020 new_path="$unix_path" 40021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40023 new_path="$unix_path" 40024 fi 40025 40026 40027 new_path=`$WHICH "$new_path" 2> /dev/null` 40028 # bat and cmd files are not always considered executable in MSYS causing which 40029 # to not find them 40030 if test "x$new_path" = x \ 40031 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40032 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40033 new_path="$path" 40034 40035 windows_path="$new_path" 40036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40037 unix_path=`$CYGPATH -u "$windows_path"` 40038 new_path="$unix_path" 40039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40041 new_path="$unix_path" 40042 fi 40043 40044 fi 40045 40046 if test "x$new_path" = x; then 40047 # It's still not found. Now this is an unrecoverable error. 40048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40049 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40050 has_space=`$ECHO "$complete" | $GREP " "` 40051 if test "x$has_space" != x; then 40052 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40053 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40054 fi 40055 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40056 fi 40057 fi 40058 40059 # Now new_path has a complete unix path to the binary 40060 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40061 # Keep paths in /bin as-is, but remove trailing .exe if any 40062 new_path="${new_path/%.exe/}" 40063 # Do not save /bin paths to all_fixpath_prefixes! 40064 else 40065 # Not in mixed or Windows style, start by that. 40066 new_path=`cmd //c echo $new_path` 40067 40068 input_path="$new_path" 40069 # Check if we need to convert this using DOS-style short mode. If the path 40070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40071 # take no chances and rewrite it. 40072 # Note: m4 eats our [], so we need to use [ and ] instead. 40073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40074 if test "x$has_forbidden_chars" != x; then 40075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40076 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40077 fi 40078 40079 # Output is in $new_path 40080 40081 windows_path="$new_path" 40082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40083 unix_path=`$CYGPATH -u "$windows_path"` 40084 new_path="$unix_path" 40085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40087 new_path="$unix_path" 40088 fi 40089 40090 # remove trailing .exe if any 40091 new_path="${new_path/%.exe/}" 40092 40093 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40094 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40095 fi 40096 40097 else 40098 # We're on a unix platform. Hooray! :) 40099 # First separate the path from the arguments. This will split at the first 40100 # space. 40101 complete="$RC" 40102 path="${complete%% *}" 40103 tmp="$complete EOL" 40104 arguments="${tmp#* }" 40105 40106 # Cannot rely on the command "which" here since it doesn't always work. 40107 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40108 if test -z "$is_absolute_path"; then 40109 # Path to executable is not absolute. Find it. 40110 IFS_save="$IFS" 40111 IFS=: 40112 for p in $PATH; do 40113 if test -f "$p/$path" && test -x "$p/$path"; then 40114 new_path="$p/$path" 40115 break 40116 fi 40117 done 40118 IFS="$IFS_save" 40119 else 40120 # This is an absolute path, we can use it without further modifications. 40121 new_path="$path" 40122 fi 40123 40124 if test "x$new_path" = x; then 40125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40126 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40127 has_space=`$ECHO "$complete" | $GREP " "` 40128 if test "x$has_space" != x; then 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40130 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40131 fi 40132 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40133 fi 40134 fi 40135 40136 # Now join together the path and the arguments once again 40137 if test "x$arguments" != xEOL; then 40138 new_complete="$new_path ${arguments% *}" 40139 else 40140 new_complete="$new_path" 40141 fi 40142 40143 if test "x$complete" != "x$new_complete"; then 40144 RC="$new_complete" 40145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 40146 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 40147 fi 40148 fi 40149 40150 # Extract the first word of "dumpbin", so it can be a program name with args. 40151 set dummy dumpbin; ac_word=$2 40152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40153 $as_echo_n "checking for $ac_word... " >&6; } 40154 if ${ac_cv_prog_DUMPBIN+:} false; then : 40155 $as_echo_n "(cached) " >&6 40156 else 40157 if test -n "$DUMPBIN"; then 40158 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 40159 else 40160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40161 for as_dir in $PATH 40162 do 40163 IFS=$as_save_IFS 40164 test -z "$as_dir" && as_dir=. 40165 for ac_exec_ext in '' $ac_executable_extensions; do 40166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40167 ac_cv_prog_DUMPBIN="dumpbin" 40168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40169 break 2 40170 fi 40171 done 40172 done 40173 IFS=$as_save_IFS 40174 40175 fi 40176 fi 40177 DUMPBIN=$ac_cv_prog_DUMPBIN 40178 if test -n "$DUMPBIN"; then 40179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 40180 $as_echo "$DUMPBIN" >&6; } 40181 else 40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40183 $as_echo "no" >&6; } 40184 fi 40185 40186 40187 40188 # Only process if variable expands to non-empty 40189 40190 if test "x$DUMPBIN" != x; then 40191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40192 40193 # First separate the path from the arguments. This will split at the first 40194 # space. 40195 complete="$DUMPBIN" 40196 path="${complete%% *}" 40197 tmp="$complete EOL" 40198 arguments="${tmp#* }" 40199 40200 # Input might be given as Windows format, start by converting to 40201 # unix format. 40202 new_path=`$CYGPATH -u "$path"` 40203 40204 # Now try to locate executable using which 40205 new_path=`$WHICH "$new_path" 2> /dev/null` 40206 # bat and cmd files are not always considered executable in cygwin causing which 40207 # to not find them 40208 if test "x$new_path" = x \ 40209 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40210 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40211 new_path=`$CYGPATH -u "$path"` 40212 fi 40213 if test "x$new_path" = x; then 40214 # Oops. Which didn't find the executable. 40215 # The splitting of arguments from the executable at a space might have been incorrect, 40216 # since paths with space are more likely in Windows. Give it another try with the whole 40217 # argument. 40218 path="$complete" 40219 arguments="EOL" 40220 new_path=`$CYGPATH -u "$path"` 40221 new_path=`$WHICH "$new_path" 2> /dev/null` 40222 # bat and cmd files are not always considered executable in cygwin causing which 40223 # to not find them 40224 if test "x$new_path" = x \ 40225 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40226 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40227 new_path=`$CYGPATH -u "$path"` 40228 fi 40229 if test "x$new_path" = x; then 40230 # It's still not found. Now this is an unrecoverable error. 40231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40232 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40233 has_space=`$ECHO "$complete" | $GREP " "` 40234 if test "x$has_space" != x; then 40235 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40236 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40237 fi 40238 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40239 fi 40240 fi 40241 40242 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40243 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40244 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40245 # "foo.exe" is OK but "foo" is an error. 40246 # 40247 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40248 # It is also a way to make sure we got the proper file name for the real test later on. 40249 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40250 if test "x$test_shortpath" = x; then 40251 # Short path failed, file does not exist as specified. 40252 # Try adding .exe or .cmd 40253 if test -f "${new_path}.exe"; then 40254 input_to_shortpath="${new_path}.exe" 40255 elif test -f "${new_path}.cmd"; then 40256 input_to_shortpath="${new_path}.cmd" 40257 else 40258 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 40259 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 40260 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40261 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40262 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40263 fi 40264 else 40265 input_to_shortpath="$new_path" 40266 fi 40267 40268 # Call helper function which possibly converts this using DOS-style short mode. 40269 # If so, the updated path is stored in $new_path. 40270 new_path="$input_to_shortpath" 40271 40272 input_path="$input_to_shortpath" 40273 # Check if we need to convert this using DOS-style short mode. If the path 40274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40275 # take no chances and rewrite it. 40276 # Note: m4 eats our [], so we need to use [ and ] instead. 40277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40278 if test "x$has_forbidden_chars" != x; then 40279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40280 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40281 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40282 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40283 # Going to short mode and back again did indeed matter. Since short mode is 40284 # case insensitive, let's make it lowercase to improve readability. 40285 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40286 # Now convert it back to Unix-style (cygpath) 40287 input_path=`$CYGPATH -u "$shortmode_path"` 40288 new_path="$input_path" 40289 fi 40290 fi 40291 40292 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40293 if test "x$test_cygdrive_prefix" = x; then 40294 # As a simple fix, exclude /usr/bin since it's not a real path. 40295 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40296 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40297 # a path prefixed by /cygdrive for fixpath to work. 40298 new_path="$CYGWIN_ROOT_PATH$input_path" 40299 fi 40300 fi 40301 40302 # remove trailing .exe if any 40303 new_path="${new_path/%.exe/}" 40304 40305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40306 40307 # First separate the path from the arguments. This will split at the first 40308 # space. 40309 complete="$DUMPBIN" 40310 path="${complete%% *}" 40311 tmp="$complete EOL" 40312 arguments="${tmp#* }" 40313 40314 # Input might be given as Windows format, start by converting to 40315 # unix format. 40316 new_path="$path" 40317 40318 windows_path="$new_path" 40319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40320 unix_path=`$CYGPATH -u "$windows_path"` 40321 new_path="$unix_path" 40322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40324 new_path="$unix_path" 40325 fi 40326 40327 40328 # Now try to locate executable using which 40329 new_path=`$WHICH "$new_path" 2> /dev/null` 40330 40331 if test "x$new_path" = x; then 40332 # Oops. Which didn't find the executable. 40333 # The splitting of arguments from the executable at a space might have been incorrect, 40334 # since paths with space are more likely in Windows. Give it another try with the whole 40335 # argument. 40336 path="$complete" 40337 arguments="EOL" 40338 new_path="$path" 40339 40340 windows_path="$new_path" 40341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40342 unix_path=`$CYGPATH -u "$windows_path"` 40343 new_path="$unix_path" 40344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40346 new_path="$unix_path" 40347 fi 40348 40349 40350 new_path=`$WHICH "$new_path" 2> /dev/null` 40351 # bat and cmd files are not always considered executable in MSYS causing which 40352 # to not find them 40353 if test "x$new_path" = x \ 40354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40356 new_path="$path" 40357 40358 windows_path="$new_path" 40359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40360 unix_path=`$CYGPATH -u "$windows_path"` 40361 new_path="$unix_path" 40362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40364 new_path="$unix_path" 40365 fi 40366 40367 fi 40368 40369 if test "x$new_path" = x; then 40370 # It's still not found. Now this is an unrecoverable error. 40371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40372 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40373 has_space=`$ECHO "$complete" | $GREP " "` 40374 if test "x$has_space" != x; then 40375 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40377 fi 40378 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40379 fi 40380 fi 40381 40382 # Now new_path has a complete unix path to the binary 40383 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40384 # Keep paths in /bin as-is, but remove trailing .exe if any 40385 new_path="${new_path/%.exe/}" 40386 # Do not save /bin paths to all_fixpath_prefixes! 40387 else 40388 # Not in mixed or Windows style, start by that. 40389 new_path=`cmd //c echo $new_path` 40390 40391 input_path="$new_path" 40392 # Check if we need to convert this using DOS-style short mode. If the path 40393 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40394 # take no chances and rewrite it. 40395 # Note: m4 eats our [], so we need to use [ and ] instead. 40396 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40397 if test "x$has_forbidden_chars" != x; then 40398 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40399 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40400 fi 40401 40402 # Output is in $new_path 40403 40404 windows_path="$new_path" 40405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40406 unix_path=`$CYGPATH -u "$windows_path"` 40407 new_path="$unix_path" 40408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40410 new_path="$unix_path" 40411 fi 40412 40413 # remove trailing .exe if any 40414 new_path="${new_path/%.exe/}" 40415 40416 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40417 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40418 fi 40419 40420 else 40421 # We're on a unix platform. Hooray! :) 40422 # First separate the path from the arguments. This will split at the first 40423 # space. 40424 complete="$DUMPBIN" 40425 path="${complete%% *}" 40426 tmp="$complete EOL" 40427 arguments="${tmp#* }" 40428 40429 # Cannot rely on the command "which" here since it doesn't always work. 40430 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40431 if test -z "$is_absolute_path"; then 40432 # Path to executable is not absolute. Find it. 40433 IFS_save="$IFS" 40434 IFS=: 40435 for p in $PATH; do 40436 if test -f "$p/$path" && test -x "$p/$path"; then 40437 new_path="$p/$path" 40438 break 40439 fi 40440 done 40441 IFS="$IFS_save" 40442 else 40443 # This is an absolute path, we can use it without further modifications. 40444 new_path="$path" 40445 fi 40446 40447 if test "x$new_path" = x; then 40448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40449 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40450 has_space=`$ECHO "$complete" | $GREP " "` 40451 if test "x$has_space" != x; then 40452 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40453 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40454 fi 40455 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40456 fi 40457 fi 40458 40459 # Now join together the path and the arguments once again 40460 if test "x$arguments" != xEOL; then 40461 new_complete="$new_path ${arguments% *}" 40462 else 40463 new_complete="$new_path" 40464 fi 40465 40466 if test "x$complete" != "x$new_complete"; then 40467 DUMPBIN="$new_complete" 40468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 40469 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 40470 fi 40471 fi 40472 40473 # We need to check for 'msbuild.exe' because at the place where we expect to 40474 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 40475 # won't find the 'msbuild.exe' executable in that case (and the 40476 # 'ac_executable_extensions' is unusable due to performance reasons). 40477 # Notice that we intentionally don't fix up the path to MSBUILD because we 40478 # will call it in a DOS shell during freetype detection on Windows (see 40479 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 40480 # Extract the first word of "msbuild.exe", so it can be a program name with args. 40481 set dummy msbuild.exe; ac_word=$2 40482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40483 $as_echo_n "checking for $ac_word... " >&6; } 40484 if ${ac_cv_prog_MSBUILD+:} false; then : 40485 $as_echo_n "(cached) " >&6 40486 else 40487 if test -n "$MSBUILD"; then 40488 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 40489 else 40490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40491 for as_dir in $PATH 40492 do 40493 IFS=$as_save_IFS 40494 test -z "$as_dir" && as_dir=. 40495 for ac_exec_ext in '' $ac_executable_extensions; do 40496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40497 ac_cv_prog_MSBUILD="msbuild.exe" 40498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40499 break 2 40500 fi 40501 done 40502 done 40503 IFS=$as_save_IFS 40504 40505 fi 40506 fi 40507 MSBUILD=$ac_cv_prog_MSBUILD 40508 if test -n "$MSBUILD"; then 40509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 40510 $as_echo "$MSBUILD" >&6; } 40511 else 40512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40513 $as_echo "no" >&6; } 40514 fi 40515 40516 40517 fi 40518 40519 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40520 40521 40522 # Publish this variable in the help. 40523 40524 40525 if [ -z "${STRIP+x}" ]; then 40526 # The variable is not set by user, try to locate tool using the code snippet 40527 for ac_prog in strip 40528 do 40529 # Extract the first word of "$ac_prog", so it can be a program name with args. 40530 set dummy $ac_prog; ac_word=$2 40531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40532 $as_echo_n "checking for $ac_word... " >&6; } 40533 if ${ac_cv_path_STRIP+:} false; then : 40534 $as_echo_n "(cached) " >&6 40535 else 40536 case $STRIP in 40537 [\\/]* | ?:[\\/]*) 40538 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40539 ;; 40540 *) 40541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40542 for as_dir in $PATH 40543 do 40544 IFS=$as_save_IFS 40545 test -z "$as_dir" && as_dir=. 40546 for ac_exec_ext in '' $ac_executable_extensions; do 40547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40548 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40550 break 2 40551 fi 40552 done 40553 done 40554 IFS=$as_save_IFS 40555 40556 ;; 40557 esac 40558 fi 40559 STRIP=$ac_cv_path_STRIP 40560 if test -n "$STRIP"; then 40561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40562 $as_echo "$STRIP" >&6; } 40563 else 40564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40565 $as_echo "no" >&6; } 40566 fi 40567 40568 40569 test -n "$STRIP" && break 40570 done 40571 40572 else 40573 # The variable is set, but is it from the command line or the environment? 40574 40575 # Try to remove the string !STRIP! from our list. 40576 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40577 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40578 # If it failed, the variable was not from the command line. Ignore it, 40579 # but warn the user (except for BASH, which is always set by the calling BASH). 40580 if test "xSTRIP" != xBASH; then 40581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40582 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40583 fi 40584 # Try to locate tool using the code snippet 40585 for ac_prog in strip 40586 do 40587 # Extract the first word of "$ac_prog", so it can be a program name with args. 40588 set dummy $ac_prog; ac_word=$2 40589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40590 $as_echo_n "checking for $ac_word... " >&6; } 40591 if ${ac_cv_path_STRIP+:} false; then : 40592 $as_echo_n "(cached) " >&6 40593 else 40594 case $STRIP in 40595 [\\/]* | ?:[\\/]*) 40596 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40597 ;; 40598 *) 40599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40600 for as_dir in $PATH 40601 do 40602 IFS=$as_save_IFS 40603 test -z "$as_dir" && as_dir=. 40604 for ac_exec_ext in '' $ac_executable_extensions; do 40605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40606 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40608 break 2 40609 fi 40610 done 40611 done 40612 IFS=$as_save_IFS 40613 40614 ;; 40615 esac 40616 fi 40617 STRIP=$ac_cv_path_STRIP 40618 if test -n "$STRIP"; then 40619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40620 $as_echo "$STRIP" >&6; } 40621 else 40622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40623 $as_echo "no" >&6; } 40624 fi 40625 40626 40627 test -n "$STRIP" && break 40628 done 40629 40630 else 40631 # If it succeeded, then it was overridden by the user. We will use it 40632 # for the tool. 40633 40634 # First remove it from the list of overridden variables, so we can test 40635 # for unknown variables in the end. 40636 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40637 40638 # Check if we try to supply an empty value 40639 if test "x$STRIP" = x; then 40640 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40641 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40643 $as_echo_n "checking for STRIP... " >&6; } 40644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40645 $as_echo "disabled" >&6; } 40646 else 40647 # Check if the provided tool contains a complete path. 40648 tool_specified="$STRIP" 40649 tool_basename="${tool_specified##*/}" 40650 if test "x$tool_basename" = "x$tool_specified"; then 40651 # A command without a complete path is provided, search $PATH. 40652 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40653 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40654 # Extract the first word of "$tool_basename", so it can be a program name with args. 40655 set dummy $tool_basename; ac_word=$2 40656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40657 $as_echo_n "checking for $ac_word... " >&6; } 40658 if ${ac_cv_path_STRIP+:} false; then : 40659 $as_echo_n "(cached) " >&6 40660 else 40661 case $STRIP in 40662 [\\/]* | ?:[\\/]*) 40663 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40664 ;; 40665 *) 40666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40667 for as_dir in $PATH 40668 do 40669 IFS=$as_save_IFS 40670 test -z "$as_dir" && as_dir=. 40671 for ac_exec_ext in '' $ac_executable_extensions; do 40672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40673 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40675 break 2 40676 fi 40677 done 40678 done 40679 IFS=$as_save_IFS 40680 40681 ;; 40682 esac 40683 fi 40684 STRIP=$ac_cv_path_STRIP 40685 if test -n "$STRIP"; then 40686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40687 $as_echo "$STRIP" >&6; } 40688 else 40689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40690 $as_echo "no" >&6; } 40691 fi 40692 40693 40694 if test "x$STRIP" = x; then 40695 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40696 fi 40697 else 40698 # Otherwise we believe it is a complete path. Use it as it is. 40699 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40700 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40702 $as_echo_n "checking for STRIP... " >&6; } 40703 if test ! -x "$tool_specified"; then 40704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40705 $as_echo "not found" >&6; } 40706 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40707 fi 40708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40709 $as_echo "$tool_specified" >&6; } 40710 fi 40711 fi 40712 fi 40713 40714 fi 40715 40716 40717 40718 # Only process if variable expands to non-empty 40719 40720 if test "x$STRIP" != x; then 40721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40722 40723 # First separate the path from the arguments. This will split at the first 40724 # space. 40725 complete="$STRIP" 40726 path="${complete%% *}" 40727 tmp="$complete EOL" 40728 arguments="${tmp#* }" 40729 40730 # Input might be given as Windows format, start by converting to 40731 # unix format. 40732 new_path=`$CYGPATH -u "$path"` 40733 40734 # Now try to locate executable using which 40735 new_path=`$WHICH "$new_path" 2> /dev/null` 40736 # bat and cmd files are not always considered executable in cygwin causing which 40737 # to not find them 40738 if test "x$new_path" = x \ 40739 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40740 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40741 new_path=`$CYGPATH -u "$path"` 40742 fi 40743 if test "x$new_path" = x; then 40744 # Oops. Which didn't find the executable. 40745 # The splitting of arguments from the executable at a space might have been incorrect, 40746 # since paths with space are more likely in Windows. Give it another try with the whole 40747 # argument. 40748 path="$complete" 40749 arguments="EOL" 40750 new_path=`$CYGPATH -u "$path"` 40751 new_path=`$WHICH "$new_path" 2> /dev/null` 40752 # bat and cmd files are not always considered executable in cygwin causing which 40753 # to not find them 40754 if test "x$new_path" = x \ 40755 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40756 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40757 new_path=`$CYGPATH -u "$path"` 40758 fi 40759 if test "x$new_path" = x; then 40760 # It's still not found. Now this is an unrecoverable error. 40761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40762 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40763 has_space=`$ECHO "$complete" | $GREP " "` 40764 if test "x$has_space" != x; then 40765 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40766 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40767 fi 40768 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40769 fi 40770 fi 40771 40772 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40773 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40774 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40775 # "foo.exe" is OK but "foo" is an error. 40776 # 40777 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40778 # It is also a way to make sure we got the proper file name for the real test later on. 40779 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40780 if test "x$test_shortpath" = x; then 40781 # Short path failed, file does not exist as specified. 40782 # Try adding .exe or .cmd 40783 if test -f "${new_path}.exe"; then 40784 input_to_shortpath="${new_path}.exe" 40785 elif test -f "${new_path}.cmd"; then 40786 input_to_shortpath="${new_path}.cmd" 40787 else 40788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40789 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40790 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40791 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40792 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40793 fi 40794 else 40795 input_to_shortpath="$new_path" 40796 fi 40797 40798 # Call helper function which possibly converts this using DOS-style short mode. 40799 # If so, the updated path is stored in $new_path. 40800 new_path="$input_to_shortpath" 40801 40802 input_path="$input_to_shortpath" 40803 # Check if we need to convert this using DOS-style short mode. If the path 40804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40805 # take no chances and rewrite it. 40806 # Note: m4 eats our [], so we need to use [ and ] instead. 40807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40808 if test "x$has_forbidden_chars" != x; then 40809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40810 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40811 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40812 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40813 # Going to short mode and back again did indeed matter. Since short mode is 40814 # case insensitive, let's make it lowercase to improve readability. 40815 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40816 # Now convert it back to Unix-style (cygpath) 40817 input_path=`$CYGPATH -u "$shortmode_path"` 40818 new_path="$input_path" 40819 fi 40820 fi 40821 40822 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40823 if test "x$test_cygdrive_prefix" = x; then 40824 # As a simple fix, exclude /usr/bin since it's not a real path. 40825 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40826 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40827 # a path prefixed by /cygdrive for fixpath to work. 40828 new_path="$CYGWIN_ROOT_PATH$input_path" 40829 fi 40830 fi 40831 40832 # remove trailing .exe if any 40833 new_path="${new_path/%.exe/}" 40834 40835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40836 40837 # First separate the path from the arguments. This will split at the first 40838 # space. 40839 complete="$STRIP" 40840 path="${complete%% *}" 40841 tmp="$complete EOL" 40842 arguments="${tmp#* }" 40843 40844 # Input might be given as Windows format, start by converting to 40845 # unix format. 40846 new_path="$path" 40847 40848 windows_path="$new_path" 40849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40850 unix_path=`$CYGPATH -u "$windows_path"` 40851 new_path="$unix_path" 40852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40854 new_path="$unix_path" 40855 fi 40856 40857 40858 # Now try to locate executable using which 40859 new_path=`$WHICH "$new_path" 2> /dev/null` 40860 40861 if test "x$new_path" = x; then 40862 # Oops. Which didn't find the executable. 40863 # The splitting of arguments from the executable at a space might have been incorrect, 40864 # since paths with space are more likely in Windows. Give it another try with the whole 40865 # argument. 40866 path="$complete" 40867 arguments="EOL" 40868 new_path="$path" 40869 40870 windows_path="$new_path" 40871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40872 unix_path=`$CYGPATH -u "$windows_path"` 40873 new_path="$unix_path" 40874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40876 new_path="$unix_path" 40877 fi 40878 40879 40880 new_path=`$WHICH "$new_path" 2> /dev/null` 40881 # bat and cmd files are not always considered executable in MSYS causing which 40882 # to not find them 40883 if test "x$new_path" = x \ 40884 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40885 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40886 new_path="$path" 40887 40888 windows_path="$new_path" 40889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40890 unix_path=`$CYGPATH -u "$windows_path"` 40891 new_path="$unix_path" 40892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40894 new_path="$unix_path" 40895 fi 40896 40897 fi 40898 40899 if test "x$new_path" = x; then 40900 # It's still not found. Now this is an unrecoverable error. 40901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40902 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40903 has_space=`$ECHO "$complete" | $GREP " "` 40904 if test "x$has_space" != x; then 40905 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40906 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40907 fi 40908 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40909 fi 40910 fi 40911 40912 # Now new_path has a complete unix path to the binary 40913 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40914 # Keep paths in /bin as-is, but remove trailing .exe if any 40915 new_path="${new_path/%.exe/}" 40916 # Do not save /bin paths to all_fixpath_prefixes! 40917 else 40918 # Not in mixed or Windows style, start by that. 40919 new_path=`cmd //c echo $new_path` 40920 40921 input_path="$new_path" 40922 # Check if we need to convert this using DOS-style short mode. If the path 40923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40924 # take no chances and rewrite it. 40925 # Note: m4 eats our [], so we need to use [ and ] instead. 40926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40927 if test "x$has_forbidden_chars" != x; then 40928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40929 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40930 fi 40931 40932 # Output is in $new_path 40933 40934 windows_path="$new_path" 40935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40936 unix_path=`$CYGPATH -u "$windows_path"` 40937 new_path="$unix_path" 40938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40939 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40940 new_path="$unix_path" 40941 fi 40942 40943 # remove trailing .exe if any 40944 new_path="${new_path/%.exe/}" 40945 40946 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40947 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40948 fi 40949 40950 else 40951 # We're on a unix platform. Hooray! :) 40952 # First separate the path from the arguments. This will split at the first 40953 # space. 40954 complete="$STRIP" 40955 path="${complete%% *}" 40956 tmp="$complete EOL" 40957 arguments="${tmp#* }" 40958 40959 # Cannot rely on the command "which" here since it doesn't always work. 40960 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40961 if test -z "$is_absolute_path"; then 40962 # Path to executable is not absolute. Find it. 40963 IFS_save="$IFS" 40964 IFS=: 40965 for p in $PATH; do 40966 if test -f "$p/$path" && test -x "$p/$path"; then 40967 new_path="$p/$path" 40968 break 40969 fi 40970 done 40971 IFS="$IFS_save" 40972 else 40973 # This is an absolute path, we can use it without further modifications. 40974 new_path="$path" 40975 fi 40976 40977 if test "x$new_path" = x; then 40978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40979 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40980 has_space=`$ECHO "$complete" | $GREP " "` 40981 if test "x$has_space" != x; then 40982 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40983 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40984 fi 40985 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40986 fi 40987 fi 40988 40989 # Now join together the path and the arguments once again 40990 if test "x$arguments" != xEOL; then 40991 new_complete="$new_path ${arguments% *}" 40992 else 40993 new_complete="$new_path" 40994 fi 40995 40996 if test "x$complete" != "x$new_complete"; then 40997 STRIP="$new_complete" 40998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40999 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41000 fi 41001 fi 41002 41003 41004 41005 # Publish this variable in the help. 41006 41007 41008 if [ -z "${NM+x}" ]; then 41009 # The variable is not set by user, try to locate tool using the code snippet 41010 for ac_prog in nm 41011 do 41012 # Extract the first word of "$ac_prog", so it can be a program name with args. 41013 set dummy $ac_prog; ac_word=$2 41014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41015 $as_echo_n "checking for $ac_word... " >&6; } 41016 if ${ac_cv_path_NM+:} false; then : 41017 $as_echo_n "(cached) " >&6 41018 else 41019 case $NM in 41020 [\\/]* | ?:[\\/]*) 41021 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41022 ;; 41023 *) 41024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41025 for as_dir in $PATH 41026 do 41027 IFS=$as_save_IFS 41028 test -z "$as_dir" && as_dir=. 41029 for ac_exec_ext in '' $ac_executable_extensions; do 41030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41031 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41033 break 2 41034 fi 41035 done 41036 done 41037 IFS=$as_save_IFS 41038 41039 ;; 41040 esac 41041 fi 41042 NM=$ac_cv_path_NM 41043 if test -n "$NM"; then 41044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41045 $as_echo "$NM" >&6; } 41046 else 41047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41048 $as_echo "no" >&6; } 41049 fi 41050 41051 41052 test -n "$NM" && break 41053 done 41054 41055 else 41056 # The variable is set, but is it from the command line or the environment? 41057 41058 # Try to remove the string !NM! from our list. 41059 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41060 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41061 # If it failed, the variable was not from the command line. Ignore it, 41062 # but warn the user (except for BASH, which is always set by the calling BASH). 41063 if test "xNM" != xBASH; then 41064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41065 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41066 fi 41067 # Try to locate tool using the code snippet 41068 for ac_prog in nm 41069 do 41070 # Extract the first word of "$ac_prog", so it can be a program name with args. 41071 set dummy $ac_prog; ac_word=$2 41072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41073 $as_echo_n "checking for $ac_word... " >&6; } 41074 if ${ac_cv_path_NM+:} false; then : 41075 $as_echo_n "(cached) " >&6 41076 else 41077 case $NM in 41078 [\\/]* | ?:[\\/]*) 41079 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41080 ;; 41081 *) 41082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41083 for as_dir in $PATH 41084 do 41085 IFS=$as_save_IFS 41086 test -z "$as_dir" && as_dir=. 41087 for ac_exec_ext in '' $ac_executable_extensions; do 41088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41089 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41091 break 2 41092 fi 41093 done 41094 done 41095 IFS=$as_save_IFS 41096 41097 ;; 41098 esac 41099 fi 41100 NM=$ac_cv_path_NM 41101 if test -n "$NM"; then 41102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41103 $as_echo "$NM" >&6; } 41104 else 41105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41106 $as_echo "no" >&6; } 41107 fi 41108 41109 41110 test -n "$NM" && break 41111 done 41112 41113 else 41114 # If it succeeded, then it was overridden by the user. We will use it 41115 # for the tool. 41116 41117 # First remove it from the list of overridden variables, so we can test 41118 # for unknown variables in the end. 41119 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41120 41121 # Check if we try to supply an empty value 41122 if test "x$NM" = x; then 41123 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41124 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41126 $as_echo_n "checking for NM... " >&6; } 41127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41128 $as_echo "disabled" >&6; } 41129 else 41130 # Check if the provided tool contains a complete path. 41131 tool_specified="$NM" 41132 tool_basename="${tool_specified##*/}" 41133 if test "x$tool_basename" = "x$tool_specified"; then 41134 # A command without a complete path is provided, search $PATH. 41135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41136 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41137 # Extract the first word of "$tool_basename", so it can be a program name with args. 41138 set dummy $tool_basename; ac_word=$2 41139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41140 $as_echo_n "checking for $ac_word... " >&6; } 41141 if ${ac_cv_path_NM+:} false; then : 41142 $as_echo_n "(cached) " >&6 41143 else 41144 case $NM in 41145 [\\/]* | ?:[\\/]*) 41146 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41147 ;; 41148 *) 41149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41150 for as_dir in $PATH 41151 do 41152 IFS=$as_save_IFS 41153 test -z "$as_dir" && as_dir=. 41154 for ac_exec_ext in '' $ac_executable_extensions; do 41155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41156 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41158 break 2 41159 fi 41160 done 41161 done 41162 IFS=$as_save_IFS 41163 41164 ;; 41165 esac 41166 fi 41167 NM=$ac_cv_path_NM 41168 if test -n "$NM"; then 41169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41170 $as_echo "$NM" >&6; } 41171 else 41172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41173 $as_echo "no" >&6; } 41174 fi 41175 41176 41177 if test "x$NM" = x; then 41178 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41179 fi 41180 else 41181 # Otherwise we believe it is a complete path. Use it as it is. 41182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41183 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41185 $as_echo_n "checking for NM... " >&6; } 41186 if test ! -x "$tool_specified"; then 41187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41188 $as_echo "not found" >&6; } 41189 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41190 fi 41191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41192 $as_echo "$tool_specified" >&6; } 41193 fi 41194 fi 41195 fi 41196 41197 fi 41198 41199 41200 41201 # Only process if variable expands to non-empty 41202 41203 if test "x$NM" != x; then 41204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41205 41206 # First separate the path from the arguments. This will split at the first 41207 # space. 41208 complete="$NM" 41209 path="${complete%% *}" 41210 tmp="$complete EOL" 41211 arguments="${tmp#* }" 41212 41213 # Input might be given as Windows format, start by converting to 41214 # unix format. 41215 new_path=`$CYGPATH -u "$path"` 41216 41217 # Now try to locate executable using which 41218 new_path=`$WHICH "$new_path" 2> /dev/null` 41219 # bat and cmd files are not always considered executable in cygwin causing which 41220 # to not find them 41221 if test "x$new_path" = x \ 41222 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41223 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41224 new_path=`$CYGPATH -u "$path"` 41225 fi 41226 if test "x$new_path" = x; then 41227 # Oops. Which didn't find the executable. 41228 # The splitting of arguments from the executable at a space might have been incorrect, 41229 # since paths with space are more likely in Windows. Give it another try with the whole 41230 # argument. 41231 path="$complete" 41232 arguments="EOL" 41233 new_path=`$CYGPATH -u "$path"` 41234 new_path=`$WHICH "$new_path" 2> /dev/null` 41235 # bat and cmd files are not always considered executable in cygwin causing which 41236 # to not find them 41237 if test "x$new_path" = x \ 41238 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41239 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41240 new_path=`$CYGPATH -u "$path"` 41241 fi 41242 if test "x$new_path" = x; then 41243 # It's still not found. Now this is an unrecoverable error. 41244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41245 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41246 has_space=`$ECHO "$complete" | $GREP " "` 41247 if test "x$has_space" != x; then 41248 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41249 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41250 fi 41251 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41252 fi 41253 fi 41254 41255 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41256 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41257 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41258 # "foo.exe" is OK but "foo" is an error. 41259 # 41260 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41261 # It is also a way to make sure we got the proper file name for the real test later on. 41262 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41263 if test "x$test_shortpath" = x; then 41264 # Short path failed, file does not exist as specified. 41265 # Try adding .exe or .cmd 41266 if test -f "${new_path}.exe"; then 41267 input_to_shortpath="${new_path}.exe" 41268 elif test -f "${new_path}.cmd"; then 41269 input_to_shortpath="${new_path}.cmd" 41270 else 41271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 41272 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 41273 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41274 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41275 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41276 fi 41277 else 41278 input_to_shortpath="$new_path" 41279 fi 41280 41281 # Call helper function which possibly converts this using DOS-style short mode. 41282 # If so, the updated path is stored in $new_path. 41283 new_path="$input_to_shortpath" 41284 41285 input_path="$input_to_shortpath" 41286 # Check if we need to convert this using DOS-style short mode. If the path 41287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41288 # take no chances and rewrite it. 41289 # Note: m4 eats our [], so we need to use [ and ] instead. 41290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41291 if test "x$has_forbidden_chars" != x; then 41292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41296 # Going to short mode and back again did indeed matter. Since short mode is 41297 # case insensitive, let's make it lowercase to improve readability. 41298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41299 # Now convert it back to Unix-style (cygpath) 41300 input_path=`$CYGPATH -u "$shortmode_path"` 41301 new_path="$input_path" 41302 fi 41303 fi 41304 41305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41306 if test "x$test_cygdrive_prefix" = x; then 41307 # As a simple fix, exclude /usr/bin since it's not a real path. 41308 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41310 # a path prefixed by /cygdrive for fixpath to work. 41311 new_path="$CYGWIN_ROOT_PATH$input_path" 41312 fi 41313 fi 41314 41315 # remove trailing .exe if any 41316 new_path="${new_path/%.exe/}" 41317 41318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41319 41320 # First separate the path from the arguments. This will split at the first 41321 # space. 41322 complete="$NM" 41323 path="${complete%% *}" 41324 tmp="$complete EOL" 41325 arguments="${tmp#* }" 41326 41327 # Input might be given as Windows format, start by converting to 41328 # unix format. 41329 new_path="$path" 41330 41331 windows_path="$new_path" 41332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41333 unix_path=`$CYGPATH -u "$windows_path"` 41334 new_path="$unix_path" 41335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41336 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41337 new_path="$unix_path" 41338 fi 41339 41340 41341 # Now try to locate executable using which 41342 new_path=`$WHICH "$new_path" 2> /dev/null` 41343 41344 if test "x$new_path" = x; then 41345 # Oops. Which didn't find the executable. 41346 # The splitting of arguments from the executable at a space might have been incorrect, 41347 # since paths with space are more likely in Windows. Give it another try with the whole 41348 # argument. 41349 path="$complete" 41350 arguments="EOL" 41351 new_path="$path" 41352 41353 windows_path="$new_path" 41354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41355 unix_path=`$CYGPATH -u "$windows_path"` 41356 new_path="$unix_path" 41357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41359 new_path="$unix_path" 41360 fi 41361 41362 41363 new_path=`$WHICH "$new_path" 2> /dev/null` 41364 # bat and cmd files are not always considered executable in MSYS causing which 41365 # to not find them 41366 if test "x$new_path" = x \ 41367 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41368 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41369 new_path="$path" 41370 41371 windows_path="$new_path" 41372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41373 unix_path=`$CYGPATH -u "$windows_path"` 41374 new_path="$unix_path" 41375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41377 new_path="$unix_path" 41378 fi 41379 41380 fi 41381 41382 if test "x$new_path" = x; then 41383 # It's still not found. Now this is an unrecoverable error. 41384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41385 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41386 has_space=`$ECHO "$complete" | $GREP " "` 41387 if test "x$has_space" != x; then 41388 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41389 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41390 fi 41391 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41392 fi 41393 fi 41394 41395 # Now new_path has a complete unix path to the binary 41396 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41397 # Keep paths in /bin as-is, but remove trailing .exe if any 41398 new_path="${new_path/%.exe/}" 41399 # Do not save /bin paths to all_fixpath_prefixes! 41400 else 41401 # Not in mixed or Windows style, start by that. 41402 new_path=`cmd //c echo $new_path` 41403 41404 input_path="$new_path" 41405 # Check if we need to convert this using DOS-style short mode. If the path 41406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41407 # take no chances and rewrite it. 41408 # Note: m4 eats our [], so we need to use [ and ] instead. 41409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41410 if test "x$has_forbidden_chars" != x; then 41411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41412 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41413 fi 41414 41415 # Output is in $new_path 41416 41417 windows_path="$new_path" 41418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41419 unix_path=`$CYGPATH -u "$windows_path"` 41420 new_path="$unix_path" 41421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41423 new_path="$unix_path" 41424 fi 41425 41426 # remove trailing .exe if any 41427 new_path="${new_path/%.exe/}" 41428 41429 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41430 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41431 fi 41432 41433 else 41434 # We're on a unix platform. Hooray! :) 41435 # First separate the path from the arguments. This will split at the first 41436 # space. 41437 complete="$NM" 41438 path="${complete%% *}" 41439 tmp="$complete EOL" 41440 arguments="${tmp#* }" 41441 41442 # Cannot rely on the command "which" here since it doesn't always work. 41443 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41444 if test -z "$is_absolute_path"; then 41445 # Path to executable is not absolute. Find it. 41446 IFS_save="$IFS" 41447 IFS=: 41448 for p in $PATH; do 41449 if test -f "$p/$path" && test -x "$p/$path"; then 41450 new_path="$p/$path" 41451 break 41452 fi 41453 done 41454 IFS="$IFS_save" 41455 else 41456 # This is an absolute path, we can use it without further modifications. 41457 new_path="$path" 41458 fi 41459 41460 if test "x$new_path" = x; then 41461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41462 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41463 has_space=`$ECHO "$complete" | $GREP " "` 41464 if test "x$has_space" != x; then 41465 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41466 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41467 fi 41468 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41469 fi 41470 fi 41471 41472 # Now join together the path and the arguments once again 41473 if test "x$arguments" != xEOL; then 41474 new_complete="$new_path ${arguments% *}" 41475 else 41476 new_complete="$new_path" 41477 fi 41478 41479 if test "x$complete" != "x$new_complete"; then 41480 NM="$new_complete" 41481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41482 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41483 fi 41484 fi 41485 41486 41487 41488 # Publish this variable in the help. 41489 41490 41491 if [ -z "${GNM+x}" ]; then 41492 # The variable is not set by user, try to locate tool using the code snippet 41493 for ac_prog in gnm 41494 do 41495 # Extract the first word of "$ac_prog", so it can be a program name with args. 41496 set dummy $ac_prog; ac_word=$2 41497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41498 $as_echo_n "checking for $ac_word... " >&6; } 41499 if ${ac_cv_path_GNM+:} false; then : 41500 $as_echo_n "(cached) " >&6 41501 else 41502 case $GNM in 41503 [\\/]* | ?:[\\/]*) 41504 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41505 ;; 41506 *) 41507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41508 for as_dir in $PATH 41509 do 41510 IFS=$as_save_IFS 41511 test -z "$as_dir" && as_dir=. 41512 for ac_exec_ext in '' $ac_executable_extensions; do 41513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41514 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41516 break 2 41517 fi 41518 done 41519 done 41520 IFS=$as_save_IFS 41521 41522 ;; 41523 esac 41524 fi 41525 GNM=$ac_cv_path_GNM 41526 if test -n "$GNM"; then 41527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41528 $as_echo "$GNM" >&6; } 41529 else 41530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41531 $as_echo "no" >&6; } 41532 fi 41533 41534 41535 test -n "$GNM" && break 41536 done 41537 41538 else 41539 # The variable is set, but is it from the command line or the environment? 41540 41541 # Try to remove the string !GNM! from our list. 41542 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 41543 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41544 # If it failed, the variable was not from the command line. Ignore it, 41545 # but warn the user (except for BASH, which is always set by the calling BASH). 41546 if test "xGNM" != xBASH; then 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 41548 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 41549 fi 41550 # Try to locate tool using the code snippet 41551 for ac_prog in gnm 41552 do 41553 # Extract the first word of "$ac_prog", so it can be a program name with args. 41554 set dummy $ac_prog; ac_word=$2 41555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41556 $as_echo_n "checking for $ac_word... " >&6; } 41557 if ${ac_cv_path_GNM+:} false; then : 41558 $as_echo_n "(cached) " >&6 41559 else 41560 case $GNM in 41561 [\\/]* | ?:[\\/]*) 41562 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41563 ;; 41564 *) 41565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41566 for as_dir in $PATH 41567 do 41568 IFS=$as_save_IFS 41569 test -z "$as_dir" && as_dir=. 41570 for ac_exec_ext in '' $ac_executable_extensions; do 41571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41572 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41574 break 2 41575 fi 41576 done 41577 done 41578 IFS=$as_save_IFS 41579 41580 ;; 41581 esac 41582 fi 41583 GNM=$ac_cv_path_GNM 41584 if test -n "$GNM"; then 41585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41586 $as_echo "$GNM" >&6; } 41587 else 41588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41589 $as_echo "no" >&6; } 41590 fi 41591 41592 41593 test -n "$GNM" && break 41594 done 41595 41596 else 41597 # If it succeeded, then it was overridden by the user. We will use it 41598 # for the tool. 41599 41600 # First remove it from the list of overridden variables, so we can test 41601 # for unknown variables in the end. 41602 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41603 41604 # Check if we try to supply an empty value 41605 if test "x$GNM" = x; then 41606 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 41607 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 41608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41609 $as_echo_n "checking for GNM... " >&6; } 41610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41611 $as_echo "disabled" >&6; } 41612 else 41613 # Check if the provided tool contains a complete path. 41614 tool_specified="$GNM" 41615 tool_basename="${tool_specified##*/}" 41616 if test "x$tool_basename" = "x$tool_specified"; then 41617 # A command without a complete path is provided, search $PATH. 41618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 41619 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 41620 # Extract the first word of "$tool_basename", so it can be a program name with args. 41621 set dummy $tool_basename; ac_word=$2 41622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41623 $as_echo_n "checking for $ac_word... " >&6; } 41624 if ${ac_cv_path_GNM+:} false; then : 41625 $as_echo_n "(cached) " >&6 41626 else 41627 case $GNM in 41628 [\\/]* | ?:[\\/]*) 41629 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41630 ;; 41631 *) 41632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41633 for as_dir in $PATH 41634 do 41635 IFS=$as_save_IFS 41636 test -z "$as_dir" && as_dir=. 41637 for ac_exec_ext in '' $ac_executable_extensions; do 41638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41639 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41641 break 2 41642 fi 41643 done 41644 done 41645 IFS=$as_save_IFS 41646 41647 ;; 41648 esac 41649 fi 41650 GNM=$ac_cv_path_GNM 41651 if test -n "$GNM"; then 41652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41653 $as_echo "$GNM" >&6; } 41654 else 41655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41656 $as_echo "no" >&6; } 41657 fi 41658 41659 41660 if test "x$GNM" = x; then 41661 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41662 fi 41663 else 41664 # Otherwise we believe it is a complete path. Use it as it is. 41665 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 41666 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 41667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41668 $as_echo_n "checking for GNM... " >&6; } 41669 if test ! -x "$tool_specified"; then 41670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41671 $as_echo "not found" >&6; } 41672 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 41673 fi 41674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41675 $as_echo "$tool_specified" >&6; } 41676 fi 41677 fi 41678 fi 41679 41680 fi 41681 41682 41683 41684 # Only process if variable expands to non-empty 41685 41686 if test "x$GNM" != x; then 41687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41688 41689 # First separate the path from the arguments. This will split at the first 41690 # space. 41691 complete="$GNM" 41692 path="${complete%% *}" 41693 tmp="$complete EOL" 41694 arguments="${tmp#* }" 41695 41696 # Input might be given as Windows format, start by converting to 41697 # unix format. 41698 new_path=`$CYGPATH -u "$path"` 41699 41700 # Now try to locate executable using which 41701 new_path=`$WHICH "$new_path" 2> /dev/null` 41702 # bat and cmd files are not always considered executable in cygwin causing which 41703 # to not find them 41704 if test "x$new_path" = x \ 41705 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41706 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41707 new_path=`$CYGPATH -u "$path"` 41708 fi 41709 if test "x$new_path" = x; then 41710 # Oops. Which didn't find the executable. 41711 # The splitting of arguments from the executable at a space might have been incorrect, 41712 # since paths with space are more likely in Windows. Give it another try with the whole 41713 # argument. 41714 path="$complete" 41715 arguments="EOL" 41716 new_path=`$CYGPATH -u "$path"` 41717 new_path=`$WHICH "$new_path" 2> /dev/null` 41718 # bat and cmd files are not always considered executable in cygwin causing which 41719 # to not find them 41720 if test "x$new_path" = x \ 41721 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41722 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41723 new_path=`$CYGPATH -u "$path"` 41724 fi 41725 if test "x$new_path" = x; then 41726 # It's still not found. Now this is an unrecoverable error. 41727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41728 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41729 has_space=`$ECHO "$complete" | $GREP " "` 41730 if test "x$has_space" != x; then 41731 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41732 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41733 fi 41734 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41735 fi 41736 fi 41737 41738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41741 # "foo.exe" is OK but "foo" is an error. 41742 # 41743 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41744 # It is also a way to make sure we got the proper file name for the real test later on. 41745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41746 if test "x$test_shortpath" = x; then 41747 # Short path failed, file does not exist as specified. 41748 # Try adding .exe or .cmd 41749 if test -f "${new_path}.exe"; then 41750 input_to_shortpath="${new_path}.exe" 41751 elif test -f "${new_path}.cmd"; then 41752 input_to_shortpath="${new_path}.cmd" 41753 else 41754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 41755 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 41756 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41757 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41758 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41759 fi 41760 else 41761 input_to_shortpath="$new_path" 41762 fi 41763 41764 # Call helper function which possibly converts this using DOS-style short mode. 41765 # If so, the updated path is stored in $new_path. 41766 new_path="$input_to_shortpath" 41767 41768 input_path="$input_to_shortpath" 41769 # Check if we need to convert this using DOS-style short mode. If the path 41770 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41771 # take no chances and rewrite it. 41772 # Note: m4 eats our [], so we need to use [ and ] instead. 41773 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41774 if test "x$has_forbidden_chars" != x; then 41775 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41776 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41777 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41778 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41779 # Going to short mode and back again did indeed matter. Since short mode is 41780 # case insensitive, let's make it lowercase to improve readability. 41781 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41782 # Now convert it back to Unix-style (cygpath) 41783 input_path=`$CYGPATH -u "$shortmode_path"` 41784 new_path="$input_path" 41785 fi 41786 fi 41787 41788 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41789 if test "x$test_cygdrive_prefix" = x; then 41790 # As a simple fix, exclude /usr/bin since it's not a real path. 41791 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41792 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41793 # a path prefixed by /cygdrive for fixpath to work. 41794 new_path="$CYGWIN_ROOT_PATH$input_path" 41795 fi 41796 fi 41797 41798 # remove trailing .exe if any 41799 new_path="${new_path/%.exe/}" 41800 41801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41802 41803 # First separate the path from the arguments. This will split at the first 41804 # space. 41805 complete="$GNM" 41806 path="${complete%% *}" 41807 tmp="$complete EOL" 41808 arguments="${tmp#* }" 41809 41810 # Input might be given as Windows format, start by converting to 41811 # unix format. 41812 new_path="$path" 41813 41814 windows_path="$new_path" 41815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41816 unix_path=`$CYGPATH -u "$windows_path"` 41817 new_path="$unix_path" 41818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41820 new_path="$unix_path" 41821 fi 41822 41823 41824 # Now try to locate executable using which 41825 new_path=`$WHICH "$new_path" 2> /dev/null` 41826 41827 if test "x$new_path" = x; then 41828 # Oops. Which didn't find the executable. 41829 # The splitting of arguments from the executable at a space might have been incorrect, 41830 # since paths with space are more likely in Windows. Give it another try with the whole 41831 # argument. 41832 path="$complete" 41833 arguments="EOL" 41834 new_path="$path" 41835 41836 windows_path="$new_path" 41837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41838 unix_path=`$CYGPATH -u "$windows_path"` 41839 new_path="$unix_path" 41840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41842 new_path="$unix_path" 41843 fi 41844 41845 41846 new_path=`$WHICH "$new_path" 2> /dev/null` 41847 # bat and cmd files are not always considered executable in MSYS causing which 41848 # to not find them 41849 if test "x$new_path" = x \ 41850 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41851 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41852 new_path="$path" 41853 41854 windows_path="$new_path" 41855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41856 unix_path=`$CYGPATH -u "$windows_path"` 41857 new_path="$unix_path" 41858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41860 new_path="$unix_path" 41861 fi 41862 41863 fi 41864 41865 if test "x$new_path" = x; then 41866 # It's still not found. Now this is an unrecoverable error. 41867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41868 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41869 has_space=`$ECHO "$complete" | $GREP " "` 41870 if test "x$has_space" != x; then 41871 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41872 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41873 fi 41874 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41875 fi 41876 fi 41877 41878 # Now new_path has a complete unix path to the binary 41879 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41880 # Keep paths in /bin as-is, but remove trailing .exe if any 41881 new_path="${new_path/%.exe/}" 41882 # Do not save /bin paths to all_fixpath_prefixes! 41883 else 41884 # Not in mixed or Windows style, start by that. 41885 new_path=`cmd //c echo $new_path` 41886 41887 input_path="$new_path" 41888 # Check if we need to convert this using DOS-style short mode. If the path 41889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41890 # take no chances and rewrite it. 41891 # Note: m4 eats our [], so we need to use [ and ] instead. 41892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41893 if test "x$has_forbidden_chars" != x; then 41894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41895 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41896 fi 41897 41898 # Output is in $new_path 41899 41900 windows_path="$new_path" 41901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41902 unix_path=`$CYGPATH -u "$windows_path"` 41903 new_path="$unix_path" 41904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41906 new_path="$unix_path" 41907 fi 41908 41909 # remove trailing .exe if any 41910 new_path="${new_path/%.exe/}" 41911 41912 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41913 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41914 fi 41915 41916 else 41917 # We're on a unix platform. Hooray! :) 41918 # First separate the path from the arguments. This will split at the first 41919 # space. 41920 complete="$GNM" 41921 path="${complete%% *}" 41922 tmp="$complete EOL" 41923 arguments="${tmp#* }" 41924 41925 # Cannot rely on the command "which" here since it doesn't always work. 41926 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41927 if test -z "$is_absolute_path"; then 41928 # Path to executable is not absolute. Find it. 41929 IFS_save="$IFS" 41930 IFS=: 41931 for p in $PATH; do 41932 if test -f "$p/$path" && test -x "$p/$path"; then 41933 new_path="$p/$path" 41934 break 41935 fi 41936 done 41937 IFS="$IFS_save" 41938 else 41939 # This is an absolute path, we can use it without further modifications. 41940 new_path="$path" 41941 fi 41942 41943 if test "x$new_path" = x; then 41944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41945 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41946 has_space=`$ECHO "$complete" | $GREP " "` 41947 if test "x$has_space" != x; then 41948 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41949 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41950 fi 41951 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41952 fi 41953 fi 41954 41955 # Now join together the path and the arguments once again 41956 if test "x$arguments" != xEOL; then 41957 new_complete="$new_path ${arguments% *}" 41958 else 41959 new_complete="$new_path" 41960 fi 41961 41962 if test "x$complete" != "x$new_complete"; then 41963 GNM="$new_complete" 41964 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41965 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41966 fi 41967 fi 41968 41969 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41970 # FIXME: we should unify this with the solaris case above. 41971 41972 41973 # Publish this variable in the help. 41974 41975 41976 if [ -z "${STRIP+x}" ]; then 41977 # The variable is not set by user, try to locate tool using the code snippet 41978 if test -n "$ac_tool_prefix"; then 41979 for ac_prog in strip 41980 do 41981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41984 $as_echo_n "checking for $ac_word... " >&6; } 41985 if ${ac_cv_prog_STRIP+:} false; then : 41986 $as_echo_n "(cached) " >&6 41987 else 41988 if test -n "$STRIP"; then 41989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41990 else 41991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41992 for as_dir in $PATH 41993 do 41994 IFS=$as_save_IFS 41995 test -z "$as_dir" && as_dir=. 41996 for ac_exec_ext in '' $ac_executable_extensions; do 41997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41998 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42000 break 2 42001 fi 42002 done 42003 done 42004 IFS=$as_save_IFS 42005 42006 fi 42007 fi 42008 STRIP=$ac_cv_prog_STRIP 42009 if test -n "$STRIP"; then 42010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42011 $as_echo "$STRIP" >&6; } 42012 else 42013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42014 $as_echo "no" >&6; } 42015 fi 42016 42017 42018 test -n "$STRIP" && break 42019 done 42020 fi 42021 if test -z "$STRIP"; then 42022 ac_ct_STRIP=$STRIP 42023 for ac_prog in strip 42024 do 42025 # Extract the first word of "$ac_prog", so it can be a program name with args. 42026 set dummy $ac_prog; ac_word=$2 42027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42028 $as_echo_n "checking for $ac_word... " >&6; } 42029 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42030 $as_echo_n "(cached) " >&6 42031 else 42032 if test -n "$ac_ct_STRIP"; then 42033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42034 else 42035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42036 for as_dir in $PATH 42037 do 42038 IFS=$as_save_IFS 42039 test -z "$as_dir" && as_dir=. 42040 for ac_exec_ext in '' $ac_executable_extensions; do 42041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42042 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42044 break 2 42045 fi 42046 done 42047 done 42048 IFS=$as_save_IFS 42049 42050 fi 42051 fi 42052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42053 if test -n "$ac_ct_STRIP"; then 42054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42055 $as_echo "$ac_ct_STRIP" >&6; } 42056 else 42057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42058 $as_echo "no" >&6; } 42059 fi 42060 42061 42062 test -n "$ac_ct_STRIP" && break 42063 done 42064 42065 if test "x$ac_ct_STRIP" = x; then 42066 STRIP="" 42067 else 42068 case $cross_compiling:$ac_tool_warned in 42069 yes:) 42070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42072 ac_tool_warned=yes ;; 42073 esac 42074 STRIP=$ac_ct_STRIP 42075 fi 42076 fi 42077 42078 else 42079 # The variable is set, but is it from the command line or the environment? 42080 42081 # Try to remove the string !STRIP! from our list. 42082 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 42083 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42084 # If it failed, the variable was not from the command line. Ignore it, 42085 # but warn the user (except for BASH, which is always set by the calling BASH). 42086 if test "xSTRIP" != xBASH; then 42087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 42088 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 42089 fi 42090 # Try to locate tool using the code snippet 42091 if test -n "$ac_tool_prefix"; then 42092 for ac_prog in strip 42093 do 42094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42097 $as_echo_n "checking for $ac_word... " >&6; } 42098 if ${ac_cv_prog_STRIP+:} false; then : 42099 $as_echo_n "(cached) " >&6 42100 else 42101 if test -n "$STRIP"; then 42102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42103 else 42104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42105 for as_dir in $PATH 42106 do 42107 IFS=$as_save_IFS 42108 test -z "$as_dir" && as_dir=. 42109 for ac_exec_ext in '' $ac_executable_extensions; do 42110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42111 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42113 break 2 42114 fi 42115 done 42116 done 42117 IFS=$as_save_IFS 42118 42119 fi 42120 fi 42121 STRIP=$ac_cv_prog_STRIP 42122 if test -n "$STRIP"; then 42123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42124 $as_echo "$STRIP" >&6; } 42125 else 42126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42127 $as_echo "no" >&6; } 42128 fi 42129 42130 42131 test -n "$STRIP" && break 42132 done 42133 fi 42134 if test -z "$STRIP"; then 42135 ac_ct_STRIP=$STRIP 42136 for ac_prog in strip 42137 do 42138 # Extract the first word of "$ac_prog", so it can be a program name with args. 42139 set dummy $ac_prog; ac_word=$2 42140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42141 $as_echo_n "checking for $ac_word... " >&6; } 42142 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42143 $as_echo_n "(cached) " >&6 42144 else 42145 if test -n "$ac_ct_STRIP"; then 42146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42147 else 42148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42149 for as_dir in $PATH 42150 do 42151 IFS=$as_save_IFS 42152 test -z "$as_dir" && as_dir=. 42153 for ac_exec_ext in '' $ac_executable_extensions; do 42154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42155 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42157 break 2 42158 fi 42159 done 42160 done 42161 IFS=$as_save_IFS 42162 42163 fi 42164 fi 42165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42166 if test -n "$ac_ct_STRIP"; then 42167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42168 $as_echo "$ac_ct_STRIP" >&6; } 42169 else 42170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42171 $as_echo "no" >&6; } 42172 fi 42173 42174 42175 test -n "$ac_ct_STRIP" && break 42176 done 42177 42178 if test "x$ac_ct_STRIP" = x; then 42179 STRIP="" 42180 else 42181 case $cross_compiling:$ac_tool_warned in 42182 yes:) 42183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42185 ac_tool_warned=yes ;; 42186 esac 42187 STRIP=$ac_ct_STRIP 42188 fi 42189 fi 42190 42191 else 42192 # If it succeeded, then it was overridden by the user. We will use it 42193 # for the tool. 42194 42195 # First remove it from the list of overridden variables, so we can test 42196 # for unknown variables in the end. 42197 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42198 42199 # Check if we try to supply an empty value 42200 if test "x$STRIP" = x; then 42201 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 42202 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 42203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42204 $as_echo_n "checking for STRIP... " >&6; } 42205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42206 $as_echo "disabled" >&6; } 42207 else 42208 # Check if the provided tool contains a complete path. 42209 tool_specified="$STRIP" 42210 tool_basename="${tool_specified##*/}" 42211 if test "x$tool_basename" = "x$tool_specified"; then 42212 # A command without a complete path is provided, search $PATH. 42213 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 42214 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 42215 # Extract the first word of "$tool_basename", so it can be a program name with args. 42216 set dummy $tool_basename; ac_word=$2 42217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42218 $as_echo_n "checking for $ac_word... " >&6; } 42219 if ${ac_cv_path_STRIP+:} false; then : 42220 $as_echo_n "(cached) " >&6 42221 else 42222 case $STRIP in 42223 [\\/]* | ?:[\\/]*) 42224 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 42225 ;; 42226 *) 42227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42228 for as_dir in $PATH 42229 do 42230 IFS=$as_save_IFS 42231 test -z "$as_dir" && as_dir=. 42232 for ac_exec_ext in '' $ac_executable_extensions; do 42233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42234 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 42235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42236 break 2 42237 fi 42238 done 42239 done 42240 IFS=$as_save_IFS 42241 42242 ;; 42243 esac 42244 fi 42245 STRIP=$ac_cv_path_STRIP 42246 if test -n "$STRIP"; then 42247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42248 $as_echo "$STRIP" >&6; } 42249 else 42250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42251 $as_echo "no" >&6; } 42252 fi 42253 42254 42255 if test "x$STRIP" = x; then 42256 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42257 fi 42258 else 42259 # Otherwise we believe it is a complete path. Use it as it is. 42260 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 42261 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 42262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42263 $as_echo_n "checking for STRIP... " >&6; } 42264 if test ! -x "$tool_specified"; then 42265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42266 $as_echo "not found" >&6; } 42267 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 42268 fi 42269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42270 $as_echo "$tool_specified" >&6; } 42271 fi 42272 fi 42273 fi 42274 42275 fi 42276 42277 42278 42279 # Only process if variable expands to non-empty 42280 42281 if test "x$STRIP" != x; then 42282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42283 42284 # First separate the path from the arguments. This will split at the first 42285 # space. 42286 complete="$STRIP" 42287 path="${complete%% *}" 42288 tmp="$complete EOL" 42289 arguments="${tmp#* }" 42290 42291 # Input might be given as Windows format, start by converting to 42292 # unix format. 42293 new_path=`$CYGPATH -u "$path"` 42294 42295 # Now try to locate executable using which 42296 new_path=`$WHICH "$new_path" 2> /dev/null` 42297 # bat and cmd files are not always considered executable in cygwin causing which 42298 # to not find them 42299 if test "x$new_path" = x \ 42300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42302 new_path=`$CYGPATH -u "$path"` 42303 fi 42304 if test "x$new_path" = x; then 42305 # Oops. Which didn't find the executable. 42306 # The splitting of arguments from the executable at a space might have been incorrect, 42307 # since paths with space are more likely in Windows. Give it another try with the whole 42308 # argument. 42309 path="$complete" 42310 arguments="EOL" 42311 new_path=`$CYGPATH -u "$path"` 42312 new_path=`$WHICH "$new_path" 2> /dev/null` 42313 # bat and cmd files are not always considered executable in cygwin causing which 42314 # to not find them 42315 if test "x$new_path" = x \ 42316 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42317 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42318 new_path=`$CYGPATH -u "$path"` 42319 fi 42320 if test "x$new_path" = x; then 42321 # It's still not found. Now this is an unrecoverable error. 42322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42323 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42324 has_space=`$ECHO "$complete" | $GREP " "` 42325 if test "x$has_space" != x; then 42326 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42327 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42328 fi 42329 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42330 fi 42331 fi 42332 42333 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42334 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42335 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42336 # "foo.exe" is OK but "foo" is an error. 42337 # 42338 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42339 # It is also a way to make sure we got the proper file name for the real test later on. 42340 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42341 if test "x$test_shortpath" = x; then 42342 # Short path failed, file does not exist as specified. 42343 # Try adding .exe or .cmd 42344 if test -f "${new_path}.exe"; then 42345 input_to_shortpath="${new_path}.exe" 42346 elif test -f "${new_path}.cmd"; then 42347 input_to_shortpath="${new_path}.cmd" 42348 else 42349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 42350 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 42351 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42352 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42353 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42354 fi 42355 else 42356 input_to_shortpath="$new_path" 42357 fi 42358 42359 # Call helper function which possibly converts this using DOS-style short mode. 42360 # If so, the updated path is stored in $new_path. 42361 new_path="$input_to_shortpath" 42362 42363 input_path="$input_to_shortpath" 42364 # Check if we need to convert this using DOS-style short mode. If the path 42365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42366 # take no chances and rewrite it. 42367 # Note: m4 eats our [], so we need to use [ and ] instead. 42368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42369 if test "x$has_forbidden_chars" != x; then 42370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42371 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42372 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42373 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42374 # Going to short mode and back again did indeed matter. Since short mode is 42375 # case insensitive, let's make it lowercase to improve readability. 42376 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42377 # Now convert it back to Unix-style (cygpath) 42378 input_path=`$CYGPATH -u "$shortmode_path"` 42379 new_path="$input_path" 42380 fi 42381 fi 42382 42383 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42384 if test "x$test_cygdrive_prefix" = x; then 42385 # As a simple fix, exclude /usr/bin since it's not a real path. 42386 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42387 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42388 # a path prefixed by /cygdrive for fixpath to work. 42389 new_path="$CYGWIN_ROOT_PATH$input_path" 42390 fi 42391 fi 42392 42393 # remove trailing .exe if any 42394 new_path="${new_path/%.exe/}" 42395 42396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42397 42398 # First separate the path from the arguments. This will split at the first 42399 # space. 42400 complete="$STRIP" 42401 path="${complete%% *}" 42402 tmp="$complete EOL" 42403 arguments="${tmp#* }" 42404 42405 # Input might be given as Windows format, start by converting to 42406 # unix format. 42407 new_path="$path" 42408 42409 windows_path="$new_path" 42410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42411 unix_path=`$CYGPATH -u "$windows_path"` 42412 new_path="$unix_path" 42413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42415 new_path="$unix_path" 42416 fi 42417 42418 42419 # Now try to locate executable using which 42420 new_path=`$WHICH "$new_path" 2> /dev/null` 42421 42422 if test "x$new_path" = x; then 42423 # Oops. Which didn't find the executable. 42424 # The splitting of arguments from the executable at a space might have been incorrect, 42425 # since paths with space are more likely in Windows. Give it another try with the whole 42426 # argument. 42427 path="$complete" 42428 arguments="EOL" 42429 new_path="$path" 42430 42431 windows_path="$new_path" 42432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42433 unix_path=`$CYGPATH -u "$windows_path"` 42434 new_path="$unix_path" 42435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42436 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42437 new_path="$unix_path" 42438 fi 42439 42440 42441 new_path=`$WHICH "$new_path" 2> /dev/null` 42442 # bat and cmd files are not always considered executable in MSYS causing which 42443 # to not find them 42444 if test "x$new_path" = x \ 42445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42447 new_path="$path" 42448 42449 windows_path="$new_path" 42450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42451 unix_path=`$CYGPATH -u "$windows_path"` 42452 new_path="$unix_path" 42453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42455 new_path="$unix_path" 42456 fi 42457 42458 fi 42459 42460 if test "x$new_path" = x; then 42461 # It's still not found. Now this is an unrecoverable error. 42462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42463 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42464 has_space=`$ECHO "$complete" | $GREP " "` 42465 if test "x$has_space" != x; then 42466 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42468 fi 42469 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42470 fi 42471 fi 42472 42473 # Now new_path has a complete unix path to the binary 42474 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42475 # Keep paths in /bin as-is, but remove trailing .exe if any 42476 new_path="${new_path/%.exe/}" 42477 # Do not save /bin paths to all_fixpath_prefixes! 42478 else 42479 # Not in mixed or Windows style, start by that. 42480 new_path=`cmd //c echo $new_path` 42481 42482 input_path="$new_path" 42483 # Check if we need to convert this using DOS-style short mode. If the path 42484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42485 # take no chances and rewrite it. 42486 # Note: m4 eats our [], so we need to use [ and ] instead. 42487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42488 if test "x$has_forbidden_chars" != x; then 42489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42491 fi 42492 42493 # Output is in $new_path 42494 42495 windows_path="$new_path" 42496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42497 unix_path=`$CYGPATH -u "$windows_path"` 42498 new_path="$unix_path" 42499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42501 new_path="$unix_path" 42502 fi 42503 42504 # remove trailing .exe if any 42505 new_path="${new_path/%.exe/}" 42506 42507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42509 fi 42510 42511 else 42512 # We're on a unix platform. Hooray! :) 42513 # First separate the path from the arguments. This will split at the first 42514 # space. 42515 complete="$STRIP" 42516 path="${complete%% *}" 42517 tmp="$complete EOL" 42518 arguments="${tmp#* }" 42519 42520 # Cannot rely on the command "which" here since it doesn't always work. 42521 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42522 if test -z "$is_absolute_path"; then 42523 # Path to executable is not absolute. Find it. 42524 IFS_save="$IFS" 42525 IFS=: 42526 for p in $PATH; do 42527 if test -f "$p/$path" && test -x "$p/$path"; then 42528 new_path="$p/$path" 42529 break 42530 fi 42531 done 42532 IFS="$IFS_save" 42533 else 42534 # This is an absolute path, we can use it without further modifications. 42535 new_path="$path" 42536 fi 42537 42538 if test "x$new_path" = x; then 42539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42540 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42541 has_space=`$ECHO "$complete" | $GREP " "` 42542 if test "x$has_space" != x; then 42543 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42544 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42545 fi 42546 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42547 fi 42548 fi 42549 42550 # Now join together the path and the arguments once again 42551 if test "x$arguments" != xEOL; then 42552 new_complete="$new_path ${arguments% *}" 42553 else 42554 new_complete="$new_path" 42555 fi 42556 42557 if test "x$complete" != "x$new_complete"; then 42558 STRIP="$new_complete" 42559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 42560 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 42561 fi 42562 fi 42563 42564 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42565 42566 42567 # Publish this variable in the help. 42568 42569 42570 if [ -z "${NM+x}" ]; then 42571 # The variable is not set by user, try to locate tool using the code snippet 42572 if test -n "$ac_tool_prefix"; then 42573 for ac_prog in nm gcc-nm 42574 do 42575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42578 $as_echo_n "checking for $ac_word... " >&6; } 42579 if ${ac_cv_prog_NM+:} false; then : 42580 $as_echo_n "(cached) " >&6 42581 else 42582 if test -n "$NM"; then 42583 ac_cv_prog_NM="$NM" # Let the user override the test. 42584 else 42585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42586 for as_dir in $PATH 42587 do 42588 IFS=$as_save_IFS 42589 test -z "$as_dir" && as_dir=. 42590 for ac_exec_ext in '' $ac_executable_extensions; do 42591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42592 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42594 break 2 42595 fi 42596 done 42597 done 42598 IFS=$as_save_IFS 42599 42600 fi 42601 fi 42602 NM=$ac_cv_prog_NM 42603 if test -n "$NM"; then 42604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42605 $as_echo "$NM" >&6; } 42606 else 42607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42608 $as_echo "no" >&6; } 42609 fi 42610 42611 42612 test -n "$NM" && break 42613 done 42614 fi 42615 if test -z "$NM"; then 42616 ac_ct_NM=$NM 42617 for ac_prog in nm gcc-nm 42618 do 42619 # Extract the first word of "$ac_prog", so it can be a program name with args. 42620 set dummy $ac_prog; ac_word=$2 42621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42622 $as_echo_n "checking for $ac_word... " >&6; } 42623 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42624 $as_echo_n "(cached) " >&6 42625 else 42626 if test -n "$ac_ct_NM"; then 42627 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42628 else 42629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42630 for as_dir in $PATH 42631 do 42632 IFS=$as_save_IFS 42633 test -z "$as_dir" && as_dir=. 42634 for ac_exec_ext in '' $ac_executable_extensions; do 42635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42636 ac_cv_prog_ac_ct_NM="$ac_prog" 42637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42638 break 2 42639 fi 42640 done 42641 done 42642 IFS=$as_save_IFS 42643 42644 fi 42645 fi 42646 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42647 if test -n "$ac_ct_NM"; then 42648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42649 $as_echo "$ac_ct_NM" >&6; } 42650 else 42651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42652 $as_echo "no" >&6; } 42653 fi 42654 42655 42656 test -n "$ac_ct_NM" && break 42657 done 42658 42659 if test "x$ac_ct_NM" = x; then 42660 NM="" 42661 else 42662 case $cross_compiling:$ac_tool_warned in 42663 yes:) 42664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42666 ac_tool_warned=yes ;; 42667 esac 42668 NM=$ac_ct_NM 42669 fi 42670 fi 42671 42672 else 42673 # The variable is set, but is it from the command line or the environment? 42674 42675 # Try to remove the string !NM! from our list. 42676 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42677 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42678 # If it failed, the variable was not from the command line. Ignore it, 42679 # but warn the user (except for BASH, which is always set by the calling BASH). 42680 if test "xNM" != xBASH; then 42681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42682 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42683 fi 42684 # Try to locate tool using the code snippet 42685 if test -n "$ac_tool_prefix"; then 42686 for ac_prog in nm gcc-nm 42687 do 42688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42691 $as_echo_n "checking for $ac_word... " >&6; } 42692 if ${ac_cv_prog_NM+:} false; then : 42693 $as_echo_n "(cached) " >&6 42694 else 42695 if test -n "$NM"; then 42696 ac_cv_prog_NM="$NM" # Let the user override the test. 42697 else 42698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42699 for as_dir in $PATH 42700 do 42701 IFS=$as_save_IFS 42702 test -z "$as_dir" && as_dir=. 42703 for ac_exec_ext in '' $ac_executable_extensions; do 42704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42705 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42707 break 2 42708 fi 42709 done 42710 done 42711 IFS=$as_save_IFS 42712 42713 fi 42714 fi 42715 NM=$ac_cv_prog_NM 42716 if test -n "$NM"; then 42717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42718 $as_echo "$NM" >&6; } 42719 else 42720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42721 $as_echo "no" >&6; } 42722 fi 42723 42724 42725 test -n "$NM" && break 42726 done 42727 fi 42728 if test -z "$NM"; then 42729 ac_ct_NM=$NM 42730 for ac_prog in nm gcc-nm 42731 do 42732 # Extract the first word of "$ac_prog", so it can be a program name with args. 42733 set dummy $ac_prog; ac_word=$2 42734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42735 $as_echo_n "checking for $ac_word... " >&6; } 42736 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42737 $as_echo_n "(cached) " >&6 42738 else 42739 if test -n "$ac_ct_NM"; then 42740 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42741 else 42742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42743 for as_dir in $PATH 42744 do 42745 IFS=$as_save_IFS 42746 test -z "$as_dir" && as_dir=. 42747 for ac_exec_ext in '' $ac_executable_extensions; do 42748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42749 ac_cv_prog_ac_ct_NM="$ac_prog" 42750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42751 break 2 42752 fi 42753 done 42754 done 42755 IFS=$as_save_IFS 42756 42757 fi 42758 fi 42759 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42760 if test -n "$ac_ct_NM"; then 42761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42762 $as_echo "$ac_ct_NM" >&6; } 42763 else 42764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42765 $as_echo "no" >&6; } 42766 fi 42767 42768 42769 test -n "$ac_ct_NM" && break 42770 done 42771 42772 if test "x$ac_ct_NM" = x; then 42773 NM="" 42774 else 42775 case $cross_compiling:$ac_tool_warned in 42776 yes:) 42777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42779 ac_tool_warned=yes ;; 42780 esac 42781 NM=$ac_ct_NM 42782 fi 42783 fi 42784 42785 else 42786 # If it succeeded, then it was overridden by the user. We will use it 42787 # for the tool. 42788 42789 # First remove it from the list of overridden variables, so we can test 42790 # for unknown variables in the end. 42791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42792 42793 # Check if we try to supply an empty value 42794 if test "x$NM" = x; then 42795 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42796 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42798 $as_echo_n "checking for NM... " >&6; } 42799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42800 $as_echo "disabled" >&6; } 42801 else 42802 # Check if the provided tool contains a complete path. 42803 tool_specified="$NM" 42804 tool_basename="${tool_specified##*/}" 42805 if test "x$tool_basename" = "x$tool_specified"; then 42806 # A command without a complete path is provided, search $PATH. 42807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42808 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42809 # Extract the first word of "$tool_basename", so it can be a program name with args. 42810 set dummy $tool_basename; ac_word=$2 42811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42812 $as_echo_n "checking for $ac_word... " >&6; } 42813 if ${ac_cv_path_NM+:} false; then : 42814 $as_echo_n "(cached) " >&6 42815 else 42816 case $NM in 42817 [\\/]* | ?:[\\/]*) 42818 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42819 ;; 42820 *) 42821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42822 for as_dir in $PATH 42823 do 42824 IFS=$as_save_IFS 42825 test -z "$as_dir" && as_dir=. 42826 for ac_exec_ext in '' $ac_executable_extensions; do 42827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42828 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42830 break 2 42831 fi 42832 done 42833 done 42834 IFS=$as_save_IFS 42835 42836 ;; 42837 esac 42838 fi 42839 NM=$ac_cv_path_NM 42840 if test -n "$NM"; then 42841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42842 $as_echo "$NM" >&6; } 42843 else 42844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42845 $as_echo "no" >&6; } 42846 fi 42847 42848 42849 if test "x$NM" = x; then 42850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42851 fi 42852 else 42853 # Otherwise we believe it is a complete path. Use it as it is. 42854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42855 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42857 $as_echo_n "checking for NM... " >&6; } 42858 if test ! -x "$tool_specified"; then 42859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42860 $as_echo "not found" >&6; } 42861 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42862 fi 42863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42864 $as_echo "$tool_specified" >&6; } 42865 fi 42866 fi 42867 fi 42868 42869 fi 42870 42871 42872 else 42873 42874 42875 # Publish this variable in the help. 42876 42877 42878 if [ -z "${NM+x}" ]; then 42879 # The variable is not set by user, try to locate tool using the code snippet 42880 if test -n "$ac_tool_prefix"; then 42881 for ac_prog in nm 42882 do 42883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42886 $as_echo_n "checking for $ac_word... " >&6; } 42887 if ${ac_cv_prog_NM+:} false; then : 42888 $as_echo_n "(cached) " >&6 42889 else 42890 if test -n "$NM"; then 42891 ac_cv_prog_NM="$NM" # Let the user override the test. 42892 else 42893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42894 for as_dir in $PATH 42895 do 42896 IFS=$as_save_IFS 42897 test -z "$as_dir" && as_dir=. 42898 for ac_exec_ext in '' $ac_executable_extensions; do 42899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42900 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42902 break 2 42903 fi 42904 done 42905 done 42906 IFS=$as_save_IFS 42907 42908 fi 42909 fi 42910 NM=$ac_cv_prog_NM 42911 if test -n "$NM"; then 42912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42913 $as_echo "$NM" >&6; } 42914 else 42915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42916 $as_echo "no" >&6; } 42917 fi 42918 42919 42920 test -n "$NM" && break 42921 done 42922 fi 42923 if test -z "$NM"; then 42924 ac_ct_NM=$NM 42925 for ac_prog in nm 42926 do 42927 # Extract the first word of "$ac_prog", so it can be a program name with args. 42928 set dummy $ac_prog; ac_word=$2 42929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42930 $as_echo_n "checking for $ac_word... " >&6; } 42931 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42932 $as_echo_n "(cached) " >&6 42933 else 42934 if test -n "$ac_ct_NM"; then 42935 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42936 else 42937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42938 for as_dir in $PATH 42939 do 42940 IFS=$as_save_IFS 42941 test -z "$as_dir" && as_dir=. 42942 for ac_exec_ext in '' $ac_executable_extensions; do 42943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42944 ac_cv_prog_ac_ct_NM="$ac_prog" 42945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42946 break 2 42947 fi 42948 done 42949 done 42950 IFS=$as_save_IFS 42951 42952 fi 42953 fi 42954 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42955 if test -n "$ac_ct_NM"; then 42956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42957 $as_echo "$ac_ct_NM" >&6; } 42958 else 42959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42960 $as_echo "no" >&6; } 42961 fi 42962 42963 42964 test -n "$ac_ct_NM" && break 42965 done 42966 42967 if test "x$ac_ct_NM" = x; then 42968 NM="" 42969 else 42970 case $cross_compiling:$ac_tool_warned in 42971 yes:) 42972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42974 ac_tool_warned=yes ;; 42975 esac 42976 NM=$ac_ct_NM 42977 fi 42978 fi 42979 42980 else 42981 # The variable is set, but is it from the command line or the environment? 42982 42983 # Try to remove the string !NM! from our list. 42984 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42985 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42986 # If it failed, the variable was not from the command line. Ignore it, 42987 # but warn the user (except for BASH, which is always set by the calling BASH). 42988 if test "xNM" != xBASH; then 42989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42990 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42991 fi 42992 # Try to locate tool using the code snippet 42993 if test -n "$ac_tool_prefix"; then 42994 for ac_prog in nm 42995 do 42996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42999 $as_echo_n "checking for $ac_word... " >&6; } 43000 if ${ac_cv_prog_NM+:} false; then : 43001 $as_echo_n "(cached) " >&6 43002 else 43003 if test -n "$NM"; then 43004 ac_cv_prog_NM="$NM" # Let the user override the test. 43005 else 43006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43007 for as_dir in $PATH 43008 do 43009 IFS=$as_save_IFS 43010 test -z "$as_dir" && as_dir=. 43011 for ac_exec_ext in '' $ac_executable_extensions; do 43012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43013 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43015 break 2 43016 fi 43017 done 43018 done 43019 IFS=$as_save_IFS 43020 43021 fi 43022 fi 43023 NM=$ac_cv_prog_NM 43024 if test -n "$NM"; then 43025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43026 $as_echo "$NM" >&6; } 43027 else 43028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43029 $as_echo "no" >&6; } 43030 fi 43031 43032 43033 test -n "$NM" && break 43034 done 43035 fi 43036 if test -z "$NM"; then 43037 ac_ct_NM=$NM 43038 for ac_prog in nm 43039 do 43040 # Extract the first word of "$ac_prog", so it can be a program name with args. 43041 set dummy $ac_prog; ac_word=$2 43042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43043 $as_echo_n "checking for $ac_word... " >&6; } 43044 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43045 $as_echo_n "(cached) " >&6 43046 else 43047 if test -n "$ac_ct_NM"; then 43048 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43049 else 43050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43051 for as_dir in $PATH 43052 do 43053 IFS=$as_save_IFS 43054 test -z "$as_dir" && as_dir=. 43055 for ac_exec_ext in '' $ac_executable_extensions; do 43056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43057 ac_cv_prog_ac_ct_NM="$ac_prog" 43058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43059 break 2 43060 fi 43061 done 43062 done 43063 IFS=$as_save_IFS 43064 43065 fi 43066 fi 43067 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43068 if test -n "$ac_ct_NM"; then 43069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43070 $as_echo "$ac_ct_NM" >&6; } 43071 else 43072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43073 $as_echo "no" >&6; } 43074 fi 43075 43076 43077 test -n "$ac_ct_NM" && break 43078 done 43079 43080 if test "x$ac_ct_NM" = x; then 43081 NM="" 43082 else 43083 case $cross_compiling:$ac_tool_warned in 43084 yes:) 43085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43087 ac_tool_warned=yes ;; 43088 esac 43089 NM=$ac_ct_NM 43090 fi 43091 fi 43092 43093 else 43094 # If it succeeded, then it was overridden by the user. We will use it 43095 # for the tool. 43096 43097 # First remove it from the list of overridden variables, so we can test 43098 # for unknown variables in the end. 43099 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43100 43101 # Check if we try to supply an empty value 43102 if test "x$NM" = x; then 43103 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43104 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43106 $as_echo_n "checking for NM... " >&6; } 43107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43108 $as_echo "disabled" >&6; } 43109 else 43110 # Check if the provided tool contains a complete path. 43111 tool_specified="$NM" 43112 tool_basename="${tool_specified##*/}" 43113 if test "x$tool_basename" = "x$tool_specified"; then 43114 # A command without a complete path is provided, search $PATH. 43115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43116 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43117 # Extract the first word of "$tool_basename", so it can be a program name with args. 43118 set dummy $tool_basename; ac_word=$2 43119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43120 $as_echo_n "checking for $ac_word... " >&6; } 43121 if ${ac_cv_path_NM+:} false; then : 43122 $as_echo_n "(cached) " >&6 43123 else 43124 case $NM in 43125 [\\/]* | ?:[\\/]*) 43126 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43127 ;; 43128 *) 43129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43130 for as_dir in $PATH 43131 do 43132 IFS=$as_save_IFS 43133 test -z "$as_dir" && as_dir=. 43134 for ac_exec_ext in '' $ac_executable_extensions; do 43135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43136 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43138 break 2 43139 fi 43140 done 43141 done 43142 IFS=$as_save_IFS 43143 43144 ;; 43145 esac 43146 fi 43147 NM=$ac_cv_path_NM 43148 if test -n "$NM"; then 43149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43150 $as_echo "$NM" >&6; } 43151 else 43152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43153 $as_echo "no" >&6; } 43154 fi 43155 43156 43157 if test "x$NM" = x; then 43158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43159 fi 43160 else 43161 # Otherwise we believe it is a complete path. Use it as it is. 43162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43163 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43165 $as_echo_n "checking for NM... " >&6; } 43166 if test ! -x "$tool_specified"; then 43167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43168 $as_echo "not found" >&6; } 43169 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43170 fi 43171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43172 $as_echo "$tool_specified" >&6; } 43173 fi 43174 fi 43175 fi 43176 43177 fi 43178 43179 43180 fi 43181 43182 # Only process if variable expands to non-empty 43183 43184 if test "x$NM" != x; then 43185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43186 43187 # First separate the path from the arguments. This will split at the first 43188 # space. 43189 complete="$NM" 43190 path="${complete%% *}" 43191 tmp="$complete EOL" 43192 arguments="${tmp#* }" 43193 43194 # Input might be given as Windows format, start by converting to 43195 # unix format. 43196 new_path=`$CYGPATH -u "$path"` 43197 43198 # Now try to locate executable using which 43199 new_path=`$WHICH "$new_path" 2> /dev/null` 43200 # bat and cmd files are not always considered executable in cygwin causing which 43201 # to not find them 43202 if test "x$new_path" = x \ 43203 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43204 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43205 new_path=`$CYGPATH -u "$path"` 43206 fi 43207 if test "x$new_path" = x; then 43208 # Oops. Which didn't find the executable. 43209 # The splitting of arguments from the executable at a space might have been incorrect, 43210 # since paths with space are more likely in Windows. Give it another try with the whole 43211 # argument. 43212 path="$complete" 43213 arguments="EOL" 43214 new_path=`$CYGPATH -u "$path"` 43215 new_path=`$WHICH "$new_path" 2> /dev/null` 43216 # bat and cmd files are not always considered executable in cygwin causing which 43217 # to not find them 43218 if test "x$new_path" = x \ 43219 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43220 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43221 new_path=`$CYGPATH -u "$path"` 43222 fi 43223 if test "x$new_path" = x; then 43224 # It's still not found. Now this is an unrecoverable error. 43225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43226 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43227 has_space=`$ECHO "$complete" | $GREP " "` 43228 if test "x$has_space" != x; then 43229 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43230 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43231 fi 43232 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43233 fi 43234 fi 43235 43236 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43237 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43238 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43239 # "foo.exe" is OK but "foo" is an error. 43240 # 43241 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43242 # It is also a way to make sure we got the proper file name for the real test later on. 43243 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43244 if test "x$test_shortpath" = x; then 43245 # Short path failed, file does not exist as specified. 43246 # Try adding .exe or .cmd 43247 if test -f "${new_path}.exe"; then 43248 input_to_shortpath="${new_path}.exe" 43249 elif test -f "${new_path}.cmd"; then 43250 input_to_shortpath="${new_path}.cmd" 43251 else 43252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 43253 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 43254 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43255 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43256 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43257 fi 43258 else 43259 input_to_shortpath="$new_path" 43260 fi 43261 43262 # Call helper function which possibly converts this using DOS-style short mode. 43263 # If so, the updated path is stored in $new_path. 43264 new_path="$input_to_shortpath" 43265 43266 input_path="$input_to_shortpath" 43267 # Check if we need to convert this using DOS-style short mode. If the path 43268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43269 # take no chances and rewrite it. 43270 # Note: m4 eats our [], so we need to use [ and ] instead. 43271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43272 if test "x$has_forbidden_chars" != x; then 43273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43274 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43275 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43276 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43277 # Going to short mode and back again did indeed matter. Since short mode is 43278 # case insensitive, let's make it lowercase to improve readability. 43279 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43280 # Now convert it back to Unix-style (cygpath) 43281 input_path=`$CYGPATH -u "$shortmode_path"` 43282 new_path="$input_path" 43283 fi 43284 fi 43285 43286 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43287 if test "x$test_cygdrive_prefix" = x; then 43288 # As a simple fix, exclude /usr/bin since it's not a real path. 43289 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43290 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43291 # a path prefixed by /cygdrive for fixpath to work. 43292 new_path="$CYGWIN_ROOT_PATH$input_path" 43293 fi 43294 fi 43295 43296 # remove trailing .exe if any 43297 new_path="${new_path/%.exe/}" 43298 43299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43300 43301 # First separate the path from the arguments. This will split at the first 43302 # space. 43303 complete="$NM" 43304 path="${complete%% *}" 43305 tmp="$complete EOL" 43306 arguments="${tmp#* }" 43307 43308 # Input might be given as Windows format, start by converting to 43309 # unix format. 43310 new_path="$path" 43311 43312 windows_path="$new_path" 43313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43314 unix_path=`$CYGPATH -u "$windows_path"` 43315 new_path="$unix_path" 43316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43318 new_path="$unix_path" 43319 fi 43320 43321 43322 # Now try to locate executable using which 43323 new_path=`$WHICH "$new_path" 2> /dev/null` 43324 43325 if test "x$new_path" = x; then 43326 # Oops. Which didn't find the executable. 43327 # The splitting of arguments from the executable at a space might have been incorrect, 43328 # since paths with space are more likely in Windows. Give it another try with the whole 43329 # argument. 43330 path="$complete" 43331 arguments="EOL" 43332 new_path="$path" 43333 43334 windows_path="$new_path" 43335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43336 unix_path=`$CYGPATH -u "$windows_path"` 43337 new_path="$unix_path" 43338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43340 new_path="$unix_path" 43341 fi 43342 43343 43344 new_path=`$WHICH "$new_path" 2> /dev/null` 43345 # bat and cmd files are not always considered executable in MSYS causing which 43346 # to not find them 43347 if test "x$new_path" = x \ 43348 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43349 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43350 new_path="$path" 43351 43352 windows_path="$new_path" 43353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43354 unix_path=`$CYGPATH -u "$windows_path"` 43355 new_path="$unix_path" 43356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43358 new_path="$unix_path" 43359 fi 43360 43361 fi 43362 43363 if test "x$new_path" = x; then 43364 # It's still not found. Now this is an unrecoverable error. 43365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43366 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43367 has_space=`$ECHO "$complete" | $GREP " "` 43368 if test "x$has_space" != x; then 43369 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43370 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43371 fi 43372 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43373 fi 43374 fi 43375 43376 # Now new_path has a complete unix path to the binary 43377 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43378 # Keep paths in /bin as-is, but remove trailing .exe if any 43379 new_path="${new_path/%.exe/}" 43380 # Do not save /bin paths to all_fixpath_prefixes! 43381 else 43382 # Not in mixed or Windows style, start by that. 43383 new_path=`cmd //c echo $new_path` 43384 43385 input_path="$new_path" 43386 # Check if we need to convert this using DOS-style short mode. If the path 43387 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43388 # take no chances and rewrite it. 43389 # Note: m4 eats our [], so we need to use [ and ] instead. 43390 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43391 if test "x$has_forbidden_chars" != x; then 43392 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43393 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43394 fi 43395 43396 # Output is in $new_path 43397 43398 windows_path="$new_path" 43399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43400 unix_path=`$CYGPATH -u "$windows_path"` 43401 new_path="$unix_path" 43402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43404 new_path="$unix_path" 43405 fi 43406 43407 # remove trailing .exe if any 43408 new_path="${new_path/%.exe/}" 43409 43410 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43411 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43412 fi 43413 43414 else 43415 # We're on a unix platform. Hooray! :) 43416 # First separate the path from the arguments. This will split at the first 43417 # space. 43418 complete="$NM" 43419 path="${complete%% *}" 43420 tmp="$complete EOL" 43421 arguments="${tmp#* }" 43422 43423 # Cannot rely on the command "which" here since it doesn't always work. 43424 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43425 if test -z "$is_absolute_path"; then 43426 # Path to executable is not absolute. Find it. 43427 IFS_save="$IFS" 43428 IFS=: 43429 for p in $PATH; do 43430 if test -f "$p/$path" && test -x "$p/$path"; then 43431 new_path="$p/$path" 43432 break 43433 fi 43434 done 43435 IFS="$IFS_save" 43436 else 43437 # This is an absolute path, we can use it without further modifications. 43438 new_path="$path" 43439 fi 43440 43441 if test "x$new_path" = x; then 43442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43443 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43444 has_space=`$ECHO "$complete" | $GREP " "` 43445 if test "x$has_space" != x; then 43446 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43447 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43448 fi 43449 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43450 fi 43451 fi 43452 43453 # Now join together the path and the arguments once again 43454 if test "x$arguments" != xEOL; then 43455 new_complete="$new_path ${arguments% *}" 43456 else 43457 new_complete="$new_path" 43458 fi 43459 43460 if test "x$complete" != "x$new_complete"; then 43461 NM="$new_complete" 43462 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 43463 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 43464 fi 43465 fi 43466 43467 GNM="$NM" 43468 43469 fi 43470 43471 # objcopy is used for moving debug symbols to separate files when 43472 # full debug symbols are enabled. 43473 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43474 43475 43476 # Publish this variable in the help. 43477 43478 43479 if [ -z "${OBJCOPY+x}" ]; then 43480 # The variable is not set by user, try to locate tool using the code snippet 43481 if test -n "$ac_tool_prefix"; then 43482 for ac_prog in gobjcopy objcopy 43483 do 43484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43487 $as_echo_n "checking for $ac_word... " >&6; } 43488 if ${ac_cv_prog_OBJCOPY+:} false; then : 43489 $as_echo_n "(cached) " >&6 43490 else 43491 if test -n "$OBJCOPY"; then 43492 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43493 else 43494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43495 for as_dir in $PATH 43496 do 43497 IFS=$as_save_IFS 43498 test -z "$as_dir" && as_dir=. 43499 for ac_exec_ext in '' $ac_executable_extensions; do 43500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43501 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43503 break 2 43504 fi 43505 done 43506 done 43507 IFS=$as_save_IFS 43508 43509 fi 43510 fi 43511 OBJCOPY=$ac_cv_prog_OBJCOPY 43512 if test -n "$OBJCOPY"; then 43513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43514 $as_echo "$OBJCOPY" >&6; } 43515 else 43516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43517 $as_echo "no" >&6; } 43518 fi 43519 43520 43521 test -n "$OBJCOPY" && break 43522 done 43523 fi 43524 if test -z "$OBJCOPY"; then 43525 ac_ct_OBJCOPY=$OBJCOPY 43526 for ac_prog in gobjcopy objcopy 43527 do 43528 # Extract the first word of "$ac_prog", so it can be a program name with args. 43529 set dummy $ac_prog; ac_word=$2 43530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43531 $as_echo_n "checking for $ac_word... " >&6; } 43532 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43533 $as_echo_n "(cached) " >&6 43534 else 43535 if test -n "$ac_ct_OBJCOPY"; then 43536 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43537 else 43538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43539 for as_dir in $PATH 43540 do 43541 IFS=$as_save_IFS 43542 test -z "$as_dir" && as_dir=. 43543 for ac_exec_ext in '' $ac_executable_extensions; do 43544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43545 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43547 break 2 43548 fi 43549 done 43550 done 43551 IFS=$as_save_IFS 43552 43553 fi 43554 fi 43555 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43556 if test -n "$ac_ct_OBJCOPY"; then 43557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43558 $as_echo "$ac_ct_OBJCOPY" >&6; } 43559 else 43560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43561 $as_echo "no" >&6; } 43562 fi 43563 43564 43565 test -n "$ac_ct_OBJCOPY" && break 43566 done 43567 43568 if test "x$ac_ct_OBJCOPY" = x; then 43569 OBJCOPY="" 43570 else 43571 case $cross_compiling:$ac_tool_warned in 43572 yes:) 43573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43575 ac_tool_warned=yes ;; 43576 esac 43577 OBJCOPY=$ac_ct_OBJCOPY 43578 fi 43579 fi 43580 43581 else 43582 # The variable is set, but is it from the command line or the environment? 43583 43584 # Try to remove the string !OBJCOPY! from our list. 43585 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 43586 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43587 # If it failed, the variable was not from the command line. Ignore it, 43588 # but warn the user (except for BASH, which is always set by the calling BASH). 43589 if test "xOBJCOPY" != xBASH; then 43590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 43591 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 43592 fi 43593 # Try to locate tool using the code snippet 43594 if test -n "$ac_tool_prefix"; then 43595 for ac_prog in gobjcopy objcopy 43596 do 43597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43600 $as_echo_n "checking for $ac_word... " >&6; } 43601 if ${ac_cv_prog_OBJCOPY+:} false; then : 43602 $as_echo_n "(cached) " >&6 43603 else 43604 if test -n "$OBJCOPY"; then 43605 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43606 else 43607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43608 for as_dir in $PATH 43609 do 43610 IFS=$as_save_IFS 43611 test -z "$as_dir" && as_dir=. 43612 for ac_exec_ext in '' $ac_executable_extensions; do 43613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43614 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43616 break 2 43617 fi 43618 done 43619 done 43620 IFS=$as_save_IFS 43621 43622 fi 43623 fi 43624 OBJCOPY=$ac_cv_prog_OBJCOPY 43625 if test -n "$OBJCOPY"; then 43626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43627 $as_echo "$OBJCOPY" >&6; } 43628 else 43629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43630 $as_echo "no" >&6; } 43631 fi 43632 43633 43634 test -n "$OBJCOPY" && break 43635 done 43636 fi 43637 if test -z "$OBJCOPY"; then 43638 ac_ct_OBJCOPY=$OBJCOPY 43639 for ac_prog in gobjcopy objcopy 43640 do 43641 # Extract the first word of "$ac_prog", so it can be a program name with args. 43642 set dummy $ac_prog; ac_word=$2 43643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43644 $as_echo_n "checking for $ac_word... " >&6; } 43645 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43646 $as_echo_n "(cached) " >&6 43647 else 43648 if test -n "$ac_ct_OBJCOPY"; then 43649 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43650 else 43651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43652 for as_dir in $PATH 43653 do 43654 IFS=$as_save_IFS 43655 test -z "$as_dir" && as_dir=. 43656 for ac_exec_ext in '' $ac_executable_extensions; do 43657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43658 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43660 break 2 43661 fi 43662 done 43663 done 43664 IFS=$as_save_IFS 43665 43666 fi 43667 fi 43668 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43669 if test -n "$ac_ct_OBJCOPY"; then 43670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43671 $as_echo "$ac_ct_OBJCOPY" >&6; } 43672 else 43673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43674 $as_echo "no" >&6; } 43675 fi 43676 43677 43678 test -n "$ac_ct_OBJCOPY" && break 43679 done 43680 43681 if test "x$ac_ct_OBJCOPY" = x; then 43682 OBJCOPY="" 43683 else 43684 case $cross_compiling:$ac_tool_warned in 43685 yes:) 43686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43688 ac_tool_warned=yes ;; 43689 esac 43690 OBJCOPY=$ac_ct_OBJCOPY 43691 fi 43692 fi 43693 43694 else 43695 # If it succeeded, then it was overridden by the user. We will use it 43696 # for the tool. 43697 43698 # First remove it from the list of overridden variables, so we can test 43699 # for unknown variables in the end. 43700 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43701 43702 # Check if we try to supply an empty value 43703 if test "x$OBJCOPY" = x; then 43704 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 43705 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 43706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43707 $as_echo_n "checking for OBJCOPY... " >&6; } 43708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43709 $as_echo "disabled" >&6; } 43710 else 43711 # Check if the provided tool contains a complete path. 43712 tool_specified="$OBJCOPY" 43713 tool_basename="${tool_specified##*/}" 43714 if test "x$tool_basename" = "x$tool_specified"; then 43715 # A command without a complete path is provided, search $PATH. 43716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 43717 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 43718 # Extract the first word of "$tool_basename", so it can be a program name with args. 43719 set dummy $tool_basename; ac_word=$2 43720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43721 $as_echo_n "checking for $ac_word... " >&6; } 43722 if ${ac_cv_path_OBJCOPY+:} false; then : 43723 $as_echo_n "(cached) " >&6 43724 else 43725 case $OBJCOPY in 43726 [\\/]* | ?:[\\/]*) 43727 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 43728 ;; 43729 *) 43730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43731 for as_dir in $PATH 43732 do 43733 IFS=$as_save_IFS 43734 test -z "$as_dir" && as_dir=. 43735 for ac_exec_ext in '' $ac_executable_extensions; do 43736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43737 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 43738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43739 break 2 43740 fi 43741 done 43742 done 43743 IFS=$as_save_IFS 43744 43745 ;; 43746 esac 43747 fi 43748 OBJCOPY=$ac_cv_path_OBJCOPY 43749 if test -n "$OBJCOPY"; then 43750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43751 $as_echo "$OBJCOPY" >&6; } 43752 else 43753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43754 $as_echo "no" >&6; } 43755 fi 43756 43757 43758 if test "x$OBJCOPY" = x; then 43759 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43760 fi 43761 else 43762 # Otherwise we believe it is a complete path. Use it as it is. 43763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 43764 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 43765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43766 $as_echo_n "checking for OBJCOPY... " >&6; } 43767 if test ! -x "$tool_specified"; then 43768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43769 $as_echo "not found" >&6; } 43770 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 43771 fi 43772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43773 $as_echo "$tool_specified" >&6; } 43774 fi 43775 fi 43776 fi 43777 43778 fi 43779 43780 43781 # Only call fixup if objcopy was found. 43782 if test -n "$OBJCOPY"; then 43783 43784 # Only process if variable expands to non-empty 43785 43786 if test "x$OBJCOPY" != x; then 43787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43788 43789 # First separate the path from the arguments. This will split at the first 43790 # space. 43791 complete="$OBJCOPY" 43792 path="${complete%% *}" 43793 tmp="$complete EOL" 43794 arguments="${tmp#* }" 43795 43796 # Input might be given as Windows format, start by converting to 43797 # unix format. 43798 new_path=`$CYGPATH -u "$path"` 43799 43800 # Now try to locate executable using which 43801 new_path=`$WHICH "$new_path" 2> /dev/null` 43802 # bat and cmd files are not always considered executable in cygwin causing which 43803 # to not find them 43804 if test "x$new_path" = x \ 43805 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43806 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43807 new_path=`$CYGPATH -u "$path"` 43808 fi 43809 if test "x$new_path" = x; then 43810 # Oops. Which didn't find the executable. 43811 # The splitting of arguments from the executable at a space might have been incorrect, 43812 # since paths with space are more likely in Windows. Give it another try with the whole 43813 # argument. 43814 path="$complete" 43815 arguments="EOL" 43816 new_path=`$CYGPATH -u "$path"` 43817 new_path=`$WHICH "$new_path" 2> /dev/null` 43818 # bat and cmd files are not always considered executable in cygwin causing which 43819 # to not find them 43820 if test "x$new_path" = x \ 43821 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43822 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43823 new_path=`$CYGPATH -u "$path"` 43824 fi 43825 if test "x$new_path" = x; then 43826 # It's still not found. Now this is an unrecoverable error. 43827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43828 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43829 has_space=`$ECHO "$complete" | $GREP " "` 43830 if test "x$has_space" != x; then 43831 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43832 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43833 fi 43834 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43835 fi 43836 fi 43837 43838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43841 # "foo.exe" is OK but "foo" is an error. 43842 # 43843 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43844 # It is also a way to make sure we got the proper file name for the real test later on. 43845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43846 if test "x$test_shortpath" = x; then 43847 # Short path failed, file does not exist as specified. 43848 # Try adding .exe or .cmd 43849 if test -f "${new_path}.exe"; then 43850 input_to_shortpath="${new_path}.exe" 43851 elif test -f "${new_path}.cmd"; then 43852 input_to_shortpath="${new_path}.cmd" 43853 else 43854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 43855 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 43856 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43857 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43858 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43859 fi 43860 else 43861 input_to_shortpath="$new_path" 43862 fi 43863 43864 # Call helper function which possibly converts this using DOS-style short mode. 43865 # If so, the updated path is stored in $new_path. 43866 new_path="$input_to_shortpath" 43867 43868 input_path="$input_to_shortpath" 43869 # Check if we need to convert this using DOS-style short mode. If the path 43870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43871 # take no chances and rewrite it. 43872 # Note: m4 eats our [], so we need to use [ and ] instead. 43873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43874 if test "x$has_forbidden_chars" != x; then 43875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43879 # Going to short mode and back again did indeed matter. Since short mode is 43880 # case insensitive, let's make it lowercase to improve readability. 43881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43882 # Now convert it back to Unix-style (cygpath) 43883 input_path=`$CYGPATH -u "$shortmode_path"` 43884 new_path="$input_path" 43885 fi 43886 fi 43887 43888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43889 if test "x$test_cygdrive_prefix" = x; then 43890 # As a simple fix, exclude /usr/bin since it's not a real path. 43891 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43893 # a path prefixed by /cygdrive for fixpath to work. 43894 new_path="$CYGWIN_ROOT_PATH$input_path" 43895 fi 43896 fi 43897 43898 # remove trailing .exe if any 43899 new_path="${new_path/%.exe/}" 43900 43901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43902 43903 # First separate the path from the arguments. This will split at the first 43904 # space. 43905 complete="$OBJCOPY" 43906 path="${complete%% *}" 43907 tmp="$complete EOL" 43908 arguments="${tmp#* }" 43909 43910 # Input might be given as Windows format, start by converting to 43911 # unix format. 43912 new_path="$path" 43913 43914 windows_path="$new_path" 43915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43916 unix_path=`$CYGPATH -u "$windows_path"` 43917 new_path="$unix_path" 43918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43920 new_path="$unix_path" 43921 fi 43922 43923 43924 # Now try to locate executable using which 43925 new_path=`$WHICH "$new_path" 2> /dev/null` 43926 43927 if test "x$new_path" = x; then 43928 # Oops. Which didn't find the executable. 43929 # The splitting of arguments from the executable at a space might have been incorrect, 43930 # since paths with space are more likely in Windows. Give it another try with the whole 43931 # argument. 43932 path="$complete" 43933 arguments="EOL" 43934 new_path="$path" 43935 43936 windows_path="$new_path" 43937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43938 unix_path=`$CYGPATH -u "$windows_path"` 43939 new_path="$unix_path" 43940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43942 new_path="$unix_path" 43943 fi 43944 43945 43946 new_path=`$WHICH "$new_path" 2> /dev/null` 43947 # bat and cmd files are not always considered executable in MSYS causing which 43948 # to not find them 43949 if test "x$new_path" = x \ 43950 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43951 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43952 new_path="$path" 43953 43954 windows_path="$new_path" 43955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43956 unix_path=`$CYGPATH -u "$windows_path"` 43957 new_path="$unix_path" 43958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43960 new_path="$unix_path" 43961 fi 43962 43963 fi 43964 43965 if test "x$new_path" = x; then 43966 # It's still not found. Now this is an unrecoverable error. 43967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43968 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43969 has_space=`$ECHO "$complete" | $GREP " "` 43970 if test "x$has_space" != x; then 43971 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43972 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43973 fi 43974 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43975 fi 43976 fi 43977 43978 # Now new_path has a complete unix path to the binary 43979 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43980 # Keep paths in /bin as-is, but remove trailing .exe if any 43981 new_path="${new_path/%.exe/}" 43982 # Do not save /bin paths to all_fixpath_prefixes! 43983 else 43984 # Not in mixed or Windows style, start by that. 43985 new_path=`cmd //c echo $new_path` 43986 43987 input_path="$new_path" 43988 # Check if we need to convert this using DOS-style short mode. If the path 43989 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43990 # take no chances and rewrite it. 43991 # Note: m4 eats our [], so we need to use [ and ] instead. 43992 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43993 if test "x$has_forbidden_chars" != x; then 43994 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43995 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43996 fi 43997 43998 # Output is in $new_path 43999 44000 windows_path="$new_path" 44001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44002 unix_path=`$CYGPATH -u "$windows_path"` 44003 new_path="$unix_path" 44004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44005 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44006 new_path="$unix_path" 44007 fi 44008 44009 # remove trailing .exe if any 44010 new_path="${new_path/%.exe/}" 44011 44012 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44013 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44014 fi 44015 44016 else 44017 # We're on a unix platform. Hooray! :) 44018 # First separate the path from the arguments. This will split at the first 44019 # space. 44020 complete="$OBJCOPY" 44021 path="${complete%% *}" 44022 tmp="$complete EOL" 44023 arguments="${tmp#* }" 44024 44025 # Cannot rely on the command "which" here since it doesn't always work. 44026 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44027 if test -z "$is_absolute_path"; then 44028 # Path to executable is not absolute. Find it. 44029 IFS_save="$IFS" 44030 IFS=: 44031 for p in $PATH; do 44032 if test -f "$p/$path" && test -x "$p/$path"; then 44033 new_path="$p/$path" 44034 break 44035 fi 44036 done 44037 IFS="$IFS_save" 44038 else 44039 # This is an absolute path, we can use it without further modifications. 44040 new_path="$path" 44041 fi 44042 44043 if test "x$new_path" = x; then 44044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44045 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44046 has_space=`$ECHO "$complete" | $GREP " "` 44047 if test "x$has_space" != x; then 44048 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44049 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44050 fi 44051 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44052 fi 44053 fi 44054 44055 # Now join together the path and the arguments once again 44056 if test "x$arguments" != xEOL; then 44057 new_complete="$new_path ${arguments% *}" 44058 else 44059 new_complete="$new_path" 44060 fi 44061 44062 if test "x$complete" != "x$new_complete"; then 44063 OBJCOPY="$new_complete" 44064 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 44065 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 44066 fi 44067 fi 44068 44069 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 44070 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 44071 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 44072 # - version number is last blank separate word on first line 44073 # - version number formats that have been seen: 44074 # - <major>.<minor> 44075 # - <major>.<minor>.<micro> 44076 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 44077 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 44078 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 44079 -e 's/.* //' \ 44080 -e '/^[01]\./b bad' \ 44081 -e '/^2\./{' \ 44082 -e ' s/^2\.//' \ 44083 -e ' /^[0-9]$/b bad' \ 44084 -e ' /^[0-9]\./b bad' \ 44085 -e ' /^1[0-9]$/b bad' \ 44086 -e ' /^1[0-9]\./b bad' \ 44087 -e ' /^20\./b bad' \ 44088 -e ' /^21\.0$/b bad' \ 44089 -e ' /^21\.0\./b bad' \ 44090 -e '}' \ 44091 -e ':good' \ 44092 -e 's/.*/VALID_VERSION/p' \ 44093 -e 'q' \ 44094 -e ':bad' \ 44095 -e 's/.*/BAD_VERSION/p' \ 44096 -e 'q'` 44097 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 44098 OBJCOPY= 44099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&5 44100 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 44101 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 44102 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 44103 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 44104 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 44105 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 44106 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 44107 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 44108 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 44109 fi 44110 fi 44111 fi 44112 fi 44113 44114 44115 44116 # Publish this variable in the help. 44117 44118 44119 if [ -z "${OBJDUMP+x}" ]; then 44120 # The variable is not set by user, try to locate tool using the code snippet 44121 if test -n "$ac_tool_prefix"; then 44122 for ac_prog in gobjdump objdump 44123 do 44124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44127 $as_echo_n "checking for $ac_word... " >&6; } 44128 if ${ac_cv_prog_OBJDUMP+:} false; then : 44129 $as_echo_n "(cached) " >&6 44130 else 44131 if test -n "$OBJDUMP"; then 44132 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44133 else 44134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44135 for as_dir in $PATH 44136 do 44137 IFS=$as_save_IFS 44138 test -z "$as_dir" && as_dir=. 44139 for ac_exec_ext in '' $ac_executable_extensions; do 44140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44141 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44143 break 2 44144 fi 44145 done 44146 done 44147 IFS=$as_save_IFS 44148 44149 fi 44150 fi 44151 OBJDUMP=$ac_cv_prog_OBJDUMP 44152 if test -n "$OBJDUMP"; then 44153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44154 $as_echo "$OBJDUMP" >&6; } 44155 else 44156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44157 $as_echo "no" >&6; } 44158 fi 44159 44160 44161 test -n "$OBJDUMP" && break 44162 done 44163 fi 44164 if test -z "$OBJDUMP"; then 44165 ac_ct_OBJDUMP=$OBJDUMP 44166 for ac_prog in gobjdump objdump 44167 do 44168 # Extract the first word of "$ac_prog", so it can be a program name with args. 44169 set dummy $ac_prog; ac_word=$2 44170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44171 $as_echo_n "checking for $ac_word... " >&6; } 44172 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44173 $as_echo_n "(cached) " >&6 44174 else 44175 if test -n "$ac_ct_OBJDUMP"; then 44176 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44177 else 44178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44179 for as_dir in $PATH 44180 do 44181 IFS=$as_save_IFS 44182 test -z "$as_dir" && as_dir=. 44183 for ac_exec_ext in '' $ac_executable_extensions; do 44184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44185 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44187 break 2 44188 fi 44189 done 44190 done 44191 IFS=$as_save_IFS 44192 44193 fi 44194 fi 44195 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44196 if test -n "$ac_ct_OBJDUMP"; then 44197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44198 $as_echo "$ac_ct_OBJDUMP" >&6; } 44199 else 44200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44201 $as_echo "no" >&6; } 44202 fi 44203 44204 44205 test -n "$ac_ct_OBJDUMP" && break 44206 done 44207 44208 if test "x$ac_ct_OBJDUMP" = x; then 44209 OBJDUMP="" 44210 else 44211 case $cross_compiling:$ac_tool_warned in 44212 yes:) 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44215 ac_tool_warned=yes ;; 44216 esac 44217 OBJDUMP=$ac_ct_OBJDUMP 44218 fi 44219 fi 44220 44221 else 44222 # The variable is set, but is it from the command line or the environment? 44223 44224 # Try to remove the string !OBJDUMP! from our list. 44225 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 44226 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44227 # If it failed, the variable was not from the command line. Ignore it, 44228 # but warn the user (except for BASH, which is always set by the calling BASH). 44229 if test "xOBJDUMP" != xBASH; then 44230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 44231 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 44232 fi 44233 # Try to locate tool using the code snippet 44234 if test -n "$ac_tool_prefix"; then 44235 for ac_prog in gobjdump objdump 44236 do 44237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44240 $as_echo_n "checking for $ac_word... " >&6; } 44241 if ${ac_cv_prog_OBJDUMP+:} false; then : 44242 $as_echo_n "(cached) " >&6 44243 else 44244 if test -n "$OBJDUMP"; then 44245 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44246 else 44247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44248 for as_dir in $PATH 44249 do 44250 IFS=$as_save_IFS 44251 test -z "$as_dir" && as_dir=. 44252 for ac_exec_ext in '' $ac_executable_extensions; do 44253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44254 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44256 break 2 44257 fi 44258 done 44259 done 44260 IFS=$as_save_IFS 44261 44262 fi 44263 fi 44264 OBJDUMP=$ac_cv_prog_OBJDUMP 44265 if test -n "$OBJDUMP"; then 44266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44267 $as_echo "$OBJDUMP" >&6; } 44268 else 44269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44270 $as_echo "no" >&6; } 44271 fi 44272 44273 44274 test -n "$OBJDUMP" && break 44275 done 44276 fi 44277 if test -z "$OBJDUMP"; then 44278 ac_ct_OBJDUMP=$OBJDUMP 44279 for ac_prog in gobjdump objdump 44280 do 44281 # Extract the first word of "$ac_prog", so it can be a program name with args. 44282 set dummy $ac_prog; ac_word=$2 44283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44284 $as_echo_n "checking for $ac_word... " >&6; } 44285 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44286 $as_echo_n "(cached) " >&6 44287 else 44288 if test -n "$ac_ct_OBJDUMP"; then 44289 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44290 else 44291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44292 for as_dir in $PATH 44293 do 44294 IFS=$as_save_IFS 44295 test -z "$as_dir" && as_dir=. 44296 for ac_exec_ext in '' $ac_executable_extensions; do 44297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44298 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44300 break 2 44301 fi 44302 done 44303 done 44304 IFS=$as_save_IFS 44305 44306 fi 44307 fi 44308 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44309 if test -n "$ac_ct_OBJDUMP"; then 44310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44311 $as_echo "$ac_ct_OBJDUMP" >&6; } 44312 else 44313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44314 $as_echo "no" >&6; } 44315 fi 44316 44317 44318 test -n "$ac_ct_OBJDUMP" && break 44319 done 44320 44321 if test "x$ac_ct_OBJDUMP" = x; then 44322 OBJDUMP="" 44323 else 44324 case $cross_compiling:$ac_tool_warned in 44325 yes:) 44326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44328 ac_tool_warned=yes ;; 44329 esac 44330 OBJDUMP=$ac_ct_OBJDUMP 44331 fi 44332 fi 44333 44334 else 44335 # If it succeeded, then it was overridden by the user. We will use it 44336 # for the tool. 44337 44338 # First remove it from the list of overridden variables, so we can test 44339 # for unknown variables in the end. 44340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44341 44342 # Check if we try to supply an empty value 44343 if test "x$OBJDUMP" = x; then 44344 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 44345 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 44346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44347 $as_echo_n "checking for OBJDUMP... " >&6; } 44348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44349 $as_echo "disabled" >&6; } 44350 else 44351 # Check if the provided tool contains a complete path. 44352 tool_specified="$OBJDUMP" 44353 tool_basename="${tool_specified##*/}" 44354 if test "x$tool_basename" = "x$tool_specified"; then 44355 # A command without a complete path is provided, search $PATH. 44356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 44357 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 44358 # Extract the first word of "$tool_basename", so it can be a program name with args. 44359 set dummy $tool_basename; ac_word=$2 44360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44361 $as_echo_n "checking for $ac_word... " >&6; } 44362 if ${ac_cv_path_OBJDUMP+:} false; then : 44363 $as_echo_n "(cached) " >&6 44364 else 44365 case $OBJDUMP in 44366 [\\/]* | ?:[\\/]*) 44367 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 44368 ;; 44369 *) 44370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44371 for as_dir in $PATH 44372 do 44373 IFS=$as_save_IFS 44374 test -z "$as_dir" && as_dir=. 44375 for ac_exec_ext in '' $ac_executable_extensions; do 44376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44377 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 44378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44379 break 2 44380 fi 44381 done 44382 done 44383 IFS=$as_save_IFS 44384 44385 ;; 44386 esac 44387 fi 44388 OBJDUMP=$ac_cv_path_OBJDUMP 44389 if test -n "$OBJDUMP"; then 44390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44391 $as_echo "$OBJDUMP" >&6; } 44392 else 44393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44394 $as_echo "no" >&6; } 44395 fi 44396 44397 44398 if test "x$OBJDUMP" = x; then 44399 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44400 fi 44401 else 44402 # Otherwise we believe it is a complete path. Use it as it is. 44403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 44404 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 44405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44406 $as_echo_n "checking for OBJDUMP... " >&6; } 44407 if test ! -x "$tool_specified"; then 44408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44409 $as_echo "not found" >&6; } 44410 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 44411 fi 44412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44413 $as_echo "$tool_specified" >&6; } 44414 fi 44415 fi 44416 fi 44417 44418 fi 44419 44420 44421 if test "x$OBJDUMP" != x; then 44422 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 44423 # bails if argument is missing. 44424 44425 # Only process if variable expands to non-empty 44426 44427 if test "x$OBJDUMP" != x; then 44428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44429 44430 # First separate the path from the arguments. This will split at the first 44431 # space. 44432 complete="$OBJDUMP" 44433 path="${complete%% *}" 44434 tmp="$complete EOL" 44435 arguments="${tmp#* }" 44436 44437 # Input might be given as Windows format, start by converting to 44438 # unix format. 44439 new_path=`$CYGPATH -u "$path"` 44440 44441 # Now try to locate executable using which 44442 new_path=`$WHICH "$new_path" 2> /dev/null` 44443 # bat and cmd files are not always considered executable in cygwin causing which 44444 # to not find them 44445 if test "x$new_path" = x \ 44446 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44447 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44448 new_path=`$CYGPATH -u "$path"` 44449 fi 44450 if test "x$new_path" = x; then 44451 # Oops. Which didn't find the executable. 44452 # The splitting of arguments from the executable at a space might have been incorrect, 44453 # since paths with space are more likely in Windows. Give it another try with the whole 44454 # argument. 44455 path="$complete" 44456 arguments="EOL" 44457 new_path=`$CYGPATH -u "$path"` 44458 new_path=`$WHICH "$new_path" 2> /dev/null` 44459 # bat and cmd files are not always considered executable in cygwin causing which 44460 # to not find them 44461 if test "x$new_path" = x \ 44462 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44463 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44464 new_path=`$CYGPATH -u "$path"` 44465 fi 44466 if test "x$new_path" = x; then 44467 # It's still not found. Now this is an unrecoverable error. 44468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44469 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44470 has_space=`$ECHO "$complete" | $GREP " "` 44471 if test "x$has_space" != x; then 44472 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44474 fi 44475 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44476 fi 44477 fi 44478 44479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44482 # "foo.exe" is OK but "foo" is an error. 44483 # 44484 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44485 # It is also a way to make sure we got the proper file name for the real test later on. 44486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44487 if test "x$test_shortpath" = x; then 44488 # Short path failed, file does not exist as specified. 44489 # Try adding .exe or .cmd 44490 if test -f "${new_path}.exe"; then 44491 input_to_shortpath="${new_path}.exe" 44492 elif test -f "${new_path}.cmd"; then 44493 input_to_shortpath="${new_path}.cmd" 44494 else 44495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 44496 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 44497 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44498 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44499 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44500 fi 44501 else 44502 input_to_shortpath="$new_path" 44503 fi 44504 44505 # Call helper function which possibly converts this using DOS-style short mode. 44506 # If so, the updated path is stored in $new_path. 44507 new_path="$input_to_shortpath" 44508 44509 input_path="$input_to_shortpath" 44510 # Check if we need to convert this using DOS-style short mode. If the path 44511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44512 # take no chances and rewrite it. 44513 # Note: m4 eats our [], so we need to use [ and ] instead. 44514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44515 if test "x$has_forbidden_chars" != x; then 44516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44517 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44518 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44519 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44520 # Going to short mode and back again did indeed matter. Since short mode is 44521 # case insensitive, let's make it lowercase to improve readability. 44522 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44523 # Now convert it back to Unix-style (cygpath) 44524 input_path=`$CYGPATH -u "$shortmode_path"` 44525 new_path="$input_path" 44526 fi 44527 fi 44528 44529 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44530 if test "x$test_cygdrive_prefix" = x; then 44531 # As a simple fix, exclude /usr/bin since it's not a real path. 44532 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44533 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44534 # a path prefixed by /cygdrive for fixpath to work. 44535 new_path="$CYGWIN_ROOT_PATH$input_path" 44536 fi 44537 fi 44538 44539 # remove trailing .exe if any 44540 new_path="${new_path/%.exe/}" 44541 44542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44543 44544 # First separate the path from the arguments. This will split at the first 44545 # space. 44546 complete="$OBJDUMP" 44547 path="${complete%% *}" 44548 tmp="$complete EOL" 44549 arguments="${tmp#* }" 44550 44551 # Input might be given as Windows format, start by converting to 44552 # unix format. 44553 new_path="$path" 44554 44555 windows_path="$new_path" 44556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44557 unix_path=`$CYGPATH -u "$windows_path"` 44558 new_path="$unix_path" 44559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44561 new_path="$unix_path" 44562 fi 44563 44564 44565 # Now try to locate executable using which 44566 new_path=`$WHICH "$new_path" 2> /dev/null` 44567 44568 if test "x$new_path" = x; then 44569 # Oops. Which didn't find the executable. 44570 # The splitting of arguments from the executable at a space might have been incorrect, 44571 # since paths with space are more likely in Windows. Give it another try with the whole 44572 # argument. 44573 path="$complete" 44574 arguments="EOL" 44575 new_path="$path" 44576 44577 windows_path="$new_path" 44578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44579 unix_path=`$CYGPATH -u "$windows_path"` 44580 new_path="$unix_path" 44581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44583 new_path="$unix_path" 44584 fi 44585 44586 44587 new_path=`$WHICH "$new_path" 2> /dev/null` 44588 # bat and cmd files are not always considered executable in MSYS causing which 44589 # to not find them 44590 if test "x$new_path" = x \ 44591 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44592 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44593 new_path="$path" 44594 44595 windows_path="$new_path" 44596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44597 unix_path=`$CYGPATH -u "$windows_path"` 44598 new_path="$unix_path" 44599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44601 new_path="$unix_path" 44602 fi 44603 44604 fi 44605 44606 if test "x$new_path" = x; then 44607 # It's still not found. Now this is an unrecoverable error. 44608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44609 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44610 has_space=`$ECHO "$complete" | $GREP " "` 44611 if test "x$has_space" != x; then 44612 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44614 fi 44615 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44616 fi 44617 fi 44618 44619 # Now new_path has a complete unix path to the binary 44620 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44621 # Keep paths in /bin as-is, but remove trailing .exe if any 44622 new_path="${new_path/%.exe/}" 44623 # Do not save /bin paths to all_fixpath_prefixes! 44624 else 44625 # Not in mixed or Windows style, start by that. 44626 new_path=`cmd //c echo $new_path` 44627 44628 input_path="$new_path" 44629 # Check if we need to convert this using DOS-style short mode. If the path 44630 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44631 # take no chances and rewrite it. 44632 # Note: m4 eats our [], so we need to use [ and ] instead. 44633 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44634 if test "x$has_forbidden_chars" != x; then 44635 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44636 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44637 fi 44638 44639 # Output is in $new_path 44640 44641 windows_path="$new_path" 44642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44643 unix_path=`$CYGPATH -u "$windows_path"` 44644 new_path="$unix_path" 44645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44647 new_path="$unix_path" 44648 fi 44649 44650 # remove trailing .exe if any 44651 new_path="${new_path/%.exe/}" 44652 44653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44655 fi 44656 44657 else 44658 # We're on a unix platform. Hooray! :) 44659 # First separate the path from the arguments. This will split at the first 44660 # space. 44661 complete="$OBJDUMP" 44662 path="${complete%% *}" 44663 tmp="$complete EOL" 44664 arguments="${tmp#* }" 44665 44666 # Cannot rely on the command "which" here since it doesn't always work. 44667 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44668 if test -z "$is_absolute_path"; then 44669 # Path to executable is not absolute. Find it. 44670 IFS_save="$IFS" 44671 IFS=: 44672 for p in $PATH; do 44673 if test -f "$p/$path" && test -x "$p/$path"; then 44674 new_path="$p/$path" 44675 break 44676 fi 44677 done 44678 IFS="$IFS_save" 44679 else 44680 # This is an absolute path, we can use it without further modifications. 44681 new_path="$path" 44682 fi 44683 44684 if test "x$new_path" = x; then 44685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44686 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44687 has_space=`$ECHO "$complete" | $GREP " "` 44688 if test "x$has_space" != x; then 44689 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44690 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44691 fi 44692 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44693 fi 44694 fi 44695 44696 # Now join together the path and the arguments once again 44697 if test "x$arguments" != xEOL; then 44698 new_complete="$new_path ${arguments% *}" 44699 else 44700 new_complete="$new_path" 44701 fi 44702 44703 if test "x$complete" != "x$new_complete"; then 44704 OBJDUMP="$new_complete" 44705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 44706 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 44707 fi 44708 fi 44709 44710 fi 44711 44712 44713 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 44714 # to remain in place. Otherwise the compiler will not work in some siutations 44715 # in later configure checks. 44716 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 44717 PATH="$OLD_PATH" 44718 fi 44719 44720 # Restore the flags to the user specified values. 44721 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 44722 CFLAGS="$ORG_CFLAGS" 44723 CXXFLAGS="$ORG_CXXFLAGS" 44724 44725 44726 # Finally do some processing after the detection phase 44727 44728 if test "x$COMPILE_TYPE" = "xcross"; then 44729 # Now we need to find a C/C++ compiler that can build executables for the 44730 # build platform. We can't use the AC_PROG_CC macro, since it can only be 44731 # used once. Also, we need to do this without adding a tools dir to the 44732 # path, otherwise we might pick up cross-compilers which don't use standard 44733 # naming. 44734 44735 OLDPATH="$PATH" 44736 44737 44738 # Check whether --with-build-devkit was given. 44739 if test "${with_build_devkit+set}" = set; then : 44740 withval=$with_build_devkit; 44741 fi 44742 44743 if test "x$with_build_devkit" = "xyes"; then 44744 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 44745 elif test -n "$with_build_devkit"; then 44746 if test ! -d "$with_build_devkit"; then 44747 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 44748 else 44749 44750 # Only process if variable expands to non-empty 44751 44752 if test "x$with_build_devkit" != x; then 44753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44754 44755 # Input might be given as Windows format, start by converting to 44756 # unix format. 44757 path="$with_build_devkit" 44758 new_path=`$CYGPATH -u "$path"` 44759 44760 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44761 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44762 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44763 # "foo.exe" is OK but "foo" is an error. 44764 # 44765 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44766 # It is also a way to make sure we got the proper file name for the real test later on. 44767 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44768 if test "x$test_shortpath" = x; then 44769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44770 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44771 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 44772 fi 44773 44774 # Call helper function which possibly converts this using DOS-style short mode. 44775 # If so, the updated path is stored in $new_path. 44776 44777 input_path="$new_path" 44778 # Check if we need to convert this using DOS-style short mode. If the path 44779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44780 # take no chances and rewrite it. 44781 # Note: m4 eats our [], so we need to use [ and ] instead. 44782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44783 if test "x$has_forbidden_chars" != x; then 44784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44788 # Going to short mode and back again did indeed matter. Since short mode is 44789 # case insensitive, let's make it lowercase to improve readability. 44790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44791 # Now convert it back to Unix-style (cygpath) 44792 input_path=`$CYGPATH -u "$shortmode_path"` 44793 new_path="$input_path" 44794 fi 44795 fi 44796 44797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44798 if test "x$test_cygdrive_prefix" = x; then 44799 # As a simple fix, exclude /usr/bin since it's not a real path. 44800 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44802 # a path prefixed by /cygdrive for fixpath to work. 44803 new_path="$CYGWIN_ROOT_PATH$input_path" 44804 fi 44805 fi 44806 44807 44808 if test "x$path" != "x$new_path"; then 44809 with_build_devkit="$new_path" 44810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44811 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44812 fi 44813 44814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44815 44816 path="$with_build_devkit" 44817 has_colon=`$ECHO $path | $GREP ^.:` 44818 new_path="$path" 44819 if test "x$has_colon" = x; then 44820 # Not in mixed or Windows style, start by that. 44821 new_path=`cmd //c echo $path` 44822 fi 44823 44824 44825 input_path="$new_path" 44826 # Check if we need to convert this using DOS-style short mode. If the path 44827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44828 # take no chances and rewrite it. 44829 # Note: m4 eats our [], so we need to use [ and ] instead. 44830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44831 if test "x$has_forbidden_chars" != x; then 44832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44834 fi 44835 44836 44837 windows_path="$new_path" 44838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44839 unix_path=`$CYGPATH -u "$windows_path"` 44840 new_path="$unix_path" 44841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44843 new_path="$unix_path" 44844 fi 44845 44846 if test "x$path" != "x$new_path"; then 44847 with_build_devkit="$new_path" 44848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44849 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44850 fi 44851 44852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44854 44855 else 44856 # We're on a unix platform. Hooray! :) 44857 path="$with_build_devkit" 44858 has_space=`$ECHO "$path" | $GREP " "` 44859 if test "x$has_space" != x; then 44860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44861 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44863 fi 44864 44865 # Use eval to expand a potential ~ 44866 eval path="$path" 44867 if test ! -f "$path" && test ! -d "$path"; then 44868 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 44869 fi 44870 44871 if test -d "$path"; then 44872 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 44873 else 44874 dir="`$DIRNAME "$path"`" 44875 base="`$BASENAME "$path"`" 44876 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 44877 fi 44878 fi 44879 fi 44880 44881 BUILD_DEVKIT_ROOT="$with_build_devkit" 44882 # Check for a meta data info file in the root of the devkit 44883 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 44884 # Process devkit.info so that existing devkit variables are not 44885 # modified by this 44886 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 44887 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 44888 -e "s/\$host/\$build/g" \ 44889 $BUILD_DEVKIT_ROOT/devkit.info \ 44890 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44891 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44892 # This potentially sets the following: 44893 # A descriptive name of the devkit 44894 44895 if test "x$BUILD_DEVKIT_NAME" = x; then 44896 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 44897 fi 44898 44899 # Corresponds to --with-extra-path 44900 44901 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 44902 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 44903 fi 44904 44905 # Corresponds to --with-toolchain-path 44906 44907 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44908 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 44909 fi 44910 44911 # Corresponds to --with-sysroot 44912 44913 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 44914 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 44915 fi 44916 44917 # Skip the Window specific parts 44918 fi 44919 44920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 44921 $as_echo_n "checking for build platform devkit... " >&6; } 44922 if test "x$BUILD_DEVKIT_NAME" != x; then 44923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 44924 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 44925 else 44926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 44927 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 44928 fi 44929 44930 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 44931 44932 if test "x$BUILD_SYSROOT" != "x"; then 44933 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 44934 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44935 # Solaris Studio does not have a concept of sysroot. Instead we must 44936 # make sure the default include and lib dirs are appended to each 44937 # compile and link command line. Must also add -I-xbuiltin to enable 44938 # inlining of system functions and intrinsics. 44939 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 44940 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 44941 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 44942 fi 44943 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 44944 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 44945 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 44946 elif test "x$TOOLCHAIN_TYPE" = xclang; then 44947 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 44948 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 44949 fi 44950 # The global CFLAGS and LDFLAGS variables need these for configure to function 44951 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44952 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 44953 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44954 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44955 fi 44956 44957 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 44958 # We also need -iframework<path>/System/Library/Frameworks 44959 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44960 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44961 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44962 # set this here so it doesn't have to be peppered throughout the forest 44963 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44964 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44965 fi 44966 44967 44968 44969 44970 44971 # Fallback default of just /bin if DEVKIT_PATH is not defined 44972 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44973 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44974 fi 44975 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44976 fi 44977 fi 44978 44979 # FIXME: we should list the discovered compilers as an exclude pattern! 44980 # If we do that, we can do this detection before POST_DETECTION, and still 44981 # find the build compilers in the tools dir, if needed. 44982 44983 44984 44985 # Publish this variable in the help. 44986 44987 44988 if [ -z "${BUILD_CC+x}" ]; then 44989 # The variable is not set by user, try to locate tool using the code snippet 44990 for ac_prog in cl cc gcc 44991 do 44992 # Extract the first word of "$ac_prog", so it can be a program name with args. 44993 set dummy $ac_prog; ac_word=$2 44994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44995 $as_echo_n "checking for $ac_word... " >&6; } 44996 if ${ac_cv_path_BUILD_CC+:} false; then : 44997 $as_echo_n "(cached) " >&6 44998 else 44999 case $BUILD_CC in 45000 [\\/]* | ?:[\\/]*) 45001 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45002 ;; 45003 *) 45004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45005 for as_dir in $PATH 45006 do 45007 IFS=$as_save_IFS 45008 test -z "$as_dir" && as_dir=. 45009 for ac_exec_ext in '' $ac_executable_extensions; do 45010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45011 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45013 break 2 45014 fi 45015 done 45016 done 45017 IFS=$as_save_IFS 45018 45019 ;; 45020 esac 45021 fi 45022 BUILD_CC=$ac_cv_path_BUILD_CC 45023 if test -n "$BUILD_CC"; then 45024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45025 $as_echo "$BUILD_CC" >&6; } 45026 else 45027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45028 $as_echo "no" >&6; } 45029 fi 45030 45031 45032 test -n "$BUILD_CC" && break 45033 done 45034 45035 else 45036 # The variable is set, but is it from the command line or the environment? 45037 45038 # Try to remove the string !BUILD_CC! from our list. 45039 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45040 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45041 # If it failed, the variable was not from the command line. Ignore it, 45042 # but warn the user (except for BASH, which is always set by the calling BASH). 45043 if test "xBUILD_CC" != xBASH; then 45044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45045 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45046 fi 45047 # Try to locate tool using the code snippet 45048 for ac_prog in cl cc gcc 45049 do 45050 # Extract the first word of "$ac_prog", so it can be a program name with args. 45051 set dummy $ac_prog; ac_word=$2 45052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45053 $as_echo_n "checking for $ac_word... " >&6; } 45054 if ${ac_cv_path_BUILD_CC+:} false; then : 45055 $as_echo_n "(cached) " >&6 45056 else 45057 case $BUILD_CC in 45058 [\\/]* | ?:[\\/]*) 45059 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45060 ;; 45061 *) 45062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45063 for as_dir in $PATH 45064 do 45065 IFS=$as_save_IFS 45066 test -z "$as_dir" && as_dir=. 45067 for ac_exec_ext in '' $ac_executable_extensions; do 45068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45069 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45071 break 2 45072 fi 45073 done 45074 done 45075 IFS=$as_save_IFS 45076 45077 ;; 45078 esac 45079 fi 45080 BUILD_CC=$ac_cv_path_BUILD_CC 45081 if test -n "$BUILD_CC"; then 45082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45083 $as_echo "$BUILD_CC" >&6; } 45084 else 45085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45086 $as_echo "no" >&6; } 45087 fi 45088 45089 45090 test -n "$BUILD_CC" && break 45091 done 45092 45093 else 45094 # If it succeeded, then it was overridden by the user. We will use it 45095 # for the tool. 45096 45097 # First remove it from the list of overridden variables, so we can test 45098 # for unknown variables in the end. 45099 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45100 45101 # Check if we try to supply an empty value 45102 if test "x$BUILD_CC" = x; then 45103 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 45104 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 45105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45106 $as_echo_n "checking for BUILD_CC... " >&6; } 45107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45108 $as_echo "disabled" >&6; } 45109 else 45110 # Check if the provided tool contains a complete path. 45111 tool_specified="$BUILD_CC" 45112 tool_basename="${tool_specified##*/}" 45113 if test "x$tool_basename" = "x$tool_specified"; then 45114 # A command without a complete path is provided, search $PATH. 45115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 45116 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 45117 # Extract the first word of "$tool_basename", so it can be a program name with args. 45118 set dummy $tool_basename; ac_word=$2 45119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45120 $as_echo_n "checking for $ac_word... " >&6; } 45121 if ${ac_cv_path_BUILD_CC+:} false; then : 45122 $as_echo_n "(cached) " >&6 45123 else 45124 case $BUILD_CC in 45125 [\\/]* | ?:[\\/]*) 45126 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45127 ;; 45128 *) 45129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45130 for as_dir in $PATH 45131 do 45132 IFS=$as_save_IFS 45133 test -z "$as_dir" && as_dir=. 45134 for ac_exec_ext in '' $ac_executable_extensions; do 45135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45136 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45138 break 2 45139 fi 45140 done 45141 done 45142 IFS=$as_save_IFS 45143 45144 ;; 45145 esac 45146 fi 45147 BUILD_CC=$ac_cv_path_BUILD_CC 45148 if test -n "$BUILD_CC"; then 45149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45150 $as_echo "$BUILD_CC" >&6; } 45151 else 45152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45153 $as_echo "no" >&6; } 45154 fi 45155 45156 45157 if test "x$BUILD_CC" = x; then 45158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45159 fi 45160 else 45161 # Otherwise we believe it is a complete path. Use it as it is. 45162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 45163 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 45164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45165 $as_echo_n "checking for BUILD_CC... " >&6; } 45166 if test ! -x "$tool_specified"; then 45167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45168 $as_echo "not found" >&6; } 45169 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 45170 fi 45171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45172 $as_echo "$tool_specified" >&6; } 45173 fi 45174 fi 45175 fi 45176 45177 fi 45178 45179 45180 45181 if test "x$BUILD_CC" = x; then 45182 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 45183 fi 45184 45185 45186 45187 # Only process if variable expands to non-empty 45188 45189 if test "x$BUILD_CC" != x; then 45190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45191 45192 # First separate the path from the arguments. This will split at the first 45193 # space. 45194 complete="$BUILD_CC" 45195 path="${complete%% *}" 45196 tmp="$complete EOL" 45197 arguments="${tmp#* }" 45198 45199 # Input might be given as Windows format, start by converting to 45200 # unix format. 45201 new_path=`$CYGPATH -u "$path"` 45202 45203 # Now try to locate executable using which 45204 new_path=`$WHICH "$new_path" 2> /dev/null` 45205 # bat and cmd files are not always considered executable in cygwin causing which 45206 # to not find them 45207 if test "x$new_path" = x \ 45208 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45209 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45210 new_path=`$CYGPATH -u "$path"` 45211 fi 45212 if test "x$new_path" = x; then 45213 # Oops. Which didn't find the executable. 45214 # The splitting of arguments from the executable at a space might have been incorrect, 45215 # since paths with space are more likely in Windows. Give it another try with the whole 45216 # argument. 45217 path="$complete" 45218 arguments="EOL" 45219 new_path=`$CYGPATH -u "$path"` 45220 new_path=`$WHICH "$new_path" 2> /dev/null` 45221 # bat and cmd files are not always considered executable in cygwin causing which 45222 # to not find them 45223 if test "x$new_path" = x \ 45224 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45225 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45226 new_path=`$CYGPATH -u "$path"` 45227 fi 45228 if test "x$new_path" = x; then 45229 # It's still not found. Now this is an unrecoverable error. 45230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45231 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45232 has_space=`$ECHO "$complete" | $GREP " "` 45233 if test "x$has_space" != x; then 45234 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45235 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45236 fi 45237 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45238 fi 45239 fi 45240 45241 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45242 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45243 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45244 # "foo.exe" is OK but "foo" is an error. 45245 # 45246 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45247 # It is also a way to make sure we got the proper file name for the real test later on. 45248 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45249 if test "x$test_shortpath" = x; then 45250 # Short path failed, file does not exist as specified. 45251 # Try adding .exe or .cmd 45252 if test -f "${new_path}.exe"; then 45253 input_to_shortpath="${new_path}.exe" 45254 elif test -f "${new_path}.cmd"; then 45255 input_to_shortpath="${new_path}.cmd" 45256 else 45257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 45258 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 45259 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45260 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45261 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45262 fi 45263 else 45264 input_to_shortpath="$new_path" 45265 fi 45266 45267 # Call helper function which possibly converts this using DOS-style short mode. 45268 # If so, the updated path is stored in $new_path. 45269 new_path="$input_to_shortpath" 45270 45271 input_path="$input_to_shortpath" 45272 # Check if we need to convert this using DOS-style short mode. If the path 45273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45274 # take no chances and rewrite it. 45275 # Note: m4 eats our [], so we need to use [ and ] instead. 45276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45277 if test "x$has_forbidden_chars" != x; then 45278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45279 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45280 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45281 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45282 # Going to short mode and back again did indeed matter. Since short mode is 45283 # case insensitive, let's make it lowercase to improve readability. 45284 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45285 # Now convert it back to Unix-style (cygpath) 45286 input_path=`$CYGPATH -u "$shortmode_path"` 45287 new_path="$input_path" 45288 fi 45289 fi 45290 45291 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45292 if test "x$test_cygdrive_prefix" = x; then 45293 # As a simple fix, exclude /usr/bin since it's not a real path. 45294 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45295 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45296 # a path prefixed by /cygdrive for fixpath to work. 45297 new_path="$CYGWIN_ROOT_PATH$input_path" 45298 fi 45299 fi 45300 45301 # remove trailing .exe if any 45302 new_path="${new_path/%.exe/}" 45303 45304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45305 45306 # First separate the path from the arguments. This will split at the first 45307 # space. 45308 complete="$BUILD_CC" 45309 path="${complete%% *}" 45310 tmp="$complete EOL" 45311 arguments="${tmp#* }" 45312 45313 # Input might be given as Windows format, start by converting to 45314 # unix format. 45315 new_path="$path" 45316 45317 windows_path="$new_path" 45318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45319 unix_path=`$CYGPATH -u "$windows_path"` 45320 new_path="$unix_path" 45321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45323 new_path="$unix_path" 45324 fi 45325 45326 45327 # Now try to locate executable using which 45328 new_path=`$WHICH "$new_path" 2> /dev/null` 45329 45330 if test "x$new_path" = x; then 45331 # Oops. Which didn't find the executable. 45332 # The splitting of arguments from the executable at a space might have been incorrect, 45333 # since paths with space are more likely in Windows. Give it another try with the whole 45334 # argument. 45335 path="$complete" 45336 arguments="EOL" 45337 new_path="$path" 45338 45339 windows_path="$new_path" 45340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45341 unix_path=`$CYGPATH -u "$windows_path"` 45342 new_path="$unix_path" 45343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45345 new_path="$unix_path" 45346 fi 45347 45348 45349 new_path=`$WHICH "$new_path" 2> /dev/null` 45350 # bat and cmd files are not always considered executable in MSYS causing which 45351 # to not find them 45352 if test "x$new_path" = x \ 45353 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45354 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45355 new_path="$path" 45356 45357 windows_path="$new_path" 45358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45359 unix_path=`$CYGPATH -u "$windows_path"` 45360 new_path="$unix_path" 45361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45363 new_path="$unix_path" 45364 fi 45365 45366 fi 45367 45368 if test "x$new_path" = x; then 45369 # It's still not found. Now this is an unrecoverable error. 45370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45371 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45372 has_space=`$ECHO "$complete" | $GREP " "` 45373 if test "x$has_space" != x; then 45374 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45375 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45376 fi 45377 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45378 fi 45379 fi 45380 45381 # Now new_path has a complete unix path to the binary 45382 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45383 # Keep paths in /bin as-is, but remove trailing .exe if any 45384 new_path="${new_path/%.exe/}" 45385 # Do not save /bin paths to all_fixpath_prefixes! 45386 else 45387 # Not in mixed or Windows style, start by that. 45388 new_path=`cmd //c echo $new_path` 45389 45390 input_path="$new_path" 45391 # Check if we need to convert this using DOS-style short mode. If the path 45392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45393 # take no chances and rewrite it. 45394 # Note: m4 eats our [], so we need to use [ and ] instead. 45395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45396 if test "x$has_forbidden_chars" != x; then 45397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45398 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45399 fi 45400 45401 # Output is in $new_path 45402 45403 windows_path="$new_path" 45404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45405 unix_path=`$CYGPATH -u "$windows_path"` 45406 new_path="$unix_path" 45407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45408 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45409 new_path="$unix_path" 45410 fi 45411 45412 # remove trailing .exe if any 45413 new_path="${new_path/%.exe/}" 45414 45415 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45416 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45417 fi 45418 45419 else 45420 # We're on a unix platform. Hooray! :) 45421 # First separate the path from the arguments. This will split at the first 45422 # space. 45423 complete="$BUILD_CC" 45424 path="${complete%% *}" 45425 tmp="$complete EOL" 45426 arguments="${tmp#* }" 45427 45428 # Cannot rely on the command "which" here since it doesn't always work. 45429 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45430 if test -z "$is_absolute_path"; then 45431 # Path to executable is not absolute. Find it. 45432 IFS_save="$IFS" 45433 IFS=: 45434 for p in $PATH; do 45435 if test -f "$p/$path" && test -x "$p/$path"; then 45436 new_path="$p/$path" 45437 break 45438 fi 45439 done 45440 IFS="$IFS_save" 45441 else 45442 # This is an absolute path, we can use it without further modifications. 45443 new_path="$path" 45444 fi 45445 45446 if test "x$new_path" = x; then 45447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45448 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45449 has_space=`$ECHO "$complete" | $GREP " "` 45450 if test "x$has_space" != x; then 45451 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45452 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45453 fi 45454 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45455 fi 45456 fi 45457 45458 # Now join together the path and the arguments once again 45459 if test "x$arguments" != xEOL; then 45460 new_complete="$new_path ${arguments% *}" 45461 else 45462 new_complete="$new_path" 45463 fi 45464 45465 if test "x$complete" != "x$new_complete"; then 45466 BUILD_CC="$new_complete" 45467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 45468 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 45469 fi 45470 fi 45471 45472 45473 45474 45475 # Publish this variable in the help. 45476 45477 45478 if [ -z "${BUILD_CXX+x}" ]; then 45479 # The variable is not set by user, try to locate tool using the code snippet 45480 for ac_prog in cl CC g++ 45481 do 45482 # Extract the first word of "$ac_prog", so it can be a program name with args. 45483 set dummy $ac_prog; ac_word=$2 45484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45485 $as_echo_n "checking for $ac_word... " >&6; } 45486 if ${ac_cv_path_BUILD_CXX+:} false; then : 45487 $as_echo_n "(cached) " >&6 45488 else 45489 case $BUILD_CXX in 45490 [\\/]* | ?:[\\/]*) 45491 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45492 ;; 45493 *) 45494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45495 for as_dir in $PATH 45496 do 45497 IFS=$as_save_IFS 45498 test -z "$as_dir" && as_dir=. 45499 for ac_exec_ext in '' $ac_executable_extensions; do 45500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45501 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45503 break 2 45504 fi 45505 done 45506 done 45507 IFS=$as_save_IFS 45508 45509 ;; 45510 esac 45511 fi 45512 BUILD_CXX=$ac_cv_path_BUILD_CXX 45513 if test -n "$BUILD_CXX"; then 45514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45515 $as_echo "$BUILD_CXX" >&6; } 45516 else 45517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45518 $as_echo "no" >&6; } 45519 fi 45520 45521 45522 test -n "$BUILD_CXX" && break 45523 done 45524 45525 else 45526 # The variable is set, but is it from the command line or the environment? 45527 45528 # Try to remove the string !BUILD_CXX! from our list. 45529 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 45530 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45531 # If it failed, the variable was not from the command line. Ignore it, 45532 # but warn the user (except for BASH, which is always set by the calling BASH). 45533 if test "xBUILD_CXX" != xBASH; then 45534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 45535 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 45536 fi 45537 # Try to locate tool using the code snippet 45538 for ac_prog in cl CC g++ 45539 do 45540 # Extract the first word of "$ac_prog", so it can be a program name with args. 45541 set dummy $ac_prog; ac_word=$2 45542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45543 $as_echo_n "checking for $ac_word... " >&6; } 45544 if ${ac_cv_path_BUILD_CXX+:} false; then : 45545 $as_echo_n "(cached) " >&6 45546 else 45547 case $BUILD_CXX in 45548 [\\/]* | ?:[\\/]*) 45549 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45550 ;; 45551 *) 45552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45553 for as_dir in $PATH 45554 do 45555 IFS=$as_save_IFS 45556 test -z "$as_dir" && as_dir=. 45557 for ac_exec_ext in '' $ac_executable_extensions; do 45558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45559 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45561 break 2 45562 fi 45563 done 45564 done 45565 IFS=$as_save_IFS 45566 45567 ;; 45568 esac 45569 fi 45570 BUILD_CXX=$ac_cv_path_BUILD_CXX 45571 if test -n "$BUILD_CXX"; then 45572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45573 $as_echo "$BUILD_CXX" >&6; } 45574 else 45575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45576 $as_echo "no" >&6; } 45577 fi 45578 45579 45580 test -n "$BUILD_CXX" && break 45581 done 45582 45583 else 45584 # If it succeeded, then it was overridden by the user. We will use it 45585 # for the tool. 45586 45587 # First remove it from the list of overridden variables, so we can test 45588 # for unknown variables in the end. 45589 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45590 45591 # Check if we try to supply an empty value 45592 if test "x$BUILD_CXX" = x; then 45593 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 45594 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 45595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45596 $as_echo_n "checking for BUILD_CXX... " >&6; } 45597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45598 $as_echo "disabled" >&6; } 45599 else 45600 # Check if the provided tool contains a complete path. 45601 tool_specified="$BUILD_CXX" 45602 tool_basename="${tool_specified##*/}" 45603 if test "x$tool_basename" = "x$tool_specified"; then 45604 # A command without a complete path is provided, search $PATH. 45605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 45606 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 45607 # Extract the first word of "$tool_basename", so it can be a program name with args. 45608 set dummy $tool_basename; ac_word=$2 45609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45610 $as_echo_n "checking for $ac_word... " >&6; } 45611 if ${ac_cv_path_BUILD_CXX+:} false; then : 45612 $as_echo_n "(cached) " >&6 45613 else 45614 case $BUILD_CXX in 45615 [\\/]* | ?:[\\/]*) 45616 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45617 ;; 45618 *) 45619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45620 for as_dir in $PATH 45621 do 45622 IFS=$as_save_IFS 45623 test -z "$as_dir" && as_dir=. 45624 for ac_exec_ext in '' $ac_executable_extensions; do 45625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45626 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45628 break 2 45629 fi 45630 done 45631 done 45632 IFS=$as_save_IFS 45633 45634 ;; 45635 esac 45636 fi 45637 BUILD_CXX=$ac_cv_path_BUILD_CXX 45638 if test -n "$BUILD_CXX"; then 45639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45640 $as_echo "$BUILD_CXX" >&6; } 45641 else 45642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45643 $as_echo "no" >&6; } 45644 fi 45645 45646 45647 if test "x$BUILD_CXX" = x; then 45648 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45649 fi 45650 else 45651 # Otherwise we believe it is a complete path. Use it as it is. 45652 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 45653 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 45654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45655 $as_echo_n "checking for BUILD_CXX... " >&6; } 45656 if test ! -x "$tool_specified"; then 45657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45658 $as_echo "not found" >&6; } 45659 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 45660 fi 45661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45662 $as_echo "$tool_specified" >&6; } 45663 fi 45664 fi 45665 fi 45666 45667 fi 45668 45669 45670 45671 if test "x$BUILD_CXX" = x; then 45672 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 45673 fi 45674 45675 45676 45677 # Only process if variable expands to non-empty 45678 45679 if test "x$BUILD_CXX" != x; then 45680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45681 45682 # First separate the path from the arguments. This will split at the first 45683 # space. 45684 complete="$BUILD_CXX" 45685 path="${complete%% *}" 45686 tmp="$complete EOL" 45687 arguments="${tmp#* }" 45688 45689 # Input might be given as Windows format, start by converting to 45690 # unix format. 45691 new_path=`$CYGPATH -u "$path"` 45692 45693 # Now try to locate executable using which 45694 new_path=`$WHICH "$new_path" 2> /dev/null` 45695 # bat and cmd files are not always considered executable in cygwin causing which 45696 # to not find them 45697 if test "x$new_path" = x \ 45698 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45699 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45700 new_path=`$CYGPATH -u "$path"` 45701 fi 45702 if test "x$new_path" = x; then 45703 # Oops. Which didn't find the executable. 45704 # The splitting of arguments from the executable at a space might have been incorrect, 45705 # since paths with space are more likely in Windows. Give it another try with the whole 45706 # argument. 45707 path="$complete" 45708 arguments="EOL" 45709 new_path=`$CYGPATH -u "$path"` 45710 new_path=`$WHICH "$new_path" 2> /dev/null` 45711 # bat and cmd files are not always considered executable in cygwin causing which 45712 # to not find them 45713 if test "x$new_path" = x \ 45714 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45715 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45716 new_path=`$CYGPATH -u "$path"` 45717 fi 45718 if test "x$new_path" = x; then 45719 # It's still not found. Now this is an unrecoverable error. 45720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45721 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45722 has_space=`$ECHO "$complete" | $GREP " "` 45723 if test "x$has_space" != x; then 45724 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45725 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45726 fi 45727 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45728 fi 45729 fi 45730 45731 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45732 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45733 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45734 # "foo.exe" is OK but "foo" is an error. 45735 # 45736 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45737 # It is also a way to make sure we got the proper file name for the real test later on. 45738 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45739 if test "x$test_shortpath" = x; then 45740 # Short path failed, file does not exist as specified. 45741 # Try adding .exe or .cmd 45742 if test -f "${new_path}.exe"; then 45743 input_to_shortpath="${new_path}.exe" 45744 elif test -f "${new_path}.cmd"; then 45745 input_to_shortpath="${new_path}.cmd" 45746 else 45747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 45748 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 45749 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45750 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45751 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45752 fi 45753 else 45754 input_to_shortpath="$new_path" 45755 fi 45756 45757 # Call helper function which possibly converts this using DOS-style short mode. 45758 # If so, the updated path is stored in $new_path. 45759 new_path="$input_to_shortpath" 45760 45761 input_path="$input_to_shortpath" 45762 # Check if we need to convert this using DOS-style short mode. If the path 45763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45764 # take no chances and rewrite it. 45765 # Note: m4 eats our [], so we need to use [ and ] instead. 45766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45767 if test "x$has_forbidden_chars" != x; then 45768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45769 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45770 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45771 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45772 # Going to short mode and back again did indeed matter. Since short mode is 45773 # case insensitive, let's make it lowercase to improve readability. 45774 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45775 # Now convert it back to Unix-style (cygpath) 45776 input_path=`$CYGPATH -u "$shortmode_path"` 45777 new_path="$input_path" 45778 fi 45779 fi 45780 45781 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45782 if test "x$test_cygdrive_prefix" = x; then 45783 # As a simple fix, exclude /usr/bin since it's not a real path. 45784 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45785 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45786 # a path prefixed by /cygdrive for fixpath to work. 45787 new_path="$CYGWIN_ROOT_PATH$input_path" 45788 fi 45789 fi 45790 45791 # remove trailing .exe if any 45792 new_path="${new_path/%.exe/}" 45793 45794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45795 45796 # First separate the path from the arguments. This will split at the first 45797 # space. 45798 complete="$BUILD_CXX" 45799 path="${complete%% *}" 45800 tmp="$complete EOL" 45801 arguments="${tmp#* }" 45802 45803 # Input might be given as Windows format, start by converting to 45804 # unix format. 45805 new_path="$path" 45806 45807 windows_path="$new_path" 45808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45809 unix_path=`$CYGPATH -u "$windows_path"` 45810 new_path="$unix_path" 45811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45813 new_path="$unix_path" 45814 fi 45815 45816 45817 # Now try to locate executable using which 45818 new_path=`$WHICH "$new_path" 2> /dev/null` 45819 45820 if test "x$new_path" = x; then 45821 # Oops. Which didn't find the executable. 45822 # The splitting of arguments from the executable at a space might have been incorrect, 45823 # since paths with space are more likely in Windows. Give it another try with the whole 45824 # argument. 45825 path="$complete" 45826 arguments="EOL" 45827 new_path="$path" 45828 45829 windows_path="$new_path" 45830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45831 unix_path=`$CYGPATH -u "$windows_path"` 45832 new_path="$unix_path" 45833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45835 new_path="$unix_path" 45836 fi 45837 45838 45839 new_path=`$WHICH "$new_path" 2> /dev/null` 45840 # bat and cmd files are not always considered executable in MSYS causing which 45841 # to not find them 45842 if test "x$new_path" = x \ 45843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45845 new_path="$path" 45846 45847 windows_path="$new_path" 45848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45849 unix_path=`$CYGPATH -u "$windows_path"` 45850 new_path="$unix_path" 45851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45853 new_path="$unix_path" 45854 fi 45855 45856 fi 45857 45858 if test "x$new_path" = x; then 45859 # It's still not found. Now this is an unrecoverable error. 45860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45861 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45862 has_space=`$ECHO "$complete" | $GREP " "` 45863 if test "x$has_space" != x; then 45864 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45865 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45866 fi 45867 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45868 fi 45869 fi 45870 45871 # Now new_path has a complete unix path to the binary 45872 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45873 # Keep paths in /bin as-is, but remove trailing .exe if any 45874 new_path="${new_path/%.exe/}" 45875 # Do not save /bin paths to all_fixpath_prefixes! 45876 else 45877 # Not in mixed or Windows style, start by that. 45878 new_path=`cmd //c echo $new_path` 45879 45880 input_path="$new_path" 45881 # Check if we need to convert this using DOS-style short mode. If the path 45882 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45883 # take no chances and rewrite it. 45884 # Note: m4 eats our [], so we need to use [ and ] instead. 45885 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45886 if test "x$has_forbidden_chars" != x; then 45887 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45888 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45889 fi 45890 45891 # Output is in $new_path 45892 45893 windows_path="$new_path" 45894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45895 unix_path=`$CYGPATH -u "$windows_path"` 45896 new_path="$unix_path" 45897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45899 new_path="$unix_path" 45900 fi 45901 45902 # remove trailing .exe if any 45903 new_path="${new_path/%.exe/}" 45904 45905 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45906 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45907 fi 45908 45909 else 45910 # We're on a unix platform. Hooray! :) 45911 # First separate the path from the arguments. This will split at the first 45912 # space. 45913 complete="$BUILD_CXX" 45914 path="${complete%% *}" 45915 tmp="$complete EOL" 45916 arguments="${tmp#* }" 45917 45918 # Cannot rely on the command "which" here since it doesn't always work. 45919 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45920 if test -z "$is_absolute_path"; then 45921 # Path to executable is not absolute. Find it. 45922 IFS_save="$IFS" 45923 IFS=: 45924 for p in $PATH; do 45925 if test -f "$p/$path" && test -x "$p/$path"; then 45926 new_path="$p/$path" 45927 break 45928 fi 45929 done 45930 IFS="$IFS_save" 45931 else 45932 # This is an absolute path, we can use it without further modifications. 45933 new_path="$path" 45934 fi 45935 45936 if test "x$new_path" = x; then 45937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45938 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45939 has_space=`$ECHO "$complete" | $GREP " "` 45940 if test "x$has_space" != x; then 45941 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45942 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45943 fi 45944 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45945 fi 45946 fi 45947 45948 # Now join together the path and the arguments once again 45949 if test "x$arguments" != xEOL; then 45950 new_complete="$new_path ${arguments% *}" 45951 else 45952 new_complete="$new_path" 45953 fi 45954 45955 if test "x$complete" != "x$new_complete"; then 45956 BUILD_CXX="$new_complete" 45957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45958 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45959 fi 45960 fi 45961 45962 45963 45964 # Publish this variable in the help. 45965 45966 45967 if [ -z "${BUILD_NM+x}" ]; then 45968 # The variable is not set by user, try to locate tool using the code snippet 45969 for ac_prog in nm gcc-nm 45970 do 45971 # Extract the first word of "$ac_prog", so it can be a program name with args. 45972 set dummy $ac_prog; ac_word=$2 45973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45974 $as_echo_n "checking for $ac_word... " >&6; } 45975 if ${ac_cv_path_BUILD_NM+:} false; then : 45976 $as_echo_n "(cached) " >&6 45977 else 45978 case $BUILD_NM in 45979 [\\/]* | ?:[\\/]*) 45980 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45981 ;; 45982 *) 45983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45984 for as_dir in $PATH 45985 do 45986 IFS=$as_save_IFS 45987 test -z "$as_dir" && as_dir=. 45988 for ac_exec_ext in '' $ac_executable_extensions; do 45989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45990 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45992 break 2 45993 fi 45994 done 45995 done 45996 IFS=$as_save_IFS 45997 45998 ;; 45999 esac 46000 fi 46001 BUILD_NM=$ac_cv_path_BUILD_NM 46002 if test -n "$BUILD_NM"; then 46003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46004 $as_echo "$BUILD_NM" >&6; } 46005 else 46006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46007 $as_echo "no" >&6; } 46008 fi 46009 46010 46011 test -n "$BUILD_NM" && break 46012 done 46013 46014 else 46015 # The variable is set, but is it from the command line or the environment? 46016 46017 # Try to remove the string !BUILD_NM! from our list. 46018 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46019 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46020 # If it failed, the variable was not from the command line. Ignore it, 46021 # but warn the user (except for BASH, which is always set by the calling BASH). 46022 if test "xBUILD_NM" != xBASH; then 46023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46024 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46025 fi 46026 # Try to locate tool using the code snippet 46027 for ac_prog in nm gcc-nm 46028 do 46029 # Extract the first word of "$ac_prog", so it can be a program name with args. 46030 set dummy $ac_prog; ac_word=$2 46031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46032 $as_echo_n "checking for $ac_word... " >&6; } 46033 if ${ac_cv_path_BUILD_NM+:} false; then : 46034 $as_echo_n "(cached) " >&6 46035 else 46036 case $BUILD_NM in 46037 [\\/]* | ?:[\\/]*) 46038 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46039 ;; 46040 *) 46041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46042 for as_dir in $PATH 46043 do 46044 IFS=$as_save_IFS 46045 test -z "$as_dir" && as_dir=. 46046 for ac_exec_ext in '' $ac_executable_extensions; do 46047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46048 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46050 break 2 46051 fi 46052 done 46053 done 46054 IFS=$as_save_IFS 46055 46056 ;; 46057 esac 46058 fi 46059 BUILD_NM=$ac_cv_path_BUILD_NM 46060 if test -n "$BUILD_NM"; then 46061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46062 $as_echo "$BUILD_NM" >&6; } 46063 else 46064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46065 $as_echo "no" >&6; } 46066 fi 46067 46068 46069 test -n "$BUILD_NM" && break 46070 done 46071 46072 else 46073 # If it succeeded, then it was overridden by the user. We will use it 46074 # for the tool. 46075 46076 # First remove it from the list of overridden variables, so we can test 46077 # for unknown variables in the end. 46078 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46079 46080 # Check if we try to supply an empty value 46081 if test "x$BUILD_NM" = x; then 46082 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 46083 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 46084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46085 $as_echo_n "checking for BUILD_NM... " >&6; } 46086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46087 $as_echo "disabled" >&6; } 46088 else 46089 # Check if the provided tool contains a complete path. 46090 tool_specified="$BUILD_NM" 46091 tool_basename="${tool_specified##*/}" 46092 if test "x$tool_basename" = "x$tool_specified"; then 46093 # A command without a complete path is provided, search $PATH. 46094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 46095 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 46096 # Extract the first word of "$tool_basename", so it can be a program name with args. 46097 set dummy $tool_basename; ac_word=$2 46098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46099 $as_echo_n "checking for $ac_word... " >&6; } 46100 if ${ac_cv_path_BUILD_NM+:} false; then : 46101 $as_echo_n "(cached) " >&6 46102 else 46103 case $BUILD_NM in 46104 [\\/]* | ?:[\\/]*) 46105 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46106 ;; 46107 *) 46108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46109 for as_dir in $PATH 46110 do 46111 IFS=$as_save_IFS 46112 test -z "$as_dir" && as_dir=. 46113 for ac_exec_ext in '' $ac_executable_extensions; do 46114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46115 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46117 break 2 46118 fi 46119 done 46120 done 46121 IFS=$as_save_IFS 46122 46123 ;; 46124 esac 46125 fi 46126 BUILD_NM=$ac_cv_path_BUILD_NM 46127 if test -n "$BUILD_NM"; then 46128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46129 $as_echo "$BUILD_NM" >&6; } 46130 else 46131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46132 $as_echo "no" >&6; } 46133 fi 46134 46135 46136 if test "x$BUILD_NM" = x; then 46137 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46138 fi 46139 else 46140 # Otherwise we believe it is a complete path. Use it as it is. 46141 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 46142 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 46143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46144 $as_echo_n "checking for BUILD_NM... " >&6; } 46145 if test ! -x "$tool_specified"; then 46146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46147 $as_echo "not found" >&6; } 46148 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 46149 fi 46150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46151 $as_echo "$tool_specified" >&6; } 46152 fi 46153 fi 46154 fi 46155 46156 fi 46157 46158 46159 46160 # Only process if variable expands to non-empty 46161 46162 if test "x$BUILD_NM" != x; then 46163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46164 46165 # First separate the path from the arguments. This will split at the first 46166 # space. 46167 complete="$BUILD_NM" 46168 path="${complete%% *}" 46169 tmp="$complete EOL" 46170 arguments="${tmp#* }" 46171 46172 # Input might be given as Windows format, start by converting to 46173 # unix format. 46174 new_path=`$CYGPATH -u "$path"` 46175 46176 # Now try to locate executable using which 46177 new_path=`$WHICH "$new_path" 2> /dev/null` 46178 # bat and cmd files are not always considered executable in cygwin causing which 46179 # to not find them 46180 if test "x$new_path" = x \ 46181 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46182 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46183 new_path=`$CYGPATH -u "$path"` 46184 fi 46185 if test "x$new_path" = x; then 46186 # Oops. Which didn't find the executable. 46187 # The splitting of arguments from the executable at a space might have been incorrect, 46188 # since paths with space are more likely in Windows. Give it another try with the whole 46189 # argument. 46190 path="$complete" 46191 arguments="EOL" 46192 new_path=`$CYGPATH -u "$path"` 46193 new_path=`$WHICH "$new_path" 2> /dev/null` 46194 # bat and cmd files are not always considered executable in cygwin causing which 46195 # to not find them 46196 if test "x$new_path" = x \ 46197 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46198 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46199 new_path=`$CYGPATH -u "$path"` 46200 fi 46201 if test "x$new_path" = x; then 46202 # It's still not found. Now this is an unrecoverable error. 46203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46204 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46205 has_space=`$ECHO "$complete" | $GREP " "` 46206 if test "x$has_space" != x; then 46207 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46208 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46209 fi 46210 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46211 fi 46212 fi 46213 46214 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46215 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46216 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46217 # "foo.exe" is OK but "foo" is an error. 46218 # 46219 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46220 # It is also a way to make sure we got the proper file name for the real test later on. 46221 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46222 if test "x$test_shortpath" = x; then 46223 # Short path failed, file does not exist as specified. 46224 # Try adding .exe or .cmd 46225 if test -f "${new_path}.exe"; then 46226 input_to_shortpath="${new_path}.exe" 46227 elif test -f "${new_path}.cmd"; then 46228 input_to_shortpath="${new_path}.cmd" 46229 else 46230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 46231 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 46232 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46233 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46234 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46235 fi 46236 else 46237 input_to_shortpath="$new_path" 46238 fi 46239 46240 # Call helper function which possibly converts this using DOS-style short mode. 46241 # If so, the updated path is stored in $new_path. 46242 new_path="$input_to_shortpath" 46243 46244 input_path="$input_to_shortpath" 46245 # Check if we need to convert this using DOS-style short mode. If the path 46246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46247 # take no chances and rewrite it. 46248 # Note: m4 eats our [], so we need to use [ and ] instead. 46249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46250 if test "x$has_forbidden_chars" != x; then 46251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46255 # Going to short mode and back again did indeed matter. Since short mode is 46256 # case insensitive, let's make it lowercase to improve readability. 46257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46258 # Now convert it back to Unix-style (cygpath) 46259 input_path=`$CYGPATH -u "$shortmode_path"` 46260 new_path="$input_path" 46261 fi 46262 fi 46263 46264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46265 if test "x$test_cygdrive_prefix" = x; then 46266 # As a simple fix, exclude /usr/bin since it's not a real path. 46267 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46269 # a path prefixed by /cygdrive for fixpath to work. 46270 new_path="$CYGWIN_ROOT_PATH$input_path" 46271 fi 46272 fi 46273 46274 # remove trailing .exe if any 46275 new_path="${new_path/%.exe/}" 46276 46277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46278 46279 # First separate the path from the arguments. This will split at the first 46280 # space. 46281 complete="$BUILD_NM" 46282 path="${complete%% *}" 46283 tmp="$complete EOL" 46284 arguments="${tmp#* }" 46285 46286 # Input might be given as Windows format, start by converting to 46287 # unix format. 46288 new_path="$path" 46289 46290 windows_path="$new_path" 46291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46292 unix_path=`$CYGPATH -u "$windows_path"` 46293 new_path="$unix_path" 46294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46296 new_path="$unix_path" 46297 fi 46298 46299 46300 # Now try to locate executable using which 46301 new_path=`$WHICH "$new_path" 2> /dev/null` 46302 46303 if test "x$new_path" = x; then 46304 # Oops. Which didn't find the executable. 46305 # The splitting of arguments from the executable at a space might have been incorrect, 46306 # since paths with space are more likely in Windows. Give it another try with the whole 46307 # argument. 46308 path="$complete" 46309 arguments="EOL" 46310 new_path="$path" 46311 46312 windows_path="$new_path" 46313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46314 unix_path=`$CYGPATH -u "$windows_path"` 46315 new_path="$unix_path" 46316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46318 new_path="$unix_path" 46319 fi 46320 46321 46322 new_path=`$WHICH "$new_path" 2> /dev/null` 46323 # bat and cmd files are not always considered executable in MSYS causing which 46324 # to not find them 46325 if test "x$new_path" = x \ 46326 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46327 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46328 new_path="$path" 46329 46330 windows_path="$new_path" 46331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46332 unix_path=`$CYGPATH -u "$windows_path"` 46333 new_path="$unix_path" 46334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46335 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46336 new_path="$unix_path" 46337 fi 46338 46339 fi 46340 46341 if test "x$new_path" = x; then 46342 # It's still not found. Now this is an unrecoverable error. 46343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46344 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46345 has_space=`$ECHO "$complete" | $GREP " "` 46346 if test "x$has_space" != x; then 46347 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46348 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46349 fi 46350 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46351 fi 46352 fi 46353 46354 # Now new_path has a complete unix path to the binary 46355 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46356 # Keep paths in /bin as-is, but remove trailing .exe if any 46357 new_path="${new_path/%.exe/}" 46358 # Do not save /bin paths to all_fixpath_prefixes! 46359 else 46360 # Not in mixed or Windows style, start by that. 46361 new_path=`cmd //c echo $new_path` 46362 46363 input_path="$new_path" 46364 # Check if we need to convert this using DOS-style short mode. If the path 46365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46366 # take no chances and rewrite it. 46367 # Note: m4 eats our [], so we need to use [ and ] instead. 46368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46369 if test "x$has_forbidden_chars" != x; then 46370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46371 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46372 fi 46373 46374 # Output is in $new_path 46375 46376 windows_path="$new_path" 46377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46378 unix_path=`$CYGPATH -u "$windows_path"` 46379 new_path="$unix_path" 46380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46382 new_path="$unix_path" 46383 fi 46384 46385 # remove trailing .exe if any 46386 new_path="${new_path/%.exe/}" 46387 46388 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46389 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46390 fi 46391 46392 else 46393 # We're on a unix platform. Hooray! :) 46394 # First separate the path from the arguments. This will split at the first 46395 # space. 46396 complete="$BUILD_NM" 46397 path="${complete%% *}" 46398 tmp="$complete EOL" 46399 arguments="${tmp#* }" 46400 46401 # Cannot rely on the command "which" here since it doesn't always work. 46402 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46403 if test -z "$is_absolute_path"; then 46404 # Path to executable is not absolute. Find it. 46405 IFS_save="$IFS" 46406 IFS=: 46407 for p in $PATH; do 46408 if test -f "$p/$path" && test -x "$p/$path"; then 46409 new_path="$p/$path" 46410 break 46411 fi 46412 done 46413 IFS="$IFS_save" 46414 else 46415 # This is an absolute path, we can use it without further modifications. 46416 new_path="$path" 46417 fi 46418 46419 if test "x$new_path" = x; then 46420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46421 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46422 has_space=`$ECHO "$complete" | $GREP " "` 46423 if test "x$has_space" != x; then 46424 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46425 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46426 fi 46427 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46428 fi 46429 fi 46430 46431 # Now join together the path and the arguments once again 46432 if test "x$arguments" != xEOL; then 46433 new_complete="$new_path ${arguments% *}" 46434 else 46435 new_complete="$new_path" 46436 fi 46437 46438 if test "x$complete" != "x$new_complete"; then 46439 BUILD_NM="$new_complete" 46440 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 46441 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 46442 fi 46443 fi 46444 46445 46446 46447 # Publish this variable in the help. 46448 46449 46450 if [ -z "${BUILD_AR+x}" ]; then 46451 # The variable is not set by user, try to locate tool using the code snippet 46452 for ac_prog in ar gcc-ar 46453 do 46454 # Extract the first word of "$ac_prog", so it can be a program name with args. 46455 set dummy $ac_prog; ac_word=$2 46456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46457 $as_echo_n "checking for $ac_word... " >&6; } 46458 if ${ac_cv_path_BUILD_AR+:} false; then : 46459 $as_echo_n "(cached) " >&6 46460 else 46461 case $BUILD_AR in 46462 [\\/]* | ?:[\\/]*) 46463 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46464 ;; 46465 *) 46466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46467 for as_dir in $PATH 46468 do 46469 IFS=$as_save_IFS 46470 test -z "$as_dir" && as_dir=. 46471 for ac_exec_ext in '' $ac_executable_extensions; do 46472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46473 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46475 break 2 46476 fi 46477 done 46478 done 46479 IFS=$as_save_IFS 46480 46481 ;; 46482 esac 46483 fi 46484 BUILD_AR=$ac_cv_path_BUILD_AR 46485 if test -n "$BUILD_AR"; then 46486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46487 $as_echo "$BUILD_AR" >&6; } 46488 else 46489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46490 $as_echo "no" >&6; } 46491 fi 46492 46493 46494 test -n "$BUILD_AR" && break 46495 done 46496 46497 else 46498 # The variable is set, but is it from the command line or the environment? 46499 46500 # Try to remove the string !BUILD_AR! from our list. 46501 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 46502 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46503 # If it failed, the variable was not from the command line. Ignore it, 46504 # but warn the user (except for BASH, which is always set by the calling BASH). 46505 if test "xBUILD_AR" != xBASH; then 46506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 46507 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 46508 fi 46509 # Try to locate tool using the code snippet 46510 for ac_prog in ar gcc-ar 46511 do 46512 # Extract the first word of "$ac_prog", so it can be a program name with args. 46513 set dummy $ac_prog; ac_word=$2 46514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46515 $as_echo_n "checking for $ac_word... " >&6; } 46516 if ${ac_cv_path_BUILD_AR+:} false; then : 46517 $as_echo_n "(cached) " >&6 46518 else 46519 case $BUILD_AR in 46520 [\\/]* | ?:[\\/]*) 46521 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46522 ;; 46523 *) 46524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46525 for as_dir in $PATH 46526 do 46527 IFS=$as_save_IFS 46528 test -z "$as_dir" && as_dir=. 46529 for ac_exec_ext in '' $ac_executable_extensions; do 46530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46531 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46533 break 2 46534 fi 46535 done 46536 done 46537 IFS=$as_save_IFS 46538 46539 ;; 46540 esac 46541 fi 46542 BUILD_AR=$ac_cv_path_BUILD_AR 46543 if test -n "$BUILD_AR"; then 46544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46545 $as_echo "$BUILD_AR" >&6; } 46546 else 46547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46548 $as_echo "no" >&6; } 46549 fi 46550 46551 46552 test -n "$BUILD_AR" && break 46553 done 46554 46555 else 46556 # If it succeeded, then it was overridden by the user. We will use it 46557 # for the tool. 46558 46559 # First remove it from the list of overridden variables, so we can test 46560 # for unknown variables in the end. 46561 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46562 46563 # Check if we try to supply an empty value 46564 if test "x$BUILD_AR" = x; then 46565 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 46566 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 46567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46568 $as_echo_n "checking for BUILD_AR... " >&6; } 46569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46570 $as_echo "disabled" >&6; } 46571 else 46572 # Check if the provided tool contains a complete path. 46573 tool_specified="$BUILD_AR" 46574 tool_basename="${tool_specified##*/}" 46575 if test "x$tool_basename" = "x$tool_specified"; then 46576 # A command without a complete path is provided, search $PATH. 46577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 46578 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 46579 # Extract the first word of "$tool_basename", so it can be a program name with args. 46580 set dummy $tool_basename; ac_word=$2 46581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46582 $as_echo_n "checking for $ac_word... " >&6; } 46583 if ${ac_cv_path_BUILD_AR+:} false; then : 46584 $as_echo_n "(cached) " >&6 46585 else 46586 case $BUILD_AR in 46587 [\\/]* | ?:[\\/]*) 46588 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46589 ;; 46590 *) 46591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46592 for as_dir in $PATH 46593 do 46594 IFS=$as_save_IFS 46595 test -z "$as_dir" && as_dir=. 46596 for ac_exec_ext in '' $ac_executable_extensions; do 46597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46598 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46600 break 2 46601 fi 46602 done 46603 done 46604 IFS=$as_save_IFS 46605 46606 ;; 46607 esac 46608 fi 46609 BUILD_AR=$ac_cv_path_BUILD_AR 46610 if test -n "$BUILD_AR"; then 46611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46612 $as_echo "$BUILD_AR" >&6; } 46613 else 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46615 $as_echo "no" >&6; } 46616 fi 46617 46618 46619 if test "x$BUILD_AR" = x; then 46620 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46621 fi 46622 else 46623 # Otherwise we believe it is a complete path. Use it as it is. 46624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 46625 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 46626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46627 $as_echo_n "checking for BUILD_AR... " >&6; } 46628 if test ! -x "$tool_specified"; then 46629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46630 $as_echo "not found" >&6; } 46631 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 46632 fi 46633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46634 $as_echo "$tool_specified" >&6; } 46635 fi 46636 fi 46637 fi 46638 46639 fi 46640 46641 46642 46643 # Only process if variable expands to non-empty 46644 46645 if test "x$BUILD_AR" != x; then 46646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46647 46648 # First separate the path from the arguments. This will split at the first 46649 # space. 46650 complete="$BUILD_AR" 46651 path="${complete%% *}" 46652 tmp="$complete EOL" 46653 arguments="${tmp#* }" 46654 46655 # Input might be given as Windows format, start by converting to 46656 # unix format. 46657 new_path=`$CYGPATH -u "$path"` 46658 46659 # Now try to locate executable using which 46660 new_path=`$WHICH "$new_path" 2> /dev/null` 46661 # bat and cmd files are not always considered executable in cygwin causing which 46662 # to not find them 46663 if test "x$new_path" = x \ 46664 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46665 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46666 new_path=`$CYGPATH -u "$path"` 46667 fi 46668 if test "x$new_path" = x; then 46669 # Oops. Which didn't find the executable. 46670 # The splitting of arguments from the executable at a space might have been incorrect, 46671 # since paths with space are more likely in Windows. Give it another try with the whole 46672 # argument. 46673 path="$complete" 46674 arguments="EOL" 46675 new_path=`$CYGPATH -u "$path"` 46676 new_path=`$WHICH "$new_path" 2> /dev/null` 46677 # bat and cmd files are not always considered executable in cygwin causing which 46678 # to not find them 46679 if test "x$new_path" = x \ 46680 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46681 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46682 new_path=`$CYGPATH -u "$path"` 46683 fi 46684 if test "x$new_path" = x; then 46685 # It's still not found. Now this is an unrecoverable error. 46686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46687 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46688 has_space=`$ECHO "$complete" | $GREP " "` 46689 if test "x$has_space" != x; then 46690 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46691 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46692 fi 46693 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46694 fi 46695 fi 46696 46697 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46698 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46699 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46700 # "foo.exe" is OK but "foo" is an error. 46701 # 46702 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46703 # It is also a way to make sure we got the proper file name for the real test later on. 46704 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46705 if test "x$test_shortpath" = x; then 46706 # Short path failed, file does not exist as specified. 46707 # Try adding .exe or .cmd 46708 if test -f "${new_path}.exe"; then 46709 input_to_shortpath="${new_path}.exe" 46710 elif test -f "${new_path}.cmd"; then 46711 input_to_shortpath="${new_path}.cmd" 46712 else 46713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 46714 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 46715 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46716 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46717 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46718 fi 46719 else 46720 input_to_shortpath="$new_path" 46721 fi 46722 46723 # Call helper function which possibly converts this using DOS-style short mode. 46724 # If so, the updated path is stored in $new_path. 46725 new_path="$input_to_shortpath" 46726 46727 input_path="$input_to_shortpath" 46728 # Check if we need to convert this using DOS-style short mode. If the path 46729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46730 # take no chances and rewrite it. 46731 # Note: m4 eats our [], so we need to use [ and ] instead. 46732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46733 if test "x$has_forbidden_chars" != x; then 46734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46735 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46736 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46737 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46738 # Going to short mode and back again did indeed matter. Since short mode is 46739 # case insensitive, let's make it lowercase to improve readability. 46740 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46741 # Now convert it back to Unix-style (cygpath) 46742 input_path=`$CYGPATH -u "$shortmode_path"` 46743 new_path="$input_path" 46744 fi 46745 fi 46746 46747 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46748 if test "x$test_cygdrive_prefix" = x; then 46749 # As a simple fix, exclude /usr/bin since it's not a real path. 46750 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46751 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46752 # a path prefixed by /cygdrive for fixpath to work. 46753 new_path="$CYGWIN_ROOT_PATH$input_path" 46754 fi 46755 fi 46756 46757 # remove trailing .exe if any 46758 new_path="${new_path/%.exe/}" 46759 46760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46761 46762 # First separate the path from the arguments. This will split at the first 46763 # space. 46764 complete="$BUILD_AR" 46765 path="${complete%% *}" 46766 tmp="$complete EOL" 46767 arguments="${tmp#* }" 46768 46769 # Input might be given as Windows format, start by converting to 46770 # unix format. 46771 new_path="$path" 46772 46773 windows_path="$new_path" 46774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46775 unix_path=`$CYGPATH -u "$windows_path"` 46776 new_path="$unix_path" 46777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46778 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46779 new_path="$unix_path" 46780 fi 46781 46782 46783 # Now try to locate executable using which 46784 new_path=`$WHICH "$new_path" 2> /dev/null` 46785 46786 if test "x$new_path" = x; then 46787 # Oops. Which didn't find the executable. 46788 # The splitting of arguments from the executable at a space might have been incorrect, 46789 # since paths with space are more likely in Windows. Give it another try with the whole 46790 # argument. 46791 path="$complete" 46792 arguments="EOL" 46793 new_path="$path" 46794 46795 windows_path="$new_path" 46796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46797 unix_path=`$CYGPATH -u "$windows_path"` 46798 new_path="$unix_path" 46799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46801 new_path="$unix_path" 46802 fi 46803 46804 46805 new_path=`$WHICH "$new_path" 2> /dev/null` 46806 # bat and cmd files are not always considered executable in MSYS causing which 46807 # to not find them 46808 if test "x$new_path" = x \ 46809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46811 new_path="$path" 46812 46813 windows_path="$new_path" 46814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46815 unix_path=`$CYGPATH -u "$windows_path"` 46816 new_path="$unix_path" 46817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46819 new_path="$unix_path" 46820 fi 46821 46822 fi 46823 46824 if test "x$new_path" = x; then 46825 # It's still not found. Now this is an unrecoverable error. 46826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46827 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46828 has_space=`$ECHO "$complete" | $GREP " "` 46829 if test "x$has_space" != x; then 46830 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46831 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46832 fi 46833 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46834 fi 46835 fi 46836 46837 # Now new_path has a complete unix path to the binary 46838 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46839 # Keep paths in /bin as-is, but remove trailing .exe if any 46840 new_path="${new_path/%.exe/}" 46841 # Do not save /bin paths to all_fixpath_prefixes! 46842 else 46843 # Not in mixed or Windows style, start by that. 46844 new_path=`cmd //c echo $new_path` 46845 46846 input_path="$new_path" 46847 # Check if we need to convert this using DOS-style short mode. If the path 46848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46849 # take no chances and rewrite it. 46850 # Note: m4 eats our [], so we need to use [ and ] instead. 46851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46852 if test "x$has_forbidden_chars" != x; then 46853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46854 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46855 fi 46856 46857 # Output is in $new_path 46858 46859 windows_path="$new_path" 46860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46861 unix_path=`$CYGPATH -u "$windows_path"` 46862 new_path="$unix_path" 46863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46864 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46865 new_path="$unix_path" 46866 fi 46867 46868 # remove trailing .exe if any 46869 new_path="${new_path/%.exe/}" 46870 46871 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46872 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46873 fi 46874 46875 else 46876 # We're on a unix platform. Hooray! :) 46877 # First separate the path from the arguments. This will split at the first 46878 # space. 46879 complete="$BUILD_AR" 46880 path="${complete%% *}" 46881 tmp="$complete EOL" 46882 arguments="${tmp#* }" 46883 46884 # Cannot rely on the command "which" here since it doesn't always work. 46885 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46886 if test -z "$is_absolute_path"; then 46887 # Path to executable is not absolute. Find it. 46888 IFS_save="$IFS" 46889 IFS=: 46890 for p in $PATH; do 46891 if test -f "$p/$path" && test -x "$p/$path"; then 46892 new_path="$p/$path" 46893 break 46894 fi 46895 done 46896 IFS="$IFS_save" 46897 else 46898 # This is an absolute path, we can use it without further modifications. 46899 new_path="$path" 46900 fi 46901 46902 if test "x$new_path" = x; then 46903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46904 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46905 has_space=`$ECHO "$complete" | $GREP " "` 46906 if test "x$has_space" != x; then 46907 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46908 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46909 fi 46910 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46911 fi 46912 fi 46913 46914 # Now join together the path and the arguments once again 46915 if test "x$arguments" != xEOL; then 46916 new_complete="$new_path ${arguments% *}" 46917 else 46918 new_complete="$new_path" 46919 fi 46920 46921 if test "x$complete" != "x$new_complete"; then 46922 BUILD_AR="$new_complete" 46923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 46924 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 46925 fi 46926 fi 46927 46928 46929 46930 # Publish this variable in the help. 46931 46932 46933 if [ -z "${BUILD_OBJCOPY+x}" ]; then 46934 # The variable is not set by user, try to locate tool using the code snippet 46935 for ac_prog in objcopy 46936 do 46937 # Extract the first word of "$ac_prog", so it can be a program name with args. 46938 set dummy $ac_prog; ac_word=$2 46939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46940 $as_echo_n "checking for $ac_word... " >&6; } 46941 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46942 $as_echo_n "(cached) " >&6 46943 else 46944 case $BUILD_OBJCOPY in 46945 [\\/]* | ?:[\\/]*) 46946 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46947 ;; 46948 *) 46949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46950 for as_dir in $PATH 46951 do 46952 IFS=$as_save_IFS 46953 test -z "$as_dir" && as_dir=. 46954 for ac_exec_ext in '' $ac_executable_extensions; do 46955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46956 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46958 break 2 46959 fi 46960 done 46961 done 46962 IFS=$as_save_IFS 46963 46964 ;; 46965 esac 46966 fi 46967 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46968 if test -n "$BUILD_OBJCOPY"; then 46969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46970 $as_echo "$BUILD_OBJCOPY" >&6; } 46971 else 46972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46973 $as_echo "no" >&6; } 46974 fi 46975 46976 46977 test -n "$BUILD_OBJCOPY" && break 46978 done 46979 46980 else 46981 # The variable is set, but is it from the command line or the environment? 46982 46983 # Try to remove the string !BUILD_OBJCOPY! from our list. 46984 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46985 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46986 # If it failed, the variable was not from the command line. Ignore it, 46987 # but warn the user (except for BASH, which is always set by the calling BASH). 46988 if test "xBUILD_OBJCOPY" != xBASH; then 46989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46990 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46991 fi 46992 # Try to locate tool using the code snippet 46993 for ac_prog in objcopy 46994 do 46995 # Extract the first word of "$ac_prog", so it can be a program name with args. 46996 set dummy $ac_prog; ac_word=$2 46997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46998 $as_echo_n "checking for $ac_word... " >&6; } 46999 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47000 $as_echo_n "(cached) " >&6 47001 else 47002 case $BUILD_OBJCOPY in 47003 [\\/]* | ?:[\\/]*) 47004 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47005 ;; 47006 *) 47007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47008 for as_dir in $PATH 47009 do 47010 IFS=$as_save_IFS 47011 test -z "$as_dir" && as_dir=. 47012 for ac_exec_ext in '' $ac_executable_extensions; do 47013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47014 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47016 break 2 47017 fi 47018 done 47019 done 47020 IFS=$as_save_IFS 47021 47022 ;; 47023 esac 47024 fi 47025 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47026 if test -n "$BUILD_OBJCOPY"; then 47027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47028 $as_echo "$BUILD_OBJCOPY" >&6; } 47029 else 47030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47031 $as_echo "no" >&6; } 47032 fi 47033 47034 47035 test -n "$BUILD_OBJCOPY" && break 47036 done 47037 47038 else 47039 # If it succeeded, then it was overridden by the user. We will use it 47040 # for the tool. 47041 47042 # First remove it from the list of overridden variables, so we can test 47043 # for unknown variables in the end. 47044 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47045 47046 # Check if we try to supply an empty value 47047 if test "x$BUILD_OBJCOPY" = x; then 47048 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47049 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47051 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47053 $as_echo "disabled" >&6; } 47054 else 47055 # Check if the provided tool contains a complete path. 47056 tool_specified="$BUILD_OBJCOPY" 47057 tool_basename="${tool_specified##*/}" 47058 if test "x$tool_basename" = "x$tool_specified"; then 47059 # A command without a complete path is provided, search $PATH. 47060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 47061 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 47062 # Extract the first word of "$tool_basename", so it can be a program name with args. 47063 set dummy $tool_basename; ac_word=$2 47064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47065 $as_echo_n "checking for $ac_word... " >&6; } 47066 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47067 $as_echo_n "(cached) " >&6 47068 else 47069 case $BUILD_OBJCOPY in 47070 [\\/]* | ?:[\\/]*) 47071 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47072 ;; 47073 *) 47074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47075 for as_dir in $PATH 47076 do 47077 IFS=$as_save_IFS 47078 test -z "$as_dir" && as_dir=. 47079 for ac_exec_ext in '' $ac_executable_extensions; do 47080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47081 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47083 break 2 47084 fi 47085 done 47086 done 47087 IFS=$as_save_IFS 47088 47089 ;; 47090 esac 47091 fi 47092 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47093 if test -n "$BUILD_OBJCOPY"; then 47094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47095 $as_echo "$BUILD_OBJCOPY" >&6; } 47096 else 47097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47098 $as_echo "no" >&6; } 47099 fi 47100 47101 47102 if test "x$BUILD_OBJCOPY" = x; then 47103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47104 fi 47105 else 47106 # Otherwise we believe it is a complete path. Use it as it is. 47107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 47108 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 47109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47110 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47111 if test ! -x "$tool_specified"; then 47112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47113 $as_echo "not found" >&6; } 47114 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 47115 fi 47116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47117 $as_echo "$tool_specified" >&6; } 47118 fi 47119 fi 47120 fi 47121 47122 fi 47123 47124 47125 47126 # Only process if variable expands to non-empty 47127 47128 if test "x$BUILD_OBJCOPY" != x; then 47129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47130 47131 # First separate the path from the arguments. This will split at the first 47132 # space. 47133 complete="$BUILD_OBJCOPY" 47134 path="${complete%% *}" 47135 tmp="$complete EOL" 47136 arguments="${tmp#* }" 47137 47138 # Input might be given as Windows format, start by converting to 47139 # unix format. 47140 new_path=`$CYGPATH -u "$path"` 47141 47142 # Now try to locate executable using which 47143 new_path=`$WHICH "$new_path" 2> /dev/null` 47144 # bat and cmd files are not always considered executable in cygwin causing which 47145 # to not find them 47146 if test "x$new_path" = x \ 47147 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47148 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47149 new_path=`$CYGPATH -u "$path"` 47150 fi 47151 if test "x$new_path" = x; then 47152 # Oops. Which didn't find the executable. 47153 # The splitting of arguments from the executable at a space might have been incorrect, 47154 # since paths with space are more likely in Windows. Give it another try with the whole 47155 # argument. 47156 path="$complete" 47157 arguments="EOL" 47158 new_path=`$CYGPATH -u "$path"` 47159 new_path=`$WHICH "$new_path" 2> /dev/null` 47160 # bat and cmd files are not always considered executable in cygwin causing which 47161 # to not find them 47162 if test "x$new_path" = x \ 47163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47165 new_path=`$CYGPATH -u "$path"` 47166 fi 47167 if test "x$new_path" = x; then 47168 # It's still not found. Now this is an unrecoverable error. 47169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47170 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47171 has_space=`$ECHO "$complete" | $GREP " "` 47172 if test "x$has_space" != x; then 47173 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47174 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47175 fi 47176 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47177 fi 47178 fi 47179 47180 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47181 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47182 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47183 # "foo.exe" is OK but "foo" is an error. 47184 # 47185 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47186 # It is also a way to make sure we got the proper file name for the real test later on. 47187 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47188 if test "x$test_shortpath" = x; then 47189 # Short path failed, file does not exist as specified. 47190 # Try adding .exe or .cmd 47191 if test -f "${new_path}.exe"; then 47192 input_to_shortpath="${new_path}.exe" 47193 elif test -f "${new_path}.cmd"; then 47194 input_to_shortpath="${new_path}.cmd" 47195 else 47196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 47197 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 47198 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47199 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47200 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47201 fi 47202 else 47203 input_to_shortpath="$new_path" 47204 fi 47205 47206 # Call helper function which possibly converts this using DOS-style short mode. 47207 # If so, the updated path is stored in $new_path. 47208 new_path="$input_to_shortpath" 47209 47210 input_path="$input_to_shortpath" 47211 # Check if we need to convert this using DOS-style short mode. If the path 47212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47213 # take no chances and rewrite it. 47214 # Note: m4 eats our [], so we need to use [ and ] instead. 47215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47216 if test "x$has_forbidden_chars" != x; then 47217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47218 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47219 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47220 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47221 # Going to short mode and back again did indeed matter. Since short mode is 47222 # case insensitive, let's make it lowercase to improve readability. 47223 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47224 # Now convert it back to Unix-style (cygpath) 47225 input_path=`$CYGPATH -u "$shortmode_path"` 47226 new_path="$input_path" 47227 fi 47228 fi 47229 47230 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47231 if test "x$test_cygdrive_prefix" = x; then 47232 # As a simple fix, exclude /usr/bin since it's not a real path. 47233 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47234 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47235 # a path prefixed by /cygdrive for fixpath to work. 47236 new_path="$CYGWIN_ROOT_PATH$input_path" 47237 fi 47238 fi 47239 47240 # remove trailing .exe if any 47241 new_path="${new_path/%.exe/}" 47242 47243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47244 47245 # First separate the path from the arguments. This will split at the first 47246 # space. 47247 complete="$BUILD_OBJCOPY" 47248 path="${complete%% *}" 47249 tmp="$complete EOL" 47250 arguments="${tmp#* }" 47251 47252 # Input might be given as Windows format, start by converting to 47253 # unix format. 47254 new_path="$path" 47255 47256 windows_path="$new_path" 47257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47258 unix_path=`$CYGPATH -u "$windows_path"` 47259 new_path="$unix_path" 47260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47262 new_path="$unix_path" 47263 fi 47264 47265 47266 # Now try to locate executable using which 47267 new_path=`$WHICH "$new_path" 2> /dev/null` 47268 47269 if test "x$new_path" = x; then 47270 # Oops. Which didn't find the executable. 47271 # The splitting of arguments from the executable at a space might have been incorrect, 47272 # since paths with space are more likely in Windows. Give it another try with the whole 47273 # argument. 47274 path="$complete" 47275 arguments="EOL" 47276 new_path="$path" 47277 47278 windows_path="$new_path" 47279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47280 unix_path=`$CYGPATH -u "$windows_path"` 47281 new_path="$unix_path" 47282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47284 new_path="$unix_path" 47285 fi 47286 47287 47288 new_path=`$WHICH "$new_path" 2> /dev/null` 47289 # bat and cmd files are not always considered executable in MSYS causing which 47290 # to not find them 47291 if test "x$new_path" = x \ 47292 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47293 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47294 new_path="$path" 47295 47296 windows_path="$new_path" 47297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47298 unix_path=`$CYGPATH -u "$windows_path"` 47299 new_path="$unix_path" 47300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47302 new_path="$unix_path" 47303 fi 47304 47305 fi 47306 47307 if test "x$new_path" = x; then 47308 # It's still not found. Now this is an unrecoverable error. 47309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47310 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47311 has_space=`$ECHO "$complete" | $GREP " "` 47312 if test "x$has_space" != x; then 47313 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47314 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47315 fi 47316 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47317 fi 47318 fi 47319 47320 # Now new_path has a complete unix path to the binary 47321 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47322 # Keep paths in /bin as-is, but remove trailing .exe if any 47323 new_path="${new_path/%.exe/}" 47324 # Do not save /bin paths to all_fixpath_prefixes! 47325 else 47326 # Not in mixed or Windows style, start by that. 47327 new_path=`cmd //c echo $new_path` 47328 47329 input_path="$new_path" 47330 # Check if we need to convert this using DOS-style short mode. If the path 47331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47332 # take no chances and rewrite it. 47333 # Note: m4 eats our [], so we need to use [ and ] instead. 47334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47335 if test "x$has_forbidden_chars" != x; then 47336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47338 fi 47339 47340 # Output is in $new_path 47341 47342 windows_path="$new_path" 47343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47344 unix_path=`$CYGPATH -u "$windows_path"` 47345 new_path="$unix_path" 47346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47348 new_path="$unix_path" 47349 fi 47350 47351 # remove trailing .exe if any 47352 new_path="${new_path/%.exe/}" 47353 47354 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47355 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47356 fi 47357 47358 else 47359 # We're on a unix platform. Hooray! :) 47360 # First separate the path from the arguments. This will split at the first 47361 # space. 47362 complete="$BUILD_OBJCOPY" 47363 path="${complete%% *}" 47364 tmp="$complete EOL" 47365 arguments="${tmp#* }" 47366 47367 # Cannot rely on the command "which" here since it doesn't always work. 47368 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47369 if test -z "$is_absolute_path"; then 47370 # Path to executable is not absolute. Find it. 47371 IFS_save="$IFS" 47372 IFS=: 47373 for p in $PATH; do 47374 if test -f "$p/$path" && test -x "$p/$path"; then 47375 new_path="$p/$path" 47376 break 47377 fi 47378 done 47379 IFS="$IFS_save" 47380 else 47381 # This is an absolute path, we can use it without further modifications. 47382 new_path="$path" 47383 fi 47384 47385 if test "x$new_path" = x; then 47386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47387 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47388 has_space=`$ECHO "$complete" | $GREP " "` 47389 if test "x$has_space" != x; then 47390 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47391 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47392 fi 47393 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47394 fi 47395 fi 47396 47397 # Now join together the path and the arguments once again 47398 if test "x$arguments" != xEOL; then 47399 new_complete="$new_path ${arguments% *}" 47400 else 47401 new_complete="$new_path" 47402 fi 47403 47404 if test "x$complete" != "x$new_complete"; then 47405 BUILD_OBJCOPY="$new_complete" 47406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 47407 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 47408 fi 47409 fi 47410 47411 47412 47413 # Publish this variable in the help. 47414 47415 47416 if [ -z "${BUILD_STRIP+x}" ]; then 47417 # The variable is not set by user, try to locate tool using the code snippet 47418 for ac_prog in strip 47419 do 47420 # Extract the first word of "$ac_prog", so it can be a program name with args. 47421 set dummy $ac_prog; ac_word=$2 47422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47423 $as_echo_n "checking for $ac_word... " >&6; } 47424 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47425 $as_echo_n "(cached) " >&6 47426 else 47427 case $BUILD_STRIP in 47428 [\\/]* | ?:[\\/]*) 47429 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47430 ;; 47431 *) 47432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47433 for as_dir in $PATH 47434 do 47435 IFS=$as_save_IFS 47436 test -z "$as_dir" && as_dir=. 47437 for ac_exec_ext in '' $ac_executable_extensions; do 47438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47439 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47441 break 2 47442 fi 47443 done 47444 done 47445 IFS=$as_save_IFS 47446 47447 ;; 47448 esac 47449 fi 47450 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47451 if test -n "$BUILD_STRIP"; then 47452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47453 $as_echo "$BUILD_STRIP" >&6; } 47454 else 47455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47456 $as_echo "no" >&6; } 47457 fi 47458 47459 47460 test -n "$BUILD_STRIP" && break 47461 done 47462 47463 else 47464 # The variable is set, but is it from the command line or the environment? 47465 47466 # Try to remove the string !BUILD_STRIP! from our list. 47467 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 47468 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47469 # If it failed, the variable was not from the command line. Ignore it, 47470 # but warn the user (except for BASH, which is always set by the calling BASH). 47471 if test "xBUILD_STRIP" != xBASH; then 47472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 47473 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 47474 fi 47475 # Try to locate tool using the code snippet 47476 for ac_prog in strip 47477 do 47478 # Extract the first word of "$ac_prog", so it can be a program name with args. 47479 set dummy $ac_prog; ac_word=$2 47480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47481 $as_echo_n "checking for $ac_word... " >&6; } 47482 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47483 $as_echo_n "(cached) " >&6 47484 else 47485 case $BUILD_STRIP in 47486 [\\/]* | ?:[\\/]*) 47487 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47488 ;; 47489 *) 47490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47491 for as_dir in $PATH 47492 do 47493 IFS=$as_save_IFS 47494 test -z "$as_dir" && as_dir=. 47495 for ac_exec_ext in '' $ac_executable_extensions; do 47496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47497 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47499 break 2 47500 fi 47501 done 47502 done 47503 IFS=$as_save_IFS 47504 47505 ;; 47506 esac 47507 fi 47508 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47509 if test -n "$BUILD_STRIP"; then 47510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47511 $as_echo "$BUILD_STRIP" >&6; } 47512 else 47513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47514 $as_echo "no" >&6; } 47515 fi 47516 47517 47518 test -n "$BUILD_STRIP" && break 47519 done 47520 47521 else 47522 # If it succeeded, then it was overridden by the user. We will use it 47523 # for the tool. 47524 47525 # First remove it from the list of overridden variables, so we can test 47526 # for unknown variables in the end. 47527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47528 47529 # Check if we try to supply an empty value 47530 if test "x$BUILD_STRIP" = x; then 47531 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 47532 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 47533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47534 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47536 $as_echo "disabled" >&6; } 47537 else 47538 # Check if the provided tool contains a complete path. 47539 tool_specified="$BUILD_STRIP" 47540 tool_basename="${tool_specified##*/}" 47541 if test "x$tool_basename" = "x$tool_specified"; then 47542 # A command without a complete path is provided, search $PATH. 47543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 47544 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 47545 # Extract the first word of "$tool_basename", so it can be a program name with args. 47546 set dummy $tool_basename; ac_word=$2 47547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47548 $as_echo_n "checking for $ac_word... " >&6; } 47549 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47550 $as_echo_n "(cached) " >&6 47551 else 47552 case $BUILD_STRIP in 47553 [\\/]* | ?:[\\/]*) 47554 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47555 ;; 47556 *) 47557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47558 for as_dir in $PATH 47559 do 47560 IFS=$as_save_IFS 47561 test -z "$as_dir" && as_dir=. 47562 for ac_exec_ext in '' $ac_executable_extensions; do 47563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47564 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47566 break 2 47567 fi 47568 done 47569 done 47570 IFS=$as_save_IFS 47571 47572 ;; 47573 esac 47574 fi 47575 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47576 if test -n "$BUILD_STRIP"; then 47577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47578 $as_echo "$BUILD_STRIP" >&6; } 47579 else 47580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47581 $as_echo "no" >&6; } 47582 fi 47583 47584 47585 if test "x$BUILD_STRIP" = x; then 47586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47587 fi 47588 else 47589 # Otherwise we believe it is a complete path. Use it as it is. 47590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 47591 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 47592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47593 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47594 if test ! -x "$tool_specified"; then 47595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47596 $as_echo "not found" >&6; } 47597 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 47598 fi 47599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47600 $as_echo "$tool_specified" >&6; } 47601 fi 47602 fi 47603 fi 47604 47605 fi 47606 47607 47608 47609 # Only process if variable expands to non-empty 47610 47611 if test "x$BUILD_STRIP" != x; then 47612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47613 47614 # First separate the path from the arguments. This will split at the first 47615 # space. 47616 complete="$BUILD_STRIP" 47617 path="${complete%% *}" 47618 tmp="$complete EOL" 47619 arguments="${tmp#* }" 47620 47621 # Input might be given as Windows format, start by converting to 47622 # unix format. 47623 new_path=`$CYGPATH -u "$path"` 47624 47625 # Now try to locate executable using which 47626 new_path=`$WHICH "$new_path" 2> /dev/null` 47627 # bat and cmd files are not always considered executable in cygwin causing which 47628 # to not find them 47629 if test "x$new_path" = x \ 47630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47632 new_path=`$CYGPATH -u "$path"` 47633 fi 47634 if test "x$new_path" = x; then 47635 # Oops. Which didn't find the executable. 47636 # The splitting of arguments from the executable at a space might have been incorrect, 47637 # since paths with space are more likely in Windows. Give it another try with the whole 47638 # argument. 47639 path="$complete" 47640 arguments="EOL" 47641 new_path=`$CYGPATH -u "$path"` 47642 new_path=`$WHICH "$new_path" 2> /dev/null` 47643 # bat and cmd files are not always considered executable in cygwin causing which 47644 # to not find them 47645 if test "x$new_path" = x \ 47646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47648 new_path=`$CYGPATH -u "$path"` 47649 fi 47650 if test "x$new_path" = x; then 47651 # It's still not found. Now this is an unrecoverable error. 47652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47653 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47654 has_space=`$ECHO "$complete" | $GREP " "` 47655 if test "x$has_space" != x; then 47656 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47658 fi 47659 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47660 fi 47661 fi 47662 47663 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47664 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47665 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47666 # "foo.exe" is OK but "foo" is an error. 47667 # 47668 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47669 # It is also a way to make sure we got the proper file name for the real test later on. 47670 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47671 if test "x$test_shortpath" = x; then 47672 # Short path failed, file does not exist as specified. 47673 # Try adding .exe or .cmd 47674 if test -f "${new_path}.exe"; then 47675 input_to_shortpath="${new_path}.exe" 47676 elif test -f "${new_path}.cmd"; then 47677 input_to_shortpath="${new_path}.cmd" 47678 else 47679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 47680 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 47681 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47682 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47683 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47684 fi 47685 else 47686 input_to_shortpath="$new_path" 47687 fi 47688 47689 # Call helper function which possibly converts this using DOS-style short mode. 47690 # If so, the updated path is stored in $new_path. 47691 new_path="$input_to_shortpath" 47692 47693 input_path="$input_to_shortpath" 47694 # Check if we need to convert this using DOS-style short mode. If the path 47695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47696 # take no chances and rewrite it. 47697 # Note: m4 eats our [], so we need to use [ and ] instead. 47698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47699 if test "x$has_forbidden_chars" != x; then 47700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47701 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47702 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47703 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47704 # Going to short mode and back again did indeed matter. Since short mode is 47705 # case insensitive, let's make it lowercase to improve readability. 47706 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47707 # Now convert it back to Unix-style (cygpath) 47708 input_path=`$CYGPATH -u "$shortmode_path"` 47709 new_path="$input_path" 47710 fi 47711 fi 47712 47713 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47714 if test "x$test_cygdrive_prefix" = x; then 47715 # As a simple fix, exclude /usr/bin since it's not a real path. 47716 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47717 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47718 # a path prefixed by /cygdrive for fixpath to work. 47719 new_path="$CYGWIN_ROOT_PATH$input_path" 47720 fi 47721 fi 47722 47723 # remove trailing .exe if any 47724 new_path="${new_path/%.exe/}" 47725 47726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47727 47728 # First separate the path from the arguments. This will split at the first 47729 # space. 47730 complete="$BUILD_STRIP" 47731 path="${complete%% *}" 47732 tmp="$complete EOL" 47733 arguments="${tmp#* }" 47734 47735 # Input might be given as Windows format, start by converting to 47736 # unix format. 47737 new_path="$path" 47738 47739 windows_path="$new_path" 47740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47741 unix_path=`$CYGPATH -u "$windows_path"` 47742 new_path="$unix_path" 47743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47745 new_path="$unix_path" 47746 fi 47747 47748 47749 # Now try to locate executable using which 47750 new_path=`$WHICH "$new_path" 2> /dev/null` 47751 47752 if test "x$new_path" = x; then 47753 # Oops. Which didn't find the executable. 47754 # The splitting of arguments from the executable at a space might have been incorrect, 47755 # since paths with space are more likely in Windows. Give it another try with the whole 47756 # argument. 47757 path="$complete" 47758 arguments="EOL" 47759 new_path="$path" 47760 47761 windows_path="$new_path" 47762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47763 unix_path=`$CYGPATH -u "$windows_path"` 47764 new_path="$unix_path" 47765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47767 new_path="$unix_path" 47768 fi 47769 47770 47771 new_path=`$WHICH "$new_path" 2> /dev/null` 47772 # bat and cmd files are not always considered executable in MSYS causing which 47773 # to not find them 47774 if test "x$new_path" = x \ 47775 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47776 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47777 new_path="$path" 47778 47779 windows_path="$new_path" 47780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47781 unix_path=`$CYGPATH -u "$windows_path"` 47782 new_path="$unix_path" 47783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47785 new_path="$unix_path" 47786 fi 47787 47788 fi 47789 47790 if test "x$new_path" = x; then 47791 # It's still not found. Now this is an unrecoverable error. 47792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47793 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47794 has_space=`$ECHO "$complete" | $GREP " "` 47795 if test "x$has_space" != x; then 47796 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47797 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47798 fi 47799 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47800 fi 47801 fi 47802 47803 # Now new_path has a complete unix path to the binary 47804 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47805 # Keep paths in /bin as-is, but remove trailing .exe if any 47806 new_path="${new_path/%.exe/}" 47807 # Do not save /bin paths to all_fixpath_prefixes! 47808 else 47809 # Not in mixed or Windows style, start by that. 47810 new_path=`cmd //c echo $new_path` 47811 47812 input_path="$new_path" 47813 # Check if we need to convert this using DOS-style short mode. If the path 47814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47815 # take no chances and rewrite it. 47816 # Note: m4 eats our [], so we need to use [ and ] instead. 47817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47818 if test "x$has_forbidden_chars" != x; then 47819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47820 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47821 fi 47822 47823 # Output is in $new_path 47824 47825 windows_path="$new_path" 47826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47827 unix_path=`$CYGPATH -u "$windows_path"` 47828 new_path="$unix_path" 47829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47831 new_path="$unix_path" 47832 fi 47833 47834 # remove trailing .exe if any 47835 new_path="${new_path/%.exe/}" 47836 47837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47839 fi 47840 47841 else 47842 # We're on a unix platform. Hooray! :) 47843 # First separate the path from the arguments. This will split at the first 47844 # space. 47845 complete="$BUILD_STRIP" 47846 path="${complete%% *}" 47847 tmp="$complete EOL" 47848 arguments="${tmp#* }" 47849 47850 # Cannot rely on the command "which" here since it doesn't always work. 47851 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47852 if test -z "$is_absolute_path"; then 47853 # Path to executable is not absolute. Find it. 47854 IFS_save="$IFS" 47855 IFS=: 47856 for p in $PATH; do 47857 if test -f "$p/$path" && test -x "$p/$path"; then 47858 new_path="$p/$path" 47859 break 47860 fi 47861 done 47862 IFS="$IFS_save" 47863 else 47864 # This is an absolute path, we can use it without further modifications. 47865 new_path="$path" 47866 fi 47867 47868 if test "x$new_path" = x; then 47869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47870 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47871 has_space=`$ECHO "$complete" | $GREP " "` 47872 if test "x$has_space" != x; then 47873 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47874 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47875 fi 47876 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47877 fi 47878 fi 47879 47880 # Now join together the path and the arguments once again 47881 if test "x$arguments" != xEOL; then 47882 new_complete="$new_path ${arguments% *}" 47883 else 47884 new_complete="$new_path" 47885 fi 47886 47887 if test "x$complete" != "x$new_complete"; then 47888 BUILD_STRIP="$new_complete" 47889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 47890 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 47891 fi 47892 fi 47893 47894 # Assume the C compiler is the assembler 47895 BUILD_AS="$BUILD_CC -c" 47896 # Just like for the target compiler, use the compiler as linker 47897 BUILD_LD="$BUILD_CC" 47898 BUILD_LDCXX="$BUILD_CXX" 47899 47900 PATH="$OLDPATH" 47901 47902 47903 COMPILER=$BUILD_CC 47904 COMPILER_NAME=BuildC 47905 47906 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47907 # cc -V output typically looks like 47908 # cc: Sun C 5.12 Linux_i386 2011/11/16 47909 # or 47910 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 47911 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47912 # Check that this is likely to be the Solaris Studio cc. 47913 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 47914 if test $? -ne 0; then 47915 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47916 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 47917 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47918 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47919 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47920 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47921 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47922 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47923 fi 47924 # Remove usage instructions (if present), and 47925 # collapse compiler output into a single line 47926 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47927 $SED -e 's/ *[Uu]sage:.*//'` 47928 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47929 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47930 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47931 # xlc -qversion output typically looks like 47932 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47933 # Version: 11.01.0000.0015 47934 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47935 # Check that this is likely to be the IBM XL C compiler. 47936 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47937 if test $? -ne 0; then 47938 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47939 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 47940 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47941 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47942 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47943 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47944 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47945 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47946 fi 47947 # Collapse compiler output into a single line 47948 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47949 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47950 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47951 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47952 # There is no specific version flag, but all output starts with a version string. 47953 # First line typically looks something like: 47954 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47955 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47956 # Check that this is likely to be Microsoft CL.EXE. 47957 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47958 if test $? -ne 0; then 47959 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 47960 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47961 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47962 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47963 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47964 fi 47965 # Collapse compiler output into a single line 47966 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47967 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47968 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47969 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47970 # gcc --version output typically looks like 47971 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47972 # Copyright (C) 2013 Free Software Foundation, Inc. 47973 # This is free software; see the source for copying conditions. There is NO 47974 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47975 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47976 # Check that this is likely to be GCC. 47977 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47978 if test $? -ne 0; then 47979 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 47980 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47981 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47982 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47983 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47984 fi 47985 # Remove Copyright and legalese from version string, and 47986 # collapse into a single line 47987 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47988 $SED -e 's/ *Copyright .*//'` 47989 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47990 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47991 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47992 # clang --version output typically looks like 47993 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47994 # clang version 3.3 (tags/RELEASE_33/final) 47995 # or 47996 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47997 # Target: x86_64-pc-linux-gnu 47998 # Thread model: posix 47999 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48000 # Check that this is likely to be clang 48001 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48002 if test $? -ne 0; then 48003 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 48004 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48005 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48006 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48007 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48008 fi 48009 # Collapse compiler output into a single line 48010 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48011 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48012 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48013 else 48014 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48015 fi 48016 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48017 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48018 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48019 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48020 48021 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48022 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48023 48024 48025 COMPILER=$BUILD_CXX 48026 COMPILER_NAME=BuildC++ 48027 48028 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48029 # cc -V output typically looks like 48030 # cc: Sun C 5.12 Linux_i386 2011/11/16 48031 # or 48032 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48033 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48034 # Check that this is likely to be the Solaris Studio cc. 48035 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48036 if test $? -ne 0; then 48037 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48038 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 48039 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48040 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48041 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48042 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48043 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48044 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48045 fi 48046 # Remove usage instructions (if present), and 48047 # collapse compiler output into a single line 48048 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48049 $SED -e 's/ *[Uu]sage:.*//'` 48050 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48051 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48052 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48053 # xlc -qversion output typically looks like 48054 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48055 # Version: 11.01.0000.0015 48056 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48057 # Check that this is likely to be the IBM XL C compiler. 48058 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48059 if test $? -ne 0; then 48060 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48061 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 48062 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48063 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48064 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48065 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48066 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48067 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48068 fi 48069 # Collapse compiler output into a single line 48070 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48071 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48072 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48073 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48074 # There is no specific version flag, but all output starts with a version string. 48075 # First line typically looks something like: 48076 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48077 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48078 # Check that this is likely to be Microsoft CL.EXE. 48079 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48080 if test $? -ne 0; then 48081 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 48082 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48083 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48084 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48085 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48086 fi 48087 # Collapse compiler output into a single line 48088 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48089 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48090 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48091 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48092 # gcc --version output typically looks like 48093 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48094 # Copyright (C) 2013 Free Software Foundation, Inc. 48095 # This is free software; see the source for copying conditions. There is NO 48096 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48097 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48098 # Check that this is likely to be GCC. 48099 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48100 if test $? -ne 0; then 48101 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 48102 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48103 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48104 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48105 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48106 fi 48107 # Remove Copyright and legalese from version string, and 48108 # collapse into a single line 48109 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48110 $SED -e 's/ *Copyright .*//'` 48111 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48112 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48113 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48114 # clang --version output typically looks like 48115 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48116 # clang version 3.3 (tags/RELEASE_33/final) 48117 # or 48118 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48119 # Target: x86_64-pc-linux-gnu 48120 # Thread model: posix 48121 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48122 # Check that this is likely to be clang 48123 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48124 if test $? -ne 0; then 48125 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 48126 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48127 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48128 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48129 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48130 fi 48131 # Collapse compiler output into a single line 48132 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48133 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48134 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48135 else 48136 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48137 fi 48138 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48139 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48140 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48141 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 48142 48143 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48144 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48145 48146 48147 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 48148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&5 48149 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 48150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48151 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48152 fi 48153 48154 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48155 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48157 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48158 fi 48159 48160 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48162 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48163 fi 48164 48165 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 48166 48167 else 48168 # If we are not cross compiling, use the normal target compilers for 48169 # building the build platform executables. 48170 BUILD_CC="$CC" 48171 BUILD_CXX="$CXX" 48172 BUILD_LD="$LD" 48173 BUILD_LDCXX="$LDCXX" 48174 BUILD_NM="$NM" 48175 BUILD_AS="$AS" 48176 BUILD_OBJCOPY="$OBJCOPY" 48177 BUILD_STRIP="$STRIP" 48178 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 48179 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 48180 BUILD_AR="$AR" 48181 48182 48183 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 48184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 48185 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 48186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48187 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48188 fi 48189 48190 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48191 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48193 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48194 fi 48195 48196 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 48198 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48199 fi 48200 48201 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 48202 48203 fi 48204 48205 48206 48207 48208 48209 48210 48211 48212 48213 48214 48215 48216 48217 48218 # The package path is used only on macosx? 48219 # FIXME: clean this up, and/or move it elsewhere. 48220 PACKAGE_PATH=/opt/local 48221 48222 48223 # Check for extra potential brokenness. 48224 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48225 # On Windows, double-check that we got the right compiler. 48226 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48227 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 48228 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 48229 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 48230 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\" or \"x86\"." "$LINENO" 5 48231 fi 48232 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 48233 if test "x$COMPILER_CPU_TEST" != "xx64"; then 48234 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 48235 fi 48236 fi 48237 fi 48238 48239 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48240 # If this is a --hash-style=gnu system, use --hash-style=both, why? 48241 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 48242 # This is later checked when setting flags. 48243 48244 # "-Og" suppported for GCC 4.8 and later 48245 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 48246 48247 48248 48249 48250 48251 48252 48253 48254 48255 48256 48257 48258 48259 48260 48261 48262 48263 48264 48265 48266 48267 48268 48269 48270 48271 48272 48273 48274 48275 48276 48277 48278 48279 48280 48281 48282 48283 48284 48285 48286 48287 48288 48289 48290 48291 48292 48293 # Execute function body 48294 48295 48296 48297 48298 48299 48300 48301 48302 48303 48304 48305 48306 48307 48308 48309 48310 48311 48312 48313 48314 48315 48316 48317 48318 48319 48320 48321 48322 48323 48324 48325 48326 48327 48328 48329 48330 48331 48332 48333 48334 48335 48336 48337 48338 48339 48340 48341 48342 # Execute function body 48343 48344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48345 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48346 supports=yes 48347 48348 saved_cflags="$CFLAGS" 48349 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 48350 ac_ext=c 48351 ac_cpp='$CPP $CPPFLAGS' 48352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48354 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48355 48356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48357 /* end confdefs.h. */ 48358 int i; 48359 _ACEOF 48360 if ac_fn_c_try_compile "$LINENO"; then : 48361 48362 else 48363 supports=no 48364 fi 48365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48366 ac_ext=cpp 48367 ac_cpp='$CXXCPP $CPPFLAGS' 48368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48371 48372 CFLAGS="$saved_cflags" 48373 48374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48375 $as_echo "$supports" >&6; } 48376 if test "x$supports" = "xyes" ; then 48377 : 48378 C_COMP_SUPPORTS="yes" 48379 else 48380 : 48381 C_COMP_SUPPORTS="no" 48382 fi 48383 48384 48385 48386 48387 48388 48389 48390 48391 48392 48393 48394 48395 48396 48397 48398 48399 48400 48401 48402 48403 48404 48405 48406 48407 48408 48409 48410 48411 48412 48413 48414 48415 48416 48417 48418 48419 48420 48421 48422 48423 48424 48425 48426 48427 48428 48429 48430 48431 48432 48433 48434 48435 48436 48437 48438 48439 48440 48441 48442 # Execute function body 48443 48444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48445 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48446 supports=yes 48447 48448 saved_cxxflags="$CXXFLAGS" 48449 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 48450 ac_ext=cpp 48451 ac_cpp='$CXXCPP $CPPFLAGS' 48452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48455 48456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48457 /* end confdefs.h. */ 48458 int i; 48459 _ACEOF 48460 if ac_fn_cxx_try_compile "$LINENO"; then : 48461 48462 else 48463 supports=no 48464 fi 48465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48466 ac_ext=cpp 48467 ac_cpp='$CXXCPP $CPPFLAGS' 48468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48471 48472 CXXFLAGS="$saved_cxxflags" 48473 48474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48475 $as_echo "$supports" >&6; } 48476 if test "x$supports" = "xyes" ; then 48477 : 48478 CXX_COMP_SUPPORTS="yes" 48479 else 48480 : 48481 CXX_COMP_SUPPORTS="no" 48482 fi 48483 48484 48485 48486 48487 48488 48489 48490 48491 48492 48493 48494 48495 48496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48497 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48498 supports=no 48499 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 48500 48501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48502 $as_echo "$supports" >&6; } 48503 if test "x$supports" = "xyes" ; then 48504 : 48505 HAS_CFLAG_OPTIMIZE_DEBUG=true 48506 else 48507 : 48508 HAS_CFLAG_OPTIMIZE_DEBUG=false 48509 fi 48510 48511 48512 48513 48514 48515 48516 48517 # "-z relro" supported in GNU binutils 2.17 and later 48518 LINKER_RELRO_FLAG="-Wl,-z,relro" 48519 48520 48521 48522 48523 48524 48525 48526 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 48537 48538 48539 48540 48541 48542 48543 48544 48545 48546 48547 48548 48549 48550 48551 48552 48553 48554 48555 48556 48557 48558 48559 48560 48561 48562 48563 48564 48565 48566 # Execute function body 48567 48568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 48569 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 48570 supports=yes 48571 48572 saved_ldflags="$LDFLAGS" 48573 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 48574 ac_ext=c 48575 ac_cpp='$CPP $CPPFLAGS' 48576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48578 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48579 48580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48581 /* end confdefs.h. */ 48582 48583 int 48584 main () 48585 { 48586 48587 ; 48588 return 0; 48589 } 48590 _ACEOF 48591 if ac_fn_c_try_link "$LINENO"; then : 48592 48593 else 48594 supports=no 48595 fi 48596 rm -f core conftest.err conftest.$ac_objext \ 48597 conftest$ac_exeext conftest.$ac_ext 48598 ac_ext=cpp 48599 ac_cpp='$CXXCPP $CPPFLAGS' 48600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48603 48604 LDFLAGS="$saved_ldflags" 48605 48606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48607 $as_echo "$supports" >&6; } 48608 if test "x$supports" = "xyes" ; then 48609 : 48610 HAS_LINKER_RELRO=true 48611 else 48612 : 48613 HAS_LINKER_RELRO=false 48614 fi 48615 48616 48617 48618 48619 48620 48621 48622 48623 48624 48625 48626 48627 48628 # "-z now" supported in GNU binutils 2.11 and later 48629 LINKER_NOW_FLAG="-Wl,-z,now" 48630 48631 48632 48633 48634 48635 48636 48637 48638 48639 48640 48641 48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 48666 48667 48668 48669 48670 48671 48672 48673 48674 48675 48676 48677 # Execute function body 48678 48679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 48680 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 48681 supports=yes 48682 48683 saved_ldflags="$LDFLAGS" 48684 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 48685 ac_ext=c 48686 ac_cpp='$CPP $CPPFLAGS' 48687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48689 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48690 48691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48692 /* end confdefs.h. */ 48693 48694 int 48695 main () 48696 { 48697 48698 ; 48699 return 0; 48700 } 48701 _ACEOF 48702 if ac_fn_c_try_link "$LINENO"; then : 48703 48704 else 48705 supports=no 48706 fi 48707 rm -f core conftest.err conftest.$ac_objext \ 48708 conftest$ac_exeext conftest.$ac_ext 48709 ac_ext=cpp 48710 ac_cpp='$CXXCPP $CPPFLAGS' 48711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48714 48715 LDFLAGS="$saved_ldflags" 48716 48717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48718 $as_echo "$supports" >&6; } 48719 if test "x$supports" = "xyes" ; then 48720 : 48721 HAS_LINKER_NOW=true 48722 else 48723 : 48724 HAS_LINKER_NOW=false 48725 fi 48726 48727 48728 48729 48730 48731 48732 48733 48734 48735 48736 48737 48738 fi 48739 48740 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 48741 # in executable.' 48742 USING_BROKEN_SUSE_LD=no 48743 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 48744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 48745 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 48746 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 48747 $ECHO "int main() { }" > main.c 48748 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 48749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48750 $as_echo "no" >&6; } 48751 USING_BROKEN_SUSE_LD=no 48752 else 48753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48754 $as_echo "yes" >&6; } 48755 USING_BROKEN_SUSE_LD=yes 48756 fi 48757 $RM version-script.map main.c a.out 48758 fi 48759 48760 48761 # Setup hotspot lecagy names for toolchains 48762 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 48763 if test "x$TOOLCHAIN_TYPE" = xclang; then 48764 HOTSPOT_TOOLCHAIN_TYPE=gcc 48765 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48766 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 48767 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48768 HOTSPOT_TOOLCHAIN_TYPE=visCPP 48769 fi 48770 48771 48772 48773 # Setup the JTReg Regression Test Harness. 48774 48775 48776 # Check whether --with-jtreg was given. 48777 if test "${with_jtreg+set}" = set; then : 48778 withval=$with_jtreg; 48779 fi 48780 48781 48782 if test "x$with_jtreg" = xno; then 48783 # jtreg disabled 48784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48785 $as_echo_n "checking for jtreg test harness... " >&6; } 48786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 48787 $as_echo "no, disabled" >&6; } 48788 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 48789 # An explicit path is specified, use it. 48790 JT_HOME="$with_jtreg" 48791 48792 # Only process if variable expands to non-empty 48793 48794 if test "x$JT_HOME" != x; then 48795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48796 48797 # Input might be given as Windows format, start by converting to 48798 # unix format. 48799 path="$JT_HOME" 48800 new_path=`$CYGPATH -u "$path"` 48801 48802 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48803 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48804 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48805 # "foo.exe" is OK but "foo" is an error. 48806 # 48807 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48808 # It is also a way to make sure we got the proper file name for the real test later on. 48809 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48810 if test "x$test_shortpath" = x; then 48811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48812 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48813 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 48814 fi 48815 48816 # Call helper function which possibly converts this using DOS-style short mode. 48817 # If so, the updated path is stored in $new_path. 48818 48819 input_path="$new_path" 48820 # Check if we need to convert this using DOS-style short mode. If the path 48821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48822 # take no chances and rewrite it. 48823 # Note: m4 eats our [], so we need to use [ and ] instead. 48824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48825 if test "x$has_forbidden_chars" != x; then 48826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48827 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48828 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48829 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48830 # Going to short mode and back again did indeed matter. Since short mode is 48831 # case insensitive, let's make it lowercase to improve readability. 48832 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48833 # Now convert it back to Unix-style (cygpath) 48834 input_path=`$CYGPATH -u "$shortmode_path"` 48835 new_path="$input_path" 48836 fi 48837 fi 48838 48839 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48840 if test "x$test_cygdrive_prefix" = x; then 48841 # As a simple fix, exclude /usr/bin since it's not a real path. 48842 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48843 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48844 # a path prefixed by /cygdrive for fixpath to work. 48845 new_path="$CYGWIN_ROOT_PATH$input_path" 48846 fi 48847 fi 48848 48849 48850 if test "x$path" != "x$new_path"; then 48851 JT_HOME="$new_path" 48852 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48853 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48854 fi 48855 48856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48857 48858 path="$JT_HOME" 48859 has_colon=`$ECHO $path | $GREP ^.:` 48860 new_path="$path" 48861 if test "x$has_colon" = x; then 48862 # Not in mixed or Windows style, start by that. 48863 new_path=`cmd //c echo $path` 48864 fi 48865 48866 48867 input_path="$new_path" 48868 # Check if we need to convert this using DOS-style short mode. If the path 48869 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48870 # take no chances and rewrite it. 48871 # Note: m4 eats our [], so we need to use [ and ] instead. 48872 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48873 if test "x$has_forbidden_chars" != x; then 48874 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48875 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48876 fi 48877 48878 48879 windows_path="$new_path" 48880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48881 unix_path=`$CYGPATH -u "$windows_path"` 48882 new_path="$unix_path" 48883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48885 new_path="$unix_path" 48886 fi 48887 48888 if test "x$path" != "x$new_path"; then 48889 JT_HOME="$new_path" 48890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48891 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48892 fi 48893 48894 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48895 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48896 48897 else 48898 # We're on a unix platform. Hooray! :) 48899 path="$JT_HOME" 48900 has_space=`$ECHO "$path" | $GREP " "` 48901 if test "x$has_space" != x; then 48902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48903 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48904 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48905 fi 48906 48907 # Use eval to expand a potential ~ 48908 eval path="$path" 48909 if test ! -f "$path" && test ! -d "$path"; then 48910 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 48911 fi 48912 48913 if test -d "$path"; then 48914 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 48915 else 48916 dir="`$DIRNAME "$path"`" 48917 base="`$BASENAME "$path"`" 48918 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 48919 fi 48920 fi 48921 fi 48922 48923 if test ! -d "$JT_HOME"; then 48924 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 48925 fi 48926 48927 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 48928 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 48929 fi 48930 48931 JTREGEXE="$JT_HOME/bin/jtreg" 48932 if test ! -x "$JTREGEXE"; then 48933 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 48934 fi 48935 48936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48937 $as_echo_n "checking for jtreg test harness... " >&6; } 48938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 48939 $as_echo "$JT_HOME" >&6; } 48940 else 48941 # Try to locate jtreg 48942 if test "x$JT_HOME" != x; then 48943 # JT_HOME set in environment, use it 48944 if test ! -d "$JT_HOME"; then 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 48946 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 48947 JT_HOME= 48948 else 48949 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 48950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 48951 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 48952 JT_HOME= 48953 elif test ! -x "$JT_HOME/bin/jtreg"; then 48954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 48955 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 48956 JT_HOME= 48957 else 48958 JTREGEXE="$JT_HOME/bin/jtreg" 48959 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 48960 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 48961 fi 48962 fi 48963 fi 48964 48965 if test "x$JT_HOME" = x; then 48966 # JT_HOME is not set in environment, or was deemed invalid. 48967 # Try to find jtreg on path 48968 48969 48970 # Publish this variable in the help. 48971 48972 48973 if [ -z "${JTREGEXE+x}" ]; then 48974 # The variable is not set by user, try to locate tool using the code snippet 48975 for ac_prog in jtreg 48976 do 48977 # Extract the first word of "$ac_prog", so it can be a program name with args. 48978 set dummy $ac_prog; ac_word=$2 48979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48980 $as_echo_n "checking for $ac_word... " >&6; } 48981 if ${ac_cv_path_JTREGEXE+:} false; then : 48982 $as_echo_n "(cached) " >&6 48983 else 48984 case $JTREGEXE in 48985 [\\/]* | ?:[\\/]*) 48986 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48987 ;; 48988 *) 48989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48990 for as_dir in $PATH 48991 do 48992 IFS=$as_save_IFS 48993 test -z "$as_dir" && as_dir=. 48994 for ac_exec_ext in '' $ac_executable_extensions; do 48995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48996 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48998 break 2 48999 fi 49000 done 49001 done 49002 IFS=$as_save_IFS 49003 49004 ;; 49005 esac 49006 fi 49007 JTREGEXE=$ac_cv_path_JTREGEXE 49008 if test -n "$JTREGEXE"; then 49009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49010 $as_echo "$JTREGEXE" >&6; } 49011 else 49012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49013 $as_echo "no" >&6; } 49014 fi 49015 49016 49017 test -n "$JTREGEXE" && break 49018 done 49019 49020 else 49021 # The variable is set, but is it from the command line or the environment? 49022 49023 # Try to remove the string !JTREGEXE! from our list. 49024 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49025 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49026 # If it failed, the variable was not from the command line. Ignore it, 49027 # but warn the user (except for BASH, which is always set by the calling BASH). 49028 if test "xJTREGEXE" != xBASH; then 49029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49030 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49031 fi 49032 # Try to locate tool using the code snippet 49033 for ac_prog in jtreg 49034 do 49035 # Extract the first word of "$ac_prog", so it can be a program name with args. 49036 set dummy $ac_prog; ac_word=$2 49037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49038 $as_echo_n "checking for $ac_word... " >&6; } 49039 if ${ac_cv_path_JTREGEXE+:} false; then : 49040 $as_echo_n "(cached) " >&6 49041 else 49042 case $JTREGEXE in 49043 [\\/]* | ?:[\\/]*) 49044 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49045 ;; 49046 *) 49047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49048 for as_dir in $PATH 49049 do 49050 IFS=$as_save_IFS 49051 test -z "$as_dir" && as_dir=. 49052 for ac_exec_ext in '' $ac_executable_extensions; do 49053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49054 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49056 break 2 49057 fi 49058 done 49059 done 49060 IFS=$as_save_IFS 49061 49062 ;; 49063 esac 49064 fi 49065 JTREGEXE=$ac_cv_path_JTREGEXE 49066 if test -n "$JTREGEXE"; then 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49068 $as_echo "$JTREGEXE" >&6; } 49069 else 49070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49071 $as_echo "no" >&6; } 49072 fi 49073 49074 49075 test -n "$JTREGEXE" && break 49076 done 49077 49078 else 49079 # If it succeeded, then it was overridden by the user. We will use it 49080 # for the tool. 49081 49082 # First remove it from the list of overridden variables, so we can test 49083 # for unknown variables in the end. 49084 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 49085 49086 # Check if we try to supply an empty value 49087 if test "x$JTREGEXE" = x; then 49088 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 49089 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 49090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49091 $as_echo_n "checking for JTREGEXE... " >&6; } 49092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 49093 $as_echo "disabled" >&6; } 49094 else 49095 # Check if the provided tool contains a complete path. 49096 tool_specified="$JTREGEXE" 49097 tool_basename="${tool_specified##*/}" 49098 if test "x$tool_basename" = "x$tool_specified"; then 49099 # A command without a complete path is provided, search $PATH. 49100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 49101 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 49102 # Extract the first word of "$tool_basename", so it can be a program name with args. 49103 set dummy $tool_basename; ac_word=$2 49104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49105 $as_echo_n "checking for $ac_word... " >&6; } 49106 if ${ac_cv_path_JTREGEXE+:} false; then : 49107 $as_echo_n "(cached) " >&6 49108 else 49109 case $JTREGEXE in 49110 [\\/]* | ?:[\\/]*) 49111 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49112 ;; 49113 *) 49114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49115 for as_dir in $PATH 49116 do 49117 IFS=$as_save_IFS 49118 test -z "$as_dir" && as_dir=. 49119 for ac_exec_ext in '' $ac_executable_extensions; do 49120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49121 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49123 break 2 49124 fi 49125 done 49126 done 49127 IFS=$as_save_IFS 49128 49129 ;; 49130 esac 49131 fi 49132 JTREGEXE=$ac_cv_path_JTREGEXE 49133 if test -n "$JTREGEXE"; then 49134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49135 $as_echo "$JTREGEXE" >&6; } 49136 else 49137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49138 $as_echo "no" >&6; } 49139 fi 49140 49141 49142 if test "x$JTREGEXE" = x; then 49143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 49144 fi 49145 else 49146 # Otherwise we believe it is a complete path. Use it as it is. 49147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 49148 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 49149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49150 $as_echo_n "checking for JTREGEXE... " >&6; } 49151 if test ! -x "$tool_specified"; then 49152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 49153 $as_echo "not found" >&6; } 49154 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 49155 fi 49156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 49157 $as_echo "$tool_specified" >&6; } 49158 fi 49159 fi 49160 fi 49161 49162 fi 49163 49164 49165 if test "x$JTREGEXE" != x; then 49166 # That's good, now try to derive JT_HOME 49167 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 49168 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 49170 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 49171 JT_HOME= 49172 JTREGEXE= 49173 else 49174 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 49175 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 49176 fi 49177 fi 49178 fi 49179 49180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49181 $as_echo_n "checking for jtreg test harness... " >&6; } 49182 if test "x$JT_HOME" != x; then 49183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49184 $as_echo "$JT_HOME" >&6; } 49185 else 49186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 49187 $as_echo "no, not found" >&6; } 49188 49189 if test "x$with_jtreg" = xyes; then 49190 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 49191 fi 49192 fi 49193 fi 49194 49195 49196 # Only process if variable expands to non-empty 49197 49198 if test "x$JTREGEXE" != x; then 49199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49200 49201 # First separate the path from the arguments. This will split at the first 49202 # space. 49203 complete="$JTREGEXE" 49204 path="${complete%% *}" 49205 tmp="$complete EOL" 49206 arguments="${tmp#* }" 49207 49208 # Input might be given as Windows format, start by converting to 49209 # unix format. 49210 new_path=`$CYGPATH -u "$path"` 49211 49212 # Now try to locate executable using which 49213 new_path=`$WHICH "$new_path" 2> /dev/null` 49214 # bat and cmd files are not always considered executable in cygwin causing which 49215 # to not find them 49216 if test "x$new_path" = x \ 49217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49219 new_path=`$CYGPATH -u "$path"` 49220 fi 49221 if test "x$new_path" = x; then 49222 # Oops. Which didn't find the executable. 49223 # The splitting of arguments from the executable at a space might have been incorrect, 49224 # since paths with space are more likely in Windows. Give it another try with the whole 49225 # argument. 49226 path="$complete" 49227 arguments="EOL" 49228 new_path=`$CYGPATH -u "$path"` 49229 new_path=`$WHICH "$new_path" 2> /dev/null` 49230 # bat and cmd files are not always considered executable in cygwin causing which 49231 # to not find them 49232 if test "x$new_path" = x \ 49233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49235 new_path=`$CYGPATH -u "$path"` 49236 fi 49237 if test "x$new_path" = x; then 49238 # It's still not found. Now this is an unrecoverable error. 49239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49240 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49241 has_space=`$ECHO "$complete" | $GREP " "` 49242 if test "x$has_space" != x; then 49243 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49244 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49245 fi 49246 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49247 fi 49248 fi 49249 49250 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49251 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49252 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49253 # "foo.exe" is OK but "foo" is an error. 49254 # 49255 # This test is therefore slightly more accurate than "test -f" to check for file presence. 49256 # It is also a way to make sure we got the proper file name for the real test later on. 49257 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49258 if test "x$test_shortpath" = x; then 49259 # Short path failed, file does not exist as specified. 49260 # Try adding .exe or .cmd 49261 if test -f "${new_path}.exe"; then 49262 input_to_shortpath="${new_path}.exe" 49263 elif test -f "${new_path}.cmd"; then 49264 input_to_shortpath="${new_path}.cmd" 49265 else 49266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 49267 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 49268 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 49269 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 49270 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49271 fi 49272 else 49273 input_to_shortpath="$new_path" 49274 fi 49275 49276 # Call helper function which possibly converts this using DOS-style short mode. 49277 # If so, the updated path is stored in $new_path. 49278 new_path="$input_to_shortpath" 49279 49280 input_path="$input_to_shortpath" 49281 # Check if we need to convert this using DOS-style short mode. If the path 49282 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49283 # take no chances and rewrite it. 49284 # Note: m4 eats our [], so we need to use [ and ] instead. 49285 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49286 if test "x$has_forbidden_chars" != x; then 49287 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49288 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49289 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49290 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49291 # Going to short mode and back again did indeed matter. Since short mode is 49292 # case insensitive, let's make it lowercase to improve readability. 49293 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49294 # Now convert it back to Unix-style (cygpath) 49295 input_path=`$CYGPATH -u "$shortmode_path"` 49296 new_path="$input_path" 49297 fi 49298 fi 49299 49300 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49301 if test "x$test_cygdrive_prefix" = x; then 49302 # As a simple fix, exclude /usr/bin since it's not a real path. 49303 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 49304 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49305 # a path prefixed by /cygdrive for fixpath to work. 49306 new_path="$CYGWIN_ROOT_PATH$input_path" 49307 fi 49308 fi 49309 49310 # remove trailing .exe if any 49311 new_path="${new_path/%.exe/}" 49312 49313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49314 49315 # First separate the path from the arguments. This will split at the first 49316 # space. 49317 complete="$JTREGEXE" 49318 path="${complete%% *}" 49319 tmp="$complete EOL" 49320 arguments="${tmp#* }" 49321 49322 # Input might be given as Windows format, start by converting to 49323 # unix format. 49324 new_path="$path" 49325 49326 windows_path="$new_path" 49327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49328 unix_path=`$CYGPATH -u "$windows_path"` 49329 new_path="$unix_path" 49330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49332 new_path="$unix_path" 49333 fi 49334 49335 49336 # Now try to locate executable using which 49337 new_path=`$WHICH "$new_path" 2> /dev/null` 49338 49339 if test "x$new_path" = x; then 49340 # Oops. Which didn't find the executable. 49341 # The splitting of arguments from the executable at a space might have been incorrect, 49342 # since paths with space are more likely in Windows. Give it another try with the whole 49343 # argument. 49344 path="$complete" 49345 arguments="EOL" 49346 new_path="$path" 49347 49348 windows_path="$new_path" 49349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49350 unix_path=`$CYGPATH -u "$windows_path"` 49351 new_path="$unix_path" 49352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49354 new_path="$unix_path" 49355 fi 49356 49357 49358 new_path=`$WHICH "$new_path" 2> /dev/null` 49359 # bat and cmd files are not always considered executable in MSYS causing which 49360 # to not find them 49361 if test "x$new_path" = x \ 49362 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49363 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49364 new_path="$path" 49365 49366 windows_path="$new_path" 49367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49368 unix_path=`$CYGPATH -u "$windows_path"` 49369 new_path="$unix_path" 49370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49372 new_path="$unix_path" 49373 fi 49374 49375 fi 49376 49377 if test "x$new_path" = x; then 49378 # It's still not found. Now this is an unrecoverable error. 49379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49380 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49381 has_space=`$ECHO "$complete" | $GREP " "` 49382 if test "x$has_space" != x; then 49383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49385 fi 49386 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49387 fi 49388 fi 49389 49390 # Now new_path has a complete unix path to the binary 49391 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 49392 # Keep paths in /bin as-is, but remove trailing .exe if any 49393 new_path="${new_path/%.exe/}" 49394 # Do not save /bin paths to all_fixpath_prefixes! 49395 else 49396 # Not in mixed or Windows style, start by that. 49397 new_path=`cmd //c echo $new_path` 49398 49399 input_path="$new_path" 49400 # Check if we need to convert this using DOS-style short mode. If the path 49401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49402 # take no chances and rewrite it. 49403 # Note: m4 eats our [], so we need to use [ and ] instead. 49404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49405 if test "x$has_forbidden_chars" != x; then 49406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49407 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49408 fi 49409 49410 # Output is in $new_path 49411 49412 windows_path="$new_path" 49413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49414 unix_path=`$CYGPATH -u "$windows_path"` 49415 new_path="$unix_path" 49416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49418 new_path="$unix_path" 49419 fi 49420 49421 # remove trailing .exe if any 49422 new_path="${new_path/%.exe/}" 49423 49424 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49425 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49426 fi 49427 49428 else 49429 # We're on a unix platform. Hooray! :) 49430 # First separate the path from the arguments. This will split at the first 49431 # space. 49432 complete="$JTREGEXE" 49433 path="${complete%% *}" 49434 tmp="$complete EOL" 49435 arguments="${tmp#* }" 49436 49437 # Cannot rely on the command "which" here since it doesn't always work. 49438 is_absolute_path=`$ECHO "$path" | $GREP ^/` 49439 if test -z "$is_absolute_path"; then 49440 # Path to executable is not absolute. Find it. 49441 IFS_save="$IFS" 49442 IFS=: 49443 for p in $PATH; do 49444 if test -f "$p/$path" && test -x "$p/$path"; then 49445 new_path="$p/$path" 49446 break 49447 fi 49448 done 49449 IFS="$IFS_save" 49450 else 49451 # This is an absolute path, we can use it without further modifications. 49452 new_path="$path" 49453 fi 49454 49455 if test "x$new_path" = x; then 49456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49457 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49458 has_space=`$ECHO "$complete" | $GREP " "` 49459 if test "x$has_space" != x; then 49460 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 49461 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 49462 fi 49463 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49464 fi 49465 fi 49466 49467 # Now join together the path and the arguments once again 49468 if test "x$arguments" != xEOL; then 49469 new_complete="$new_path ${arguments% *}" 49470 else 49471 new_complete="$new_path" 49472 fi 49473 49474 if test "x$complete" != "x$new_complete"; then 49475 JTREGEXE="$new_complete" 49476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 49477 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 49478 fi 49479 fi 49480 49481 49482 # Only process if variable expands to non-empty 49483 49484 if test "x$JT_HOME" != x; then 49485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49486 49487 # Input might be given as Windows format, start by converting to 49488 # unix format. 49489 path="$JT_HOME" 49490 new_path=`$CYGPATH -u "$path"` 49491 49492 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49493 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49494 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49495 # "foo.exe" is OK but "foo" is an error. 49496 # 49497 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49498 # It is also a way to make sure we got the proper file name for the real test later on. 49499 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49500 if test "x$test_shortpath" = x; then 49501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49502 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49503 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49504 fi 49505 49506 # Call helper function which possibly converts this using DOS-style short mode. 49507 # If so, the updated path is stored in $new_path. 49508 49509 input_path="$new_path" 49510 # Check if we need to convert this using DOS-style short mode. If the path 49511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49512 # take no chances and rewrite it. 49513 # Note: m4 eats our [], so we need to use [ and ] instead. 49514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49515 if test "x$has_forbidden_chars" != x; then 49516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49517 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49518 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49519 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49520 # Going to short mode and back again did indeed matter. Since short mode is 49521 # case insensitive, let's make it lowercase to improve readability. 49522 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49523 # Now convert it back to Unix-style (cygpath) 49524 input_path=`$CYGPATH -u "$shortmode_path"` 49525 new_path="$input_path" 49526 fi 49527 fi 49528 49529 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49530 if test "x$test_cygdrive_prefix" = x; then 49531 # As a simple fix, exclude /usr/bin since it's not a real path. 49532 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49533 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49534 # a path prefixed by /cygdrive for fixpath to work. 49535 new_path="$CYGWIN_ROOT_PATH$input_path" 49536 fi 49537 fi 49538 49539 49540 if test "x$path" != "x$new_path"; then 49541 JT_HOME="$new_path" 49542 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49543 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49544 fi 49545 49546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49547 49548 path="$JT_HOME" 49549 has_colon=`$ECHO $path | $GREP ^.:` 49550 new_path="$path" 49551 if test "x$has_colon" = x; then 49552 # Not in mixed or Windows style, start by that. 49553 new_path=`cmd //c echo $path` 49554 fi 49555 49556 49557 input_path="$new_path" 49558 # Check if we need to convert this using DOS-style short mode. If the path 49559 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49560 # take no chances and rewrite it. 49561 # Note: m4 eats our [], so we need to use [ and ] instead. 49562 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49563 if test "x$has_forbidden_chars" != x; then 49564 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49565 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49566 fi 49567 49568 49569 windows_path="$new_path" 49570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49571 unix_path=`$CYGPATH -u "$windows_path"` 49572 new_path="$unix_path" 49573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49575 new_path="$unix_path" 49576 fi 49577 49578 if test "x$path" != "x$new_path"; then 49579 JT_HOME="$new_path" 49580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49581 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49582 fi 49583 49584 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49585 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49586 49587 else 49588 # We're on a unix platform. Hooray! :) 49589 path="$JT_HOME" 49590 has_space=`$ECHO "$path" | $GREP " "` 49591 if test "x$has_space" != x; then 49592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49593 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49594 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49595 fi 49596 49597 # Use eval to expand a potential ~ 49598 eval path="$path" 49599 if test ! -f "$path" && test ! -d "$path"; then 49600 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49601 fi 49602 49603 if test -d "$path"; then 49604 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49605 else 49606 dir="`$DIRNAME "$path"`" 49607 base="`$BASENAME "$path"`" 49608 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49609 fi 49610 fi 49611 fi 49612 49613 49614 49615 49616 49617 # Setup Jib dependency tool 49618 49619 49620 # Check whether --with-jib was given. 49621 if test "${with_jib+set}" = set; then : 49622 withval=$with_jib; 49623 fi 49624 49625 49626 if test "x$with_jib" = xno || test "x$with_jib" = x; then 49627 # jib disabled 49628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49629 $as_echo_n "checking for jib... " >&6; } 49630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49631 $as_echo "no" >&6; } 49632 elif test "x$with_jib" = xyes; then 49633 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 49634 else 49635 JIB_HOME="${with_jib}" 49636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49637 $as_echo_n "checking for jib... " >&6; } 49638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 49639 $as_echo "${JIB_HOME}" >&6; } 49640 if test ! -d "${JIB_HOME}"; then 49641 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 49642 fi 49643 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 49644 if test ! -f "${JIB_JAR}"; then 49645 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 49646 fi 49647 fi 49648 49649 49650 49651 49652 49653 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 49654 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 49655 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 49656 # commands produced by the link step (currently AIX only) 49657 if test "x$TOOLCHAIN_TYPE" = xxlc; then 49658 COMPILER_TARGET_BITS_FLAG="-q" 49659 COMPILER_COMMAND_FILE_FLAG="-f" 49660 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 49661 else 49662 COMPILER_TARGET_BITS_FLAG="-m" 49663 COMPILER_COMMAND_FILE_FLAG="@" 49664 COMPILER_BINDCMD_FILE_FLAG="" 49665 49666 # The solstudio linker does not support @-files. 49667 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49668 COMPILER_COMMAND_FILE_FLAG= 49669 fi 49670 49671 # Check if @file is supported by gcc 49672 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 49674 $as_echo_n "checking if @file is supported by gcc... " >&6; } 49675 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 49676 $ECHO "" "--version" > command.file 49677 if $CXX @command.file 2>&5 >&5; then 49678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49679 $as_echo "yes" >&6; } 49680 COMPILER_COMMAND_FILE_FLAG="@" 49681 else 49682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49683 $as_echo "no" >&6; } 49684 COMPILER_COMMAND_FILE_FLAG= 49685 fi 49686 $RM command.file 49687 fi 49688 fi 49689 49690 49691 49692 49693 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 49694 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49695 ARFLAGS="-r" 49696 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49697 ARFLAGS="-X64" 49698 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 49699 # lib.exe is used as AR to create static libraries. 49700 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 49701 else 49702 ARFLAGS="" 49703 fi 49704 49705 49706 ## Setup strip. 49707 # FIXME: should this really be per platform, or should it be per toolchain type? 49708 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 49709 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 49710 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49711 STRIPFLAGS="-g" 49712 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 49713 STRIPFLAGS="-x" 49714 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 49715 STRIPFLAGS="-S" 49716 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49717 STRIPFLAGS="-X32_64" 49718 fi 49719 49720 49721 49722 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49723 CC_OUT_OPTION=-Fo 49724 EXE_OUT_OPTION=-out: 49725 LD_OUT_OPTION=-out: 49726 AR_OUT_OPTION=-out: 49727 else 49728 # The option used to specify the target .o,.a or .so file. 49729 # When compiling, how to specify the to be created object file. 49730 CC_OUT_OPTION='-o$(SPACE)' 49731 # When linking, how to specify the to be created executable. 49732 EXE_OUT_OPTION='-o$(SPACE)' 49733 # When linking, how to specify the to be created dynamically linkable library. 49734 LD_OUT_OPTION='-o$(SPACE)' 49735 # When archiving, how to specify the to be create static archive for object files. 49736 AR_OUT_OPTION='rcs$(SPACE)' 49737 fi 49738 49739 49740 49741 49742 49743 # On Windows, we need to set RC flags. 49744 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49745 RC_FLAGS="-nologo -l0x409" 49746 JVM_RCFLAGS="-nologo" 49747 if test "x$DEBUG_LEVEL" = xrelease; then 49748 RC_FLAGS="$RC_FLAGS -DNDEBUG" 49749 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 49750 fi 49751 49752 # The version variables used to create RC_FLAGS may be overridden 49753 # in a custom configure script, or possibly the command line. 49754 # Let those variables be expanded at make time in spec.gmk. 49755 # The \$ are escaped to the shell, and the $(...) variables 49756 # are evaluated by make. 49757 RC_FLAGS="$RC_FLAGS \ 49758 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 49759 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 49760 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 49761 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 49762 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 49763 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 49764 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 49765 49766 JVM_RCFLAGS="$JVM_RCFLAGS \ 49767 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 49768 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 49769 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 49770 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 49771 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 49772 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 49773 -D\"HS_FNAME=jvm.dll\" \ 49774 -D\"HS_INTERNAL_NAME=jvm\"" 49775 fi 49776 49777 49778 49779 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49780 # silence copyright notice and other headers. 49781 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 49782 fi 49783 49784 49785 # Now we can test some aspects on the target using configure macros. 49786 49787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 49788 $as_echo_n "checking for ANSI C header files... " >&6; } 49789 if ${ac_cv_header_stdc+:} false; then : 49790 $as_echo_n "(cached) " >&6 49791 else 49792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49793 /* end confdefs.h. */ 49794 #include <stdlib.h> 49795 #include <stdarg.h> 49796 #include <string.h> 49797 #include <float.h> 49798 49799 int 49800 main () 49801 { 49802 49803 ; 49804 return 0; 49805 } 49806 _ACEOF 49807 if ac_fn_cxx_try_compile "$LINENO"; then : 49808 ac_cv_header_stdc=yes 49809 else 49810 ac_cv_header_stdc=no 49811 fi 49812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49813 49814 if test $ac_cv_header_stdc = yes; then 49815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 49816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49817 /* end confdefs.h. */ 49818 #include <string.h> 49819 49820 _ACEOF 49821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49822 $EGREP "memchr" >/dev/null 2>&1; then : 49823 49824 else 49825 ac_cv_header_stdc=no 49826 fi 49827 rm -f conftest* 49828 49829 fi 49830 49831 if test $ac_cv_header_stdc = yes; then 49832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 49833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49834 /* end confdefs.h. */ 49835 #include <stdlib.h> 49836 49837 _ACEOF 49838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49839 $EGREP "free" >/dev/null 2>&1; then : 49840 49841 else 49842 ac_cv_header_stdc=no 49843 fi 49844 rm -f conftest* 49845 49846 fi 49847 49848 if test $ac_cv_header_stdc = yes; then 49849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 49850 if test "$cross_compiling" = yes; then : 49851 : 49852 else 49853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49854 /* end confdefs.h. */ 49855 #include <ctype.h> 49856 #include <stdlib.h> 49857 #if ((' ' & 0x0FF) == 0x020) 49858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 49859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 49860 #else 49861 # define ISLOWER(c) \ 49862 (('a' <= (c) && (c) <= 'i') \ 49863 || ('j' <= (c) && (c) <= 'r') \ 49864 || ('s' <= (c) && (c) <= 'z')) 49865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 49866 #endif 49867 49868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 49869 int 49870 main () 49871 { 49872 int i; 49873 for (i = 0; i < 256; i++) 49874 if (XOR (islower (i), ISLOWER (i)) 49875 || toupper (i) != TOUPPER (i)) 49876 return 2; 49877 return 0; 49878 } 49879 _ACEOF 49880 if ac_fn_cxx_try_run "$LINENO"; then : 49881 49882 else 49883 ac_cv_header_stdc=no 49884 fi 49885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49886 conftest.$ac_objext conftest.beam conftest.$ac_ext 49887 fi 49888 49889 fi 49890 fi 49891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 49892 $as_echo "$ac_cv_header_stdc" >&6; } 49893 if test $ac_cv_header_stdc = yes; then 49894 49895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 49896 49897 fi 49898 49899 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 49900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 49901 inttypes.h stdint.h unistd.h 49902 do : 49903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 49904 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 49905 " 49906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 49907 cat >>confdefs.h <<_ACEOF 49908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 49909 _ACEOF 49910 49911 fi 49912 49913 done 49914 49915 49916 49917 ############################################################################### 49918 # 49919 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 49920 # (The JVM can use 32 or 64 bit Java pointers but that decision 49921 # is made at runtime.) 49922 # 49923 49924 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 49925 # Always specify -m flag on Solaris 49926 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 49927 49928 # When we add flags to the "official" CFLAGS etc, we need to 49929 # keep track of these additions in ADDED_CFLAGS etc. These 49930 # will later be checked to make sure only controlled additions 49931 # have been made to CFLAGS etc. 49932 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49933 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49934 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49935 49936 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49937 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49938 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49939 49940 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49941 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49942 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49943 49944 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49945 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49946 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49947 49948 elif test "x$COMPILE_TYPE" = xreduced; then 49949 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 49950 # Specify -m if running reduced on unix platforms 49951 49952 # When we add flags to the "official" CFLAGS etc, we need to 49953 # keep track of these additions in ADDED_CFLAGS etc. These 49954 # will later be checked to make sure only controlled additions 49955 # have been made to CFLAGS etc. 49956 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49957 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49958 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49959 49960 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49961 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49962 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49963 49964 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49965 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49966 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49967 49968 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49969 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49970 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49971 49972 fi 49973 fi 49974 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49975 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49976 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49977 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49978 fi 49979 49980 # Make compilation sanity check 49981 for ac_header in stdio.h 49982 do : 49983 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 49984 if test "x$ac_cv_header_stdio_h" = xyes; then : 49985 cat >>confdefs.h <<_ACEOF 49986 #define HAVE_STDIO_H 1 49987 _ACEOF 49988 49989 else 49990 49991 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 49992 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 49993 if test "x$COMPILE_TYPE" = xreduced; then 49994 49995 # Print a helpful message on how to acquire the necessary build dependency. 49996 # reduced is the help tag: freetype, cups, alsa etc 49997 MISSING_DEPENDENCY=reduced 49998 49999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50000 cygwin_help $MISSING_DEPENDENCY 50001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50002 msys_help $MISSING_DEPENDENCY 50003 else 50004 PKGHANDLER_COMMAND= 50005 50006 case $PKGHANDLER in 50007 apt-get) 50008 apt_help $MISSING_DEPENDENCY ;; 50009 yum) 50010 yum_help $MISSING_DEPENDENCY ;; 50011 brew) 50012 brew_help $MISSING_DEPENDENCY ;; 50013 port) 50014 port_help $MISSING_DEPENDENCY ;; 50015 pkgutil) 50016 pkgutil_help $MISSING_DEPENDENCY ;; 50017 pkgadd) 50018 pkgadd_help $MISSING_DEPENDENCY ;; 50019 esac 50020 50021 if test "x$PKGHANDLER_COMMAND" != x; then 50022 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50023 fi 50024 fi 50025 50026 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50027 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50028 elif test "x$COMPILE_TYPE" = xcross; then 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50030 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50031 fi 50032 as_fn_error $? "Cannot continue." "$LINENO" 5 50033 50034 fi 50035 50036 done 50037 50038 50039 # The cast to long int works around a bug in the HP C Compiler 50040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50042 # This bug is HP SR number 8606223364. 50043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50044 $as_echo_n "checking size of int *... " >&6; } 50045 if ${ac_cv_sizeof_int_p+:} false; then : 50046 $as_echo_n "(cached) " >&6 50047 else 50048 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50049 50050 else 50051 if test "$ac_cv_type_int_p" = yes; then 50052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50054 as_fn_error 77 "cannot compute sizeof (int *) 50055 See \`config.log' for more details" "$LINENO" 5; } 50056 else 50057 ac_cv_sizeof_int_p=0 50058 fi 50059 fi 50060 50061 fi 50062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50063 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50064 50065 50066 50067 cat >>confdefs.h <<_ACEOF 50068 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50069 _ACEOF 50070 50071 50072 50073 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 50074 if test "x$ac_cv_sizeof_int_p" = x; then 50075 # The test failed, lets stick to the assumed value. 50076 { $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 50077 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 50078 else 50079 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50080 50081 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50082 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 50083 # Let's try to implicitely set the compilers target architecture and retry the test 50084 { $as_echo "$as_me:${as_lineno-$LINENO}: 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)." >&5 50085 $as_echo "$as_me: 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)." >&6;} 50086 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 50087 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 50088 50089 # When we add flags to the "official" CFLAGS etc, we need to 50090 # keep track of these additions in ADDED_CFLAGS etc. These 50091 # will later be checked to make sure only controlled additions 50092 # have been made to CFLAGS etc. 50093 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50094 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50095 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50096 50097 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50098 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50099 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50100 50101 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50102 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50103 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50104 50105 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50106 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50107 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50108 50109 50110 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 50111 unset ac_cv_sizeof_int_p 50112 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 50113 cat >>confdefs.h <<_ACEOF 50114 #undef SIZEOF_INT_P 50115 _ACEOF 50116 50117 # The cast to long int works around a bug in the HP C Compiler 50118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50120 # This bug is HP SR number 8606223364. 50121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50122 $as_echo_n "checking size of int *... " >&6; } 50123 if ${ac_cv_sizeof_int_p+:} false; then : 50124 $as_echo_n "(cached) " >&6 50125 else 50126 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50127 50128 else 50129 if test "$ac_cv_type_int_p" = yes; then 50130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50132 as_fn_error 77 "cannot compute sizeof (int *) 50133 See \`config.log' for more details" "$LINENO" 5; } 50134 else 50135 ac_cv_sizeof_int_p=0 50136 fi 50137 fi 50138 50139 fi 50140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50141 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50142 50143 50144 50145 cat >>confdefs.h <<_ACEOF 50146 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50147 _ACEOF 50148 50149 50150 50151 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50152 50153 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50154 { $as_echo "$as_me:${as_lineno-$LINENO}: 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)" >&5 50155 $as_echo "$as_me: 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)" >&6;} 50156 if test "x$COMPILE_TYPE" = xreduced; then 50157 50158 # Print a helpful message on how to acquire the necessary build dependency. 50159 # reduced is the help tag: freetype, cups, alsa etc 50160 MISSING_DEPENDENCY=reduced 50161 50162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50163 cygwin_help $MISSING_DEPENDENCY 50164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50165 msys_help $MISSING_DEPENDENCY 50166 else 50167 PKGHANDLER_COMMAND= 50168 50169 case $PKGHANDLER in 50170 apt-get) 50171 apt_help $MISSING_DEPENDENCY ;; 50172 yum) 50173 yum_help $MISSING_DEPENDENCY ;; 50174 brew) 50175 brew_help $MISSING_DEPENDENCY ;; 50176 port) 50177 port_help $MISSING_DEPENDENCY ;; 50178 pkgutil) 50179 pkgutil_help $MISSING_DEPENDENCY ;; 50180 pkgadd) 50181 pkgadd_help $MISSING_DEPENDENCY ;; 50182 esac 50183 50184 if test "x$PKGHANDLER_COMMAND" != x; then 50185 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50186 fi 50187 fi 50188 50189 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50190 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50191 elif test "x$COMPILE_TYPE" = xcross; then 50192 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50193 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50194 fi 50195 as_fn_error $? "Cannot continue." "$LINENO" 5 50196 fi 50197 fi 50198 fi 50199 50200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 50201 $as_echo_n "checking for target address size... " >&6; } 50202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 50203 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 50204 50205 50206 ############################################################################### 50207 # 50208 # Is the target little of big endian? 50209 # 50210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 50211 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 50212 if ${ac_cv_c_bigendian+:} false; then : 50213 $as_echo_n "(cached) " >&6 50214 else 50215 ac_cv_c_bigendian=unknown 50216 # See if we're dealing with a universal compiler. 50217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50218 /* end confdefs.h. */ 50219 #ifndef __APPLE_CC__ 50220 not a universal capable compiler 50221 #endif 50222 typedef int dummy; 50223 50224 _ACEOF 50225 if ac_fn_cxx_try_compile "$LINENO"; then : 50226 50227 # Check for potential -arch flags. It is not universal unless 50228 # there are at least two -arch flags with different values. 50229 ac_arch= 50230 ac_prev= 50231 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 50232 if test -n "$ac_prev"; then 50233 case $ac_word in 50234 i?86 | x86_64 | ppc | ppc64) 50235 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 50236 ac_arch=$ac_word 50237 else 50238 ac_cv_c_bigendian=universal 50239 break 50240 fi 50241 ;; 50242 esac 50243 ac_prev= 50244 elif test "x$ac_word" = "x-arch"; then 50245 ac_prev=arch 50246 fi 50247 done 50248 fi 50249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50250 if test $ac_cv_c_bigendian = unknown; then 50251 # See if sys/param.h defines the BYTE_ORDER macro. 50252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50253 /* end confdefs.h. */ 50254 #include <sys/types.h> 50255 #include <sys/param.h> 50256 50257 int 50258 main () 50259 { 50260 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 50261 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 50262 && LITTLE_ENDIAN) 50263 bogus endian macros 50264 #endif 50265 50266 ; 50267 return 0; 50268 } 50269 _ACEOF 50270 if ac_fn_cxx_try_compile "$LINENO"; then : 50271 # It does; now see whether it defined to BIG_ENDIAN or not. 50272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50273 /* end confdefs.h. */ 50274 #include <sys/types.h> 50275 #include <sys/param.h> 50276 50277 int 50278 main () 50279 { 50280 #if BYTE_ORDER != BIG_ENDIAN 50281 not big endian 50282 #endif 50283 50284 ; 50285 return 0; 50286 } 50287 _ACEOF 50288 if ac_fn_cxx_try_compile "$LINENO"; then : 50289 ac_cv_c_bigendian=yes 50290 else 50291 ac_cv_c_bigendian=no 50292 fi 50293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50294 fi 50295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50296 fi 50297 if test $ac_cv_c_bigendian = unknown; then 50298 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 50299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50300 /* end confdefs.h. */ 50301 #include <limits.h> 50302 50303 int 50304 main () 50305 { 50306 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 50307 bogus endian macros 50308 #endif 50309 50310 ; 50311 return 0; 50312 } 50313 _ACEOF 50314 if ac_fn_cxx_try_compile "$LINENO"; then : 50315 # It does; now see whether it defined to _BIG_ENDIAN or not. 50316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50317 /* end confdefs.h. */ 50318 #include <limits.h> 50319 50320 int 50321 main () 50322 { 50323 #ifndef _BIG_ENDIAN 50324 not big endian 50325 #endif 50326 50327 ; 50328 return 0; 50329 } 50330 _ACEOF 50331 if ac_fn_cxx_try_compile "$LINENO"; then : 50332 ac_cv_c_bigendian=yes 50333 else 50334 ac_cv_c_bigendian=no 50335 fi 50336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50337 fi 50338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50339 fi 50340 if test $ac_cv_c_bigendian = unknown; then 50341 # Compile a test program. 50342 if test "$cross_compiling" = yes; then : 50343 # Try to guess by grepping values from an object file. 50344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50345 /* end confdefs.h. */ 50346 short int ascii_mm[] = 50347 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 50348 short int ascii_ii[] = 50349 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 50350 int use_ascii (int i) { 50351 return ascii_mm[i] + ascii_ii[i]; 50352 } 50353 short int ebcdic_ii[] = 50354 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 50355 short int ebcdic_mm[] = 50356 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 50357 int use_ebcdic (int i) { 50358 return ebcdic_mm[i] + ebcdic_ii[i]; 50359 } 50360 extern int foo; 50361 50362 int 50363 main () 50364 { 50365 return use_ascii (foo) == use_ebcdic (foo); 50366 ; 50367 return 0; 50368 } 50369 _ACEOF 50370 if ac_fn_cxx_try_compile "$LINENO"; then : 50371 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 50372 ac_cv_c_bigendian=yes 50373 fi 50374 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 50375 if test "$ac_cv_c_bigendian" = unknown; then 50376 ac_cv_c_bigendian=no 50377 else 50378 # finding both strings is unlikely to happen, but who knows? 50379 ac_cv_c_bigendian=unknown 50380 fi 50381 fi 50382 fi 50383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50384 else 50385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50386 /* end confdefs.h. */ 50387 $ac_includes_default 50388 int 50389 main () 50390 { 50391 50392 /* Are we little or big endian? From Harbison&Steele. */ 50393 union 50394 { 50395 long int l; 50396 char c[sizeof (long int)]; 50397 } u; 50398 u.l = 1; 50399 return u.c[sizeof (long int) - 1] == 1; 50400 50401 ; 50402 return 0; 50403 } 50404 _ACEOF 50405 if ac_fn_cxx_try_run "$LINENO"; then : 50406 ac_cv_c_bigendian=no 50407 else 50408 ac_cv_c_bigendian=yes 50409 fi 50410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50411 conftest.$ac_objext conftest.beam conftest.$ac_ext 50412 fi 50413 50414 fi 50415 fi 50416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 50417 $as_echo "$ac_cv_c_bigendian" >&6; } 50418 case $ac_cv_c_bigendian in #( 50419 yes) 50420 ENDIAN="big";; #( 50421 no) 50422 ENDIAN="little" ;; #( 50423 universal) 50424 ENDIAN="universal_endianness" 50425 ;; #( 50426 *) 50427 ENDIAN="unknown" ;; 50428 esac 50429 50430 50431 if test "x$ENDIAN" = xuniversal_endianness; then 50432 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 50433 fi 50434 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 50435 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 50436 fi 50437 50438 50439 # Configure flags for the tools 50440 50441 ############################################################################### 50442 # 50443 # How to compile shared libraries. 50444 # 50445 50446 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50447 PICFLAG="-fPIC" 50448 C_FLAG_REORDER='' 50449 CXX_FLAG_REORDER='' 50450 50451 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50452 # Linking is different on MacOSX 50453 if test "x$STATIC_BUILD" = xtrue; then 50454 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 50455 else 50456 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50457 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50458 fi 50459 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50460 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50461 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50462 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50463 else 50464 # Default works for linux, might work on other platforms as well. 50465 SHARED_LIBRARY_FLAGS='-shared' 50466 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50467 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50468 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50469 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50470 fi 50471 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50472 C_FLAG_REORDER='' 50473 CXX_FLAG_REORDER='' 50474 50475 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50476 # Linking is different on MacOSX 50477 PICFLAG='' 50478 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50479 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50480 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50481 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50482 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50483 50484 if test "x$STATIC_BUILD" = xfalse; then 50485 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 50486 fi 50487 else 50488 # Default works for linux, might work on other platforms as well. 50489 PICFLAG='-fPIC' 50490 SHARED_LIBRARY_FLAGS='-shared' 50491 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50492 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50493 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50494 50495 # arm specific settings 50496 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 50497 # '-Wl,-z,origin' isn't used on arm. 50498 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 50499 else 50500 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50501 fi 50502 50503 fi 50504 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50505 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50506 PICFLAG="-xcode=pic32" 50507 else 50508 PICFLAG="-KPIC" 50509 fi 50510 C_FLAG_REORDER='-xF' 50511 CXX_FLAG_REORDER='-xF' 50512 SHARED_LIBRARY_FLAGS="-G" 50513 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 50514 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50515 SET_SHARED_LIBRARY_NAME='-h $1' 50516 SET_SHARED_LIBRARY_MAPFILE='-M$1' 50517 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50518 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 50519 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 50520 # will have to patch this single instruction with a call to some out-of-order code which 50521 # does the load from the TOC. This is of course slow. But in that case we also would have 50522 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 50523 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 50524 # can be patched directly by the linker and does not require a jump to out-of-order code. 50525 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 50526 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 50527 # loads for accessing a global variable). But there are rumors that this may be seen as a 50528 # 'performance feature' because of improved code locality of the symbols used in a 50529 # compilation unit. 50530 PICFLAG="-qpic" 50531 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50532 C_FLAG_REORDER='' 50533 CXX_FLAG_REORDER='' 50534 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 50535 SET_EXECUTABLE_ORIGIN="" 50536 SET_SHARED_LIBRARY_ORIGIN='' 50537 SET_SHARED_LIBRARY_NAME='' 50538 SET_SHARED_LIBRARY_MAPFILE='' 50539 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50540 PICFLAG="" 50541 C_FLAG_REORDER='' 50542 CXX_FLAG_REORDER='' 50543 SHARED_LIBRARY_FLAGS="-dll" 50544 SET_EXECUTABLE_ORIGIN='' 50545 SET_SHARED_LIBRARY_ORIGIN='' 50546 SET_SHARED_LIBRARY_NAME='' 50547 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 50548 fi 50549 50550 50551 50552 50553 50554 50555 50556 50557 50558 # The (cross) compiler is now configured, we can now test capabilities 50559 # of the target platform. 50560 50561 50562 50563 ############################################################################### 50564 # 50565 # Setup the opt flags for different compilers 50566 # and different operating systems. 50567 # 50568 50569 # FIXME: this was indirectly the old default, but just inherited. 50570 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50571 # C_FLAG_DEPS="-MMD -MF" 50572 # fi 50573 50574 # Generate make dependency files 50575 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50576 C_FLAG_DEPS="-MMD -MF" 50577 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50578 C_FLAG_DEPS="-MMD -MF" 50579 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50580 C_FLAG_DEPS="-xMMD -xMF" 50581 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50582 C_FLAG_DEPS="-qmakedep=gcc -MF" 50583 fi 50584 CXX_FLAG_DEPS="$C_FLAG_DEPS" 50585 50586 50587 50588 # Debug symbols 50589 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50590 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 50591 # reduce from default "-g2" option to save space 50592 CFLAGS_DEBUG_SYMBOLS="-g1" 50593 CXXFLAGS_DEBUG_SYMBOLS="-g1" 50594 else 50595 CFLAGS_DEBUG_SYMBOLS="-g" 50596 CXXFLAGS_DEBUG_SYMBOLS="-g" 50597 fi 50598 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50599 CFLAGS_DEBUG_SYMBOLS="-g" 50600 CXXFLAGS_DEBUG_SYMBOLS="-g" 50601 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50602 CFLAGS_DEBUG_SYMBOLS="-g -xs" 50603 # -g0 enables debug symbols without disabling inlining. 50604 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 50605 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50606 CFLAGS_DEBUG_SYMBOLS="-g" 50607 CXXFLAGS_DEBUG_SYMBOLS="-g" 50608 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50609 CFLAGS_DEBUG_SYMBOLS="-Zi" 50610 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 50611 fi 50612 50613 50614 50615 # Debug symbols for JVM_CFLAGS 50616 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50617 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 50618 if test "x$DEBUG_LEVEL" = xslowdebug; then 50619 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50620 else 50621 # -g0 does not disable inlining, which -g does. 50622 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 50623 fi 50624 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50625 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 50626 else 50627 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50628 fi 50629 50630 50631 # bounds, memory and behavior checking options 50632 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50633 case $DEBUG_LEVEL in 50634 release ) 50635 # no adjustment 50636 ;; 50637 fastdebug ) 50638 # no adjustment 50639 ;; 50640 slowdebug ) 50641 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 50642 # get's added conditionally on whether we produce debug symbols or not. 50643 # This is most likely not really correct. 50644 50645 # Add runtime stack smashing and undefined behavior checks. 50646 # Not all versions of gcc support -fstack-protector 50647 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 50648 50649 50650 50651 50652 50653 50654 50655 50656 50657 50658 50659 50660 50661 50662 50663 50664 50665 50666 50667 50668 50669 50670 50671 50672 50673 50674 50675 50676 50677 50678 50679 50680 50681 50682 50683 50684 50685 50686 50687 50688 50689 50690 # Execute function body 50691 50692 50693 50694 50695 50696 50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 50716 50717 50718 50719 50720 50721 50722 50723 50724 50725 50726 50727 50728 50729 50730 50731 50732 50733 50734 50735 50736 50737 50738 50739 # Execute function body 50740 50741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50742 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50743 supports=yes 50744 50745 saved_cflags="$CFLAGS" 50746 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 50747 ac_ext=c 50748 ac_cpp='$CPP $CPPFLAGS' 50749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50751 ac_compiler_gnu=$ac_cv_c_compiler_gnu 50752 50753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50754 /* end confdefs.h. */ 50755 int i; 50756 _ACEOF 50757 if ac_fn_c_try_compile "$LINENO"; then : 50758 50759 else 50760 supports=no 50761 fi 50762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50763 ac_ext=cpp 50764 ac_cpp='$CXXCPP $CPPFLAGS' 50765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50768 50769 CFLAGS="$saved_cflags" 50770 50771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50772 $as_echo "$supports" >&6; } 50773 if test "x$supports" = "xyes" ; then 50774 : 50775 C_COMP_SUPPORTS="yes" 50776 else 50777 : 50778 C_COMP_SUPPORTS="no" 50779 fi 50780 50781 50782 50783 50784 50785 50786 50787 50788 50789 50790 50791 50792 50793 50794 50795 50796 50797 50798 50799 50800 50801 50802 50803 50804 50805 50806 50807 50808 50809 50810 50811 50812 50813 50814 50815 50816 50817 50818 50819 50820 50821 50822 50823 50824 50825 50826 50827 50828 50829 50830 50831 50832 50833 50834 50835 50836 50837 50838 50839 # Execute function body 50840 50841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50842 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50843 supports=yes 50844 50845 saved_cxxflags="$CXXFLAGS" 50846 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 50847 ac_ext=cpp 50848 ac_cpp='$CXXCPP $CPPFLAGS' 50849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50852 50853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50854 /* end confdefs.h. */ 50855 int i; 50856 _ACEOF 50857 if ac_fn_cxx_try_compile "$LINENO"; then : 50858 50859 else 50860 supports=no 50861 fi 50862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50863 ac_ext=cpp 50864 ac_cpp='$CXXCPP $CPPFLAGS' 50865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50868 50869 CXXFLAGS="$saved_cxxflags" 50870 50871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50872 $as_echo "$supports" >&6; } 50873 if test "x$supports" = "xyes" ; then 50874 : 50875 CXX_COMP_SUPPORTS="yes" 50876 else 50877 : 50878 CXX_COMP_SUPPORTS="no" 50879 fi 50880 50881 50882 50883 50884 50885 50886 50887 50888 50889 50890 50891 50892 50893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50894 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50895 supports=no 50896 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 50897 50898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50899 $as_echo "$supports" >&6; } 50900 if test "x$supports" = "xyes" ; then 50901 : 50902 50903 else 50904 : 50905 STACK_PROTECTOR_CFLAG="" 50906 fi 50907 50908 50909 50910 50911 50912 50913 50914 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50915 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50916 if test "x$STACK_PROTECTOR_CFLAG" != x; then 50917 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50918 fi 50919 ;; 50920 esac 50921 fi 50922 50923 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50924 if test "x$DEBUG_LEVEL" != xrelease; then 50925 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50926 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 50927 fi 50928 fi 50929 fi 50930 50931 # Optimization levels 50932 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50933 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 50934 50935 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 50936 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 50937 C_O_FLAG_HIGHEST_JVM="-xO4" 50938 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 50939 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 50940 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 50941 C_O_FLAG_DEBUG="-xregs=no%frameptr" 50942 C_O_FLAG_DEBUG_JVM="" 50943 C_O_FLAG_NONE="-xregs=no%frameptr" 50944 CXX_O_FLAG_HIGHEST_JVM="-xO4" 50945 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 50946 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 50947 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 50948 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 50949 CXX_O_FLAG_DEBUG_JVM="" 50950 CXX_O_FLAG_NONE="-xregs=no%frameptr" 50951 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50952 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 50953 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 50954 fi 50955 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50956 C_O_FLAG_HIGHEST_JVM="-xO4" 50957 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 50958 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 50959 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 50960 C_O_FLAG_DEBUG="" 50961 C_O_FLAG_DEBUG_JVM="" 50962 C_O_FLAG_NONE="" 50963 CXX_O_FLAG_HIGHEST_JVM="-xO4" 50964 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 50965 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50966 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50967 CXX_O_FLAG_DEBUG="" 50968 CXX_O_FLAG_DEBUG_JVM="" 50969 CXX_O_FLAG_NONE="" 50970 fi 50971 else 50972 # The remaining toolchains share opt flags between CC and CXX; 50973 # setup for C and duplicate afterwards. 50974 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50975 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50976 # On MacOSX we optimize for size, something 50977 # we should do for all platforms? 50978 C_O_FLAG_HIGHEST_JVM="-Os" 50979 C_O_FLAG_HIGHEST="-Os" 50980 C_O_FLAG_HI="-Os" 50981 C_O_FLAG_NORM="-Os" 50982 C_O_FLAG_SIZE="-Os" 50983 else 50984 C_O_FLAG_HIGHEST_JVM="-O3" 50985 C_O_FLAG_HIGHEST="-O3" 50986 C_O_FLAG_HI="-O3" 50987 C_O_FLAG_NORM="-O2" 50988 C_O_FLAG_SIZE="-Os" 50989 fi 50990 C_O_FLAG_DEBUG="-O0" 50991 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50992 C_O_FLAG_DEBUG_JVM="" 50993 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50994 C_O_FLAG_DEBUG_JVM="-O0" 50995 fi 50996 C_O_FLAG_NONE="-O0" 50997 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50998 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50999 # On MacOSX we optimize for size, something 51000 # we should do for all platforms? 51001 C_O_FLAG_HIGHEST_JVM="-Os" 51002 C_O_FLAG_HIGHEST="-Os" 51003 C_O_FLAG_HI="-Os" 51004 C_O_FLAG_NORM="-Os" 51005 C_O_FLAG_SIZE="-Os" 51006 else 51007 C_O_FLAG_HIGHEST_JVM="-O3" 51008 C_O_FLAG_HIGHEST="-O3" 51009 C_O_FLAG_HI="-O3" 51010 C_O_FLAG_NORM="-O2" 51011 C_O_FLAG_SIZE="-Os" 51012 fi 51013 C_O_FLAG_DEBUG="-O0" 51014 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51015 C_O_FLAG_DEBUG_JVM="" 51016 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51017 C_O_FLAG_DEBUG_JVM="-O0" 51018 fi 51019 C_O_FLAG_NONE="-O0" 51020 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51021 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 51022 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 51023 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51024 C_O_FLAG_NORM="-O2" 51025 C_O_FLAG_DEBUG="-qnoopt" 51026 # FIXME: Value below not verified. 51027 C_O_FLAG_DEBUG_JVM="" 51028 C_O_FLAG_NONE="-qnoopt" 51029 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51030 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51031 C_O_FLAG_HIGHEST="-O2" 51032 C_O_FLAG_HI="-O1" 51033 C_O_FLAG_NORM="-O1" 51034 C_O_FLAG_DEBUG="-Od" 51035 C_O_FLAG_DEBUG_JVM="" 51036 C_O_FLAG_NONE="-Od" 51037 C_O_FLAG_SIZE="-Os" 51038 fi 51039 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51040 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51041 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51042 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51043 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51044 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51045 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51046 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51047 fi 51048 51049 # Adjust optimization flags according to debug level. 51050 case $DEBUG_LEVEL in 51051 release ) 51052 # no adjustment 51053 ;; 51054 fastdebug ) 51055 # Not quite so much optimization 51056 C_O_FLAG_HI="$C_O_FLAG_NORM" 51057 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51058 ;; 51059 slowdebug ) 51060 # Disable optimization 51061 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 51062 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 51063 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 51064 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 51065 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 51066 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 51067 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 51068 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 51069 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 51070 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 51071 ;; 51072 esac 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 # Check whether --with-abi-profile was given. 51094 if test "${with_abi_profile+set}" = set; then : 51095 withval=$with_abi_profile; 51096 fi 51097 51098 51099 if test "x$with_abi_profile" != x; then 51100 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 51101 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 51102 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 51103 fi 51104 51105 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 51106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 51107 $as_echo_n "checking for ABI profle... " >&6; } 51108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 51109 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 51110 51111 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 51112 ARM_FLOAT_TYPE=vfp-sflt 51113 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51114 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 51115 ARM_FLOAT_TYPE=vfp-hflt 51116 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51117 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 51118 ARM_FLOAT_TYPE=sflt 51119 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51120 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 51121 ARM_FLOAT_TYPE=vfp-sflt 51122 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51123 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 51124 ARM_FLOAT_TYPE=vfp-hflt 51125 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 51126 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 51127 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51128 ARM_FLOAT_TYPE= 51129 ARM_ARCH_TYPE_FLAGS= 51130 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 51131 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51132 ARM_FLOAT_TYPE= 51133 ARM_ARCH_TYPE_FLAGS= 51134 else 51135 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 51136 fi 51137 51138 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 51139 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 51140 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 51141 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 51142 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 51143 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 51144 fi 51145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 51146 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 51147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 51148 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 51149 51150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 51151 $as_echo_n "checking for arch type flags... " >&6; } 51152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 51153 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 51154 51155 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 51156 # autoconf target triplet. 51157 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 51158 # Sanity check that it is a known ABI. 51159 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 51160 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 51161 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 51162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 51163 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 51164 fi 51165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 51166 $as_echo_n "checking for ABI property name... " >&6; } 51167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 51168 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 51169 51170 51171 # Pass these on to the open part of configure as if they were set using 51172 # --with-extra-c[xx]flags. 51173 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51174 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51175 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 51176 # FIXME: This should not really be set using extra_cflags. 51177 if test "x$OPENJDK_TARGET_CPU" = xarm; then 51178 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 51179 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 51180 fi 51181 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 51182 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 51183 # And pass the architecture flags to the linker as well 51184 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51185 fi 51186 51187 # When building with an abi profile, the name of that profile is appended on the 51188 # bundle platform, which is used in bundle names. 51189 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 51190 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 51191 fi 51192 51193 51194 # Optional POSIX functionality needed by the JVM 51195 # 51196 # Check if clock_gettime is available and in which library. This indicates 51197 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 51198 # don't let it update LIBS. 51199 save_LIBS="$LIBS" 51200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 51201 $as_echo_n "checking for library containing clock_gettime... " >&6; } 51202 if ${ac_cv_search_clock_gettime+:} false; then : 51203 $as_echo_n "(cached) " >&6 51204 else 51205 ac_func_search_save_LIBS=$LIBS 51206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51207 /* end confdefs.h. */ 51208 51209 /* Override any GCC internal prototype to avoid an error. 51210 Use char because int might match the return type of a GCC 51211 builtin and then its argument prototype would still apply. */ 51212 #ifdef __cplusplus 51213 extern "C" 51214 #endif 51215 char clock_gettime (); 51216 int 51217 main () 51218 { 51219 return clock_gettime (); 51220 ; 51221 return 0; 51222 } 51223 _ACEOF 51224 for ac_lib in '' rt; do 51225 if test -z "$ac_lib"; then 51226 ac_res="none required" 51227 else 51228 ac_res=-l$ac_lib 51229 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 51230 fi 51231 if ac_fn_cxx_try_link "$LINENO"; then : 51232 ac_cv_search_clock_gettime=$ac_res 51233 fi 51234 rm -f core conftest.err conftest.$ac_objext \ 51235 conftest$ac_exeext 51236 if ${ac_cv_search_clock_gettime+:} false; then : 51237 break 51238 fi 51239 done 51240 if ${ac_cv_search_clock_gettime+:} false; then : 51241 51242 else 51243 ac_cv_search_clock_gettime=no 51244 fi 51245 rm conftest.$ac_ext 51246 LIBS=$ac_func_search_save_LIBS 51247 fi 51248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 51249 $as_echo "$ac_cv_search_clock_gettime" >&6; } 51250 ac_res=$ac_cv_search_clock_gettime 51251 if test "$ac_res" != no; then : 51252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 51253 HAS_CLOCK_GETTIME=true 51254 fi 51255 51256 if test "x$LIBS" = "x-lrt "; then 51257 CLOCK_GETTIME_IN_LIBRT=true 51258 fi 51259 LIBS="$save_LIBS" 51260 51261 51262 # Special extras... 51263 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51264 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51265 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51266 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51267 fi 51268 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51269 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51270 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51271 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51272 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51273 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51274 CXXSTD_CXXFLAG="-std=gnu++98" 51275 51276 51277 51278 51279 51280 51281 51282 51283 51284 51285 51286 51287 51288 51289 51290 51291 51292 51293 51294 51295 51296 51297 51298 51299 51300 51301 51302 51303 51304 51305 51306 51307 51308 51309 51310 51311 51312 51313 51314 51315 51316 51317 # Execute function body 51318 51319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 51320 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 51321 supports=yes 51322 51323 saved_cxxflags="$CXXFLAGS" 51324 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 51325 ac_ext=cpp 51326 ac_cpp='$CXXCPP $CPPFLAGS' 51327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51330 51331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51332 /* end confdefs.h. */ 51333 int i; 51334 _ACEOF 51335 if ac_fn_cxx_try_compile "$LINENO"; then : 51336 51337 else 51338 supports=no 51339 fi 51340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51341 ac_ext=cpp 51342 ac_cpp='$CXXCPP $CPPFLAGS' 51343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51346 51347 CXXFLAGS="$saved_cxxflags" 51348 51349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51350 $as_echo "$supports" >&6; } 51351 if test "x$supports" = "xyes" ; then 51352 : 51353 51354 else 51355 : 51356 CXXSTD_CXXFLAG="" 51357 fi 51358 51359 51360 51361 51362 51363 51364 51365 51366 51367 51368 51369 51370 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 51371 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 51372 51373 fi 51374 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51375 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 51376 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 51377 fi 51378 51379 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 51380 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 51381 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 51382 51383 ############################################################################### 51384 # 51385 # Now setup the CFLAGS and LDFLAGS for the JDK build. 51386 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 51387 # 51388 51389 # Setup compiler/platform specific flags into 51390 # CFLAGS_JDK - C Compiler flags 51391 # CXXFLAGS_JDK - C++ Compiler flags 51392 # COMMON_CCXXFLAGS_JDK - common to C and C++ 51393 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51394 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51395 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51396 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 51397 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51398 # Force compatibility with i586 on 32 bit intel platforms. 51399 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51400 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51401 fi 51402 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51403 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51404 case $OPENJDK_TARGET_CPU_ARCH in 51405 arm ) 51406 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51407 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51408 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 51409 ;; 51410 ppc ) 51411 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51412 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51413 ;; 51414 s390 ) 51415 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 51416 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51417 ;; 51418 * ) 51419 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51420 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51421 ;; 51422 esac 51423 51424 51425 51426 51427 51428 51429 51430 51431 51432 51433 51434 51435 51436 51437 51438 51439 51440 51441 51442 51443 51444 51445 51446 51447 51448 51449 51450 51451 51452 51453 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 # Execute function body 51478 51479 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51480 REFERENCE_VERSION=6 51481 51482 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51483 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51484 fi 51485 51486 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51487 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 51488 fi 51489 51490 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51491 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51492 51493 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51494 : 51495 51496 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 51497 # runs afoul of the more aggressive versions of these optimisations. 51498 # Notably, value range propagation now assumes that the this pointer of C++ 51499 # member functions is non-null. 51500 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 51501 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 51502 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 51503 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 51504 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51505 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51506 51507 else 51508 : 51509 51510 fi 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51526 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51527 51528 # Restrict the debug information created by Clang to avoid 51529 # too big object files and speed the build up a little bit 51530 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 51531 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 51532 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51533 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51534 # Force compatibility with i586 on 32 bit intel platforms. 51535 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51536 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51537 fi 51538 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 51539 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51540 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51541 case $OPENJDK_TARGET_CPU_ARCH in 51542 ppc ) 51543 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51544 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51545 ;; 51546 * ) 51547 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51548 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51549 ;; 51550 esac 51551 fi 51552 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51553 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 51554 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 51555 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 51556 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 51557 fi 51558 51559 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 51560 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 51561 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51562 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51563 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51564 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51565 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51566 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 51567 -MD -Zc:wchar_t- -W3 -wd4800 \ 51568 -DWIN32_LEAN_AND_MEAN \ 51569 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 51570 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 51571 -DWIN32 -DIAL" 51572 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51573 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 51574 else 51575 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 51576 fi 51577 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 51578 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 51579 # studio. 51580 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 51581 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51582 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51583 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51584 fi 51585 fi 51586 51587 ############################################################################### 51588 51589 # Adjust flags according to debug level. 51590 case $DEBUG_LEVEL in 51591 fastdebug | slowdebug ) 51592 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51593 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51594 ;; 51595 release ) 51596 ;; 51597 * ) 51598 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51599 ;; 51600 esac 51601 51602 # Set some common defines. These works for all compilers, but assume 51603 # -D is universally accepted. 51604 51605 # Setup endianness 51606 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51607 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51608 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51609 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51610 # Note: -Dmacro is the same as #define macro 1 51611 # -Dmacro= is the same as #define macro 51612 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51613 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51614 else 51615 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51616 fi 51617 else 51618 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51619 # are defined in the system? 51620 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51621 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51622 else 51623 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51624 fi 51625 fi 51626 51627 # Always enable optional macros for VM. 51628 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 51629 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 51630 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 51631 51632 # Setup target OS define. Use OS target name but in upper case. 51633 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51634 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 51635 51636 # Setup target CPU 51637 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51638 $OPENJDK_TARGET_ADD_LP64 \ 51639 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 51640 51641 # Setup debug/release defines 51642 if test "x$DEBUG_LEVEL" = xrelease; then 51643 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 51644 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51645 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 51646 fi 51647 else 51648 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 51649 fi 51650 51651 # Optional POSIX functionality needed by the VM 51652 51653 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 51654 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 51655 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 51656 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 51657 fi 51658 fi 51659 51660 51661 # Set some additional per-OS defines. 51662 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51663 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 51664 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 51665 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51666 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 51667 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 51668 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51669 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 51670 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51671 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51672 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 51673 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51674 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51675 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51676 -fno-omit-frame-pointer" 51677 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51678 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 51679 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 51680 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51681 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51682 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51683 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 51684 # so for slowdebug we build with '-qpic=large -bbigtoc'. 51685 if test "x$DEBUG_LEVEL" = xslowdebug; then 51686 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 51687 fi 51688 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 51689 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51690 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 51691 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51692 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 51693 fi 51694 51695 # Set some additional per-CPU defines. 51696 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 51697 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 51698 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 51699 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 51700 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 51701 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51702 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51703 # fixes `relocation truncated to fit' error for gcc 4.1. 51704 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 51705 # Use ppc64 instructions, but schedule for power5 51706 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51707 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51708 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 51709 fi 51710 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 51711 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51712 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51713 # Little endian machine uses ELFv2 ABI. 51714 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 51715 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51716 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 51717 fi 51718 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 51719 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51720 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 51721 fi 51722 fi 51723 51724 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51725 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51726 fi 51727 51728 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51729 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 51730 # Solaris does not have _LP64=1 in the old build. 51731 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51732 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 51733 fi 51734 fi 51735 51736 # Set JVM_CFLAGS warning handling 51737 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51738 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51739 -Wunused-value -Woverloaded-virtual" 51740 51741 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 51792 51793 51794 51795 51796 # Execute function body 51797 51798 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51799 REFERENCE_VERSION=4.8 51800 51801 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51802 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51803 fi 51804 51805 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51806 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51807 fi 51808 51809 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51810 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51811 51812 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51813 : 51814 51815 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51816 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51817 51818 51819 else 51820 : 51821 51822 fi 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 51836 51837 fi 51838 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 51839 # Non-zero builds have stricter warnings 51840 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51841 else 51842 if test "x$TOOLCHAIN_TYPE" = xclang; then 51843 # Some versions of llvm do not like -Wundef 51844 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 51845 fi 51846 fi 51847 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51848 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51849 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51850 fi 51851 51852 # Additional macosx handling 51853 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51854 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 51855 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 51856 # JDK can be built and makes the linked binaries compatible even if built on 51857 # a newer version of the OS. 51858 MACOSX_VERSION_MIN=10.7.0 51859 51860 51861 # Setting --with-macosx-version-max=<version> makes it an error to build or 51862 # link to macosx APIs that are newer than the given OS version. The expected 51863 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 51864 51865 # Check whether --with-macosx-version-max was given. 51866 if test "${with_macosx_version_max+set}" = set; then : 51867 withval=$with_macosx_version_max; 51868 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 51869 MACOSX_VERSION_MAX=$with_macosx_version_max 51870 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 51871 MACOSX_VERSION_MAX=$with_macosx_version_max 51872 elif test "x$with_macosx_version_max" = "xno"; then 51873 # Use build system default 51874 MACOSX_VERSION_MAX= 51875 else 51876 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 51877 fi 51878 51879 else 51880 MACOSX_VERSION_MAX= 51881 51882 fi 51883 51884 51885 51886 # Let the flags variables get resolved in make for easier override on make 51887 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 51888 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51889 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51890 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51891 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51892 JVM_CFLAGS="$JVM_CFLAGS \ 51893 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51894 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51895 51896 if test -n "$MACOSX_VERSION_MAX"; then 51897 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51898 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51899 JVM_CFLAGS="$JVM_CFLAGS \ 51900 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51901 fi 51902 fi 51903 51904 # Setup some hard coded includes 51905 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51906 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 51907 -I${TOPDIR}/src/java.base/share/native/include \ 51908 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 51909 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 51910 -I${TOPDIR}/src/java.base/share/native/libjava \ 51911 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 51912 51913 # The shared libraries are compiled using the picflag. 51914 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 51915 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51916 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 51917 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51918 51919 # Executable flags 51920 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 51921 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 51922 51923 51924 51925 51926 51927 51928 # Setup LDFLAGS et al. 51929 # 51930 51931 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51932 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51933 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51934 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51935 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51936 LDFLAGS_SAFESH="-safeseh" 51937 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 51938 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 51939 # NOTE: Old build added -machine. Probably not needed. 51940 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 51941 else 51942 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 51943 fi 51944 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51945 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51946 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51947 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51948 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51949 fi 51950 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51951 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51952 # We have previously set HAS_GNU_HASH if this is the case 51953 if test -n "$HAS_GNU_HASH"; then 51954 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51955 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 51956 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 51957 fi 51958 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51959 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51960 fi 51961 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51962 # And since we now know that the linker is gnu, then add -z defs, to forbid 51963 # undefined symbols in object files. 51964 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51965 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51966 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51967 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51968 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51969 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51970 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 51971 fi 51972 case $DEBUG_LEVEL in 51973 release ) 51974 # tell linker to optimize libraries. 51975 # Should this be supplied to the OSS linker as well? 51976 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51977 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51978 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51979 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51980 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51981 fi 51982 ;; 51983 slowdebug ) 51984 # Hotspot always let the linker optimize 51985 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 51986 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51987 # do relocations at load 51988 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 51989 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51990 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 51991 fi 51992 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51993 # mark relocations read only 51994 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 51995 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51996 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51997 fi 51998 ;; 51999 fastdebug ) 52000 # Hotspot always let the linker optimize 52001 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52002 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52003 # mark relocations read only 52004 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52005 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52006 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52007 fi 52008 ;; 52009 * ) 52010 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52011 ;; 52012 esac 52013 fi 52014 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52015 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52016 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52017 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52018 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52019 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52020 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52021 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 52022 fi 52023 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52024 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 52025 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52026 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52027 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52028 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52029 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52030 if test "x$DEBUG_LEVEL" = xslowdebug; then 52031 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52032 fi 52033 fi 52034 52035 # Customize LDFLAGS for executables 52036 52037 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52038 52039 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52040 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52041 LDFLAGS_STACK_SIZE=1048576 52042 else 52043 LDFLAGS_STACK_SIZE=327680 52044 fi 52045 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52046 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52047 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52048 fi 52049 52050 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52051 52052 # Customize LDFLAGS for libs 52053 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52054 52055 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52056 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52057 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52058 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52059 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 52060 JDKLIB_LIBS="" 52061 else 52062 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52063 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52064 52065 if test "xTARGET" = "xTARGET"; then 52066 # On some platforms (mac) the linker warns about non existing -L dirs. 52067 # For any of the variants server, client or minimal, the dir matches the 52068 # variant name. The "main" variant should be used for linking. For the 52069 # rest, the dir is just server. 52070 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52071 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52072 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52073 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52074 else 52075 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52076 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52077 fi 52078 elif test "xTARGET" = "xBUILD"; then 52079 # When building a buildjdk, it's always only the server variant 52080 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52081 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52082 fi 52083 52084 JDKLIB_LIBS="-ljava -ljvm" 52085 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52086 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 52087 fi 52088 52089 fi 52090 52091 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 52092 52093 # Set JVM_LIBS (per os) 52094 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52095 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 52096 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52097 # FIXME: This hard-coded path is not really proper. 52098 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52099 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52100 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 52101 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52102 fi 52103 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52104 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52105 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52106 JVM_LIBS="$JVM_LIBS -lm" 52107 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52108 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52109 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52110 JVM_LIBS="$JVM_LIBS -lm" 52111 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52112 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52113 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52114 wsock32.lib winmm.lib version.lib psapi.lib" 52115 fi 52116 52117 # Set JVM_ASFLAGS 52118 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52119 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52120 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 52121 fi 52122 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52123 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 52124 fi 52125 52126 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 52127 52128 52129 52130 52131 52132 52133 52134 52135 52136 52137 52138 52139 52140 52141 52142 52143 # Special extras... 52144 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52145 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52146 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52147 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52148 fi 52149 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52150 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52151 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52152 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52153 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52154 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52155 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 52171 52172 52173 52174 52175 52176 52177 52178 52179 52180 52181 52182 52183 52184 52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 52196 52197 52198 # Execute function body 52199 52200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 52201 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 52202 supports=yes 52203 52204 saved_cxxflags="$CXXFLAGS" 52205 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 52206 ac_ext=cpp 52207 ac_cpp='$CXXCPP $CPPFLAGS' 52208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52211 52212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52213 /* end confdefs.h. */ 52214 int i; 52215 _ACEOF 52216 if ac_fn_cxx_try_compile "$LINENO"; then : 52217 52218 else 52219 supports=no 52220 fi 52221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52222 ac_ext=cpp 52223 ac_cpp='$CXXCPP $CPPFLAGS' 52224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52227 52228 CXXFLAGS="$saved_cxxflags" 52229 52230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52231 $as_echo "$supports" >&6; } 52232 if test "x$supports" = "xyes" ; then 52233 : 52234 52235 else 52236 : 52237 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 52238 fi 52239 52240 52241 52242 52243 52244 52245 52246 52247 52248 52249 52250 52251 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52252 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52253 52254 fi 52255 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52256 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 52257 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 52258 fi 52259 52260 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 52261 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 52262 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 52263 52264 ############################################################################### 52265 # 52266 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52267 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52268 # 52269 52270 # Setup compiler/platform specific flags into 52271 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 52272 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 52273 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 52274 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52275 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52276 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52277 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 52278 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52279 # Force compatibility with i586 on 32 bit intel platforms. 52280 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52281 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52282 fi 52283 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52284 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52285 case $OPENJDK_BUILD_CPU_ARCH in 52286 arm ) 52287 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52288 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52289 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 52290 ;; 52291 ppc ) 52292 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52293 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52294 ;; 52295 s390 ) 52296 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52297 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52298 ;; 52299 * ) 52300 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52301 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52302 ;; 52303 esac 52304 52305 52306 52307 52308 52309 52310 52311 52312 52313 52314 52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 52332 52333 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 52358 # Execute function body 52359 52360 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52361 REFERENCE_VERSION=6 52362 52363 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52364 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52365 fi 52366 52367 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52368 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52369 fi 52370 52371 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52372 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52373 52374 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52375 : 52376 52377 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52378 # runs afoul of the more aggressive versions of these optimisations. 52379 # Notably, value range propagation now assumes that the this pointer of C++ 52380 # member functions is non-null. 52381 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52382 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52383 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52384 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52385 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52386 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52387 52388 else 52389 : 52390 52391 fi 52392 52393 52394 52395 52396 52397 52398 52399 52400 52401 52402 52403 52404 52405 52406 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52407 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52408 52409 # Restrict the debug information created by Clang to avoid 52410 # too big object files and speed the build up a little bit 52411 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52412 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 52413 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52414 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52415 # Force compatibility with i586 on 32 bit intel platforms. 52416 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52417 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52418 fi 52419 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 52420 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52421 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52422 case $OPENJDK_BUILD_CPU_ARCH in 52423 ppc ) 52424 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52425 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52426 ;; 52427 * ) 52428 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52429 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52430 ;; 52431 esac 52432 fi 52433 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52434 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 52435 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52436 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 52437 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 52438 fi 52439 52440 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52441 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52442 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52443 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52444 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52445 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52446 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52447 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52448 -MD -Zc:wchar_t- -W3 -wd4800 \ 52449 -DWIN32_LEAN_AND_MEAN \ 52450 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52451 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52452 -DWIN32 -DIAL" 52453 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52454 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52455 else 52456 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52457 fi 52458 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52459 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52460 # studio. 52461 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52462 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52463 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52464 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52465 fi 52466 fi 52467 52468 ############################################################################### 52469 52470 # Adjust flags according to debug level. 52471 case $DEBUG_LEVEL in 52472 fastdebug | slowdebug ) 52473 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52474 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52475 ;; 52476 release ) 52477 ;; 52478 * ) 52479 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52480 ;; 52481 esac 52482 52483 # Set some common defines. These works for all compilers, but assume 52484 # -D is universally accepted. 52485 52486 # Setup endianness 52487 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52488 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52489 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52490 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52491 # Note: -Dmacro is the same as #define macro 1 52492 # -Dmacro= is the same as #define macro 52493 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52494 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52495 else 52496 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52497 fi 52498 else 52499 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52500 # are defined in the system? 52501 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52502 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52503 else 52504 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52505 fi 52506 fi 52507 52508 # Always enable optional macros for VM. 52509 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52510 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52511 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52512 52513 # Setup target OS define. Use OS target name but in upper case. 52514 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52515 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 52516 52517 # Setup target CPU 52518 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52519 $OPENJDK_BUILD_ADD_LP64 \ 52520 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 52521 52522 # Setup debug/release defines 52523 if test "x$DEBUG_LEVEL" = xrelease; then 52524 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 52525 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52526 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 52527 fi 52528 else 52529 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 52530 fi 52531 52532 # Optional POSIX functionality needed by the VM 52533 52534 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52535 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52536 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52537 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 52538 fi 52539 fi 52540 52541 52542 # Set some additional per-OS defines. 52543 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52544 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 52545 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52546 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52547 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52548 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 52549 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52550 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52551 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52552 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52553 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 52554 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52555 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52556 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52557 -fno-omit-frame-pointer" 52558 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52559 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 52560 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 52561 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52562 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52563 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52564 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52565 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52566 if test "x$DEBUG_LEVEL" = xslowdebug; then 52567 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 52568 fi 52569 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52570 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52571 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52572 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52573 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 52574 fi 52575 52576 # Set some additional per-CPU defines. 52577 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 52578 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 52579 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 52580 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 52581 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 52582 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52583 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52584 # fixes `relocation truncated to fit' error for gcc 4.1. 52585 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 52586 # Use ppc64 instructions, but schedule for power5 52587 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52588 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52589 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 52590 fi 52591 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 52592 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52593 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52594 # Little endian machine uses ELFv2 ABI. 52595 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 52596 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52597 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 52598 fi 52599 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 52600 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52601 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 52602 fi 52603 fi 52604 52605 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52606 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52607 fi 52608 52609 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 52610 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 52611 # Solaris does not have _LP64=1 in the old build. 52612 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52613 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 52614 fi 52615 fi 52616 52617 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 52618 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52619 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52620 -Wunused-value -Woverloaded-virtual" 52621 52622 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 52638 52639 52640 52641 52642 52643 52644 52645 52646 52647 52648 52649 52650 52651 52652 52653 52654 52655 52656 52657 52658 52659 52660 52661 52662 52663 52664 52665 52666 52667 52668 52669 52670 52671 52672 52673 52674 52675 52676 52677 # Execute function body 52678 52679 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52680 REFERENCE_VERSION=4.8 52681 52682 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52683 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52684 fi 52685 52686 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52687 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52688 fi 52689 52690 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52691 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52692 52693 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52694 : 52695 52696 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52697 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52698 52699 52700 else 52701 : 52702 52703 fi 52704 52705 52706 52707 52708 52709 52710 52711 52712 52713 52714 52715 52716 52717 52718 fi 52719 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 52720 # Non-zero builds have stricter warnings 52721 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52722 else 52723 if test "x$TOOLCHAIN_TYPE" = xclang; then 52724 # Some versions of llvm do not like -Wundef 52725 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 52726 fi 52727 fi 52728 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52729 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52730 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52731 fi 52732 52733 # Additional macosx handling 52734 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52735 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52736 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52737 # JDK can be built and makes the linked binaries compatible even if built on 52738 # a newer version of the OS. 52739 MACOSX_VERSION_MIN=10.7.0 52740 52741 52742 # Setting --with-macosx-version-max=<version> makes it an error to build or 52743 # link to macosx APIs that are newer than the given OS version. The expected 52744 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52745 52746 # Check whether --with-macosx-version-max was given. 52747 if test "${with_macosx_version_max+set}" = set; then : 52748 withval=$with_macosx_version_max; 52749 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52750 MACOSX_VERSION_MAX=$with_macosx_version_max 52751 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52752 MACOSX_VERSION_MAX=$with_macosx_version_max 52753 elif test "x$with_macosx_version_max" = "xno"; then 52754 # Use build system default 52755 MACOSX_VERSION_MAX= 52756 else 52757 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52758 fi 52759 52760 else 52761 MACOSX_VERSION_MAX= 52762 52763 fi 52764 52765 52766 52767 # Let the flags variables get resolved in make for easier override on make 52768 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52769 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52770 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52771 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52772 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52773 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52774 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52775 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52776 52777 if test -n "$MACOSX_VERSION_MAX"; then 52778 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52779 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52780 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52781 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52782 fi 52783 fi 52784 52785 # Setup some hard coded includes 52786 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52787 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52788 -I${TOPDIR}/src/java.base/share/native/include \ 52789 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 52790 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 52791 -I${TOPDIR}/src/java.base/share/native/libjava \ 52792 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 52793 52794 # The shared libraries are compiled using the picflag. 52795 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52796 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 52797 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52798 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 52799 52800 # Executable flags 52801 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 52802 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 52803 52804 52805 52806 52807 52808 52809 # Setup LDFLAGS et al. 52810 # 52811 52812 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52813 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52814 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52815 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52816 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 52817 LDFLAGS_SAFESH="-safeseh" 52818 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 52819 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 52820 # NOTE: Old build added -machine. Probably not needed. 52821 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 52822 else 52823 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 52824 fi 52825 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52826 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52827 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52828 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52829 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52830 fi 52831 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52832 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52833 # We have previously set HAS_GNU_HASH if this is the case 52834 if test -n "$HAS_GNU_HASH"; then 52835 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52836 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52837 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52838 fi 52839 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52840 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52841 fi 52842 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52843 # And since we now know that the linker is gnu, then add -z defs, to forbid 52844 # undefined symbols in object files. 52845 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52846 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52847 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52848 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52849 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52850 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52851 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 52852 fi 52853 case $DEBUG_LEVEL in 52854 release ) 52855 # tell linker to optimize libraries. 52856 # Should this be supplied to the OSS linker as well? 52857 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52858 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52859 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52860 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52861 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52862 fi 52863 ;; 52864 slowdebug ) 52865 # Hotspot always let the linker optimize 52866 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52867 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52868 # do relocations at load 52869 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 52870 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52871 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 52872 fi 52873 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52874 # mark relocations read only 52875 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52876 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52877 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52878 fi 52879 ;; 52880 fastdebug ) 52881 # Hotspot always let the linker optimize 52882 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52883 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52884 # mark relocations read only 52885 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52886 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52887 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52888 fi 52889 ;; 52890 * ) 52891 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52892 ;; 52893 esac 52894 fi 52895 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52896 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52897 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52898 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52899 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52900 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52901 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52902 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 52903 fi 52904 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52905 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 52906 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 52907 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 52908 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52909 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52910 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52911 if test "x$DEBUG_LEVEL" = xslowdebug; then 52912 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 52913 fi 52914 fi 52915 52916 # Customize LDFLAGS for executables 52917 52918 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 52919 52920 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52921 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 52922 LDFLAGS_STACK_SIZE=1048576 52923 else 52924 LDFLAGS_STACK_SIZE=327680 52925 fi 52926 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52927 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 52928 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52929 fi 52930 52931 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 52932 52933 # Customize LDFLAGS for libs 52934 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 52935 52936 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52937 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52938 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52939 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52940 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 52941 OPENJDK_BUILD_JDKLIB_LIBS="" 52942 else 52943 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52944 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52945 52946 if test "xBUILD" = "xTARGET"; then 52947 # On some platforms (mac) the linker warns about non existing -L dirs. 52948 # For any of the variants server, client or minimal, the dir matches the 52949 # variant name. The "main" variant should be used for linking. For the 52950 # rest, the dir is just server. 52951 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52952 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52953 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52954 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52955 else 52956 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52957 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52958 fi 52959 elif test "xBUILD" = "xBUILD"; then 52960 # When building a buildjdk, it's always only the server variant 52961 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52962 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52963 fi 52964 52965 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 52966 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52967 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 52968 fi 52969 52970 fi 52971 52972 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 52973 52974 # Set OPENJDK_BUILD_JVM_LIBS (per os) 52975 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52976 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 52977 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52978 # FIXME: This hard-coded path is not really proper. 52979 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52980 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52981 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 52982 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52983 fi 52984 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52985 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52986 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52987 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 52988 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52989 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52990 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52991 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 52992 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52993 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52994 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52995 wsock32.lib winmm.lib version.lib psapi.lib" 52996 fi 52997 52998 # Set OPENJDK_BUILD_JVM_ASFLAGS 52999 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53000 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53001 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53002 fi 53003 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53004 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53005 fi 53006 53007 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53008 53009 53010 53011 53012 53013 53014 53015 53016 53017 53018 53019 53020 53021 53022 53023 53024 # Tests are only ever compiled for TARGET 53025 # Flags for compiling test libraries 53026 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 53027 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53028 53029 # Flags for compiling test executables 53030 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53031 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53032 53033 53034 53035 53036 53037 53038 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53039 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53040 53041 53042 53043 53044 53045 53046 # Check that the compiler supports -mX (or -qX on AIX) flags 53047 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53048 53049 53050 53051 53052 53053 53054 53055 53056 53057 53058 53059 53060 53061 53062 53063 53064 53065 53066 53067 53068 53069 53070 53071 53072 53073 53074 53075 53076 53077 53078 53079 53080 53081 53082 53083 53084 53085 53086 53087 53088 53089 53090 53091 53092 53093 53094 53095 # Execute function body 53096 53097 53098 53099 53100 53101 53102 53103 53104 53105 53106 53107 53108 53109 53110 53111 53112 53113 53114 53115 53116 53117 53118 53119 53120 53121 53122 53123 53124 53125 53126 53127 53128 53129 53130 53131 53132 53133 53134 53135 53136 53137 53138 53139 53140 53141 53142 53143 53144 # Execute function body 53145 53146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53147 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53148 supports=yes 53149 53150 saved_cflags="$CFLAGS" 53151 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53152 ac_ext=c 53153 ac_cpp='$CPP $CPPFLAGS' 53154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53156 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53157 53158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53159 /* end confdefs.h. */ 53160 int i; 53161 _ACEOF 53162 if ac_fn_c_try_compile "$LINENO"; then : 53163 53164 else 53165 supports=no 53166 fi 53167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53168 ac_ext=cpp 53169 ac_cpp='$CXXCPP $CPPFLAGS' 53170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53173 53174 CFLAGS="$saved_cflags" 53175 53176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53177 $as_echo "$supports" >&6; } 53178 if test "x$supports" = "xyes" ; then 53179 : 53180 C_COMP_SUPPORTS="yes" 53181 else 53182 : 53183 C_COMP_SUPPORTS="no" 53184 fi 53185 53186 53187 53188 53189 53190 53191 53192 53193 53194 53195 53196 53197 53198 53199 53200 53201 53202 53203 53204 53205 53206 53207 53208 53209 53210 53211 53212 53213 53214 53215 53216 53217 53218 53219 53220 53221 53222 53223 53224 53225 53226 53227 53228 53229 53230 53231 53232 53233 53234 53235 53236 53237 53238 53239 53240 53241 53242 53243 53244 # Execute function body 53245 53246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53247 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53248 supports=yes 53249 53250 saved_cxxflags="$CXXFLAGS" 53251 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53252 ac_ext=cpp 53253 ac_cpp='$CXXCPP $CPPFLAGS' 53254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53257 53258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53259 /* end confdefs.h. */ 53260 int i; 53261 _ACEOF 53262 if ac_fn_cxx_try_compile "$LINENO"; then : 53263 53264 else 53265 supports=no 53266 fi 53267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53268 ac_ext=cpp 53269 ac_cpp='$CXXCPP $CPPFLAGS' 53270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53273 53274 CXXFLAGS="$saved_cxxflags" 53275 53276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53277 $as_echo "$supports" >&6; } 53278 if test "x$supports" = "xyes" ; then 53279 : 53280 CXX_COMP_SUPPORTS="yes" 53281 else 53282 : 53283 CXX_COMP_SUPPORTS="no" 53284 fi 53285 53286 53287 53288 53289 53290 53291 53292 53293 53294 53295 53296 53297 53298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53299 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53300 supports=no 53301 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53302 53303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53304 $as_echo "$supports" >&6; } 53305 if test "x$supports" = "xyes" ; then 53306 : 53307 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 53308 else 53309 : 53310 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 53311 fi 53312 53313 53314 53315 53316 53317 53318 53319 53320 # Check whether --enable-warnings-as-errors was given. 53321 if test "${enable_warnings_as_errors+set}" = set; then : 53322 enableval=$enable_warnings_as_errors; 53323 fi 53324 53325 53326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 53327 $as_echo_n "checking if native warnings are errors... " >&6; } 53328 if test "x$enable_warnings_as_errors" = "xyes"; then 53329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 53330 $as_echo "yes (explicitly set)" >&6; } 53331 WARNINGS_AS_ERRORS=true 53332 elif test "x$enable_warnings_as_errors" = "xno"; then 53333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53334 $as_echo "no" >&6; } 53335 WARNINGS_AS_ERRORS=false 53336 elif test "x$enable_warnings_as_errors" = "x"; then 53337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 53338 $as_echo "yes (default)" >&6; } 53339 WARNINGS_AS_ERRORS=true 53340 else 53341 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 53342 fi 53343 53344 53345 53346 case "${TOOLCHAIN_TYPE}" in 53347 microsoft) 53348 DISABLE_WARNING_PREFIX="-wd" 53349 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 53350 ;; 53351 solstudio) 53352 DISABLE_WARNING_PREFIX="-erroff=" 53353 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 53354 ;; 53355 gcc) 53356 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 53357 53358 53359 53360 53361 53362 53363 53364 53365 53366 53367 53368 53369 53370 53371 53372 53373 53374 53375 53376 53377 53378 53379 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 53392 53393 53394 53395 53396 53397 53398 53399 53400 53401 53402 53403 53404 # Execute function body 53405 53406 53407 53408 53409 53410 53411 53412 53413 53414 53415 53416 53417 53418 53419 53420 53421 53422 53423 53424 53425 53426 53427 53428 53429 53430 53431 53432 53433 53434 53435 53436 53437 53438 53439 53440 53441 53442 53443 53444 53445 53446 53447 53448 53449 53450 53451 53452 53453 # Execute function body 53454 53455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53456 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53457 supports=yes 53458 53459 saved_cflags="$CFLAGS" 53460 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53461 ac_ext=c 53462 ac_cpp='$CPP $CPPFLAGS' 53463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53465 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53466 53467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53468 /* end confdefs.h. */ 53469 int i; 53470 _ACEOF 53471 if ac_fn_c_try_compile "$LINENO"; then : 53472 53473 else 53474 supports=no 53475 fi 53476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53477 ac_ext=cpp 53478 ac_cpp='$CXXCPP $CPPFLAGS' 53479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53482 53483 CFLAGS="$saved_cflags" 53484 53485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53486 $as_echo "$supports" >&6; } 53487 if test "x$supports" = "xyes" ; then 53488 : 53489 C_COMP_SUPPORTS="yes" 53490 else 53491 : 53492 C_COMP_SUPPORTS="no" 53493 fi 53494 53495 53496 53497 53498 53499 53500 53501 53502 53503 53504 53505 53506 53507 53508 53509 53510 53511 53512 53513 53514 53515 53516 53517 53518 53519 53520 53521 53522 53523 53524 53525 53526 53527 53528 53529 53530 53531 53532 53533 53534 53535 53536 53537 53538 53539 53540 53541 53542 53543 53544 53545 53546 53547 53548 53549 53550 53551 53552 53553 # Execute function body 53554 53555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53556 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53557 supports=yes 53558 53559 saved_cxxflags="$CXXFLAGS" 53560 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53561 ac_ext=cpp 53562 ac_cpp='$CXXCPP $CPPFLAGS' 53563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53566 53567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53568 /* end confdefs.h. */ 53569 int i; 53570 _ACEOF 53571 if ac_fn_cxx_try_compile "$LINENO"; then : 53572 53573 else 53574 supports=no 53575 fi 53576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53577 ac_ext=cpp 53578 ac_cpp='$CXXCPP $CPPFLAGS' 53579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53582 53583 CXXFLAGS="$saved_cxxflags" 53584 53585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53586 $as_echo "$supports" >&6; } 53587 if test "x$supports" = "xyes" ; then 53588 : 53589 CXX_COMP_SUPPORTS="yes" 53590 else 53591 : 53592 CXX_COMP_SUPPORTS="no" 53593 fi 53594 53595 53596 53597 53598 53599 53600 53601 53602 53603 53604 53605 53606 53607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53608 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53609 supports=no 53610 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53611 53612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53613 $as_echo "$supports" >&6; } 53614 if test "x$supports" = "xyes" ; then 53615 : 53616 GCC_CAN_DISABLE_WARNINGS=true 53617 else 53618 : 53619 GCC_CAN_DISABLE_WARNINGS=false 53620 53621 fi 53622 53623 53624 53625 53626 53627 53628 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53629 DISABLE_WARNING_PREFIX="-Wno-" 53630 else 53631 DISABLE_WARNING_PREFIX= 53632 fi 53633 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53634 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 53635 # CFLAGS since any target specific flags will likely not work with the 53636 # build compiler 53637 CC_OLD="$CC" 53638 CXX_OLD="$CXX" 53639 CC="$BUILD_CC" 53640 CXX="$BUILD_CXX" 53641 CFLAGS_OLD="$CFLAGS" 53642 CFLAGS="" 53643 53644 53645 53646 53647 53648 53649 53650 53651 53652 53653 53654 53655 53656 53657 53658 53659 53660 53661 53662 53663 53664 53665 53666 53667 53668 53669 53670 53671 53672 53673 53674 53675 53676 53677 53678 53679 53680 53681 53682 53683 53684 53685 53686 53687 53688 53689 53690 # Execute function body 53691 53692 53693 53694 53695 53696 53697 53698 53699 53700 53701 53702 53703 53704 53705 53706 53707 53708 53709 53710 53711 53712 53713 53714 53715 53716 53717 53718 53719 53720 53721 53722 53723 53724 53725 53726 53727 53728 53729 53730 53731 53732 53733 53734 53735 53736 53737 53738 53739 # Execute function body 53740 53741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53742 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53743 supports=yes 53744 53745 saved_cflags="$CFLAGS" 53746 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53747 ac_ext=c 53748 ac_cpp='$CPP $CPPFLAGS' 53749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53751 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53752 53753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53754 /* end confdefs.h. */ 53755 int i; 53756 _ACEOF 53757 if ac_fn_c_try_compile "$LINENO"; then : 53758 53759 else 53760 supports=no 53761 fi 53762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53763 ac_ext=cpp 53764 ac_cpp='$CXXCPP $CPPFLAGS' 53765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53768 53769 CFLAGS="$saved_cflags" 53770 53771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53772 $as_echo "$supports" >&6; } 53773 if test "x$supports" = "xyes" ; then 53774 : 53775 C_COMP_SUPPORTS="yes" 53776 else 53777 : 53778 C_COMP_SUPPORTS="no" 53779 fi 53780 53781 53782 53783 53784 53785 53786 53787 53788 53789 53790 53791 53792 53793 53794 53795 53796 53797 53798 53799 53800 53801 53802 53803 53804 53805 53806 53807 53808 53809 53810 53811 53812 53813 53814 53815 53816 53817 53818 53819 53820 53821 53822 53823 53824 53825 53826 53827 53828 53829 53830 53831 53832 53833 53834 53835 53836 53837 53838 53839 # Execute function body 53840 53841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53842 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53843 supports=yes 53844 53845 saved_cxxflags="$CXXFLAGS" 53846 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53847 ac_ext=cpp 53848 ac_cpp='$CXXCPP $CPPFLAGS' 53849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53852 53853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53854 /* end confdefs.h. */ 53855 int i; 53856 _ACEOF 53857 if ac_fn_cxx_try_compile "$LINENO"; then : 53858 53859 else 53860 supports=no 53861 fi 53862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53863 ac_ext=cpp 53864 ac_cpp='$CXXCPP $CPPFLAGS' 53865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53868 53869 CXXFLAGS="$saved_cxxflags" 53870 53871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53872 $as_echo "$supports" >&6; } 53873 if test "x$supports" = "xyes" ; then 53874 : 53875 CXX_COMP_SUPPORTS="yes" 53876 else 53877 : 53878 CXX_COMP_SUPPORTS="no" 53879 fi 53880 53881 53882 53883 53884 53885 53886 53887 53888 53889 53890 53891 53892 53893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53894 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53895 supports=no 53896 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53897 53898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53899 $as_echo "$supports" >&6; } 53900 if test "x$supports" = "xyes" ; then 53901 : 53902 BUILD_CC_CAN_DISABLE_WARNINGS=true 53903 else 53904 : 53905 BUILD_CC_CAN_DISABLE_WARNINGS=false 53906 53907 fi 53908 53909 53910 53911 53912 53913 53914 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53915 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 53916 else 53917 BUILD_CC_DISABLE_WARNING_PREFIX= 53918 fi 53919 CC="$CC_OLD" 53920 CXX="$CXX_OLD" 53921 CFLAGS="$CFLAGS_OLD" 53922 ;; 53923 clang) 53924 DISABLE_WARNING_PREFIX="-Wno-" 53925 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53926 ;; 53927 xlc) 53928 DISABLE_WARNING_PREFIX="-qsuppress=" 53929 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 53930 ;; 53931 esac 53932 53933 53934 53935 53936 53937 # Setup debug symbols (need objcopy from the toolchain for that) 53938 53939 # 53940 # NATIVE_DEBUG_SYMBOLS 53941 # This must be done after the toolchain is setup, since we're looking at objcopy. 53942 # 53943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 53944 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 53945 53946 # Check whether --with-native-debug-symbols was given. 53947 if test "${with_native_debug_symbols+set}" = set; then : 53948 withval=$with_native_debug_symbols; 53949 if test "x$OPENJDK_TARGET_OS" = xaix; then 53950 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 53951 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 53952 fi 53953 fi 53954 53955 else 53956 53957 if test "x$OPENJDK_TARGET_OS" = xaix; then 53958 # AIX doesn't support 'zipped' so use 'internal' as default 53959 with_native_debug_symbols="internal" 53960 else 53961 if test "x$STATIC_BUILD" = xtrue; then 53962 with_native_debug_symbols="none" 53963 else 53964 with_native_debug_symbols="zipped" 53965 fi 53966 fi 53967 53968 fi 53969 53970 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 53971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 53972 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 53973 53974 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 53975 53976 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53977 if test "x$OBJCOPY" = x; then 53978 # enabling of enable-debug-symbols and can't find objcopy 53979 # this is an error 53980 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 53981 fi 53982 fi 53983 53984 COMPILE_WITH_DEBUG_SYMBOLS=true 53985 COPY_DEBUG_SYMBOLS=true 53986 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 53987 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 53988 COMPILE_WITH_DEBUG_SYMBOLS=false 53989 COPY_DEBUG_SYMBOLS=false 53990 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53991 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 53992 COMPILE_WITH_DEBUG_SYMBOLS=true 53993 COPY_DEBUG_SYMBOLS=false 53994 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53995 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 53996 53997 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53998 if test "x$OBJCOPY" = x; then 53999 # enabling of enable-debug-symbols and can't find objcopy 54000 # this is an error 54001 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54002 fi 54003 fi 54004 54005 COMPILE_WITH_DEBUG_SYMBOLS=true 54006 COPY_DEBUG_SYMBOLS=true 54007 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54008 else 54009 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54010 fi 54011 54012 # --enable-debug-symbols is deprecated. 54013 # Please use --with-native-debug-symbols=[internal,external,zipped] . 54014 54015 # Check whether --enable-debug-symbols was given. 54016 if test "${enable_debug_symbols+set}" = set; then : 54017 enableval=$enable_debug_symbols; 54018 fi 54019 54020 if test "x$enable_debug_symbols" != x; then 54021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 54022 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 54023 54024 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 54025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 54026 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 54027 fi 54028 54029 fi 54030 54031 54032 # --enable-zip-debug-info is deprecated. 54033 # Please use --with-native-debug-symbols=zipped . 54034 54035 # Check whether --enable-zip-debug-info was given. 54036 if test "${enable_zip_debug_info+set}" = set; then : 54037 enableval=$enable_zip_debug_info; 54038 fi 54039 54040 if test "x$enable_zip_debug_info" != x; then 54041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54042 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54043 54044 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54046 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54047 fi 54048 54049 fi 54050 54051 54052 54053 54054 54055 54056 54057 # Check whether --enable-native-coverage was given. 54058 if test "${enable_native_coverage+set}" = set; then : 54059 enableval=$enable_native_coverage; 54060 fi 54061 54062 GCOV_ENABLED="false" 54063 if test "x$enable_native_coverage" = "xyes"; then 54064 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 54065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54066 $as_echo_n "checking if native coverage is enabled... " >&6; } 54067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54068 $as_echo "yes" >&6; } 54069 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 54070 GCOV_LDFLAGS="-fprofile-arcs" 54071 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 54072 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 54073 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 54074 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 54075 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 54076 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 54077 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 54078 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 54079 GCOV_ENABLED="true" 54080 else 54081 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 54082 fi 54083 elif test "x$enable_native_coverage" = "xno"; then 54084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54085 $as_echo_n "checking if native coverage is enabled... " >&6; } 54086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54087 $as_echo "no" >&6; } 54088 elif test "x$enable_native_coverage" != "x"; then 54089 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54090 fi 54091 54092 54093 54094 54095 # Need toolchain to setup dtrace 54096 54097 # Test for dtrace dependencies 54098 # Check whether --enable-dtrace was given. 54099 if test "${enable_dtrace+set}" = set; then : 54100 enableval=$enable_dtrace; 54101 fi 54102 54103 54104 DTRACE_DEP_MISSING=false 54105 54106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 54107 $as_echo_n "checking for dtrace tool... " >&6; } 54108 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 54109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 54110 $as_echo "$DTRACE" >&6; } 54111 else 54112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 54113 $as_echo "not found, cannot build dtrace" >&6; } 54114 DTRACE_DEP_MISSING=true 54115 fi 54116 54117 for ac_header in sys/sdt.h 54118 do : 54119 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 54120 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 54121 cat >>confdefs.h <<_ACEOF 54122 #define HAVE_SYS_SDT_H 1 54123 _ACEOF 54124 DTRACE_HEADERS_OK=yes 54125 else 54126 DTRACE_HEADERS_OK=no 54127 fi 54128 54129 done 54130 54131 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 54132 DTRACE_DEP_MISSING=true 54133 fi 54134 54135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 54136 $as_echo_n "checking if dtrace should be built... " >&6; } 54137 if test "x$enable_dtrace" = "xyes"; then 54138 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54140 $as_echo "no, missing dependencies" >&6; } 54141 54142 # Print a helpful message on how to acquire the necessary build dependency. 54143 # dtrace is the help tag: freetype, cups, alsa etc 54144 MISSING_DEPENDENCY=dtrace 54145 54146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54147 cygwin_help $MISSING_DEPENDENCY 54148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54149 msys_help $MISSING_DEPENDENCY 54150 else 54151 PKGHANDLER_COMMAND= 54152 54153 case $PKGHANDLER in 54154 apt-get) 54155 apt_help $MISSING_DEPENDENCY ;; 54156 yum) 54157 yum_help $MISSING_DEPENDENCY ;; 54158 brew) 54159 brew_help $MISSING_DEPENDENCY ;; 54160 port) 54161 port_help $MISSING_DEPENDENCY ;; 54162 pkgutil) 54163 pkgutil_help $MISSING_DEPENDENCY ;; 54164 pkgadd) 54165 pkgadd_help $MISSING_DEPENDENCY ;; 54166 esac 54167 54168 if test "x$PKGHANDLER_COMMAND" != x; then 54169 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 54170 fi 54171 fi 54172 54173 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 54174 else 54175 INCLUDE_DTRACE=true 54176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54177 $as_echo "yes, forced" >&6; } 54178 fi 54179 elif test "x$enable_dtrace" = "xno"; then 54180 INCLUDE_DTRACE=false 54181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54182 $as_echo "no, forced" >&6; } 54183 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 54184 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54185 INCLUDE_DTRACE=false 54186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54187 $as_echo "no, missing dependencies" >&6; } 54188 else 54189 INCLUDE_DTRACE=true 54190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 54191 $as_echo "yes, dependencies present" >&6; } 54192 fi 54193 else 54194 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 54195 fi 54196 54197 54198 # Check whether --enable-aot was given. 54199 if test "${enable_aot+set}" = set; then : 54200 enableval=$enable_aot; 54201 fi 54202 54203 54204 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 54205 ENABLE_AOT="true" 54206 elif test "x$enable_aot" = "xyes"; then 54207 ENABLE_AOT="true" 54208 elif test "x$enable_aot" = "xno"; then 54209 ENABLE_AOT="false" 54210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 54211 $as_echo_n "checking if aot should be enabled... " >&6; } 54212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54213 $as_echo "no, forced" >&6; } 54214 else 54215 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 54216 fi 54217 54218 if test "x$ENABLE_AOT" = "xtrue"; then 54219 # Only enable AOT on X64 platforms. 54220 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 54221 if test -e "${TOPDIR}/src/jdk.aot"; then 54222 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then 54223 ENABLE_AOT="true" 54224 else 54225 ENABLE_AOT="false" 54226 if test "x$enable_aot" = "xyes"; then 54227 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 54228 fi 54229 fi 54230 else 54231 ENABLE_AOT="false" 54232 if test "x$enable_aot" = "xyes"; then 54233 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 54234 fi 54235 fi 54236 else 54237 ENABLE_AOT="false" 54238 if test "x$enable_aot" = "xyes"; then 54239 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 54240 fi 54241 fi 54242 fi 54243 54244 54245 54246 54247 # Check whether --enable-cds was given. 54248 if test "${enable_cds+set}" = set; then : 54249 enableval=$enable_cds; 54250 fi 54251 54252 54253 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 54254 ENABLE_CDS="true" 54255 elif test "x$enable_cds" = "xno"; then 54256 ENABLE_CDS="false" 54257 else 54258 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 54259 fi 54260 54261 54262 54263 54264 # Check whether --enable-hotspot-gtest was given. 54265 if test "${enable_hotspot_gtest+set}" = set; then : 54266 enableval=$enable_hotspot_gtest; 54267 fi 54268 54269 54270 if test -e "${TOPDIR}/test/hotspot/gtest"; then 54271 GTEST_DIR_EXISTS="true" 54272 else 54273 GTEST_DIR_EXISTS="false" 54274 fi 54275 54276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 54277 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 54278 if test "x$enable_hotspot_gtest" = "xyes"; then 54279 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54281 $as_echo "yes, forced" >&6; } 54282 BUILD_GTEST="true" 54283 else 54284 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 54285 fi 54286 elif test "x$enable_hotspot_gtest" = "xno"; then 54287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54288 $as_echo "no, forced" >&6; } 54289 BUILD_GTEST="false" 54290 elif test "x$enable_hotspot_gtest" = "x"; then 54291 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54293 $as_echo "yes" >&6; } 54294 BUILD_GTEST="true" 54295 else 54296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54297 $as_echo "no" >&6; } 54298 BUILD_GTEST="false" 54299 fi 54300 else 54301 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 54302 fi 54303 54304 54305 54306 54307 ############################################################################### 54308 # 54309 # Check dependencies for external and internal libraries. 54310 # 54311 ############################################################################### 54312 54313 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 54314 54315 # When using cygwin or msys, we need a wrapper binary that renames 54316 # /cygdrive/c/ arguments into c:/ arguments and peeks into 54317 # @files and rewrites these too! This wrapper binary is 54318 # called fixpath. 54319 FIXPATH= 54320 if test "x$OPENJDK_BUILD_OS" = xwindows; then 54321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 54322 $as_echo_n "checking if fixpath can be created... " >&6; } 54323 FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c" 54324 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 54325 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 54326 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 54327 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 54328 FIXPATH="$FIXPATH_BIN -c" 54329 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 54330 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 54331 # @ was chosen as separator to minimize risk of other tools messing around with it 54332 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 54333 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 54334 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 54335 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 54336 fi 54337 FIXPATH_SRC_W="$FIXPATH_SRC" 54338 FIXPATH_BIN_W="$FIXPATH_BIN" 54339 54340 unix_path="$FIXPATH_SRC_W" 54341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54342 windows_path=`$CYGPATH -m "$unix_path"` 54343 FIXPATH_SRC_W="$windows_path" 54344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54345 windows_path=`cmd //c echo $unix_path` 54346 FIXPATH_SRC_W="$windows_path" 54347 fi 54348 54349 54350 unix_path="$FIXPATH_BIN_W" 54351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54352 windows_path=`$CYGPATH -m "$unix_path"` 54353 FIXPATH_BIN_W="$windows_path" 54354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54355 windows_path=`cmd //c echo $unix_path` 54356 FIXPATH_BIN_W="$windows_path" 54357 fi 54358 54359 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 54360 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 54361 cd $FIXPATH_DIR 54362 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 54363 cd $CURDIR 54364 54365 if test ! -x $FIXPATH_BIN; then 54366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54367 $as_echo "no" >&6; } 54368 cat $FIXPATH_DIR/fixpath1.log 54369 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 54370 fi 54371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54372 $as_echo "yes" >&6; } 54373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 54374 $as_echo_n "checking if fixpath.exe works... " >&6; } 54375 cd $FIXPATH_DIR 54376 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 54377 > $FIXPATH_DIR/fixpath2.log 2>&1 54378 cd $CURDIR 54379 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 54380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54381 $as_echo "no" >&6; } 54382 cat $FIXPATH_DIR/fixpath2.log 54383 as_fn_error $? "fixpath did not work!" "$LINENO" 5 54384 fi 54385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54386 $as_echo "yes" >&6; } 54387 54388 FIXPATH_DETACH_FLAG="--detach" 54389 fi 54390 54391 54392 54393 54394 54395 54396 # Check if X11 is needed 54397 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 54398 # No X11 support on windows or macosx 54399 NEEDS_LIB_X11=false 54400 else 54401 # All other instances need X11, even if building headless only, libawt still 54402 # needs X11 headers. 54403 NEEDS_LIB_X11=true 54404 fi 54405 54406 # Check if cups is needed 54407 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54408 # Windows have a separate print system 54409 NEEDS_LIB_CUPS=false 54410 else 54411 NEEDS_LIB_CUPS=true 54412 fi 54413 54414 # A custom hook may have set this already 54415 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 54416 NEEDS_LIB_FREETYPE=true 54417 fi 54418 54419 # Check if alsa is needed 54420 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54421 NEEDS_LIB_ALSA=true 54422 else 54423 NEEDS_LIB_ALSA=false 54424 fi 54425 54426 # Check if ffi is needed 54427 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 54428 NEEDS_LIB_FFI=true 54429 else 54430 NEEDS_LIB_FFI=false 54431 fi 54432 54433 54434 # statically link libstdc++ before C++ ABI is stablized on Linux unless 54435 # dynamic build is configured on command line. 54436 54437 # Check whether --with-stdc++lib was given. 54438 if test "${with_stdc__lib+set}" = set; then : 54439 withval=$with_stdc__lib; 54440 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 54441 && test "x$with_stdc__lib" != xdefault; then 54442 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 54443 fi 54444 54445 else 54446 with_stdc__lib=default 54447 54448 fi 54449 54450 54451 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54452 # Test if stdc++ can be linked statically. 54453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 54454 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 54455 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 54456 ac_ext=cpp 54457 ac_cpp='$CXXCPP $CPPFLAGS' 54458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54461 54462 OLD_LIBS="$LIBS" 54463 LIBS="$STATIC_STDCXX_FLAGS" 54464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54465 /* end confdefs.h. */ 54466 54467 int 54468 main () 54469 { 54470 return 0; 54471 ; 54472 return 0; 54473 } 54474 _ACEOF 54475 if ac_fn_cxx_try_link "$LINENO"; then : 54476 has_static_libstdcxx=yes 54477 else 54478 has_static_libstdcxx=no 54479 fi 54480 rm -f core conftest.err conftest.$ac_objext \ 54481 conftest$ac_exeext conftest.$ac_ext 54482 LIBS="$OLD_LIBS" 54483 ac_ext=cpp 54484 ac_cpp='$CXXCPP $CPPFLAGS' 54485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54488 54489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 54490 $as_echo "$has_static_libstdcxx" >&6; } 54491 54492 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 54493 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 54494 fi 54495 54496 # If dynamic was requested, it's available since it would fail above otherwise. 54497 # If dynamic wasn't requested, go with static unless it isn't available. 54498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 54499 $as_echo_n "checking how to link with libstdc++... " >&6; } 54500 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then 54501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 54502 $as_echo "dynamic" >&6; } 54503 else 54504 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 54505 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54506 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 54507 # just use the same setting as for the TARGET toolchain. 54508 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 54510 $as_echo "static" >&6; } 54511 fi 54512 fi 54513 54514 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 54515 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 54516 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 54517 fi 54518 54519 54520 54521 # Setup Windows runtime dlls 54522 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 54523 54524 54525 # Check whether --with-msvcr-dll was given. 54526 if test "${with_msvcr_dll+set}" = set; then : 54527 withval=$with_msvcr_dll; 54528 fi 54529 54530 54531 if test "x$with_msvcr_dll" != x; then 54532 # If given explicitly by user, do not probe. If not present, fail directly. 54533 54534 DLL_NAME="$MSVCR_NAME" 54535 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 54536 METHOD="--with-msvcr-dll" 54537 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54539 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54540 54541 # Need to check if the found msvcr is correct architecture 54542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54543 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54544 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54546 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54547 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54548 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54549 CORRECT_MSVCR_ARCH="PE32 executable" 54550 else 54551 CORRECT_MSVCR_ARCH="PE32+ executable" 54552 fi 54553 else 54554 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54555 CORRECT_MSVCR_ARCH=386 54556 else 54557 CORRECT_MSVCR_ARCH=x86-64 54558 fi 54559 fi 54560 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54562 $as_echo "ok" >&6; } 54563 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54564 54565 # Only process if variable expands to non-empty 54566 54567 if test "x$MSVC_DLL" != x; then 54568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54569 54570 # Input might be given as Windows format, start by converting to 54571 # unix format. 54572 path="$MSVC_DLL" 54573 new_path=`$CYGPATH -u "$path"` 54574 54575 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54576 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54577 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54578 # "foo.exe" is OK but "foo" is an error. 54579 # 54580 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54581 # It is also a way to make sure we got the proper file name for the real test later on. 54582 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54583 if test "x$test_shortpath" = x; then 54584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54585 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54586 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54587 fi 54588 54589 # Call helper function which possibly converts this using DOS-style short mode. 54590 # If so, the updated path is stored in $new_path. 54591 54592 input_path="$new_path" 54593 # Check if we need to convert this using DOS-style short mode. If the path 54594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54595 # take no chances and rewrite it. 54596 # Note: m4 eats our [], so we need to use [ and ] instead. 54597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54598 if test "x$has_forbidden_chars" != x; then 54599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54600 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54601 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54602 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54603 # Going to short mode and back again did indeed matter. Since short mode is 54604 # case insensitive, let's make it lowercase to improve readability. 54605 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54606 # Now convert it back to Unix-style (cygpath) 54607 input_path=`$CYGPATH -u "$shortmode_path"` 54608 new_path="$input_path" 54609 fi 54610 fi 54611 54612 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54613 if test "x$test_cygdrive_prefix" = x; then 54614 # As a simple fix, exclude /usr/bin since it's not a real path. 54615 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54616 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54617 # a path prefixed by /cygdrive for fixpath to work. 54618 new_path="$CYGWIN_ROOT_PATH$input_path" 54619 fi 54620 fi 54621 54622 54623 if test "x$path" != "x$new_path"; then 54624 MSVC_DLL="$new_path" 54625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54626 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54627 fi 54628 54629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54630 54631 path="$MSVC_DLL" 54632 has_colon=`$ECHO $path | $GREP ^.:` 54633 new_path="$path" 54634 if test "x$has_colon" = x; then 54635 # Not in mixed or Windows style, start by that. 54636 new_path=`cmd //c echo $path` 54637 fi 54638 54639 54640 input_path="$new_path" 54641 # Check if we need to convert this using DOS-style short mode. If the path 54642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54643 # take no chances and rewrite it. 54644 # Note: m4 eats our [], so we need to use [ and ] instead. 54645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54646 if test "x$has_forbidden_chars" != x; then 54647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54648 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54649 fi 54650 54651 54652 windows_path="$new_path" 54653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54654 unix_path=`$CYGPATH -u "$windows_path"` 54655 new_path="$unix_path" 54656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54658 new_path="$unix_path" 54659 fi 54660 54661 if test "x$path" != "x$new_path"; then 54662 MSVC_DLL="$new_path" 54663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54664 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54665 fi 54666 54667 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54668 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54669 54670 else 54671 # We're on a unix platform. Hooray! :) 54672 path="$MSVC_DLL" 54673 has_space=`$ECHO "$path" | $GREP " "` 54674 if test "x$has_space" != x; then 54675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54676 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54677 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54678 fi 54679 54680 # Use eval to expand a potential ~ 54681 eval path="$path" 54682 if test ! -f "$path" && test ! -d "$path"; then 54683 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54684 fi 54685 54686 if test -d "$path"; then 54687 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54688 else 54689 dir="`$DIRNAME "$path"`" 54690 base="`$BASENAME "$path"`" 54691 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54692 fi 54693 fi 54694 fi 54695 54696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54697 $as_echo_n "checking for $DLL_NAME... " >&6; } 54698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54699 $as_echo "$MSVC_DLL" >&6; } 54700 else 54701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54702 $as_echo "incorrect, ignoring" >&6; } 54703 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54704 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54705 fi 54706 fi 54707 54708 if test "x$MSVC_DLL" = x; then 54709 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 54710 fi 54711 MSVCR_DLL="$MSVC_DLL" 54712 elif test "x$DEVKIT_MSVCR_DLL" != x; then 54713 54714 DLL_NAME="$MSVCR_NAME" 54715 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 54716 METHOD="devkit" 54717 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54718 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54719 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54720 54721 # Need to check if the found msvcr is correct architecture 54722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54723 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54724 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54726 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54727 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54728 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54729 CORRECT_MSVCR_ARCH="PE32 executable" 54730 else 54731 CORRECT_MSVCR_ARCH="PE32+ executable" 54732 fi 54733 else 54734 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54735 CORRECT_MSVCR_ARCH=386 54736 else 54737 CORRECT_MSVCR_ARCH=x86-64 54738 fi 54739 fi 54740 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54742 $as_echo "ok" >&6; } 54743 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54744 54745 # Only process if variable expands to non-empty 54746 54747 if test "x$MSVC_DLL" != x; then 54748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54749 54750 # Input might be given as Windows format, start by converting to 54751 # unix format. 54752 path="$MSVC_DLL" 54753 new_path=`$CYGPATH -u "$path"` 54754 54755 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54756 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54757 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54758 # "foo.exe" is OK but "foo" is an error. 54759 # 54760 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54761 # It is also a way to make sure we got the proper file name for the real test later on. 54762 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54763 if test "x$test_shortpath" = x; then 54764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54765 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54766 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54767 fi 54768 54769 # Call helper function which possibly converts this using DOS-style short mode. 54770 # If so, the updated path is stored in $new_path. 54771 54772 input_path="$new_path" 54773 # Check if we need to convert this using DOS-style short mode. If the path 54774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54775 # take no chances and rewrite it. 54776 # Note: m4 eats our [], so we need to use [ and ] instead. 54777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54778 if test "x$has_forbidden_chars" != x; then 54779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54780 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54781 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54782 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54783 # Going to short mode and back again did indeed matter. Since short mode is 54784 # case insensitive, let's make it lowercase to improve readability. 54785 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54786 # Now convert it back to Unix-style (cygpath) 54787 input_path=`$CYGPATH -u "$shortmode_path"` 54788 new_path="$input_path" 54789 fi 54790 fi 54791 54792 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54793 if test "x$test_cygdrive_prefix" = x; then 54794 # As a simple fix, exclude /usr/bin since it's not a real path. 54795 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54796 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54797 # a path prefixed by /cygdrive for fixpath to work. 54798 new_path="$CYGWIN_ROOT_PATH$input_path" 54799 fi 54800 fi 54801 54802 54803 if test "x$path" != "x$new_path"; then 54804 MSVC_DLL="$new_path" 54805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54806 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54807 fi 54808 54809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54810 54811 path="$MSVC_DLL" 54812 has_colon=`$ECHO $path | $GREP ^.:` 54813 new_path="$path" 54814 if test "x$has_colon" = x; then 54815 # Not in mixed or Windows style, start by that. 54816 new_path=`cmd //c echo $path` 54817 fi 54818 54819 54820 input_path="$new_path" 54821 # Check if we need to convert this using DOS-style short mode. If the path 54822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54823 # take no chances and rewrite it. 54824 # Note: m4 eats our [], so we need to use [ and ] instead. 54825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54826 if test "x$has_forbidden_chars" != x; then 54827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54828 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54829 fi 54830 54831 54832 windows_path="$new_path" 54833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54834 unix_path=`$CYGPATH -u "$windows_path"` 54835 new_path="$unix_path" 54836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54837 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54838 new_path="$unix_path" 54839 fi 54840 54841 if test "x$path" != "x$new_path"; then 54842 MSVC_DLL="$new_path" 54843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54844 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54845 fi 54846 54847 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54848 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54849 54850 else 54851 # We're on a unix platform. Hooray! :) 54852 path="$MSVC_DLL" 54853 has_space=`$ECHO "$path" | $GREP " "` 54854 if test "x$has_space" != x; then 54855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54856 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54857 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54858 fi 54859 54860 # Use eval to expand a potential ~ 54861 eval path="$path" 54862 if test ! -f "$path" && test ! -d "$path"; then 54863 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54864 fi 54865 54866 if test -d "$path"; then 54867 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54868 else 54869 dir="`$DIRNAME "$path"`" 54870 base="`$BASENAME "$path"`" 54871 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54872 fi 54873 fi 54874 fi 54875 54876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54877 $as_echo_n "checking for $DLL_NAME... " >&6; } 54878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54879 $as_echo "$MSVC_DLL" >&6; } 54880 else 54881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54882 $as_echo "incorrect, ignoring" >&6; } 54883 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54884 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54885 fi 54886 fi 54887 54888 if test "x$MSVC_DLL" = x; then 54889 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 54890 fi 54891 MSVCR_DLL="$MSVC_DLL" 54892 else 54893 54894 DLL_NAME="${MSVCR_NAME}" 54895 MSVC_DLL= 54896 54897 if test "x$MSVC_DLL" = x; then 54898 # Probe: Using well-known location from Visual Studio 10.0 54899 if test "x$VCINSTALLDIR" != x; then 54900 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54901 54902 windows_path="$CYGWIN_VC_INSTALL_DIR" 54903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54904 unix_path=`$CYGPATH -u "$windows_path"` 54905 CYGWIN_VC_INSTALL_DIR="$unix_path" 54906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54908 CYGWIN_VC_INSTALL_DIR="$unix_path" 54909 fi 54910 54911 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54912 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54913 else 54914 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54915 fi 54916 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54917 54918 DLL_NAME="$DLL_NAME" 54919 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54920 METHOD="well-known location in VCINSTALLDIR" 54921 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54922 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54923 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54924 54925 # Need to check if the found msvcr is correct architecture 54926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54927 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54928 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54930 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54931 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54932 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54933 CORRECT_MSVCR_ARCH="PE32 executable" 54934 else 54935 CORRECT_MSVCR_ARCH="PE32+ executable" 54936 fi 54937 else 54938 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54939 CORRECT_MSVCR_ARCH=386 54940 else 54941 CORRECT_MSVCR_ARCH=x86-64 54942 fi 54943 fi 54944 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54946 $as_echo "ok" >&6; } 54947 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54948 54949 # Only process if variable expands to non-empty 54950 54951 if test "x$MSVC_DLL" != x; then 54952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54953 54954 # Input might be given as Windows format, start by converting to 54955 # unix format. 54956 path="$MSVC_DLL" 54957 new_path=`$CYGPATH -u "$path"` 54958 54959 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54960 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54961 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54962 # "foo.exe" is OK but "foo" is an error. 54963 # 54964 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54965 # It is also a way to make sure we got the proper file name for the real test later on. 54966 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54967 if test "x$test_shortpath" = x; then 54968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54969 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54970 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54971 fi 54972 54973 # Call helper function which possibly converts this using DOS-style short mode. 54974 # If so, the updated path is stored in $new_path. 54975 54976 input_path="$new_path" 54977 # Check if we need to convert this using DOS-style short mode. If the path 54978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54979 # take no chances and rewrite it. 54980 # Note: m4 eats our [], so we need to use [ and ] instead. 54981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54982 if test "x$has_forbidden_chars" != x; then 54983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54987 # Going to short mode and back again did indeed matter. Since short mode is 54988 # case insensitive, let's make it lowercase to improve readability. 54989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54990 # Now convert it back to Unix-style (cygpath) 54991 input_path=`$CYGPATH -u "$shortmode_path"` 54992 new_path="$input_path" 54993 fi 54994 fi 54995 54996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54997 if test "x$test_cygdrive_prefix" = x; then 54998 # As a simple fix, exclude /usr/bin since it's not a real path. 54999 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55001 # a path prefixed by /cygdrive for fixpath to work. 55002 new_path="$CYGWIN_ROOT_PATH$input_path" 55003 fi 55004 fi 55005 55006 55007 if test "x$path" != "x$new_path"; then 55008 MSVC_DLL="$new_path" 55009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55010 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55011 fi 55012 55013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55014 55015 path="$MSVC_DLL" 55016 has_colon=`$ECHO $path | $GREP ^.:` 55017 new_path="$path" 55018 if test "x$has_colon" = x; then 55019 # Not in mixed or Windows style, start by that. 55020 new_path=`cmd //c echo $path` 55021 fi 55022 55023 55024 input_path="$new_path" 55025 # Check if we need to convert this using DOS-style short mode. If the path 55026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55027 # take no chances and rewrite it. 55028 # Note: m4 eats our [], so we need to use [ and ] instead. 55029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55030 if test "x$has_forbidden_chars" != x; then 55031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55033 fi 55034 55035 55036 windows_path="$new_path" 55037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55038 unix_path=`$CYGPATH -u "$windows_path"` 55039 new_path="$unix_path" 55040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55042 new_path="$unix_path" 55043 fi 55044 55045 if test "x$path" != "x$new_path"; then 55046 MSVC_DLL="$new_path" 55047 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55048 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55049 fi 55050 55051 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55052 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55053 55054 else 55055 # We're on a unix platform. Hooray! :) 55056 path="$MSVC_DLL" 55057 has_space=`$ECHO "$path" | $GREP " "` 55058 if test "x$has_space" != x; then 55059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55060 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55061 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55062 fi 55063 55064 # Use eval to expand a potential ~ 55065 eval path="$path" 55066 if test ! -f "$path" && test ! -d "$path"; then 55067 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55068 fi 55069 55070 if test -d "$path"; then 55071 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55072 else 55073 dir="`$DIRNAME "$path"`" 55074 base="`$BASENAME "$path"`" 55075 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55076 fi 55077 fi 55078 fi 55079 55080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55081 $as_echo_n "checking for $DLL_NAME... " >&6; } 55082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55083 $as_echo "$MSVC_DLL" >&6; } 55084 else 55085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55086 $as_echo "incorrect, ignoring" >&6; } 55087 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55088 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55089 fi 55090 fi 55091 55092 fi 55093 fi 55094 55095 if test "x$MSVC_DLL" = x; then 55096 # Probe: Check in the Boot JDK directory. 55097 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55098 55099 DLL_NAME="$DLL_NAME" 55100 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55101 METHOD="well-known location in Boot JDK" 55102 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55103 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55104 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55105 55106 # Need to check if the found msvcr is correct architecture 55107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55108 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55109 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55111 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55112 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55113 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55114 CORRECT_MSVCR_ARCH="PE32 executable" 55115 else 55116 CORRECT_MSVCR_ARCH="PE32+ executable" 55117 fi 55118 else 55119 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55120 CORRECT_MSVCR_ARCH=386 55121 else 55122 CORRECT_MSVCR_ARCH=x86-64 55123 fi 55124 fi 55125 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55127 $as_echo "ok" >&6; } 55128 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55129 55130 # Only process if variable expands to non-empty 55131 55132 if test "x$MSVC_DLL" != x; then 55133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55134 55135 # Input might be given as Windows format, start by converting to 55136 # unix format. 55137 path="$MSVC_DLL" 55138 new_path=`$CYGPATH -u "$path"` 55139 55140 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55141 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55142 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55143 # "foo.exe" is OK but "foo" is an error. 55144 # 55145 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55146 # It is also a way to make sure we got the proper file name for the real test later on. 55147 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55148 if test "x$test_shortpath" = x; then 55149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55150 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55151 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55152 fi 55153 55154 # Call helper function which possibly converts this using DOS-style short mode. 55155 # If so, the updated path is stored in $new_path. 55156 55157 input_path="$new_path" 55158 # Check if we need to convert this using DOS-style short mode. If the path 55159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55160 # take no chances and rewrite it. 55161 # Note: m4 eats our [], so we need to use [ and ] instead. 55162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55163 if test "x$has_forbidden_chars" != x; then 55164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55165 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55166 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55167 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55168 # Going to short mode and back again did indeed matter. Since short mode is 55169 # case insensitive, let's make it lowercase to improve readability. 55170 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55171 # Now convert it back to Unix-style (cygpath) 55172 input_path=`$CYGPATH -u "$shortmode_path"` 55173 new_path="$input_path" 55174 fi 55175 fi 55176 55177 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55178 if test "x$test_cygdrive_prefix" = x; then 55179 # As a simple fix, exclude /usr/bin since it's not a real path. 55180 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55181 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55182 # a path prefixed by /cygdrive for fixpath to work. 55183 new_path="$CYGWIN_ROOT_PATH$input_path" 55184 fi 55185 fi 55186 55187 55188 if test "x$path" != "x$new_path"; then 55189 MSVC_DLL="$new_path" 55190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55191 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55192 fi 55193 55194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55195 55196 path="$MSVC_DLL" 55197 has_colon=`$ECHO $path | $GREP ^.:` 55198 new_path="$path" 55199 if test "x$has_colon" = x; then 55200 # Not in mixed or Windows style, start by that. 55201 new_path=`cmd //c echo $path` 55202 fi 55203 55204 55205 input_path="$new_path" 55206 # Check if we need to convert this using DOS-style short mode. If the path 55207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55208 # take no chances and rewrite it. 55209 # Note: m4 eats our [], so we need to use [ and ] instead. 55210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55211 if test "x$has_forbidden_chars" != x; then 55212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55213 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55214 fi 55215 55216 55217 windows_path="$new_path" 55218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55219 unix_path=`$CYGPATH -u "$windows_path"` 55220 new_path="$unix_path" 55221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55223 new_path="$unix_path" 55224 fi 55225 55226 if test "x$path" != "x$new_path"; then 55227 MSVC_DLL="$new_path" 55228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55229 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55230 fi 55231 55232 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55233 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55234 55235 else 55236 # We're on a unix platform. Hooray! :) 55237 path="$MSVC_DLL" 55238 has_space=`$ECHO "$path" | $GREP " "` 55239 if test "x$has_space" != x; then 55240 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55241 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55242 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55243 fi 55244 55245 # Use eval to expand a potential ~ 55246 eval path="$path" 55247 if test ! -f "$path" && test ! -d "$path"; then 55248 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55249 fi 55250 55251 if test -d "$path"; then 55252 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55253 else 55254 dir="`$DIRNAME "$path"`" 55255 base="`$BASENAME "$path"`" 55256 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55257 fi 55258 fi 55259 fi 55260 55261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55262 $as_echo_n "checking for $DLL_NAME... " >&6; } 55263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55264 $as_echo "$MSVC_DLL" >&6; } 55265 else 55266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55267 $as_echo "incorrect, ignoring" >&6; } 55268 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55269 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55270 fi 55271 fi 55272 55273 fi 55274 55275 if test "x$MSVC_DLL" = x; then 55276 # Probe: Look in the Windows system32 directory 55277 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55278 55279 windows_path="$CYGWIN_SYSTEMROOT" 55280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55281 unix_path=`$CYGPATH -u "$windows_path"` 55282 CYGWIN_SYSTEMROOT="$unix_path" 55283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55285 CYGWIN_SYSTEMROOT="$unix_path" 55286 fi 55287 55288 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55289 55290 DLL_NAME="$DLL_NAME" 55291 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55292 METHOD="well-known location in SYSTEMROOT" 55293 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55295 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55296 55297 # Need to check if the found msvcr is correct architecture 55298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55299 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55300 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55302 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55303 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55304 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55305 CORRECT_MSVCR_ARCH="PE32 executable" 55306 else 55307 CORRECT_MSVCR_ARCH="PE32+ executable" 55308 fi 55309 else 55310 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55311 CORRECT_MSVCR_ARCH=386 55312 else 55313 CORRECT_MSVCR_ARCH=x86-64 55314 fi 55315 fi 55316 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55318 $as_echo "ok" >&6; } 55319 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55320 55321 # Only process if variable expands to non-empty 55322 55323 if test "x$MSVC_DLL" != x; then 55324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55325 55326 # Input might be given as Windows format, start by converting to 55327 # unix format. 55328 path="$MSVC_DLL" 55329 new_path=`$CYGPATH -u "$path"` 55330 55331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55334 # "foo.exe" is OK but "foo" is an error. 55335 # 55336 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55337 # It is also a way to make sure we got the proper file name for the real test later on. 55338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55339 if test "x$test_shortpath" = x; then 55340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55341 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55342 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55343 fi 55344 55345 # Call helper function which possibly converts this using DOS-style short mode. 55346 # If so, the updated path is stored in $new_path. 55347 55348 input_path="$new_path" 55349 # Check if we need to convert this using DOS-style short mode. If the path 55350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55351 # take no chances and rewrite it. 55352 # Note: m4 eats our [], so we need to use [ and ] instead. 55353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55354 if test "x$has_forbidden_chars" != x; then 55355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55356 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55357 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55358 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55359 # Going to short mode and back again did indeed matter. Since short mode is 55360 # case insensitive, let's make it lowercase to improve readability. 55361 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55362 # Now convert it back to Unix-style (cygpath) 55363 input_path=`$CYGPATH -u "$shortmode_path"` 55364 new_path="$input_path" 55365 fi 55366 fi 55367 55368 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55369 if test "x$test_cygdrive_prefix" = x; then 55370 # As a simple fix, exclude /usr/bin since it's not a real path. 55371 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55372 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55373 # a path prefixed by /cygdrive for fixpath to work. 55374 new_path="$CYGWIN_ROOT_PATH$input_path" 55375 fi 55376 fi 55377 55378 55379 if test "x$path" != "x$new_path"; then 55380 MSVC_DLL="$new_path" 55381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55382 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55383 fi 55384 55385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55386 55387 path="$MSVC_DLL" 55388 has_colon=`$ECHO $path | $GREP ^.:` 55389 new_path="$path" 55390 if test "x$has_colon" = x; then 55391 # Not in mixed or Windows style, start by that. 55392 new_path=`cmd //c echo $path` 55393 fi 55394 55395 55396 input_path="$new_path" 55397 # Check if we need to convert this using DOS-style short mode. If the path 55398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55399 # take no chances and rewrite it. 55400 # Note: m4 eats our [], so we need to use [ and ] instead. 55401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55402 if test "x$has_forbidden_chars" != x; then 55403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55404 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55405 fi 55406 55407 55408 windows_path="$new_path" 55409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55410 unix_path=`$CYGPATH -u "$windows_path"` 55411 new_path="$unix_path" 55412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55414 new_path="$unix_path" 55415 fi 55416 55417 if test "x$path" != "x$new_path"; then 55418 MSVC_DLL="$new_path" 55419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55420 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55421 fi 55422 55423 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55424 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55425 55426 else 55427 # We're on a unix platform. Hooray! :) 55428 path="$MSVC_DLL" 55429 has_space=`$ECHO "$path" | $GREP " "` 55430 if test "x$has_space" != x; then 55431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55432 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55433 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55434 fi 55435 55436 # Use eval to expand a potential ~ 55437 eval path="$path" 55438 if test ! -f "$path" && test ! -d "$path"; then 55439 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55440 fi 55441 55442 if test -d "$path"; then 55443 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55444 else 55445 dir="`$DIRNAME "$path"`" 55446 base="`$BASENAME "$path"`" 55447 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55448 fi 55449 fi 55450 fi 55451 55452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55453 $as_echo_n "checking for $DLL_NAME... " >&6; } 55454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55455 $as_echo "$MSVC_DLL" >&6; } 55456 else 55457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55458 $as_echo "incorrect, ignoring" >&6; } 55459 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55460 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55461 fi 55462 fi 55463 55464 fi 55465 55466 if test "x$MSVC_DLL" = x; then 55467 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55468 if test "x$VS100COMNTOOLS" != x; then 55469 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55470 55471 windows_path="$CYGWIN_VS_TOOLS_DIR" 55472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55473 unix_path=`$CYGPATH -u "$windows_path"` 55474 CYGWIN_VS_TOOLS_DIR="$unix_path" 55475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55477 CYGWIN_VS_TOOLS_DIR="$unix_path" 55478 fi 55479 55480 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55481 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55482 | $GREP -i /x64/ | $HEAD --lines 1` 55483 else 55484 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55485 | $GREP -i /x86/ | $HEAD --lines 1` 55486 fi 55487 55488 DLL_NAME="$DLL_NAME" 55489 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55490 METHOD="search of VS100COMNTOOLS" 55491 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55492 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55493 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55494 55495 # Need to check if the found msvcr is correct architecture 55496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55497 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55498 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55500 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55501 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55502 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55503 CORRECT_MSVCR_ARCH="PE32 executable" 55504 else 55505 CORRECT_MSVCR_ARCH="PE32+ executable" 55506 fi 55507 else 55508 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55509 CORRECT_MSVCR_ARCH=386 55510 else 55511 CORRECT_MSVCR_ARCH=x86-64 55512 fi 55513 fi 55514 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55516 $as_echo "ok" >&6; } 55517 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55518 55519 # Only process if variable expands to non-empty 55520 55521 if test "x$MSVC_DLL" != x; then 55522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55523 55524 # Input might be given as Windows format, start by converting to 55525 # unix format. 55526 path="$MSVC_DLL" 55527 new_path=`$CYGPATH -u "$path"` 55528 55529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55532 # "foo.exe" is OK but "foo" is an error. 55533 # 55534 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55535 # It is also a way to make sure we got the proper file name for the real test later on. 55536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55537 if test "x$test_shortpath" = x; then 55538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55539 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55540 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55541 fi 55542 55543 # Call helper function which possibly converts this using DOS-style short mode. 55544 # If so, the updated path is stored in $new_path. 55545 55546 input_path="$new_path" 55547 # Check if we need to convert this using DOS-style short mode. If the path 55548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55549 # take no chances and rewrite it. 55550 # Note: m4 eats our [], so we need to use [ and ] instead. 55551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55552 if test "x$has_forbidden_chars" != x; then 55553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55557 # Going to short mode and back again did indeed matter. Since short mode is 55558 # case insensitive, let's make it lowercase to improve readability. 55559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55560 # Now convert it back to Unix-style (cygpath) 55561 input_path=`$CYGPATH -u "$shortmode_path"` 55562 new_path="$input_path" 55563 fi 55564 fi 55565 55566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55567 if test "x$test_cygdrive_prefix" = x; then 55568 # As a simple fix, exclude /usr/bin since it's not a real path. 55569 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55571 # a path prefixed by /cygdrive for fixpath to work. 55572 new_path="$CYGWIN_ROOT_PATH$input_path" 55573 fi 55574 fi 55575 55576 55577 if test "x$path" != "x$new_path"; then 55578 MSVC_DLL="$new_path" 55579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55580 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55581 fi 55582 55583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55584 55585 path="$MSVC_DLL" 55586 has_colon=`$ECHO $path | $GREP ^.:` 55587 new_path="$path" 55588 if test "x$has_colon" = x; then 55589 # Not in mixed or Windows style, start by that. 55590 new_path=`cmd //c echo $path` 55591 fi 55592 55593 55594 input_path="$new_path" 55595 # Check if we need to convert this using DOS-style short mode. If the path 55596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55597 # take no chances and rewrite it. 55598 # Note: m4 eats our [], so we need to use [ and ] instead. 55599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55600 if test "x$has_forbidden_chars" != x; then 55601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55603 fi 55604 55605 55606 windows_path="$new_path" 55607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55608 unix_path=`$CYGPATH -u "$windows_path"` 55609 new_path="$unix_path" 55610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55612 new_path="$unix_path" 55613 fi 55614 55615 if test "x$path" != "x$new_path"; then 55616 MSVC_DLL="$new_path" 55617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55618 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55619 fi 55620 55621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55623 55624 else 55625 # We're on a unix platform. Hooray! :) 55626 path="$MSVC_DLL" 55627 has_space=`$ECHO "$path" | $GREP " "` 55628 if test "x$has_space" != x; then 55629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55630 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55631 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55632 fi 55633 55634 # Use eval to expand a potential ~ 55635 eval path="$path" 55636 if test ! -f "$path" && test ! -d "$path"; then 55637 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55638 fi 55639 55640 if test -d "$path"; then 55641 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55642 else 55643 dir="`$DIRNAME "$path"`" 55644 base="`$BASENAME "$path"`" 55645 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55646 fi 55647 fi 55648 fi 55649 55650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55651 $as_echo_n "checking for $DLL_NAME... " >&6; } 55652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55653 $as_echo "$MSVC_DLL" >&6; } 55654 else 55655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55656 $as_echo "incorrect, ignoring" >&6; } 55657 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55658 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55659 fi 55660 fi 55661 55662 fi 55663 fi 55664 55665 if test "x$MSVC_DLL" = x; then 55666 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55667 # (This was the original behaviour; kept since it might turn something up) 55668 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55669 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55670 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55671 | $GREP x64 | $HEAD --lines 1` 55672 else 55673 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55674 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55675 if test "x$POSSIBLE_MSVC_DLL" = x; then 55676 # We're grasping at straws now... 55677 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55678 | $HEAD --lines 1` 55679 fi 55680 fi 55681 55682 55683 DLL_NAME="$DLL_NAME" 55684 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55685 METHOD="search of VCINSTALLDIR" 55686 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55687 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55688 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55689 55690 # Need to check if the found msvcr is correct architecture 55691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55692 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55693 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55695 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55696 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55697 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55698 CORRECT_MSVCR_ARCH="PE32 executable" 55699 else 55700 CORRECT_MSVCR_ARCH="PE32+ executable" 55701 fi 55702 else 55703 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55704 CORRECT_MSVCR_ARCH=386 55705 else 55706 CORRECT_MSVCR_ARCH=x86-64 55707 fi 55708 fi 55709 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55711 $as_echo "ok" >&6; } 55712 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55713 55714 # Only process if variable expands to non-empty 55715 55716 if test "x$MSVC_DLL" != x; then 55717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55718 55719 # Input might be given as Windows format, start by converting to 55720 # unix format. 55721 path="$MSVC_DLL" 55722 new_path=`$CYGPATH -u "$path"` 55723 55724 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55725 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55726 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55727 # "foo.exe" is OK but "foo" is an error. 55728 # 55729 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55730 # It is also a way to make sure we got the proper file name for the real test later on. 55731 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55732 if test "x$test_shortpath" = x; then 55733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55734 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55735 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55736 fi 55737 55738 # Call helper function which possibly converts this using DOS-style short mode. 55739 # If so, the updated path is stored in $new_path. 55740 55741 input_path="$new_path" 55742 # Check if we need to convert this using DOS-style short mode. If the path 55743 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55744 # take no chances and rewrite it. 55745 # Note: m4 eats our [], so we need to use [ and ] instead. 55746 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55747 if test "x$has_forbidden_chars" != x; then 55748 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55749 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55750 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55751 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55752 # Going to short mode and back again did indeed matter. Since short mode is 55753 # case insensitive, let's make it lowercase to improve readability. 55754 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55755 # Now convert it back to Unix-style (cygpath) 55756 input_path=`$CYGPATH -u "$shortmode_path"` 55757 new_path="$input_path" 55758 fi 55759 fi 55760 55761 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55762 if test "x$test_cygdrive_prefix" = x; then 55763 # As a simple fix, exclude /usr/bin since it's not a real path. 55764 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55765 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55766 # a path prefixed by /cygdrive for fixpath to work. 55767 new_path="$CYGWIN_ROOT_PATH$input_path" 55768 fi 55769 fi 55770 55771 55772 if test "x$path" != "x$new_path"; then 55773 MSVC_DLL="$new_path" 55774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55775 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55776 fi 55777 55778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55779 55780 path="$MSVC_DLL" 55781 has_colon=`$ECHO $path | $GREP ^.:` 55782 new_path="$path" 55783 if test "x$has_colon" = x; then 55784 # Not in mixed or Windows style, start by that. 55785 new_path=`cmd //c echo $path` 55786 fi 55787 55788 55789 input_path="$new_path" 55790 # Check if we need to convert this using DOS-style short mode. If the path 55791 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55792 # take no chances and rewrite it. 55793 # Note: m4 eats our [], so we need to use [ and ] instead. 55794 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55795 if test "x$has_forbidden_chars" != x; then 55796 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55797 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55798 fi 55799 55800 55801 windows_path="$new_path" 55802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55803 unix_path=`$CYGPATH -u "$windows_path"` 55804 new_path="$unix_path" 55805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55807 new_path="$unix_path" 55808 fi 55809 55810 if test "x$path" != "x$new_path"; then 55811 MSVC_DLL="$new_path" 55812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55813 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55814 fi 55815 55816 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55817 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55818 55819 else 55820 # We're on a unix platform. Hooray! :) 55821 path="$MSVC_DLL" 55822 has_space=`$ECHO "$path" | $GREP " "` 55823 if test "x$has_space" != x; then 55824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55825 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55826 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55827 fi 55828 55829 # Use eval to expand a potential ~ 55830 eval path="$path" 55831 if test ! -f "$path" && test ! -d "$path"; then 55832 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55833 fi 55834 55835 if test -d "$path"; then 55836 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55837 else 55838 dir="`$DIRNAME "$path"`" 55839 base="`$BASENAME "$path"`" 55840 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55841 fi 55842 fi 55843 fi 55844 55845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55846 $as_echo_n "checking for $DLL_NAME... " >&6; } 55847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55848 $as_echo "$MSVC_DLL" >&6; } 55849 else 55850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55851 $as_echo "incorrect, ignoring" >&6; } 55852 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55853 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55854 fi 55855 fi 55856 55857 fi 55858 fi 55859 55860 if test "x$MSVC_DLL" = x; then 55861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55862 $as_echo_n "checking for $DLL_NAME... " >&6; } 55863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55864 $as_echo "no" >&6; } 55865 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55866 fi 55867 55868 MSVCR_DLL="$MSVC_DLL" 55869 fi 55870 55871 55872 55873 # Check whether --with-msvcp-dll was given. 55874 if test "${with_msvcp_dll+set}" = set; then : 55875 withval=$with_msvcp_dll; 55876 fi 55877 55878 55879 if test "x$MSVCP_NAME" != "x"; then 55880 if test "x$with_msvcp_dll" != x; then 55881 # If given explicitly by user, do not probe. If not present, fail directly. 55882 55883 DLL_NAME="$MSVCP_NAME" 55884 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 55885 METHOD="--with-msvcp-dll" 55886 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55887 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55888 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55889 55890 # Need to check if the found msvcr is correct architecture 55891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55892 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55893 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55895 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55896 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55897 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55898 CORRECT_MSVCR_ARCH="PE32 executable" 55899 else 55900 CORRECT_MSVCR_ARCH="PE32+ executable" 55901 fi 55902 else 55903 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55904 CORRECT_MSVCR_ARCH=386 55905 else 55906 CORRECT_MSVCR_ARCH=x86-64 55907 fi 55908 fi 55909 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55911 $as_echo "ok" >&6; } 55912 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55913 55914 # Only process if variable expands to non-empty 55915 55916 if test "x$MSVC_DLL" != x; then 55917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55918 55919 # Input might be given as Windows format, start by converting to 55920 # unix format. 55921 path="$MSVC_DLL" 55922 new_path=`$CYGPATH -u "$path"` 55923 55924 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55925 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55926 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55927 # "foo.exe" is OK but "foo" is an error. 55928 # 55929 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55930 # It is also a way to make sure we got the proper file name for the real test later on. 55931 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55932 if test "x$test_shortpath" = x; then 55933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55934 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55935 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55936 fi 55937 55938 # Call helper function which possibly converts this using DOS-style short mode. 55939 # If so, the updated path is stored in $new_path. 55940 55941 input_path="$new_path" 55942 # Check if we need to convert this using DOS-style short mode. If the path 55943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55944 # take no chances and rewrite it. 55945 # Note: m4 eats our [], so we need to use [ and ] instead. 55946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55947 if test "x$has_forbidden_chars" != x; then 55948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55949 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55950 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55951 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55952 # Going to short mode and back again did indeed matter. Since short mode is 55953 # case insensitive, let's make it lowercase to improve readability. 55954 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55955 # Now convert it back to Unix-style (cygpath) 55956 input_path=`$CYGPATH -u "$shortmode_path"` 55957 new_path="$input_path" 55958 fi 55959 fi 55960 55961 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55962 if test "x$test_cygdrive_prefix" = x; then 55963 # As a simple fix, exclude /usr/bin since it's not a real path. 55964 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55965 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55966 # a path prefixed by /cygdrive for fixpath to work. 55967 new_path="$CYGWIN_ROOT_PATH$input_path" 55968 fi 55969 fi 55970 55971 55972 if test "x$path" != "x$new_path"; then 55973 MSVC_DLL="$new_path" 55974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55975 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55976 fi 55977 55978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55979 55980 path="$MSVC_DLL" 55981 has_colon=`$ECHO $path | $GREP ^.:` 55982 new_path="$path" 55983 if test "x$has_colon" = x; then 55984 # Not in mixed or Windows style, start by that. 55985 new_path=`cmd //c echo $path` 55986 fi 55987 55988 55989 input_path="$new_path" 55990 # Check if we need to convert this using DOS-style short mode. If the path 55991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55992 # take no chances and rewrite it. 55993 # Note: m4 eats our [], so we need to use [ and ] instead. 55994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55995 if test "x$has_forbidden_chars" != x; then 55996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55998 fi 55999 56000 56001 windows_path="$new_path" 56002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56003 unix_path=`$CYGPATH -u "$windows_path"` 56004 new_path="$unix_path" 56005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56007 new_path="$unix_path" 56008 fi 56009 56010 if test "x$path" != "x$new_path"; then 56011 MSVC_DLL="$new_path" 56012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56013 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56014 fi 56015 56016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56018 56019 else 56020 # We're on a unix platform. Hooray! :) 56021 path="$MSVC_DLL" 56022 has_space=`$ECHO "$path" | $GREP " "` 56023 if test "x$has_space" != x; then 56024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56025 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56026 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56027 fi 56028 56029 # Use eval to expand a potential ~ 56030 eval path="$path" 56031 if test ! -f "$path" && test ! -d "$path"; then 56032 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56033 fi 56034 56035 if test -d "$path"; then 56036 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56037 else 56038 dir="`$DIRNAME "$path"`" 56039 base="`$BASENAME "$path"`" 56040 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56041 fi 56042 fi 56043 fi 56044 56045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56046 $as_echo_n "checking for $DLL_NAME... " >&6; } 56047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56048 $as_echo "$MSVC_DLL" >&6; } 56049 else 56050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56051 $as_echo "incorrect, ignoring" >&6; } 56052 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56053 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56054 fi 56055 fi 56056 56057 if test "x$MSVC_DLL" = x; then 56058 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 56059 fi 56060 MSVCP_DLL="$MSVC_DLL" 56061 elif test "x$DEVKIT_MSVCP_DLL" != x; then 56062 56063 DLL_NAME="$MSVCP_NAME" 56064 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 56065 METHOD="devkit" 56066 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56067 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56068 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56069 56070 # Need to check if the found msvcr is correct architecture 56071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56072 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56073 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56075 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56076 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56077 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56078 CORRECT_MSVCR_ARCH="PE32 executable" 56079 else 56080 CORRECT_MSVCR_ARCH="PE32+ executable" 56081 fi 56082 else 56083 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56084 CORRECT_MSVCR_ARCH=386 56085 else 56086 CORRECT_MSVCR_ARCH=x86-64 56087 fi 56088 fi 56089 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56091 $as_echo "ok" >&6; } 56092 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56093 56094 # Only process if variable expands to non-empty 56095 56096 if test "x$MSVC_DLL" != x; then 56097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56098 56099 # Input might be given as Windows format, start by converting to 56100 # unix format. 56101 path="$MSVC_DLL" 56102 new_path=`$CYGPATH -u "$path"` 56103 56104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56107 # "foo.exe" is OK but "foo" is an error. 56108 # 56109 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56110 # It is also a way to make sure we got the proper file name for the real test later on. 56111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56112 if test "x$test_shortpath" = x; then 56113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56114 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56115 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56116 fi 56117 56118 # Call helper function which possibly converts this using DOS-style short mode. 56119 # If so, the updated path is stored in $new_path. 56120 56121 input_path="$new_path" 56122 # Check if we need to convert this using DOS-style short mode. If the path 56123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56124 # take no chances and rewrite it. 56125 # Note: m4 eats our [], so we need to use [ and ] instead. 56126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56127 if test "x$has_forbidden_chars" != x; then 56128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56129 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56130 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56131 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56132 # Going to short mode and back again did indeed matter. Since short mode is 56133 # case insensitive, let's make it lowercase to improve readability. 56134 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56135 # Now convert it back to Unix-style (cygpath) 56136 input_path=`$CYGPATH -u "$shortmode_path"` 56137 new_path="$input_path" 56138 fi 56139 fi 56140 56141 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56142 if test "x$test_cygdrive_prefix" = x; then 56143 # As a simple fix, exclude /usr/bin since it's not a real path. 56144 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56145 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56146 # a path prefixed by /cygdrive for fixpath to work. 56147 new_path="$CYGWIN_ROOT_PATH$input_path" 56148 fi 56149 fi 56150 56151 56152 if test "x$path" != "x$new_path"; then 56153 MSVC_DLL="$new_path" 56154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56155 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56156 fi 56157 56158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56159 56160 path="$MSVC_DLL" 56161 has_colon=`$ECHO $path | $GREP ^.:` 56162 new_path="$path" 56163 if test "x$has_colon" = x; then 56164 # Not in mixed or Windows style, start by that. 56165 new_path=`cmd //c echo $path` 56166 fi 56167 56168 56169 input_path="$new_path" 56170 # Check if we need to convert this using DOS-style short mode. If the path 56171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56172 # take no chances and rewrite it. 56173 # Note: m4 eats our [], so we need to use [ and ] instead. 56174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56175 if test "x$has_forbidden_chars" != x; then 56176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56178 fi 56179 56180 56181 windows_path="$new_path" 56182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56183 unix_path=`$CYGPATH -u "$windows_path"` 56184 new_path="$unix_path" 56185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56187 new_path="$unix_path" 56188 fi 56189 56190 if test "x$path" != "x$new_path"; then 56191 MSVC_DLL="$new_path" 56192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56193 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56194 fi 56195 56196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56198 56199 else 56200 # We're on a unix platform. Hooray! :) 56201 path="$MSVC_DLL" 56202 has_space=`$ECHO "$path" | $GREP " "` 56203 if test "x$has_space" != x; then 56204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56205 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56206 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56207 fi 56208 56209 # Use eval to expand a potential ~ 56210 eval path="$path" 56211 if test ! -f "$path" && test ! -d "$path"; then 56212 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56213 fi 56214 56215 if test -d "$path"; then 56216 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56217 else 56218 dir="`$DIRNAME "$path"`" 56219 base="`$BASENAME "$path"`" 56220 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56221 fi 56222 fi 56223 fi 56224 56225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56226 $as_echo_n "checking for $DLL_NAME... " >&6; } 56227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56228 $as_echo "$MSVC_DLL" >&6; } 56229 else 56230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56231 $as_echo "incorrect, ignoring" >&6; } 56232 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56233 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56234 fi 56235 fi 56236 56237 if test "x$MSVC_DLL" = x; then 56238 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 56239 fi 56240 MSVCP_DLL="$MSVC_DLL" 56241 else 56242 56243 DLL_NAME="${MSVCP_NAME}" 56244 MSVC_DLL= 56245 56246 if test "x$MSVC_DLL" = x; then 56247 # Probe: Using well-known location from Visual Studio 10.0 56248 if test "x$VCINSTALLDIR" != x; then 56249 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 56250 56251 windows_path="$CYGWIN_VC_INSTALL_DIR" 56252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56253 unix_path=`$CYGPATH -u "$windows_path"` 56254 CYGWIN_VC_INSTALL_DIR="$unix_path" 56255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56257 CYGWIN_VC_INSTALL_DIR="$unix_path" 56258 fi 56259 56260 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56261 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56262 else 56263 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56264 fi 56265 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 56266 56267 DLL_NAME="$DLL_NAME" 56268 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56269 METHOD="well-known location in VCINSTALLDIR" 56270 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56271 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56272 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56273 56274 # Need to check if the found msvcr is correct architecture 56275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56276 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56277 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56279 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56280 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56281 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56282 CORRECT_MSVCR_ARCH="PE32 executable" 56283 else 56284 CORRECT_MSVCR_ARCH="PE32+ executable" 56285 fi 56286 else 56287 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56288 CORRECT_MSVCR_ARCH=386 56289 else 56290 CORRECT_MSVCR_ARCH=x86-64 56291 fi 56292 fi 56293 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56295 $as_echo "ok" >&6; } 56296 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56297 56298 # Only process if variable expands to non-empty 56299 56300 if test "x$MSVC_DLL" != x; then 56301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56302 56303 # Input might be given as Windows format, start by converting to 56304 # unix format. 56305 path="$MSVC_DLL" 56306 new_path=`$CYGPATH -u "$path"` 56307 56308 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56309 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56310 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56311 # "foo.exe" is OK but "foo" is an error. 56312 # 56313 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56314 # It is also a way to make sure we got the proper file name for the real test later on. 56315 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56316 if test "x$test_shortpath" = x; then 56317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56318 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56319 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56320 fi 56321 56322 # Call helper function which possibly converts this using DOS-style short mode. 56323 # If so, the updated path is stored in $new_path. 56324 56325 input_path="$new_path" 56326 # Check if we need to convert this using DOS-style short mode. If the path 56327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56328 # take no chances and rewrite it. 56329 # Note: m4 eats our [], so we need to use [ and ] instead. 56330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56331 if test "x$has_forbidden_chars" != x; then 56332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56333 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56334 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56335 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56336 # Going to short mode and back again did indeed matter. Since short mode is 56337 # case insensitive, let's make it lowercase to improve readability. 56338 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56339 # Now convert it back to Unix-style (cygpath) 56340 input_path=`$CYGPATH -u "$shortmode_path"` 56341 new_path="$input_path" 56342 fi 56343 fi 56344 56345 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56346 if test "x$test_cygdrive_prefix" = x; then 56347 # As a simple fix, exclude /usr/bin since it's not a real path. 56348 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56349 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56350 # a path prefixed by /cygdrive for fixpath to work. 56351 new_path="$CYGWIN_ROOT_PATH$input_path" 56352 fi 56353 fi 56354 56355 56356 if test "x$path" != "x$new_path"; then 56357 MSVC_DLL="$new_path" 56358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56359 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56360 fi 56361 56362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56363 56364 path="$MSVC_DLL" 56365 has_colon=`$ECHO $path | $GREP ^.:` 56366 new_path="$path" 56367 if test "x$has_colon" = x; then 56368 # Not in mixed or Windows style, start by that. 56369 new_path=`cmd //c echo $path` 56370 fi 56371 56372 56373 input_path="$new_path" 56374 # Check if we need to convert this using DOS-style short mode. If the path 56375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56376 # take no chances and rewrite it. 56377 # Note: m4 eats our [], so we need to use [ and ] instead. 56378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56379 if test "x$has_forbidden_chars" != x; then 56380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56381 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56382 fi 56383 56384 56385 windows_path="$new_path" 56386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56387 unix_path=`$CYGPATH -u "$windows_path"` 56388 new_path="$unix_path" 56389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56391 new_path="$unix_path" 56392 fi 56393 56394 if test "x$path" != "x$new_path"; then 56395 MSVC_DLL="$new_path" 56396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56397 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56398 fi 56399 56400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56402 56403 else 56404 # We're on a unix platform. Hooray! :) 56405 path="$MSVC_DLL" 56406 has_space=`$ECHO "$path" | $GREP " "` 56407 if test "x$has_space" != x; then 56408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56409 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56410 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56411 fi 56412 56413 # Use eval to expand a potential ~ 56414 eval path="$path" 56415 if test ! -f "$path" && test ! -d "$path"; then 56416 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56417 fi 56418 56419 if test -d "$path"; then 56420 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56421 else 56422 dir="`$DIRNAME "$path"`" 56423 base="`$BASENAME "$path"`" 56424 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56425 fi 56426 fi 56427 fi 56428 56429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56430 $as_echo_n "checking for $DLL_NAME... " >&6; } 56431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56432 $as_echo "$MSVC_DLL" >&6; } 56433 else 56434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56435 $as_echo "incorrect, ignoring" >&6; } 56436 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56437 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56438 fi 56439 fi 56440 56441 fi 56442 fi 56443 56444 if test "x$MSVC_DLL" = x; then 56445 # Probe: Check in the Boot JDK directory. 56446 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56447 56448 DLL_NAME="$DLL_NAME" 56449 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56450 METHOD="well-known location in Boot JDK" 56451 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56453 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56454 56455 # Need to check if the found msvcr is correct architecture 56456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56457 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56458 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56460 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56461 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56462 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56463 CORRECT_MSVCR_ARCH="PE32 executable" 56464 else 56465 CORRECT_MSVCR_ARCH="PE32+ executable" 56466 fi 56467 else 56468 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56469 CORRECT_MSVCR_ARCH=386 56470 else 56471 CORRECT_MSVCR_ARCH=x86-64 56472 fi 56473 fi 56474 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56476 $as_echo "ok" >&6; } 56477 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56478 56479 # Only process if variable expands to non-empty 56480 56481 if test "x$MSVC_DLL" != x; then 56482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56483 56484 # Input might be given as Windows format, start by converting to 56485 # unix format. 56486 path="$MSVC_DLL" 56487 new_path=`$CYGPATH -u "$path"` 56488 56489 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56490 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56491 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56492 # "foo.exe" is OK but "foo" is an error. 56493 # 56494 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56495 # It is also a way to make sure we got the proper file name for the real test later on. 56496 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56497 if test "x$test_shortpath" = x; then 56498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56499 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56500 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56501 fi 56502 56503 # Call helper function which possibly converts this using DOS-style short mode. 56504 # If so, the updated path is stored in $new_path. 56505 56506 input_path="$new_path" 56507 # Check if we need to convert this using DOS-style short mode. If the path 56508 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56509 # take no chances and rewrite it. 56510 # Note: m4 eats our [], so we need to use [ and ] instead. 56511 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56512 if test "x$has_forbidden_chars" != x; then 56513 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56514 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56515 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56516 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56517 # Going to short mode and back again did indeed matter. Since short mode is 56518 # case insensitive, let's make it lowercase to improve readability. 56519 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56520 # Now convert it back to Unix-style (cygpath) 56521 input_path=`$CYGPATH -u "$shortmode_path"` 56522 new_path="$input_path" 56523 fi 56524 fi 56525 56526 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56527 if test "x$test_cygdrive_prefix" = x; then 56528 # As a simple fix, exclude /usr/bin since it's not a real path. 56529 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56530 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56531 # a path prefixed by /cygdrive for fixpath to work. 56532 new_path="$CYGWIN_ROOT_PATH$input_path" 56533 fi 56534 fi 56535 56536 56537 if test "x$path" != "x$new_path"; then 56538 MSVC_DLL="$new_path" 56539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56540 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56541 fi 56542 56543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56544 56545 path="$MSVC_DLL" 56546 has_colon=`$ECHO $path | $GREP ^.:` 56547 new_path="$path" 56548 if test "x$has_colon" = x; then 56549 # Not in mixed or Windows style, start by that. 56550 new_path=`cmd //c echo $path` 56551 fi 56552 56553 56554 input_path="$new_path" 56555 # Check if we need to convert this using DOS-style short mode. If the path 56556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56557 # take no chances and rewrite it. 56558 # Note: m4 eats our [], so we need to use [ and ] instead. 56559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56560 if test "x$has_forbidden_chars" != x; then 56561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56562 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56563 fi 56564 56565 56566 windows_path="$new_path" 56567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56568 unix_path=`$CYGPATH -u "$windows_path"` 56569 new_path="$unix_path" 56570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56572 new_path="$unix_path" 56573 fi 56574 56575 if test "x$path" != "x$new_path"; then 56576 MSVC_DLL="$new_path" 56577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56578 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56579 fi 56580 56581 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56582 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56583 56584 else 56585 # We're on a unix platform. Hooray! :) 56586 path="$MSVC_DLL" 56587 has_space=`$ECHO "$path" | $GREP " "` 56588 if test "x$has_space" != x; then 56589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56590 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56591 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56592 fi 56593 56594 # Use eval to expand a potential ~ 56595 eval path="$path" 56596 if test ! -f "$path" && test ! -d "$path"; then 56597 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56598 fi 56599 56600 if test -d "$path"; then 56601 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56602 else 56603 dir="`$DIRNAME "$path"`" 56604 base="`$BASENAME "$path"`" 56605 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56606 fi 56607 fi 56608 fi 56609 56610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56611 $as_echo_n "checking for $DLL_NAME... " >&6; } 56612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56613 $as_echo "$MSVC_DLL" >&6; } 56614 else 56615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56616 $as_echo "incorrect, ignoring" >&6; } 56617 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56618 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56619 fi 56620 fi 56621 56622 fi 56623 56624 if test "x$MSVC_DLL" = x; then 56625 # Probe: Look in the Windows system32 directory 56626 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56627 56628 windows_path="$CYGWIN_SYSTEMROOT" 56629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56630 unix_path=`$CYGPATH -u "$windows_path"` 56631 CYGWIN_SYSTEMROOT="$unix_path" 56632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56634 CYGWIN_SYSTEMROOT="$unix_path" 56635 fi 56636 56637 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56638 56639 DLL_NAME="$DLL_NAME" 56640 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56641 METHOD="well-known location in SYSTEMROOT" 56642 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56643 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56644 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56645 56646 # Need to check if the found msvcr is correct architecture 56647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56648 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56649 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56651 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56652 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56653 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56654 CORRECT_MSVCR_ARCH="PE32 executable" 56655 else 56656 CORRECT_MSVCR_ARCH="PE32+ executable" 56657 fi 56658 else 56659 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56660 CORRECT_MSVCR_ARCH=386 56661 else 56662 CORRECT_MSVCR_ARCH=x86-64 56663 fi 56664 fi 56665 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56667 $as_echo "ok" >&6; } 56668 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56669 56670 # Only process if variable expands to non-empty 56671 56672 if test "x$MSVC_DLL" != x; then 56673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56674 56675 # Input might be given as Windows format, start by converting to 56676 # unix format. 56677 path="$MSVC_DLL" 56678 new_path=`$CYGPATH -u "$path"` 56679 56680 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56681 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56682 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56683 # "foo.exe" is OK but "foo" is an error. 56684 # 56685 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56686 # It is also a way to make sure we got the proper file name for the real test later on. 56687 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56688 if test "x$test_shortpath" = x; then 56689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56690 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56691 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56692 fi 56693 56694 # Call helper function which possibly converts this using DOS-style short mode. 56695 # If so, the updated path is stored in $new_path. 56696 56697 input_path="$new_path" 56698 # Check if we need to convert this using DOS-style short mode. If the path 56699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56700 # take no chances and rewrite it. 56701 # Note: m4 eats our [], so we need to use [ and ] instead. 56702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56703 if test "x$has_forbidden_chars" != x; then 56704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56705 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56706 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56707 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56708 # Going to short mode and back again did indeed matter. Since short mode is 56709 # case insensitive, let's make it lowercase to improve readability. 56710 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56711 # Now convert it back to Unix-style (cygpath) 56712 input_path=`$CYGPATH -u "$shortmode_path"` 56713 new_path="$input_path" 56714 fi 56715 fi 56716 56717 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56718 if test "x$test_cygdrive_prefix" = x; then 56719 # As a simple fix, exclude /usr/bin since it's not a real path. 56720 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56721 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56722 # a path prefixed by /cygdrive for fixpath to work. 56723 new_path="$CYGWIN_ROOT_PATH$input_path" 56724 fi 56725 fi 56726 56727 56728 if test "x$path" != "x$new_path"; then 56729 MSVC_DLL="$new_path" 56730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56731 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56732 fi 56733 56734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56735 56736 path="$MSVC_DLL" 56737 has_colon=`$ECHO $path | $GREP ^.:` 56738 new_path="$path" 56739 if test "x$has_colon" = x; then 56740 # Not in mixed or Windows style, start by that. 56741 new_path=`cmd //c echo $path` 56742 fi 56743 56744 56745 input_path="$new_path" 56746 # Check if we need to convert this using DOS-style short mode. If the path 56747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56748 # take no chances and rewrite it. 56749 # Note: m4 eats our [], so we need to use [ and ] instead. 56750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56751 if test "x$has_forbidden_chars" != x; then 56752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56753 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56754 fi 56755 56756 56757 windows_path="$new_path" 56758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56759 unix_path=`$CYGPATH -u "$windows_path"` 56760 new_path="$unix_path" 56761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56763 new_path="$unix_path" 56764 fi 56765 56766 if test "x$path" != "x$new_path"; then 56767 MSVC_DLL="$new_path" 56768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56769 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56770 fi 56771 56772 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56773 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56774 56775 else 56776 # We're on a unix platform. Hooray! :) 56777 path="$MSVC_DLL" 56778 has_space=`$ECHO "$path" | $GREP " "` 56779 if test "x$has_space" != x; then 56780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56781 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56782 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56783 fi 56784 56785 # Use eval to expand a potential ~ 56786 eval path="$path" 56787 if test ! -f "$path" && test ! -d "$path"; then 56788 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56789 fi 56790 56791 if test -d "$path"; then 56792 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56793 else 56794 dir="`$DIRNAME "$path"`" 56795 base="`$BASENAME "$path"`" 56796 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56797 fi 56798 fi 56799 fi 56800 56801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56802 $as_echo_n "checking for $DLL_NAME... " >&6; } 56803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56804 $as_echo "$MSVC_DLL" >&6; } 56805 else 56806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56807 $as_echo "incorrect, ignoring" >&6; } 56808 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56809 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56810 fi 56811 fi 56812 56813 fi 56814 56815 if test "x$MSVC_DLL" = x; then 56816 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56817 if test "x$VS100COMNTOOLS" != x; then 56818 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56819 56820 windows_path="$CYGWIN_VS_TOOLS_DIR" 56821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56822 unix_path=`$CYGPATH -u "$windows_path"` 56823 CYGWIN_VS_TOOLS_DIR="$unix_path" 56824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56826 CYGWIN_VS_TOOLS_DIR="$unix_path" 56827 fi 56828 56829 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56830 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56831 | $GREP -i /x64/ | $HEAD --lines 1` 56832 else 56833 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56834 | $GREP -i /x86/ | $HEAD --lines 1` 56835 fi 56836 56837 DLL_NAME="$DLL_NAME" 56838 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56839 METHOD="search of VS100COMNTOOLS" 56840 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56841 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56842 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56843 56844 # Need to check if the found msvcr is correct architecture 56845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56846 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56847 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56849 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56850 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56851 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56852 CORRECT_MSVCR_ARCH="PE32 executable" 56853 else 56854 CORRECT_MSVCR_ARCH="PE32+ executable" 56855 fi 56856 else 56857 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56858 CORRECT_MSVCR_ARCH=386 56859 else 56860 CORRECT_MSVCR_ARCH=x86-64 56861 fi 56862 fi 56863 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56865 $as_echo "ok" >&6; } 56866 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56867 56868 # Only process if variable expands to non-empty 56869 56870 if test "x$MSVC_DLL" != x; then 56871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56872 56873 # Input might be given as Windows format, start by converting to 56874 # unix format. 56875 path="$MSVC_DLL" 56876 new_path=`$CYGPATH -u "$path"` 56877 56878 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56879 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56880 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56881 # "foo.exe" is OK but "foo" is an error. 56882 # 56883 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56884 # It is also a way to make sure we got the proper file name for the real test later on. 56885 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56886 if test "x$test_shortpath" = x; then 56887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56888 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56889 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56890 fi 56891 56892 # Call helper function which possibly converts this using DOS-style short mode. 56893 # If so, the updated path is stored in $new_path. 56894 56895 input_path="$new_path" 56896 # Check if we need to convert this using DOS-style short mode. If the path 56897 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56898 # take no chances and rewrite it. 56899 # Note: m4 eats our [], so we need to use [ and ] instead. 56900 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56901 if test "x$has_forbidden_chars" != x; then 56902 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56903 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56904 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56905 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56906 # Going to short mode and back again did indeed matter. Since short mode is 56907 # case insensitive, let's make it lowercase to improve readability. 56908 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56909 # Now convert it back to Unix-style (cygpath) 56910 input_path=`$CYGPATH -u "$shortmode_path"` 56911 new_path="$input_path" 56912 fi 56913 fi 56914 56915 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56916 if test "x$test_cygdrive_prefix" = x; then 56917 # As a simple fix, exclude /usr/bin since it's not a real path. 56918 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56919 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56920 # a path prefixed by /cygdrive for fixpath to work. 56921 new_path="$CYGWIN_ROOT_PATH$input_path" 56922 fi 56923 fi 56924 56925 56926 if test "x$path" != "x$new_path"; then 56927 MSVC_DLL="$new_path" 56928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56929 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56930 fi 56931 56932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56933 56934 path="$MSVC_DLL" 56935 has_colon=`$ECHO $path | $GREP ^.:` 56936 new_path="$path" 56937 if test "x$has_colon" = x; then 56938 # Not in mixed or Windows style, start by that. 56939 new_path=`cmd //c echo $path` 56940 fi 56941 56942 56943 input_path="$new_path" 56944 # Check if we need to convert this using DOS-style short mode. If the path 56945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56946 # take no chances and rewrite it. 56947 # Note: m4 eats our [], so we need to use [ and ] instead. 56948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56949 if test "x$has_forbidden_chars" != x; then 56950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56951 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56952 fi 56953 56954 56955 windows_path="$new_path" 56956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56957 unix_path=`$CYGPATH -u "$windows_path"` 56958 new_path="$unix_path" 56959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56961 new_path="$unix_path" 56962 fi 56963 56964 if test "x$path" != "x$new_path"; then 56965 MSVC_DLL="$new_path" 56966 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56967 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56968 fi 56969 56970 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56971 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56972 56973 else 56974 # We're on a unix platform. Hooray! :) 56975 path="$MSVC_DLL" 56976 has_space=`$ECHO "$path" | $GREP " "` 56977 if test "x$has_space" != x; then 56978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56979 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56980 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56981 fi 56982 56983 # Use eval to expand a potential ~ 56984 eval path="$path" 56985 if test ! -f "$path" && test ! -d "$path"; then 56986 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56987 fi 56988 56989 if test -d "$path"; then 56990 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56991 else 56992 dir="`$DIRNAME "$path"`" 56993 base="`$BASENAME "$path"`" 56994 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56995 fi 56996 fi 56997 fi 56998 56999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57000 $as_echo_n "checking for $DLL_NAME... " >&6; } 57001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57002 $as_echo "$MSVC_DLL" >&6; } 57003 else 57004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57005 $as_echo "incorrect, ignoring" >&6; } 57006 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57007 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57008 fi 57009 fi 57010 57011 fi 57012 fi 57013 57014 if test "x$MSVC_DLL" = x; then 57015 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 57016 # (This was the original behaviour; kept since it might turn something up) 57017 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 57018 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57019 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57020 | $GREP x64 | $HEAD --lines 1` 57021 else 57022 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57023 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 57024 if test "x$POSSIBLE_MSVC_DLL" = x; then 57025 # We're grasping at straws now... 57026 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57027 | $HEAD --lines 1` 57028 fi 57029 fi 57030 57031 57032 DLL_NAME="$DLL_NAME" 57033 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57034 METHOD="search of VCINSTALLDIR" 57035 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57036 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57037 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57038 57039 # Need to check if the found msvcr is correct architecture 57040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57041 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57042 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57044 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57045 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57046 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57047 CORRECT_MSVCR_ARCH="PE32 executable" 57048 else 57049 CORRECT_MSVCR_ARCH="PE32+ executable" 57050 fi 57051 else 57052 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57053 CORRECT_MSVCR_ARCH=386 57054 else 57055 CORRECT_MSVCR_ARCH=x86-64 57056 fi 57057 fi 57058 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57060 $as_echo "ok" >&6; } 57061 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57062 57063 # Only process if variable expands to non-empty 57064 57065 if test "x$MSVC_DLL" != x; then 57066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57067 57068 # Input might be given as Windows format, start by converting to 57069 # unix format. 57070 path="$MSVC_DLL" 57071 new_path=`$CYGPATH -u "$path"` 57072 57073 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57074 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57075 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57076 # "foo.exe" is OK but "foo" is an error. 57077 # 57078 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57079 # It is also a way to make sure we got the proper file name for the real test later on. 57080 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57081 if test "x$test_shortpath" = x; then 57082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57083 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57084 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57085 fi 57086 57087 # Call helper function which possibly converts this using DOS-style short mode. 57088 # If so, the updated path is stored in $new_path. 57089 57090 input_path="$new_path" 57091 # Check if we need to convert this using DOS-style short mode. If the path 57092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57093 # take no chances and rewrite it. 57094 # Note: m4 eats our [], so we need to use [ and ] instead. 57095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57096 if test "x$has_forbidden_chars" != x; then 57097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57098 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57099 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57100 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57101 # Going to short mode and back again did indeed matter. Since short mode is 57102 # case insensitive, let's make it lowercase to improve readability. 57103 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57104 # Now convert it back to Unix-style (cygpath) 57105 input_path=`$CYGPATH -u "$shortmode_path"` 57106 new_path="$input_path" 57107 fi 57108 fi 57109 57110 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57111 if test "x$test_cygdrive_prefix" = x; then 57112 # As a simple fix, exclude /usr/bin since it's not a real path. 57113 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57114 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57115 # a path prefixed by /cygdrive for fixpath to work. 57116 new_path="$CYGWIN_ROOT_PATH$input_path" 57117 fi 57118 fi 57119 57120 57121 if test "x$path" != "x$new_path"; then 57122 MSVC_DLL="$new_path" 57123 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57124 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57125 fi 57126 57127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57128 57129 path="$MSVC_DLL" 57130 has_colon=`$ECHO $path | $GREP ^.:` 57131 new_path="$path" 57132 if test "x$has_colon" = x; then 57133 # Not in mixed or Windows style, start by that. 57134 new_path=`cmd //c echo $path` 57135 fi 57136 57137 57138 input_path="$new_path" 57139 # Check if we need to convert this using DOS-style short mode. If the path 57140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57141 # take no chances and rewrite it. 57142 # Note: m4 eats our [], so we need to use [ and ] instead. 57143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57144 if test "x$has_forbidden_chars" != x; then 57145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57146 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57147 fi 57148 57149 57150 windows_path="$new_path" 57151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57152 unix_path=`$CYGPATH -u "$windows_path"` 57153 new_path="$unix_path" 57154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57156 new_path="$unix_path" 57157 fi 57158 57159 if test "x$path" != "x$new_path"; then 57160 MSVC_DLL="$new_path" 57161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57162 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57163 fi 57164 57165 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57166 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57167 57168 else 57169 # We're on a unix platform. Hooray! :) 57170 path="$MSVC_DLL" 57171 has_space=`$ECHO "$path" | $GREP " "` 57172 if test "x$has_space" != x; then 57173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57174 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57175 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57176 fi 57177 57178 # Use eval to expand a potential ~ 57179 eval path="$path" 57180 if test ! -f "$path" && test ! -d "$path"; then 57181 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57182 fi 57183 57184 if test -d "$path"; then 57185 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57186 else 57187 dir="`$DIRNAME "$path"`" 57188 base="`$BASENAME "$path"`" 57189 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57190 fi 57191 fi 57192 fi 57193 57194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57195 $as_echo_n "checking for $DLL_NAME... " >&6; } 57196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57197 $as_echo "$MSVC_DLL" >&6; } 57198 else 57199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57200 $as_echo "incorrect, ignoring" >&6; } 57201 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57202 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57203 fi 57204 fi 57205 57206 fi 57207 fi 57208 57209 if test "x$MSVC_DLL" = x; then 57210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57211 $as_echo_n "checking for $DLL_NAME... " >&6; } 57212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57213 $as_echo "no" >&6; } 57214 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 57215 fi 57216 57217 MSVCP_DLL="$MSVC_DLL" 57218 fi 57219 57220 fi 57221 57222 fi 57223 57224 57225 if test "x$NEEDS_LIB_X11" = xfalse; then 57226 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 57227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 57228 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 57229 fi 57230 X_CFLAGS= 57231 X_LIBS= 57232 else 57233 57234 if test "x${with_x}" = xno; then 57235 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 57236 fi 57237 57238 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 57239 # The user has specified a X11 base directory. Use it for includes and 57240 # libraries, unless explicitly overridden. 57241 if test "x$x_includes" = xNONE; then 57242 x_includes="${with_x}/include" 57243 fi 57244 if test "x$x_libraries" = xNONE; then 57245 x_libraries="${with_x}/lib" 57246 fi 57247 else 57248 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 57249 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 57250 # --x-libraries for the sysroot, if that seems to be correct. 57251 if test "x$SYSROOT" != "x"; then 57252 if test "x$x_includes" = xNONE; then 57253 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 57254 x_includes="$SYSROOT/usr/X11R6/include" 57255 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 57256 x_includes="$SYSROOT/usr/include" 57257 fi 57258 fi 57259 if test "x$x_libraries" = xNONE; then 57260 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 57261 x_libraries="$SYSROOT/usr/X11R6/lib" 57262 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57263 x_libraries="$SYSROOT/usr/lib64" 57264 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 57265 x_libraries="$SYSROOT/usr/lib" 57266 fi 57267 fi 57268 fi 57269 fi 57270 57271 # Now let autoconf do it's magic 57272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 57273 $as_echo_n "checking for X... " >&6; } 57274 57275 57276 # Check whether --with-x was given. 57277 if test "${with_x+set}" = set; then : 57278 withval=$with_x; 57279 fi 57280 57281 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 57282 if test "x$with_x" = xno; then 57283 # The user explicitly disabled X. 57284 have_x=disabled 57285 else 57286 case $x_includes,$x_libraries in #( 57287 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 57288 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 57289 $as_echo_n "(cached) " >&6 57290 else 57291 # One or both of the vars are not set, and there is no cached value. 57292 ac_x_includes=no ac_x_libraries=no 57293 rm -f -r conftest.dir 57294 if mkdir conftest.dir; then 57295 cd conftest.dir 57296 cat >Imakefile <<'_ACEOF' 57297 incroot: 57298 @echo incroot='${INCROOT}' 57299 usrlibdir: 57300 @echo usrlibdir='${USRLIBDIR}' 57301 libdir: 57302 @echo libdir='${LIBDIR}' 57303 _ACEOF 57304 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 57305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 57306 for ac_var in incroot usrlibdir libdir; do 57307 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 57308 done 57309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 57310 for ac_extension in a so sl dylib la dll; do 57311 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 57312 test -f "$ac_im_libdir/libX11.$ac_extension"; then 57313 ac_im_usrlibdir=$ac_im_libdir; break 57314 fi 57315 done 57316 # Screen out bogus values from the imake configuration. They are 57317 # bogus both because they are the default anyway, and because 57318 # using them would break gcc on systems where it needs fixed includes. 57319 case $ac_im_incroot in 57320 /usr/include) ac_x_includes= ;; 57321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 57322 esac 57323 case $ac_im_usrlibdir in 57324 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 57325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 57326 esac 57327 fi 57328 cd .. 57329 rm -f -r conftest.dir 57330 fi 57331 57332 # Standard set of common directories for X headers. 57333 # Check X11 before X11Rn because it is often a symlink to the current release. 57334 ac_x_header_dirs=' 57335 /usr/X11/include 57336 /usr/X11R7/include 57337 /usr/X11R6/include 57338 /usr/X11R5/include 57339 /usr/X11R4/include 57340 57341 /usr/include/X11 57342 /usr/include/X11R7 57343 /usr/include/X11R6 57344 /usr/include/X11R5 57345 /usr/include/X11R4 57346 57347 /usr/local/X11/include 57348 /usr/local/X11R7/include 57349 /usr/local/X11R6/include 57350 /usr/local/X11R5/include 57351 /usr/local/X11R4/include 57352 57353 /usr/local/include/X11 57354 /usr/local/include/X11R7 57355 /usr/local/include/X11R6 57356 /usr/local/include/X11R5 57357 /usr/local/include/X11R4 57358 57359 /usr/X386/include 57360 /usr/x386/include 57361 /usr/XFree86/include/X11 57362 57363 /usr/include 57364 /usr/local/include 57365 /usr/unsupported/include 57366 /usr/athena/include 57367 /usr/local/x11r5/include 57368 /usr/lpp/Xamples/include 57369 57370 /usr/openwin/include 57371 /usr/openwin/share/include' 57372 57373 if test "$ac_x_includes" = no; then 57374 # Guess where to find include files, by looking for Xlib.h. 57375 # First, try using that file with no special directory specified. 57376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57377 /* end confdefs.h. */ 57378 #include <X11/Xlib.h> 57379 _ACEOF 57380 if ac_fn_cxx_try_cpp "$LINENO"; then : 57381 # We can compile using X headers with no special include directory. 57382 ac_x_includes= 57383 else 57384 for ac_dir in $ac_x_header_dirs; do 57385 if test -r "$ac_dir/X11/Xlib.h"; then 57386 ac_x_includes=$ac_dir 57387 break 57388 fi 57389 done 57390 fi 57391 rm -f conftest.err conftest.i conftest.$ac_ext 57392 fi # $ac_x_includes = no 57393 57394 if test "$ac_x_libraries" = no; then 57395 # Check for the libraries. 57396 # See if we find them without any special options. 57397 # Don't add to $LIBS permanently. 57398 ac_save_LIBS=$LIBS 57399 LIBS="-lX11 $LIBS" 57400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57401 /* end confdefs.h. */ 57402 #include <X11/Xlib.h> 57403 int 57404 main () 57405 { 57406 XrmInitialize () 57407 ; 57408 return 0; 57409 } 57410 _ACEOF 57411 if ac_fn_cxx_try_link "$LINENO"; then : 57412 LIBS=$ac_save_LIBS 57413 # We can link X programs with no special library path. 57414 ac_x_libraries= 57415 else 57416 LIBS=$ac_save_LIBS 57417 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 57418 do 57419 # Don't even attempt the hair of trying to link an X program! 57420 for ac_extension in a so sl dylib la dll; do 57421 if test -r "$ac_dir/libX11.$ac_extension"; then 57422 ac_x_libraries=$ac_dir 57423 break 2 57424 fi 57425 done 57426 done 57427 fi 57428 rm -f core conftest.err conftest.$ac_objext \ 57429 conftest$ac_exeext conftest.$ac_ext 57430 fi # $ac_x_libraries = no 57431 57432 case $ac_x_includes,$ac_x_libraries in #( 57433 no,* | *,no | *\'*) 57434 # Didn't find X, or a directory has "'" in its name. 57435 ac_cv_have_x="have_x=no";; #( 57436 *) 57437 # Record where we found X for the cache. 57438 ac_cv_have_x="have_x=yes\ 57439 ac_x_includes='$ac_x_includes'\ 57440 ac_x_libraries='$ac_x_libraries'" 57441 esac 57442 fi 57443 ;; #( 57444 *) have_x=yes;; 57445 esac 57446 eval "$ac_cv_have_x" 57447 fi # $with_x != no 57448 57449 if test "$have_x" != yes; then 57450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 57451 $as_echo "$have_x" >&6; } 57452 no_x=yes 57453 else 57454 # If each of the values was on the command line, it overrides each guess. 57455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 57456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 57457 # Update the cache value to reflect the command line values. 57458 ac_cv_have_x="have_x=yes\ 57459 ac_x_includes='$x_includes'\ 57460 ac_x_libraries='$x_libraries'" 57461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 57462 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 57463 fi 57464 57465 if test "$no_x" = yes; then 57466 # Not all programs may use this symbol, but it does not hurt to define it. 57467 57468 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 57469 57470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 57471 else 57472 if test -n "$x_includes"; then 57473 X_CFLAGS="$X_CFLAGS -I$x_includes" 57474 fi 57475 57476 # It would also be nice to do this for all -L options, not just this one. 57477 if test -n "$x_libraries"; then 57478 X_LIBS="$X_LIBS -L$x_libraries" 57479 # For Solaris; some versions of Sun CC require a space after -R and 57480 # others require no space. Words are not sufficient . . . . 57481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 57482 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 57483 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 57484 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 57485 ac_cxx_werror_flag=yes 57486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57487 /* end confdefs.h. */ 57488 57489 int 57490 main () 57491 { 57492 57493 ; 57494 return 0; 57495 } 57496 _ACEOF 57497 if ac_fn_cxx_try_link "$LINENO"; then : 57498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57499 $as_echo "no" >&6; } 57500 X_LIBS="$X_LIBS -R$x_libraries" 57501 else 57502 LIBS="$ac_xsave_LIBS -R $x_libraries" 57503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57504 /* end confdefs.h. */ 57505 57506 int 57507 main () 57508 { 57509 57510 ; 57511 return 0; 57512 } 57513 _ACEOF 57514 if ac_fn_cxx_try_link "$LINENO"; then : 57515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57516 $as_echo "yes" >&6; } 57517 X_LIBS="$X_LIBS -R $x_libraries" 57518 else 57519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 57520 $as_echo "neither works" >&6; } 57521 fi 57522 rm -f core conftest.err conftest.$ac_objext \ 57523 conftest$ac_exeext conftest.$ac_ext 57524 fi 57525 rm -f core conftest.err conftest.$ac_objext \ 57526 conftest$ac_exeext conftest.$ac_ext 57527 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 57528 LIBS=$ac_xsave_LIBS 57529 fi 57530 57531 # Check for system-dependent libraries X programs must link with. 57532 # Do this before checking for the system-independent R6 libraries 57533 # (-lICE), since we may need -lsocket or whatever for X linking. 57534 57535 if test "$ISC" = yes; then 57536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 57537 else 57538 # Martyn Johnson says this is needed for Ultrix, if the X 57539 # libraries were built with DECnet support. And Karl Berry says 57540 # the Alpha needs dnet_stub (dnet does not exist). 57541 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 57542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57543 /* end confdefs.h. */ 57544 57545 /* Override any GCC internal prototype to avoid an error. 57546 Use char because int might match the return type of a GCC 57547 builtin and then its argument prototype would still apply. */ 57548 #ifdef __cplusplus 57549 extern "C" 57550 #endif 57551 char XOpenDisplay (); 57552 int 57553 main () 57554 { 57555 return XOpenDisplay (); 57556 ; 57557 return 0; 57558 } 57559 _ACEOF 57560 if ac_fn_cxx_try_link "$LINENO"; then : 57561 57562 else 57563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 57564 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 57565 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 57566 $as_echo_n "(cached) " >&6 57567 else 57568 ac_check_lib_save_LIBS=$LIBS 57569 LIBS="-ldnet $LIBS" 57570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57571 /* end confdefs.h. */ 57572 57573 /* Override any GCC internal prototype to avoid an error. 57574 Use char because int might match the return type of a GCC 57575 builtin and then its argument prototype would still apply. */ 57576 #ifdef __cplusplus 57577 extern "C" 57578 #endif 57579 char dnet_ntoa (); 57580 int 57581 main () 57582 { 57583 return dnet_ntoa (); 57584 ; 57585 return 0; 57586 } 57587 _ACEOF 57588 if ac_fn_cxx_try_link "$LINENO"; then : 57589 ac_cv_lib_dnet_dnet_ntoa=yes 57590 else 57591 ac_cv_lib_dnet_dnet_ntoa=no 57592 fi 57593 rm -f core conftest.err conftest.$ac_objext \ 57594 conftest$ac_exeext conftest.$ac_ext 57595 LIBS=$ac_check_lib_save_LIBS 57596 fi 57597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 57598 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 57599 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 57600 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 57601 fi 57602 57603 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 57604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 57605 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 57606 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 57607 $as_echo_n "(cached) " >&6 57608 else 57609 ac_check_lib_save_LIBS=$LIBS 57610 LIBS="-ldnet_stub $LIBS" 57611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57612 /* end confdefs.h. */ 57613 57614 /* Override any GCC internal prototype to avoid an error. 57615 Use char because int might match the return type of a GCC 57616 builtin and then its argument prototype would still apply. */ 57617 #ifdef __cplusplus 57618 extern "C" 57619 #endif 57620 char dnet_ntoa (); 57621 int 57622 main () 57623 { 57624 return dnet_ntoa (); 57625 ; 57626 return 0; 57627 } 57628 _ACEOF 57629 if ac_fn_cxx_try_link "$LINENO"; then : 57630 ac_cv_lib_dnet_stub_dnet_ntoa=yes 57631 else 57632 ac_cv_lib_dnet_stub_dnet_ntoa=no 57633 fi 57634 rm -f core conftest.err conftest.$ac_objext \ 57635 conftest$ac_exeext conftest.$ac_ext 57636 LIBS=$ac_check_lib_save_LIBS 57637 fi 57638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 57639 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 57640 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 57641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 57642 fi 57643 57644 fi 57645 fi 57646 rm -f core conftest.err conftest.$ac_objext \ 57647 conftest$ac_exeext conftest.$ac_ext 57648 LIBS="$ac_xsave_LIBS" 57649 57650 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 57651 # to get the SysV transport functions. 57652 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 57653 # needs -lnsl. 57654 # The nsl library prevents programs from opening the X display 57655 # on Irix 5.2, according to T.E. Dickey. 57656 # The functions gethostbyname, getservbyname, and inet_addr are 57657 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 57658 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 57659 if test "x$ac_cv_func_gethostbyname" = xyes; then : 57660 57661 fi 57662 57663 if test $ac_cv_func_gethostbyname = no; then 57664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 57665 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 57666 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 57667 $as_echo_n "(cached) " >&6 57668 else 57669 ac_check_lib_save_LIBS=$LIBS 57670 LIBS="-lnsl $LIBS" 57671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57672 /* end confdefs.h. */ 57673 57674 /* Override any GCC internal prototype to avoid an error. 57675 Use char because int might match the return type of a GCC 57676 builtin and then its argument prototype would still apply. */ 57677 #ifdef __cplusplus 57678 extern "C" 57679 #endif 57680 char gethostbyname (); 57681 int 57682 main () 57683 { 57684 return gethostbyname (); 57685 ; 57686 return 0; 57687 } 57688 _ACEOF 57689 if ac_fn_cxx_try_link "$LINENO"; then : 57690 ac_cv_lib_nsl_gethostbyname=yes 57691 else 57692 ac_cv_lib_nsl_gethostbyname=no 57693 fi 57694 rm -f core conftest.err conftest.$ac_objext \ 57695 conftest$ac_exeext conftest.$ac_ext 57696 LIBS=$ac_check_lib_save_LIBS 57697 fi 57698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 57699 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 57700 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 57701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 57702 fi 57703 57704 if test $ac_cv_lib_nsl_gethostbyname = no; then 57705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 57706 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 57707 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 57708 $as_echo_n "(cached) " >&6 57709 else 57710 ac_check_lib_save_LIBS=$LIBS 57711 LIBS="-lbsd $LIBS" 57712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57713 /* end confdefs.h. */ 57714 57715 /* Override any GCC internal prototype to avoid an error. 57716 Use char because int might match the return type of a GCC 57717 builtin and then its argument prototype would still apply. */ 57718 #ifdef __cplusplus 57719 extern "C" 57720 #endif 57721 char gethostbyname (); 57722 int 57723 main () 57724 { 57725 return gethostbyname (); 57726 ; 57727 return 0; 57728 } 57729 _ACEOF 57730 if ac_fn_cxx_try_link "$LINENO"; then : 57731 ac_cv_lib_bsd_gethostbyname=yes 57732 else 57733 ac_cv_lib_bsd_gethostbyname=no 57734 fi 57735 rm -f core conftest.err conftest.$ac_objext \ 57736 conftest$ac_exeext conftest.$ac_ext 57737 LIBS=$ac_check_lib_save_LIBS 57738 fi 57739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 57740 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 57741 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 57742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 57743 fi 57744 57745 fi 57746 fi 57747 57748 # lieder@skyler.mavd.honeywell.com says without -lsocket, 57749 # socket/setsockopt and other routines are undefined under SCO ODT 57750 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 57751 # on later versions), says Simon Leinen: it contains gethostby* 57752 # variants that don't use the name server (or something). -lsocket 57753 # must be given before -lnsl if both are needed. We assume that 57754 # if connect needs -lnsl, so does gethostbyname. 57755 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 57756 if test "x$ac_cv_func_connect" = xyes; then : 57757 57758 fi 57759 57760 if test $ac_cv_func_connect = no; then 57761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 57762 $as_echo_n "checking for connect in -lsocket... " >&6; } 57763 if ${ac_cv_lib_socket_connect+:} false; then : 57764 $as_echo_n "(cached) " >&6 57765 else 57766 ac_check_lib_save_LIBS=$LIBS 57767 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 57768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57769 /* end confdefs.h. */ 57770 57771 /* Override any GCC internal prototype to avoid an error. 57772 Use char because int might match the return type of a GCC 57773 builtin and then its argument prototype would still apply. */ 57774 #ifdef __cplusplus 57775 extern "C" 57776 #endif 57777 char connect (); 57778 int 57779 main () 57780 { 57781 return connect (); 57782 ; 57783 return 0; 57784 } 57785 _ACEOF 57786 if ac_fn_cxx_try_link "$LINENO"; then : 57787 ac_cv_lib_socket_connect=yes 57788 else 57789 ac_cv_lib_socket_connect=no 57790 fi 57791 rm -f core conftest.err conftest.$ac_objext \ 57792 conftest$ac_exeext conftest.$ac_ext 57793 LIBS=$ac_check_lib_save_LIBS 57794 fi 57795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 57796 $as_echo "$ac_cv_lib_socket_connect" >&6; } 57797 if test "x$ac_cv_lib_socket_connect" = xyes; then : 57798 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 57799 fi 57800 57801 fi 57802 57803 # Guillermo Gomez says -lposix is necessary on A/UX. 57804 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 57805 if test "x$ac_cv_func_remove" = xyes; then : 57806 57807 fi 57808 57809 if test $ac_cv_func_remove = no; then 57810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 57811 $as_echo_n "checking for remove in -lposix... " >&6; } 57812 if ${ac_cv_lib_posix_remove+:} false; then : 57813 $as_echo_n "(cached) " >&6 57814 else 57815 ac_check_lib_save_LIBS=$LIBS 57816 LIBS="-lposix $LIBS" 57817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57818 /* end confdefs.h. */ 57819 57820 /* Override any GCC internal prototype to avoid an error. 57821 Use char because int might match the return type of a GCC 57822 builtin and then its argument prototype would still apply. */ 57823 #ifdef __cplusplus 57824 extern "C" 57825 #endif 57826 char remove (); 57827 int 57828 main () 57829 { 57830 return remove (); 57831 ; 57832 return 0; 57833 } 57834 _ACEOF 57835 if ac_fn_cxx_try_link "$LINENO"; then : 57836 ac_cv_lib_posix_remove=yes 57837 else 57838 ac_cv_lib_posix_remove=no 57839 fi 57840 rm -f core conftest.err conftest.$ac_objext \ 57841 conftest$ac_exeext conftest.$ac_ext 57842 LIBS=$ac_check_lib_save_LIBS 57843 fi 57844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 57845 $as_echo "$ac_cv_lib_posix_remove" >&6; } 57846 if test "x$ac_cv_lib_posix_remove" = xyes; then : 57847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 57848 fi 57849 57850 fi 57851 57852 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 57853 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 57854 if test "x$ac_cv_func_shmat" = xyes; then : 57855 57856 fi 57857 57858 if test $ac_cv_func_shmat = no; then 57859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 57860 $as_echo_n "checking for shmat in -lipc... " >&6; } 57861 if ${ac_cv_lib_ipc_shmat+:} false; then : 57862 $as_echo_n "(cached) " >&6 57863 else 57864 ac_check_lib_save_LIBS=$LIBS 57865 LIBS="-lipc $LIBS" 57866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57867 /* end confdefs.h. */ 57868 57869 /* Override any GCC internal prototype to avoid an error. 57870 Use char because int might match the return type of a GCC 57871 builtin and then its argument prototype would still apply. */ 57872 #ifdef __cplusplus 57873 extern "C" 57874 #endif 57875 char shmat (); 57876 int 57877 main () 57878 { 57879 return shmat (); 57880 ; 57881 return 0; 57882 } 57883 _ACEOF 57884 if ac_fn_cxx_try_link "$LINENO"; then : 57885 ac_cv_lib_ipc_shmat=yes 57886 else 57887 ac_cv_lib_ipc_shmat=no 57888 fi 57889 rm -f core conftest.err conftest.$ac_objext \ 57890 conftest$ac_exeext conftest.$ac_ext 57891 LIBS=$ac_check_lib_save_LIBS 57892 fi 57893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 57894 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 57895 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 57896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 57897 fi 57898 57899 fi 57900 fi 57901 57902 # Check for libraries that X11R6 Xt/Xaw programs need. 57903 ac_save_LDFLAGS=$LDFLAGS 57904 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 57905 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 57906 # check for ICE first), but we must link in the order -lSM -lICE or 57907 # we get undefined symbols. So assume we have SM if we have ICE. 57908 # These have to be linked with before -lX11, unlike the other 57909 # libraries we check for below, so use a different variable. 57910 # John Interrante, Karl Berry 57911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 57912 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 57913 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 57914 $as_echo_n "(cached) " >&6 57915 else 57916 ac_check_lib_save_LIBS=$LIBS 57917 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 57918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57919 /* end confdefs.h. */ 57920 57921 /* Override any GCC internal prototype to avoid an error. 57922 Use char because int might match the return type of a GCC 57923 builtin and then its argument prototype would still apply. */ 57924 #ifdef __cplusplus 57925 extern "C" 57926 #endif 57927 char IceConnectionNumber (); 57928 int 57929 main () 57930 { 57931 return IceConnectionNumber (); 57932 ; 57933 return 0; 57934 } 57935 _ACEOF 57936 if ac_fn_cxx_try_link "$LINENO"; then : 57937 ac_cv_lib_ICE_IceConnectionNumber=yes 57938 else 57939 ac_cv_lib_ICE_IceConnectionNumber=no 57940 fi 57941 rm -f core conftest.err conftest.$ac_objext \ 57942 conftest$ac_exeext conftest.$ac_ext 57943 LIBS=$ac_check_lib_save_LIBS 57944 fi 57945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 57946 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 57947 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 57948 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 57949 fi 57950 57951 LDFLAGS=$ac_save_LDFLAGS 57952 57953 fi 57954 57955 57956 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 57957 # this doesn't make sense so we remove it. 57958 if test "x$COMPILE_TYPE" = xcross; then 57959 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 57960 fi 57961 57962 if test "x$no_x" = xyes; then 57963 57964 # Print a helpful message on how to acquire the necessary build dependency. 57965 # x11 is the help tag: freetype, cups, alsa etc 57966 MISSING_DEPENDENCY=x11 57967 57968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57969 cygwin_help $MISSING_DEPENDENCY 57970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57971 msys_help $MISSING_DEPENDENCY 57972 else 57973 PKGHANDLER_COMMAND= 57974 57975 case $PKGHANDLER in 57976 apt-get) 57977 apt_help $MISSING_DEPENDENCY ;; 57978 yum) 57979 yum_help $MISSING_DEPENDENCY ;; 57980 brew) 57981 brew_help $MISSING_DEPENDENCY ;; 57982 port) 57983 port_help $MISSING_DEPENDENCY ;; 57984 pkgutil) 57985 pkgutil_help $MISSING_DEPENDENCY ;; 57986 pkgadd) 57987 pkgadd_help $MISSING_DEPENDENCY ;; 57988 esac 57989 57990 if test "x$PKGHANDLER_COMMAND" != x; then 57991 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57992 fi 57993 fi 57994 57995 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 57996 fi 57997 57998 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 57999 OPENWIN_HOME="/usr/openwin" 58000 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 58001 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 58002 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 58003 fi 58004 58005 ac_ext=c 58006 ac_cpp='$CPP $CPPFLAGS' 58007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58009 ac_compiler_gnu=$ac_cv_c_compiler_gnu 58010 58011 OLD_CFLAGS="$CFLAGS" 58012 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 58013 58014 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 58015 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 58016 do : 58017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58018 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 58019 # include <X11/Xlib.h> 58020 # include <X11/Xutil.h> 58021 58022 58023 " 58024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58025 cat >>confdefs.h <<_ACEOF 58026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58027 _ACEOF 58028 X11_HEADERS_OK=yes 58029 else 58030 X11_HEADERS_OK=no; break 58031 fi 58032 58033 done 58034 58035 58036 if test "x$X11_HEADERS_OK" = xno; then 58037 58038 # Print a helpful message on how to acquire the necessary build dependency. 58039 # x11 is the help tag: freetype, cups, alsa etc 58040 MISSING_DEPENDENCY=x11 58041 58042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58043 cygwin_help $MISSING_DEPENDENCY 58044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58045 msys_help $MISSING_DEPENDENCY 58046 else 58047 PKGHANDLER_COMMAND= 58048 58049 case $PKGHANDLER in 58050 apt-get) 58051 apt_help $MISSING_DEPENDENCY ;; 58052 yum) 58053 yum_help $MISSING_DEPENDENCY ;; 58054 brew) 58055 brew_help $MISSING_DEPENDENCY ;; 58056 port) 58057 port_help $MISSING_DEPENDENCY ;; 58058 pkgutil) 58059 pkgutil_help $MISSING_DEPENDENCY ;; 58060 pkgadd) 58061 pkgadd_help $MISSING_DEPENDENCY ;; 58062 esac 58063 58064 if test "x$PKGHANDLER_COMMAND" != x; then 58065 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58066 fi 58067 fi 58068 58069 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 58070 fi 58071 58072 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 58073 # defined in libawt_xawt. 58074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 58075 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 58076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58077 /* end confdefs.h. */ 58078 #include <X11/extensions/Xrender.h> 58079 int 58080 main () 58081 { 58082 XLinearGradient x; 58083 ; 58084 return 0; 58085 } 58086 _ACEOF 58087 if ac_fn_c_try_compile "$LINENO"; then : 58088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58089 $as_echo "yes" >&6; } 58090 else 58091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58092 $as_echo "no" >&6; } 58093 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 58094 fi 58095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58096 58097 CFLAGS="$OLD_CFLAGS" 58098 ac_ext=cpp 58099 ac_cpp='$CXXCPP $CPPFLAGS' 58100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 58103 58104 fi # NEEDS_LIB_X11 58105 58106 58107 58108 58109 58110 58111 # Check whether --with-cups was given. 58112 if test "${with_cups+set}" = set; then : 58113 withval=$with_cups; 58114 fi 58115 58116 58117 # Check whether --with-cups-include was given. 58118 if test "${with_cups_include+set}" = set; then : 58119 withval=$with_cups_include; 58120 fi 58121 58122 58123 if test "x$NEEDS_LIB_CUPS" = xfalse; then 58124 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 58125 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 58126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 58127 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 58128 fi 58129 CUPS_CFLAGS= 58130 else 58131 CUPS_FOUND=no 58132 58133 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 58134 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 58135 fi 58136 58137 if test "x${with_cups}" != x; then 58138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58139 $as_echo_n "checking for cups headers... " >&6; } 58140 if test -s "${with_cups}/include/cups/cups.h"; then 58141 CUPS_CFLAGS="-I${with_cups}/include" 58142 CUPS_FOUND=yes 58143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58144 $as_echo "$CUPS_FOUND" >&6; } 58145 else 58146 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 58147 fi 58148 fi 58149 if test "x${with_cups_include}" != x; then 58150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58151 $as_echo_n "checking for cups headers... " >&6; } 58152 if test -s "${with_cups_include}/cups/cups.h"; then 58153 CUPS_CFLAGS="-I${with_cups_include}" 58154 CUPS_FOUND=yes 58155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58156 $as_echo "$CUPS_FOUND" >&6; } 58157 else 58158 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 58159 fi 58160 fi 58161 if test "x$CUPS_FOUND" = xno; then 58162 # Are the cups headers installed in the default /usr/include location? 58163 for ac_header in cups/cups.h cups/ppd.h 58164 do : 58165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58166 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 58167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58168 cat >>confdefs.h <<_ACEOF 58169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58170 _ACEOF 58171 58172 CUPS_FOUND=yes 58173 CUPS_CFLAGS= 58174 DEFAULT_CUPS=yes 58175 58176 fi 58177 58178 done 58179 58180 fi 58181 if test "x$CUPS_FOUND" = xno; then 58182 58183 # Print a helpful message on how to acquire the necessary build dependency. 58184 # cups is the help tag: freetype, cups, alsa etc 58185 MISSING_DEPENDENCY=cups 58186 58187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58188 cygwin_help $MISSING_DEPENDENCY 58189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58190 msys_help $MISSING_DEPENDENCY 58191 else 58192 PKGHANDLER_COMMAND= 58193 58194 case $PKGHANDLER in 58195 apt-get) 58196 apt_help $MISSING_DEPENDENCY ;; 58197 yum) 58198 yum_help $MISSING_DEPENDENCY ;; 58199 brew) 58200 brew_help $MISSING_DEPENDENCY ;; 58201 port) 58202 port_help $MISSING_DEPENDENCY ;; 58203 pkgutil) 58204 pkgutil_help $MISSING_DEPENDENCY ;; 58205 pkgadd) 58206 pkgadd_help $MISSING_DEPENDENCY ;; 58207 esac 58208 58209 if test "x$PKGHANDLER_COMMAND" != x; then 58210 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58211 fi 58212 fi 58213 58214 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 58215 fi 58216 fi 58217 58218 58219 58220 58221 58222 # Check whether --with-freetype was given. 58223 if test "${with_freetype+set}" = set; then : 58224 withval=$with_freetype; 58225 fi 58226 58227 58228 # Check whether --with-freetype-include was given. 58229 if test "${with_freetype_include+set}" = set; then : 58230 withval=$with_freetype_include; 58231 fi 58232 58233 58234 # Check whether --with-freetype-lib was given. 58235 if test "${with_freetype_lib+set}" = set; then : 58236 withval=$with_freetype_lib; 58237 fi 58238 58239 58240 # Check whether --with-freetype-src was given. 58241 if test "${with_freetype_src+set}" = set; then : 58242 withval=$with_freetype_src; 58243 fi 58244 58245 # Check whether --enable-freetype-bundling was given. 58246 if test "${enable_freetype_bundling+set}" = set; then : 58247 enableval=$enable_freetype_bundling; 58248 fi 58249 58250 58251 # Check whether --with-freetype-license was given. 58252 if test "${with_freetype_license+set}" = set; then : 58253 withval=$with_freetype_license; 58254 fi 58255 58256 58257 # Need to specify explicitly since it needs to be overridden on some versions of macosx 58258 FREETYPE_BASE_NAME=freetype 58259 FREETYPE_CFLAGS= 58260 FREETYPE_LIBS= 58261 FREETYPE_BUNDLE_LIB_PATH= 58262 58263 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 58264 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 58265 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 58266 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 58267 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 58268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 58269 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 58270 fi 58271 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 58272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 58273 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 58274 fi 58275 else 58276 # freetype is needed to build; go get it! 58277 58278 BUNDLE_FREETYPE="$enable_freetype_bundling" 58279 58280 if test "x$with_freetype_src" != x; then 58281 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58282 # Try to build freetype if --with-freetype-src was given on Windows 58283 58284 FREETYPE_SRC_PATH="$with_freetype_src" 58285 BUILD_FREETYPE=yes 58286 58287 # Check if the freetype sources are acessible.. 58288 if ! test -d $FREETYPE_SRC_PATH; then 58289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 58290 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 58291 BUILD_FREETYPE=no 58292 fi 58293 # ..and contain a vc2010 project file 58294 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 58295 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 58296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 58297 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 58298 BUILD_FREETYPE=no 58299 fi 58300 # Now check if configure found a version of 'msbuild.exe' 58301 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 58302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 58303 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 58304 BUILD_FREETYPE=no 58305 fi 58306 58307 # Ready to go.. 58308 if test "x$BUILD_FREETYPE" = xyes; then 58309 # msbuild requires trailing slashes for output directories 58310 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 58311 freetype_lib_path_unix="$freetype_lib_path" 58312 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 58313 58314 unix_path="$vcxproj_path" 58315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58316 windows_path=`$CYGPATH -m "$unix_path"` 58317 vcxproj_path="$windows_path" 58318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58319 windows_path=`cmd //c echo $unix_path` 58320 vcxproj_path="$windows_path" 58321 fi 58322 58323 58324 unix_path="$freetype_lib_path" 58325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58326 windows_path=`$CYGPATH -m "$unix_path"` 58327 freetype_lib_path="$windows_path" 58328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58329 windows_path=`cmd //c echo $unix_path` 58330 freetype_lib_path="$windows_path" 58331 fi 58332 58333 58334 unix_path="$freetype_obj_path" 58335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58336 windows_path=`$CYGPATH -m "$unix_path"` 58337 freetype_obj_path="$windows_path" 58338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58339 windows_path=`cmd //c echo $unix_path` 58340 freetype_obj_path="$windows_path" 58341 fi 58342 58343 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58344 freetype_platform=x64 58345 else 58346 freetype_platform=win32 58347 fi 58348 58349 # The original freetype project file is for VS 2010 (i.e. 'v100'), 58350 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 58351 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 58352 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 58353 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 58354 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 58355 58356 # First we try to build the freetype.dll 58357 $ECHO -e "@echo off\n"\ 58358 "$MSBUILD $vcxproj_path "\ 58359 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58360 "/p:Configuration=\"Release Multithreaded\" "\ 58361 "/p:Platform=$freetype_platform "\ 58362 "/p:ConfigurationType=DynamicLibrary "\ 58363 "/p:TargetName=freetype "\ 58364 "/p:OutDir=\"$freetype_lib_path\" "\ 58365 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 58366 cmd /c freetype.bat 58367 58368 if test -s "$freetype_lib_path_unix/freetype.dll"; then 58369 # If that succeeds we also build freetype.lib 58370 $ECHO -e "@echo off\n"\ 58371 "$MSBUILD $vcxproj_path "\ 58372 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58373 "/p:Configuration=\"Release Multithreaded\" "\ 58374 "/p:Platform=$freetype_platform "\ 58375 "/p:ConfigurationType=StaticLibrary "\ 58376 "/p:TargetName=freetype "\ 58377 "/p:OutDir=\"$freetype_lib_path\" "\ 58378 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 58379 cmd /c freetype.bat 58380 58381 if test -s "$freetype_lib_path_unix/freetype.lib"; then 58382 # Once we build both, lib and dll, set freetype lib and include path appropriately 58383 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 58384 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 58385 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 58386 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 58387 else 58388 BUILD_FREETYPE=no 58389 fi 58390 else 58391 BUILD_FREETYPE=no 58392 fi 58393 fi 58394 58395 if test "x$BUILD_FREETYPE" = xyes; then 58396 # Okay, we built it. Check that it works. 58397 58398 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58399 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58400 METHOD="--with-freetype-src" 58401 58402 # Let's start with an optimistic view of the world :-) 58403 FOUND_FREETYPE=yes 58404 58405 # First look for the canonical freetype main include file ft2build.h. 58406 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58407 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58408 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58409 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58410 # Fail. 58411 FOUND_FREETYPE=no 58412 fi 58413 fi 58414 58415 if test "x$FOUND_FREETYPE" = xyes; then 58416 # Include file found, let's continue the sanity check. 58417 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58418 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58419 58420 # Reset to default value 58421 FREETYPE_BASE_NAME=freetype 58422 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58423 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58424 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58425 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58426 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58427 # for the .6 version explicitly. 58428 FREETYPE_BASE_NAME=freetype.6 58429 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58430 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58431 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58432 else 58433 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58434 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58435 FOUND_FREETYPE=no 58436 fi 58437 else 58438 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58439 # On Windows, we will need both .lib and .dll file. 58440 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58441 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58442 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58443 FOUND_FREETYPE=no 58444 fi 58445 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58446 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58447 # Found lib in isa dir, use that instead. 58448 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58450 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58451 fi 58452 fi 58453 fi 58454 58455 if test "x$FOUND_FREETYPE" = xyes; then 58456 58457 # Only process if variable expands to non-empty 58458 58459 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58461 58462 # Input might be given as Windows format, start by converting to 58463 # unix format. 58464 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58465 new_path=`$CYGPATH -u "$path"` 58466 58467 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58468 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58469 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58470 # "foo.exe" is OK but "foo" is an error. 58471 # 58472 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58473 # It is also a way to make sure we got the proper file name for the real test later on. 58474 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58475 if test "x$test_shortpath" = x; then 58476 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58477 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58478 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58479 fi 58480 58481 # Call helper function which possibly converts this using DOS-style short mode. 58482 # If so, the updated path is stored in $new_path. 58483 58484 input_path="$new_path" 58485 # Check if we need to convert this using DOS-style short mode. If the path 58486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58487 # take no chances and rewrite it. 58488 # Note: m4 eats our [], so we need to use [ and ] instead. 58489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58490 if test "x$has_forbidden_chars" != x; then 58491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58492 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58493 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58494 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58495 # Going to short mode and back again did indeed matter. Since short mode is 58496 # case insensitive, let's make it lowercase to improve readability. 58497 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58498 # Now convert it back to Unix-style (cygpath) 58499 input_path=`$CYGPATH -u "$shortmode_path"` 58500 new_path="$input_path" 58501 fi 58502 fi 58503 58504 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58505 if test "x$test_cygdrive_prefix" = x; then 58506 # As a simple fix, exclude /usr/bin since it's not a real path. 58507 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58508 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58509 # a path prefixed by /cygdrive for fixpath to work. 58510 new_path="$CYGWIN_ROOT_PATH$input_path" 58511 fi 58512 fi 58513 58514 58515 if test "x$path" != "x$new_path"; then 58516 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58517 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58518 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58519 fi 58520 58521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58522 58523 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58524 has_colon=`$ECHO $path | $GREP ^.:` 58525 new_path="$path" 58526 if test "x$has_colon" = x; then 58527 # Not in mixed or Windows style, start by that. 58528 new_path=`cmd //c echo $path` 58529 fi 58530 58531 58532 input_path="$new_path" 58533 # Check if we need to convert this using DOS-style short mode. If the path 58534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58535 # take no chances and rewrite it. 58536 # Note: m4 eats our [], so we need to use [ and ] instead. 58537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58538 if test "x$has_forbidden_chars" != x; then 58539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58540 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58541 fi 58542 58543 58544 windows_path="$new_path" 58545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58546 unix_path=`$CYGPATH -u "$windows_path"` 58547 new_path="$unix_path" 58548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58550 new_path="$unix_path" 58551 fi 58552 58553 if test "x$path" != "x$new_path"; then 58554 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58555 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58556 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58557 fi 58558 58559 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58560 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58561 58562 else 58563 # We're on a unix platform. Hooray! :) 58564 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58565 has_space=`$ECHO "$path" | $GREP " "` 58566 if test "x$has_space" != x; then 58567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58568 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58569 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58570 fi 58571 58572 # Use eval to expand a potential ~ 58573 eval path="$path" 58574 if test ! -f "$path" && test ! -d "$path"; then 58575 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58576 fi 58577 58578 if test -d "$path"; then 58579 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58580 else 58581 dir="`$DIRNAME "$path"`" 58582 base="`$BASENAME "$path"`" 58583 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58584 fi 58585 fi 58586 fi 58587 58588 58589 # Only process if variable expands to non-empty 58590 58591 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58593 58594 # Input might be given as Windows format, start by converting to 58595 # unix format. 58596 path="$POTENTIAL_FREETYPE_LIB_PATH" 58597 new_path=`$CYGPATH -u "$path"` 58598 58599 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58600 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58601 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58602 # "foo.exe" is OK but "foo" is an error. 58603 # 58604 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58605 # It is also a way to make sure we got the proper file name for the real test later on. 58606 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58607 if test "x$test_shortpath" = x; then 58608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58609 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58610 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58611 fi 58612 58613 # Call helper function which possibly converts this using DOS-style short mode. 58614 # If so, the updated path is stored in $new_path. 58615 58616 input_path="$new_path" 58617 # Check if we need to convert this using DOS-style short mode. If the path 58618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58619 # take no chances and rewrite it. 58620 # Note: m4 eats our [], so we need to use [ and ] instead. 58621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58622 if test "x$has_forbidden_chars" != x; then 58623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58624 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58625 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58626 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58627 # Going to short mode and back again did indeed matter. Since short mode is 58628 # case insensitive, let's make it lowercase to improve readability. 58629 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58630 # Now convert it back to Unix-style (cygpath) 58631 input_path=`$CYGPATH -u "$shortmode_path"` 58632 new_path="$input_path" 58633 fi 58634 fi 58635 58636 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58637 if test "x$test_cygdrive_prefix" = x; then 58638 # As a simple fix, exclude /usr/bin since it's not a real path. 58639 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58640 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58641 # a path prefixed by /cygdrive for fixpath to work. 58642 new_path="$CYGWIN_ROOT_PATH$input_path" 58643 fi 58644 fi 58645 58646 58647 if test "x$path" != "x$new_path"; then 58648 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58650 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58651 fi 58652 58653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58654 58655 path="$POTENTIAL_FREETYPE_LIB_PATH" 58656 has_colon=`$ECHO $path | $GREP ^.:` 58657 new_path="$path" 58658 if test "x$has_colon" = x; then 58659 # Not in mixed or Windows style, start by that. 58660 new_path=`cmd //c echo $path` 58661 fi 58662 58663 58664 input_path="$new_path" 58665 # Check if we need to convert this using DOS-style short mode. If the path 58666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58667 # take no chances and rewrite it. 58668 # Note: m4 eats our [], so we need to use [ and ] instead. 58669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58670 if test "x$has_forbidden_chars" != x; then 58671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58672 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58673 fi 58674 58675 58676 windows_path="$new_path" 58677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58678 unix_path=`$CYGPATH -u "$windows_path"` 58679 new_path="$unix_path" 58680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58682 new_path="$unix_path" 58683 fi 58684 58685 if test "x$path" != "x$new_path"; then 58686 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58688 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58689 fi 58690 58691 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58692 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58693 58694 else 58695 # We're on a unix platform. Hooray! :) 58696 path="$POTENTIAL_FREETYPE_LIB_PATH" 58697 has_space=`$ECHO "$path" | $GREP " "` 58698 if test "x$has_space" != x; then 58699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58700 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58701 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58702 fi 58703 58704 # Use eval to expand a potential ~ 58705 eval path="$path" 58706 if test ! -f "$path" && test ! -d "$path"; then 58707 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58708 fi 58709 58710 if test -d "$path"; then 58711 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58712 else 58713 dir="`$DIRNAME "$path"`" 58714 base="`$BASENAME "$path"`" 58715 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58716 fi 58717 fi 58718 fi 58719 58720 58721 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58723 $as_echo_n "checking for freetype includes... " >&6; } 58724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58725 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58726 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58728 $as_echo_n "checking for freetype libraries... " >&6; } 58729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58730 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58731 fi 58732 58733 if test "x$FOUND_FREETYPE" != xyes; then 58734 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 58735 fi 58736 else 58737 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 58738 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 58739 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 58740 fi 58741 else 58742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 58743 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 58744 fi 58745 fi 58746 58747 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 58748 # User has specified settings 58749 58750 if test "x$BUNDLE_FREETYPE" = x; then 58751 # If not specified, default is to bundle freetype 58752 BUNDLE_FREETYPE=yes 58753 fi 58754 58755 if test "x$with_freetype" != x; then 58756 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 58757 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 58758 fi 58759 58760 # Allow --with-freetype-lib and --with-freetype-include to override 58761 if test "x$with_freetype_include" != x; then 58762 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 58763 fi 58764 if test "x$with_freetype_lib" != x; then 58765 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 58766 fi 58767 58768 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58769 # Okay, we got it. Check that it works. 58770 58771 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58772 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58773 METHOD="--with-freetype" 58774 58775 # Let's start with an optimistic view of the world :-) 58776 FOUND_FREETYPE=yes 58777 58778 # First look for the canonical freetype main include file ft2build.h. 58779 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58780 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58781 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58782 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58783 # Fail. 58784 FOUND_FREETYPE=no 58785 fi 58786 fi 58787 58788 if test "x$FOUND_FREETYPE" = xyes; then 58789 # Include file found, let's continue the sanity check. 58790 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58791 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58792 58793 # Reset to default value 58794 FREETYPE_BASE_NAME=freetype 58795 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58796 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58797 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58798 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58799 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58800 # for the .6 version explicitly. 58801 FREETYPE_BASE_NAME=freetype.6 58802 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58803 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58804 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58805 else 58806 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58807 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58808 FOUND_FREETYPE=no 58809 fi 58810 else 58811 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58812 # On Windows, we will need both .lib and .dll file. 58813 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58814 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58815 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58816 FOUND_FREETYPE=no 58817 fi 58818 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58819 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58820 # Found lib in isa dir, use that instead. 58821 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58822 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58823 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58824 fi 58825 fi 58826 fi 58827 58828 if test "x$FOUND_FREETYPE" = xyes; then 58829 58830 # Only process if variable expands to non-empty 58831 58832 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58834 58835 # Input might be given as Windows format, start by converting to 58836 # unix format. 58837 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58838 new_path=`$CYGPATH -u "$path"` 58839 58840 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58841 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58842 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58843 # "foo.exe" is OK but "foo" is an error. 58844 # 58845 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58846 # It is also a way to make sure we got the proper file name for the real test later on. 58847 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58848 if test "x$test_shortpath" = x; then 58849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58850 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58851 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58852 fi 58853 58854 # Call helper function which possibly converts this using DOS-style short mode. 58855 # If so, the updated path is stored in $new_path. 58856 58857 input_path="$new_path" 58858 # Check if we need to convert this using DOS-style short mode. If the path 58859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58860 # take no chances and rewrite it. 58861 # Note: m4 eats our [], so we need to use [ and ] instead. 58862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58863 if test "x$has_forbidden_chars" != x; then 58864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58868 # Going to short mode and back again did indeed matter. Since short mode is 58869 # case insensitive, let's make it lowercase to improve readability. 58870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58871 # Now convert it back to Unix-style (cygpath) 58872 input_path=`$CYGPATH -u "$shortmode_path"` 58873 new_path="$input_path" 58874 fi 58875 fi 58876 58877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58878 if test "x$test_cygdrive_prefix" = x; then 58879 # As a simple fix, exclude /usr/bin since it's not a real path. 58880 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58882 # a path prefixed by /cygdrive for fixpath to work. 58883 new_path="$CYGWIN_ROOT_PATH$input_path" 58884 fi 58885 fi 58886 58887 58888 if test "x$path" != "x$new_path"; then 58889 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58891 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58892 fi 58893 58894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58895 58896 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58897 has_colon=`$ECHO $path | $GREP ^.:` 58898 new_path="$path" 58899 if test "x$has_colon" = x; then 58900 # Not in mixed or Windows style, start by that. 58901 new_path=`cmd //c echo $path` 58902 fi 58903 58904 58905 input_path="$new_path" 58906 # Check if we need to convert this using DOS-style short mode. If the path 58907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58908 # take no chances and rewrite it. 58909 # Note: m4 eats our [], so we need to use [ and ] instead. 58910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58911 if test "x$has_forbidden_chars" != x; then 58912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58913 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58914 fi 58915 58916 58917 windows_path="$new_path" 58918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58919 unix_path=`$CYGPATH -u "$windows_path"` 58920 new_path="$unix_path" 58921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58923 new_path="$unix_path" 58924 fi 58925 58926 if test "x$path" != "x$new_path"; then 58927 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58929 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58930 fi 58931 58932 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58933 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58934 58935 else 58936 # We're on a unix platform. Hooray! :) 58937 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58938 has_space=`$ECHO "$path" | $GREP " "` 58939 if test "x$has_space" != x; then 58940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58942 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58943 fi 58944 58945 # Use eval to expand a potential ~ 58946 eval path="$path" 58947 if test ! -f "$path" && test ! -d "$path"; then 58948 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58949 fi 58950 58951 if test -d "$path"; then 58952 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58953 else 58954 dir="`$DIRNAME "$path"`" 58955 base="`$BASENAME "$path"`" 58956 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58957 fi 58958 fi 58959 fi 58960 58961 58962 # Only process if variable expands to non-empty 58963 58964 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58966 58967 # Input might be given as Windows format, start by converting to 58968 # unix format. 58969 path="$POTENTIAL_FREETYPE_LIB_PATH" 58970 new_path=`$CYGPATH -u "$path"` 58971 58972 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58973 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58974 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58975 # "foo.exe" is OK but "foo" is an error. 58976 # 58977 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58978 # It is also a way to make sure we got the proper file name for the real test later on. 58979 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58980 if test "x$test_shortpath" = x; then 58981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58982 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58983 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58984 fi 58985 58986 # Call helper function which possibly converts this using DOS-style short mode. 58987 # If so, the updated path is stored in $new_path. 58988 58989 input_path="$new_path" 58990 # Check if we need to convert this using DOS-style short mode. If the path 58991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58992 # take no chances and rewrite it. 58993 # Note: m4 eats our [], so we need to use [ and ] instead. 58994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58995 if test "x$has_forbidden_chars" != x; then 58996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58997 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58998 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58999 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59000 # Going to short mode and back again did indeed matter. Since short mode is 59001 # case insensitive, let's make it lowercase to improve readability. 59002 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59003 # Now convert it back to Unix-style (cygpath) 59004 input_path=`$CYGPATH -u "$shortmode_path"` 59005 new_path="$input_path" 59006 fi 59007 fi 59008 59009 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59010 if test "x$test_cygdrive_prefix" = x; then 59011 # As a simple fix, exclude /usr/bin since it's not a real path. 59012 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59013 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59014 # a path prefixed by /cygdrive for fixpath to work. 59015 new_path="$CYGWIN_ROOT_PATH$input_path" 59016 fi 59017 fi 59018 59019 59020 if test "x$path" != "x$new_path"; then 59021 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59023 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59024 fi 59025 59026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59027 59028 path="$POTENTIAL_FREETYPE_LIB_PATH" 59029 has_colon=`$ECHO $path | $GREP ^.:` 59030 new_path="$path" 59031 if test "x$has_colon" = x; then 59032 # Not in mixed or Windows style, start by that. 59033 new_path=`cmd //c echo $path` 59034 fi 59035 59036 59037 input_path="$new_path" 59038 # Check if we need to convert this using DOS-style short mode. If the path 59039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59040 # take no chances and rewrite it. 59041 # Note: m4 eats our [], so we need to use [ and ] instead. 59042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59043 if test "x$has_forbidden_chars" != x; then 59044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59046 fi 59047 59048 59049 windows_path="$new_path" 59050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59051 unix_path=`$CYGPATH -u "$windows_path"` 59052 new_path="$unix_path" 59053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59055 new_path="$unix_path" 59056 fi 59057 59058 if test "x$path" != "x$new_path"; then 59059 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59061 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59062 fi 59063 59064 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59065 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59066 59067 else 59068 # We're on a unix platform. Hooray! :) 59069 path="$POTENTIAL_FREETYPE_LIB_PATH" 59070 has_space=`$ECHO "$path" | $GREP " "` 59071 if test "x$has_space" != x; then 59072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59073 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59074 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59075 fi 59076 59077 # Use eval to expand a potential ~ 59078 eval path="$path" 59079 if test ! -f "$path" && test ! -d "$path"; then 59080 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59081 fi 59082 59083 if test -d "$path"; then 59084 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59085 else 59086 dir="`$DIRNAME "$path"`" 59087 base="`$BASENAME "$path"`" 59088 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59089 fi 59090 fi 59091 fi 59092 59093 59094 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59096 $as_echo_n "checking for freetype includes... " >&6; } 59097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59098 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59099 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59101 $as_echo_n "checking for freetype libraries... " >&6; } 59102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59103 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59104 fi 59105 59106 if test "x$FOUND_FREETYPE" != xyes; then 59107 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 59108 fi 59109 else 59110 # User specified only one of lib or include. This is an error. 59111 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 59112 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 59113 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 59114 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59115 else 59116 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 59117 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 59118 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59119 fi 59120 fi 59121 else 59122 # User did not specify settings, but we need freetype. Try to locate it. 59123 59124 if test "x$BUNDLE_FREETYPE" = x; then 59125 # If not specified, default is to bundle freetype only on windows 59126 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59127 BUNDLE_FREETYPE=yes 59128 else 59129 BUNDLE_FREETYPE=no 59130 fi 59131 fi 59132 59133 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 59134 if test "x$SYSROOT" = x; then 59135 if test "x$FOUND_FREETYPE" != xyes; then 59136 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 59137 if test "x$PKG_CONFIG" != x; then 59138 59139 pkg_failed=no 59140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 59141 $as_echo_n "checking for FREETYPE... " >&6; } 59142 59143 if test -n "$FREETYPE_CFLAGS"; then 59144 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 59145 elif test -n "$PKG_CONFIG"; then 59146 if test -n "$PKG_CONFIG" && \ 59147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59148 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59149 ac_status=$? 59150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59151 test $ac_status = 0; }; then 59152 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 59153 else 59154 pkg_failed=yes 59155 fi 59156 else 59157 pkg_failed=untried 59158 fi 59159 if test -n "$FREETYPE_LIBS"; then 59160 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 59161 elif test -n "$PKG_CONFIG"; then 59162 if test -n "$PKG_CONFIG" && \ 59163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59164 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59165 ac_status=$? 59166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59167 test $ac_status = 0; }; then 59168 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 59169 else 59170 pkg_failed=yes 59171 fi 59172 else 59173 pkg_failed=untried 59174 fi 59175 59176 59177 59178 if test $pkg_failed = yes; then 59179 59180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 59181 _pkg_short_errors_supported=yes 59182 else 59183 _pkg_short_errors_supported=no 59184 fi 59185 if test $_pkg_short_errors_supported = yes; then 59186 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 59187 else 59188 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 59189 fi 59190 # Put the nasty error message in config.log where it belongs 59191 echo "$FREETYPE_PKG_ERRORS" >&5 59192 59193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59194 $as_echo "no" >&6; } 59195 FOUND_FREETYPE=no 59196 elif test $pkg_failed = untried; then 59197 FOUND_FREETYPE=no 59198 else 59199 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 59200 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 59201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59202 $as_echo "yes" >&6; } 59203 FOUND_FREETYPE=yes 59204 fi 59205 if test "x$FOUND_FREETYPE" = xyes; then 59206 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 59207 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 59208 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 59209 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 59210 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 59211 fi 59212 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 59213 if test "x$BUNDLE_FREETYPE" = xyes; then 59214 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 59215 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 59216 FOUND_FREETYPE=no 59217 else 59218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 59219 $as_echo_n "checking for freetype... " >&6; } 59220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 59221 $as_echo "yes (using pkg-config)" >&6; } 59222 fi 59223 fi 59224 fi 59225 fi 59226 fi 59227 59228 if test "x$FOUND_FREETYPE" != xyes; then 59229 # Check in well-known locations 59230 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59231 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 59232 59233 windows_path="$FREETYPE_BASE_DIR" 59234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59235 unix_path=`$CYGPATH -u "$windows_path"` 59236 FREETYPE_BASE_DIR="$unix_path" 59237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59239 FREETYPE_BASE_DIR="$unix_path" 59240 fi 59241 59242 59243 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59244 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59245 METHOD="well-known location" 59246 59247 # Let's start with an optimistic view of the world :-) 59248 FOUND_FREETYPE=yes 59249 59250 # First look for the canonical freetype main include file ft2build.h. 59251 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59252 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59253 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59254 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59255 # Fail. 59256 FOUND_FREETYPE=no 59257 fi 59258 fi 59259 59260 if test "x$FOUND_FREETYPE" = xyes; then 59261 # Include file found, let's continue the sanity check. 59262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59263 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59264 59265 # Reset to default value 59266 FREETYPE_BASE_NAME=freetype 59267 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59268 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59269 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59270 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59271 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59272 # for the .6 version explicitly. 59273 FREETYPE_BASE_NAME=freetype.6 59274 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59275 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59276 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59277 else 59278 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59279 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59280 FOUND_FREETYPE=no 59281 fi 59282 else 59283 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59284 # On Windows, we will need both .lib and .dll file. 59285 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59286 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59287 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59288 FOUND_FREETYPE=no 59289 fi 59290 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59291 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59292 # Found lib in isa dir, use that instead. 59293 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59295 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59296 fi 59297 fi 59298 fi 59299 59300 if test "x$FOUND_FREETYPE" = xyes; then 59301 59302 # Only process if variable expands to non-empty 59303 59304 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59306 59307 # Input might be given as Windows format, start by converting to 59308 # unix format. 59309 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59310 new_path=`$CYGPATH -u "$path"` 59311 59312 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59313 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59314 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59315 # "foo.exe" is OK but "foo" is an error. 59316 # 59317 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59318 # It is also a way to make sure we got the proper file name for the real test later on. 59319 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59320 if test "x$test_shortpath" = x; then 59321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59322 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59323 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59324 fi 59325 59326 # Call helper function which possibly converts this using DOS-style short mode. 59327 # If so, the updated path is stored in $new_path. 59328 59329 input_path="$new_path" 59330 # Check if we need to convert this using DOS-style short mode. If the path 59331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59332 # take no chances and rewrite it. 59333 # Note: m4 eats our [], so we need to use [ and ] instead. 59334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59335 if test "x$has_forbidden_chars" != x; then 59336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59337 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59338 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59339 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59340 # Going to short mode and back again did indeed matter. Since short mode is 59341 # case insensitive, let's make it lowercase to improve readability. 59342 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59343 # Now convert it back to Unix-style (cygpath) 59344 input_path=`$CYGPATH -u "$shortmode_path"` 59345 new_path="$input_path" 59346 fi 59347 fi 59348 59349 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59350 if test "x$test_cygdrive_prefix" = x; then 59351 # As a simple fix, exclude /usr/bin since it's not a real path. 59352 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59353 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59354 # a path prefixed by /cygdrive for fixpath to work. 59355 new_path="$CYGWIN_ROOT_PATH$input_path" 59356 fi 59357 fi 59358 59359 59360 if test "x$path" != "x$new_path"; then 59361 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59362 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59363 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59364 fi 59365 59366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59367 59368 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59369 has_colon=`$ECHO $path | $GREP ^.:` 59370 new_path="$path" 59371 if test "x$has_colon" = x; then 59372 # Not in mixed or Windows style, start by that. 59373 new_path=`cmd //c echo $path` 59374 fi 59375 59376 59377 input_path="$new_path" 59378 # Check if we need to convert this using DOS-style short mode. If the path 59379 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59380 # take no chances and rewrite it. 59381 # Note: m4 eats our [], so we need to use [ and ] instead. 59382 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59383 if test "x$has_forbidden_chars" != x; then 59384 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59385 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59386 fi 59387 59388 59389 windows_path="$new_path" 59390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59391 unix_path=`$CYGPATH -u "$windows_path"` 59392 new_path="$unix_path" 59393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59395 new_path="$unix_path" 59396 fi 59397 59398 if test "x$path" != "x$new_path"; then 59399 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59401 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59402 fi 59403 59404 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59405 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59406 59407 else 59408 # We're on a unix platform. Hooray! :) 59409 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59410 has_space=`$ECHO "$path" | $GREP " "` 59411 if test "x$has_space" != x; then 59412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59413 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59414 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59415 fi 59416 59417 # Use eval to expand a potential ~ 59418 eval path="$path" 59419 if test ! -f "$path" && test ! -d "$path"; then 59420 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59421 fi 59422 59423 if test -d "$path"; then 59424 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59425 else 59426 dir="`$DIRNAME "$path"`" 59427 base="`$BASENAME "$path"`" 59428 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59429 fi 59430 fi 59431 fi 59432 59433 59434 # Only process if variable expands to non-empty 59435 59436 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59438 59439 # Input might be given as Windows format, start by converting to 59440 # unix format. 59441 path="$POTENTIAL_FREETYPE_LIB_PATH" 59442 new_path=`$CYGPATH -u "$path"` 59443 59444 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59445 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59446 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59447 # "foo.exe" is OK but "foo" is an error. 59448 # 59449 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59450 # It is also a way to make sure we got the proper file name for the real test later on. 59451 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59452 if test "x$test_shortpath" = x; then 59453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59454 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59455 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59456 fi 59457 59458 # Call helper function which possibly converts this using DOS-style short mode. 59459 # If so, the updated path is stored in $new_path. 59460 59461 input_path="$new_path" 59462 # Check if we need to convert this using DOS-style short mode. If the path 59463 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59464 # take no chances and rewrite it. 59465 # Note: m4 eats our [], so we need to use [ and ] instead. 59466 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59467 if test "x$has_forbidden_chars" != x; then 59468 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59469 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59470 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59471 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59472 # Going to short mode and back again did indeed matter. Since short mode is 59473 # case insensitive, let's make it lowercase to improve readability. 59474 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59475 # Now convert it back to Unix-style (cygpath) 59476 input_path=`$CYGPATH -u "$shortmode_path"` 59477 new_path="$input_path" 59478 fi 59479 fi 59480 59481 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59482 if test "x$test_cygdrive_prefix" = x; then 59483 # As a simple fix, exclude /usr/bin since it's not a real path. 59484 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59485 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59486 # a path prefixed by /cygdrive for fixpath to work. 59487 new_path="$CYGWIN_ROOT_PATH$input_path" 59488 fi 59489 fi 59490 59491 59492 if test "x$path" != "x$new_path"; then 59493 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59495 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59496 fi 59497 59498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59499 59500 path="$POTENTIAL_FREETYPE_LIB_PATH" 59501 has_colon=`$ECHO $path | $GREP ^.:` 59502 new_path="$path" 59503 if test "x$has_colon" = x; then 59504 # Not in mixed or Windows style, start by that. 59505 new_path=`cmd //c echo $path` 59506 fi 59507 59508 59509 input_path="$new_path" 59510 # Check if we need to convert this using DOS-style short mode. If the path 59511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59512 # take no chances and rewrite it. 59513 # Note: m4 eats our [], so we need to use [ and ] instead. 59514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59515 if test "x$has_forbidden_chars" != x; then 59516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59517 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59518 fi 59519 59520 59521 windows_path="$new_path" 59522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59523 unix_path=`$CYGPATH -u "$windows_path"` 59524 new_path="$unix_path" 59525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59527 new_path="$unix_path" 59528 fi 59529 59530 if test "x$path" != "x$new_path"; then 59531 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59533 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59534 fi 59535 59536 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59537 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59538 59539 else 59540 # We're on a unix platform. Hooray! :) 59541 path="$POTENTIAL_FREETYPE_LIB_PATH" 59542 has_space=`$ECHO "$path" | $GREP " "` 59543 if test "x$has_space" != x; then 59544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59545 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59546 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59547 fi 59548 59549 # Use eval to expand a potential ~ 59550 eval path="$path" 59551 if test ! -f "$path" && test ! -d "$path"; then 59552 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59553 fi 59554 59555 if test -d "$path"; then 59556 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59557 else 59558 dir="`$DIRNAME "$path"`" 59559 base="`$BASENAME "$path"`" 59560 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59561 fi 59562 fi 59563 fi 59564 59565 59566 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59568 $as_echo_n "checking for freetype includes... " >&6; } 59569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59570 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59571 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59573 $as_echo_n "checking for freetype libraries... " >&6; } 59574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59575 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59576 fi 59577 59578 if test "x$FOUND_FREETYPE" != xyes; then 59579 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 59580 59581 windows_path="$FREETYPE_BASE_DIR" 59582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59583 unix_path=`$CYGPATH -u "$windows_path"` 59584 FREETYPE_BASE_DIR="$unix_path" 59585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59587 FREETYPE_BASE_DIR="$unix_path" 59588 fi 59589 59590 59591 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59592 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59593 METHOD="well-known location" 59594 59595 # Let's start with an optimistic view of the world :-) 59596 FOUND_FREETYPE=yes 59597 59598 # First look for the canonical freetype main include file ft2build.h. 59599 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59600 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59601 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59602 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59603 # Fail. 59604 FOUND_FREETYPE=no 59605 fi 59606 fi 59607 59608 if test "x$FOUND_FREETYPE" = xyes; then 59609 # Include file found, let's continue the sanity check. 59610 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59611 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59612 59613 # Reset to default value 59614 FREETYPE_BASE_NAME=freetype 59615 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59616 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59617 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59618 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59619 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59620 # for the .6 version explicitly. 59621 FREETYPE_BASE_NAME=freetype.6 59622 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59623 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59624 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59625 else 59626 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59627 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59628 FOUND_FREETYPE=no 59629 fi 59630 else 59631 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59632 # On Windows, we will need both .lib and .dll file. 59633 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59634 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59635 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59636 FOUND_FREETYPE=no 59637 fi 59638 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59639 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59640 # Found lib in isa dir, use that instead. 59641 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59643 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59644 fi 59645 fi 59646 fi 59647 59648 if test "x$FOUND_FREETYPE" = xyes; then 59649 59650 # Only process if variable expands to non-empty 59651 59652 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59654 59655 # Input might be given as Windows format, start by converting to 59656 # unix format. 59657 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59658 new_path=`$CYGPATH -u "$path"` 59659 59660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59663 # "foo.exe" is OK but "foo" is an error. 59664 # 59665 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59666 # It is also a way to make sure we got the proper file name for the real test later on. 59667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59668 if test "x$test_shortpath" = x; then 59669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59670 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59671 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59672 fi 59673 59674 # Call helper function which possibly converts this using DOS-style short mode. 59675 # If so, the updated path is stored in $new_path. 59676 59677 input_path="$new_path" 59678 # Check if we need to convert this using DOS-style short mode. If the path 59679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59680 # take no chances and rewrite it. 59681 # Note: m4 eats our [], so we need to use [ and ] instead. 59682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59683 if test "x$has_forbidden_chars" != x; then 59684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59688 # Going to short mode and back again did indeed matter. Since short mode is 59689 # case insensitive, let's make it lowercase to improve readability. 59690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59691 # Now convert it back to Unix-style (cygpath) 59692 input_path=`$CYGPATH -u "$shortmode_path"` 59693 new_path="$input_path" 59694 fi 59695 fi 59696 59697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59698 if test "x$test_cygdrive_prefix" = x; then 59699 # As a simple fix, exclude /usr/bin since it's not a real path. 59700 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59702 # a path prefixed by /cygdrive for fixpath to work. 59703 new_path="$CYGWIN_ROOT_PATH$input_path" 59704 fi 59705 fi 59706 59707 59708 if test "x$path" != "x$new_path"; then 59709 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59711 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59712 fi 59713 59714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59715 59716 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59717 has_colon=`$ECHO $path | $GREP ^.:` 59718 new_path="$path" 59719 if test "x$has_colon" = x; then 59720 # Not in mixed or Windows style, start by that. 59721 new_path=`cmd //c echo $path` 59722 fi 59723 59724 59725 input_path="$new_path" 59726 # Check if we need to convert this using DOS-style short mode. If the path 59727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59728 # take no chances and rewrite it. 59729 # Note: m4 eats our [], so we need to use [ and ] instead. 59730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59731 if test "x$has_forbidden_chars" != x; then 59732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59734 fi 59735 59736 59737 windows_path="$new_path" 59738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59739 unix_path=`$CYGPATH -u "$windows_path"` 59740 new_path="$unix_path" 59741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59743 new_path="$unix_path" 59744 fi 59745 59746 if test "x$path" != "x$new_path"; then 59747 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59749 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59750 fi 59751 59752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59754 59755 else 59756 # We're on a unix platform. Hooray! :) 59757 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59758 has_space=`$ECHO "$path" | $GREP " "` 59759 if test "x$has_space" != x; then 59760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59761 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59762 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59763 fi 59764 59765 # Use eval to expand a potential ~ 59766 eval path="$path" 59767 if test ! -f "$path" && test ! -d "$path"; then 59768 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59769 fi 59770 59771 if test -d "$path"; then 59772 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59773 else 59774 dir="`$DIRNAME "$path"`" 59775 base="`$BASENAME "$path"`" 59776 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59777 fi 59778 fi 59779 fi 59780 59781 59782 # Only process if variable expands to non-empty 59783 59784 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59786 59787 # Input might be given as Windows format, start by converting to 59788 # unix format. 59789 path="$POTENTIAL_FREETYPE_LIB_PATH" 59790 new_path=`$CYGPATH -u "$path"` 59791 59792 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59793 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59794 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59795 # "foo.exe" is OK but "foo" is an error. 59796 # 59797 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59798 # It is also a way to make sure we got the proper file name for the real test later on. 59799 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59800 if test "x$test_shortpath" = x; then 59801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59802 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59803 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59804 fi 59805 59806 # Call helper function which possibly converts this using DOS-style short mode. 59807 # If so, the updated path is stored in $new_path. 59808 59809 input_path="$new_path" 59810 # Check if we need to convert this using DOS-style short mode. If the path 59811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59812 # take no chances and rewrite it. 59813 # Note: m4 eats our [], so we need to use [ and ] instead. 59814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59815 if test "x$has_forbidden_chars" != x; then 59816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59817 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59818 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59819 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59820 # Going to short mode and back again did indeed matter. Since short mode is 59821 # case insensitive, let's make it lowercase to improve readability. 59822 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59823 # Now convert it back to Unix-style (cygpath) 59824 input_path=`$CYGPATH -u "$shortmode_path"` 59825 new_path="$input_path" 59826 fi 59827 fi 59828 59829 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59830 if test "x$test_cygdrive_prefix" = x; then 59831 # As a simple fix, exclude /usr/bin since it's not a real path. 59832 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59833 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59834 # a path prefixed by /cygdrive for fixpath to work. 59835 new_path="$CYGWIN_ROOT_PATH$input_path" 59836 fi 59837 fi 59838 59839 59840 if test "x$path" != "x$new_path"; then 59841 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59843 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59844 fi 59845 59846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59847 59848 path="$POTENTIAL_FREETYPE_LIB_PATH" 59849 has_colon=`$ECHO $path | $GREP ^.:` 59850 new_path="$path" 59851 if test "x$has_colon" = x; then 59852 # Not in mixed or Windows style, start by that. 59853 new_path=`cmd //c echo $path` 59854 fi 59855 59856 59857 input_path="$new_path" 59858 # Check if we need to convert this using DOS-style short mode. If the path 59859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59860 # take no chances and rewrite it. 59861 # Note: m4 eats our [], so we need to use [ and ] instead. 59862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59863 if test "x$has_forbidden_chars" != x; then 59864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59865 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59866 fi 59867 59868 59869 windows_path="$new_path" 59870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59871 unix_path=`$CYGPATH -u "$windows_path"` 59872 new_path="$unix_path" 59873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59875 new_path="$unix_path" 59876 fi 59877 59878 if test "x$path" != "x$new_path"; then 59879 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59881 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59882 fi 59883 59884 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59885 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59886 59887 else 59888 # We're on a unix platform. Hooray! :) 59889 path="$POTENTIAL_FREETYPE_LIB_PATH" 59890 has_space=`$ECHO "$path" | $GREP " "` 59891 if test "x$has_space" != x; then 59892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59893 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59894 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59895 fi 59896 59897 # Use eval to expand a potential ~ 59898 eval path="$path" 59899 if test ! -f "$path" && test ! -d "$path"; then 59900 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59901 fi 59902 59903 if test -d "$path"; then 59904 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59905 else 59906 dir="`$DIRNAME "$path"`" 59907 base="`$BASENAME "$path"`" 59908 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59909 fi 59910 fi 59911 fi 59912 59913 59914 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59916 $as_echo_n "checking for freetype includes... " >&6; } 59917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59918 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59919 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59921 $as_echo_n "checking for freetype libraries... " >&6; } 59922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59923 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59924 fi 59925 59926 fi 59927 if test "x$FOUND_FREETYPE" != xyes; then 59928 FREETYPE_BASE_DIR="$HOME/freetype" 59929 59930 windows_path="$FREETYPE_BASE_DIR" 59931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59932 unix_path=`$CYGPATH -u "$windows_path"` 59933 FREETYPE_BASE_DIR="$unix_path" 59934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59936 FREETYPE_BASE_DIR="$unix_path" 59937 fi 59938 59939 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59940 59941 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59942 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59943 METHOD="well-known location" 59944 59945 # Let's start with an optimistic view of the world :-) 59946 FOUND_FREETYPE=yes 59947 59948 # First look for the canonical freetype main include file ft2build.h. 59949 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59950 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59951 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59952 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59953 # Fail. 59954 FOUND_FREETYPE=no 59955 fi 59956 fi 59957 59958 if test "x$FOUND_FREETYPE" = xyes; then 59959 # Include file found, let's continue the sanity check. 59960 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59961 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59962 59963 # Reset to default value 59964 FREETYPE_BASE_NAME=freetype 59965 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59966 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59967 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59968 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59969 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59970 # for the .6 version explicitly. 59971 FREETYPE_BASE_NAME=freetype.6 59972 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59973 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59974 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59975 else 59976 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59977 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59978 FOUND_FREETYPE=no 59979 fi 59980 else 59981 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59982 # On Windows, we will need both .lib and .dll file. 59983 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59984 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59985 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59986 FOUND_FREETYPE=no 59987 fi 59988 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59989 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59990 # Found lib in isa dir, use that instead. 59991 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59992 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59993 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59994 fi 59995 fi 59996 fi 59997 59998 if test "x$FOUND_FREETYPE" = xyes; then 59999 60000 # Only process if variable expands to non-empty 60001 60002 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60004 60005 # Input might be given as Windows format, start by converting to 60006 # unix format. 60007 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60008 new_path=`$CYGPATH -u "$path"` 60009 60010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60013 # "foo.exe" is OK but "foo" is an error. 60014 # 60015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60016 # It is also a way to make sure we got the proper file name for the real test later on. 60017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60018 if test "x$test_shortpath" = x; then 60019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60020 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60021 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60022 fi 60023 60024 # Call helper function which possibly converts this using DOS-style short mode. 60025 # If so, the updated path is stored in $new_path. 60026 60027 input_path="$new_path" 60028 # Check if we need to convert this using DOS-style short mode. If the path 60029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60030 # take no chances and rewrite it. 60031 # Note: m4 eats our [], so we need to use [ and ] instead. 60032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60033 if test "x$has_forbidden_chars" != x; then 60034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60038 # Going to short mode and back again did indeed matter. Since short mode is 60039 # case insensitive, let's make it lowercase to improve readability. 60040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60041 # Now convert it back to Unix-style (cygpath) 60042 input_path=`$CYGPATH -u "$shortmode_path"` 60043 new_path="$input_path" 60044 fi 60045 fi 60046 60047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60048 if test "x$test_cygdrive_prefix" = x; then 60049 # As a simple fix, exclude /usr/bin since it's not a real path. 60050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60052 # a path prefixed by /cygdrive for fixpath to work. 60053 new_path="$CYGWIN_ROOT_PATH$input_path" 60054 fi 60055 fi 60056 60057 60058 if test "x$path" != "x$new_path"; then 60059 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60061 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60062 fi 60063 60064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60065 60066 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60067 has_colon=`$ECHO $path | $GREP ^.:` 60068 new_path="$path" 60069 if test "x$has_colon" = x; then 60070 # Not in mixed or Windows style, start by that. 60071 new_path=`cmd //c echo $path` 60072 fi 60073 60074 60075 input_path="$new_path" 60076 # Check if we need to convert this using DOS-style short mode. If the path 60077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60078 # take no chances and rewrite it. 60079 # Note: m4 eats our [], so we need to use [ and ] instead. 60080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60081 if test "x$has_forbidden_chars" != x; then 60082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60084 fi 60085 60086 60087 windows_path="$new_path" 60088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60089 unix_path=`$CYGPATH -u "$windows_path"` 60090 new_path="$unix_path" 60091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60093 new_path="$unix_path" 60094 fi 60095 60096 if test "x$path" != "x$new_path"; then 60097 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60099 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60100 fi 60101 60102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60104 60105 else 60106 # We're on a unix platform. Hooray! :) 60107 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60108 has_space=`$ECHO "$path" | $GREP " "` 60109 if test "x$has_space" != x; then 60110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60111 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60112 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60113 fi 60114 60115 # Use eval to expand a potential ~ 60116 eval path="$path" 60117 if test ! -f "$path" && test ! -d "$path"; then 60118 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60119 fi 60120 60121 if test -d "$path"; then 60122 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60123 else 60124 dir="`$DIRNAME "$path"`" 60125 base="`$BASENAME "$path"`" 60126 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60127 fi 60128 fi 60129 fi 60130 60131 60132 # Only process if variable expands to non-empty 60133 60134 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60135 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60136 60137 # Input might be given as Windows format, start by converting to 60138 # unix format. 60139 path="$POTENTIAL_FREETYPE_LIB_PATH" 60140 new_path=`$CYGPATH -u "$path"` 60141 60142 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60143 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60144 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60145 # "foo.exe" is OK but "foo" is an error. 60146 # 60147 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60148 # It is also a way to make sure we got the proper file name for the real test later on. 60149 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60150 if test "x$test_shortpath" = x; then 60151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60152 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60153 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60154 fi 60155 60156 # Call helper function which possibly converts this using DOS-style short mode. 60157 # If so, the updated path is stored in $new_path. 60158 60159 input_path="$new_path" 60160 # Check if we need to convert this using DOS-style short mode. If the path 60161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60162 # take no chances and rewrite it. 60163 # Note: m4 eats our [], so we need to use [ and ] instead. 60164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60165 if test "x$has_forbidden_chars" != x; then 60166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60167 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60168 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60169 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60170 # Going to short mode and back again did indeed matter. Since short mode is 60171 # case insensitive, let's make it lowercase to improve readability. 60172 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60173 # Now convert it back to Unix-style (cygpath) 60174 input_path=`$CYGPATH -u "$shortmode_path"` 60175 new_path="$input_path" 60176 fi 60177 fi 60178 60179 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60180 if test "x$test_cygdrive_prefix" = x; then 60181 # As a simple fix, exclude /usr/bin since it's not a real path. 60182 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60183 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60184 # a path prefixed by /cygdrive for fixpath to work. 60185 new_path="$CYGWIN_ROOT_PATH$input_path" 60186 fi 60187 fi 60188 60189 60190 if test "x$path" != "x$new_path"; then 60191 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60193 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60194 fi 60195 60196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60197 60198 path="$POTENTIAL_FREETYPE_LIB_PATH" 60199 has_colon=`$ECHO $path | $GREP ^.:` 60200 new_path="$path" 60201 if test "x$has_colon" = x; then 60202 # Not in mixed or Windows style, start by that. 60203 new_path=`cmd //c echo $path` 60204 fi 60205 60206 60207 input_path="$new_path" 60208 # Check if we need to convert this using DOS-style short mode. If the path 60209 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60210 # take no chances and rewrite it. 60211 # Note: m4 eats our [], so we need to use [ and ] instead. 60212 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60213 if test "x$has_forbidden_chars" != x; then 60214 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60215 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60216 fi 60217 60218 60219 windows_path="$new_path" 60220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60221 unix_path=`$CYGPATH -u "$windows_path"` 60222 new_path="$unix_path" 60223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60224 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60225 new_path="$unix_path" 60226 fi 60227 60228 if test "x$path" != "x$new_path"; then 60229 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60231 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60232 fi 60233 60234 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60235 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60236 60237 else 60238 # We're on a unix platform. Hooray! :) 60239 path="$POTENTIAL_FREETYPE_LIB_PATH" 60240 has_space=`$ECHO "$path" | $GREP " "` 60241 if test "x$has_space" != x; then 60242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60243 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60244 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60245 fi 60246 60247 # Use eval to expand a potential ~ 60248 eval path="$path" 60249 if test ! -f "$path" && test ! -d "$path"; then 60250 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60251 fi 60252 60253 if test -d "$path"; then 60254 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60255 else 60256 dir="`$DIRNAME "$path"`" 60257 base="`$BASENAME "$path"`" 60258 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60259 fi 60260 fi 60261 fi 60262 60263 60264 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60266 $as_echo_n "checking for freetype includes... " >&6; } 60267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60268 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60269 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60271 $as_echo_n "checking for freetype libraries... " >&6; } 60272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60273 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60274 fi 60275 60276 else 60277 60278 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60279 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 60280 METHOD="well-known location" 60281 60282 # Let's start with an optimistic view of the world :-) 60283 FOUND_FREETYPE=yes 60284 60285 # First look for the canonical freetype main include file ft2build.h. 60286 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60287 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60288 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60289 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60290 # Fail. 60291 FOUND_FREETYPE=no 60292 fi 60293 fi 60294 60295 if test "x$FOUND_FREETYPE" = xyes; then 60296 # Include file found, let's continue the sanity check. 60297 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60298 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60299 60300 # Reset to default value 60301 FREETYPE_BASE_NAME=freetype 60302 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60303 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60304 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60305 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60306 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60307 # for the .6 version explicitly. 60308 FREETYPE_BASE_NAME=freetype.6 60309 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60310 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60311 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60312 else 60313 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60314 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60315 FOUND_FREETYPE=no 60316 fi 60317 else 60318 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60319 # On Windows, we will need both .lib and .dll file. 60320 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60321 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60322 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60323 FOUND_FREETYPE=no 60324 fi 60325 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60326 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60327 # Found lib in isa dir, use that instead. 60328 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60329 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60330 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60331 fi 60332 fi 60333 fi 60334 60335 if test "x$FOUND_FREETYPE" = xyes; then 60336 60337 # Only process if variable expands to non-empty 60338 60339 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60341 60342 # Input might be given as Windows format, start by converting to 60343 # unix format. 60344 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60345 new_path=`$CYGPATH -u "$path"` 60346 60347 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60348 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60349 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60350 # "foo.exe" is OK but "foo" is an error. 60351 # 60352 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60353 # It is also a way to make sure we got the proper file name for the real test later on. 60354 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60355 if test "x$test_shortpath" = x; then 60356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60357 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60358 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60359 fi 60360 60361 # Call helper function which possibly converts this using DOS-style short mode. 60362 # If so, the updated path is stored in $new_path. 60363 60364 input_path="$new_path" 60365 # Check if we need to convert this using DOS-style short mode. If the path 60366 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60367 # take no chances and rewrite it. 60368 # Note: m4 eats our [], so we need to use [ and ] instead. 60369 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60370 if test "x$has_forbidden_chars" != x; then 60371 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60372 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60373 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60374 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60375 # Going to short mode and back again did indeed matter. Since short mode is 60376 # case insensitive, let's make it lowercase to improve readability. 60377 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60378 # Now convert it back to Unix-style (cygpath) 60379 input_path=`$CYGPATH -u "$shortmode_path"` 60380 new_path="$input_path" 60381 fi 60382 fi 60383 60384 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60385 if test "x$test_cygdrive_prefix" = x; then 60386 # As a simple fix, exclude /usr/bin since it's not a real path. 60387 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60388 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60389 # a path prefixed by /cygdrive for fixpath to work. 60390 new_path="$CYGWIN_ROOT_PATH$input_path" 60391 fi 60392 fi 60393 60394 60395 if test "x$path" != "x$new_path"; then 60396 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60398 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60399 fi 60400 60401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60402 60403 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60404 has_colon=`$ECHO $path | $GREP ^.:` 60405 new_path="$path" 60406 if test "x$has_colon" = x; then 60407 # Not in mixed or Windows style, start by that. 60408 new_path=`cmd //c echo $path` 60409 fi 60410 60411 60412 input_path="$new_path" 60413 # Check if we need to convert this using DOS-style short mode. If the path 60414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60415 # take no chances and rewrite it. 60416 # Note: m4 eats our [], so we need to use [ and ] instead. 60417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60418 if test "x$has_forbidden_chars" != x; then 60419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60421 fi 60422 60423 60424 windows_path="$new_path" 60425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60426 unix_path=`$CYGPATH -u "$windows_path"` 60427 new_path="$unix_path" 60428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60429 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60430 new_path="$unix_path" 60431 fi 60432 60433 if test "x$path" != "x$new_path"; then 60434 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60436 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60437 fi 60438 60439 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60440 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60441 60442 else 60443 # We're on a unix platform. Hooray! :) 60444 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60445 has_space=`$ECHO "$path" | $GREP " "` 60446 if test "x$has_space" != x; then 60447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60448 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60449 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60450 fi 60451 60452 # Use eval to expand a potential ~ 60453 eval path="$path" 60454 if test ! -f "$path" && test ! -d "$path"; then 60455 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60456 fi 60457 60458 if test -d "$path"; then 60459 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60460 else 60461 dir="`$DIRNAME "$path"`" 60462 base="`$BASENAME "$path"`" 60463 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60464 fi 60465 fi 60466 fi 60467 60468 60469 # Only process if variable expands to non-empty 60470 60471 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60473 60474 # Input might be given as Windows format, start by converting to 60475 # unix format. 60476 path="$POTENTIAL_FREETYPE_LIB_PATH" 60477 new_path=`$CYGPATH -u "$path"` 60478 60479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60482 # "foo.exe" is OK but "foo" is an error. 60483 # 60484 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60485 # It is also a way to make sure we got the proper file name for the real test later on. 60486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60487 if test "x$test_shortpath" = x; then 60488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60489 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60490 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60491 fi 60492 60493 # Call helper function which possibly converts this using DOS-style short mode. 60494 # If so, the updated path is stored in $new_path. 60495 60496 input_path="$new_path" 60497 # Check if we need to convert this using DOS-style short mode. If the path 60498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60499 # take no chances and rewrite it. 60500 # Note: m4 eats our [], so we need to use [ and ] instead. 60501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60502 if test "x$has_forbidden_chars" != x; then 60503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60504 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60505 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60506 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60507 # Going to short mode and back again did indeed matter. Since short mode is 60508 # case insensitive, let's make it lowercase to improve readability. 60509 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60510 # Now convert it back to Unix-style (cygpath) 60511 input_path=`$CYGPATH -u "$shortmode_path"` 60512 new_path="$input_path" 60513 fi 60514 fi 60515 60516 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60517 if test "x$test_cygdrive_prefix" = x; then 60518 # As a simple fix, exclude /usr/bin since it's not a real path. 60519 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60520 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60521 # a path prefixed by /cygdrive for fixpath to work. 60522 new_path="$CYGWIN_ROOT_PATH$input_path" 60523 fi 60524 fi 60525 60526 60527 if test "x$path" != "x$new_path"; then 60528 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60530 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60531 fi 60532 60533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60534 60535 path="$POTENTIAL_FREETYPE_LIB_PATH" 60536 has_colon=`$ECHO $path | $GREP ^.:` 60537 new_path="$path" 60538 if test "x$has_colon" = x; then 60539 # Not in mixed or Windows style, start by that. 60540 new_path=`cmd //c echo $path` 60541 fi 60542 60543 60544 input_path="$new_path" 60545 # Check if we need to convert this using DOS-style short mode. If the path 60546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60547 # take no chances and rewrite it. 60548 # Note: m4 eats our [], so we need to use [ and ] instead. 60549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60550 if test "x$has_forbidden_chars" != x; then 60551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60552 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60553 fi 60554 60555 60556 windows_path="$new_path" 60557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60558 unix_path=`$CYGPATH -u "$windows_path"` 60559 new_path="$unix_path" 60560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60562 new_path="$unix_path" 60563 fi 60564 60565 if test "x$path" != "x$new_path"; then 60566 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60568 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60569 fi 60570 60571 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60572 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60573 60574 else 60575 # We're on a unix platform. Hooray! :) 60576 path="$POTENTIAL_FREETYPE_LIB_PATH" 60577 has_space=`$ECHO "$path" | $GREP " "` 60578 if test "x$has_space" != x; then 60579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60580 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60581 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60582 fi 60583 60584 # Use eval to expand a potential ~ 60585 eval path="$path" 60586 if test ! -f "$path" && test ! -d "$path"; then 60587 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60588 fi 60589 60590 if test -d "$path"; then 60591 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60592 else 60593 dir="`$DIRNAME "$path"`" 60594 base="`$BASENAME "$path"`" 60595 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60596 fi 60597 fi 60598 fi 60599 60600 60601 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60603 $as_echo_n "checking for freetype includes... " >&6; } 60604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60605 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60606 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60608 $as_echo_n "checking for freetype libraries... " >&6; } 60609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60610 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60611 fi 60612 60613 fi 60614 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 60615 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 60616 # Source is available, as a last resort try to build freetype in default location 60617 60618 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 60619 BUILD_FREETYPE=yes 60620 60621 # Check if the freetype sources are acessible.. 60622 if ! test -d $FREETYPE_SRC_PATH; then 60623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 60624 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 60625 BUILD_FREETYPE=no 60626 fi 60627 # ..and contain a vc2010 project file 60628 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 60629 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 60630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 60631 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 60632 BUILD_FREETYPE=no 60633 fi 60634 # Now check if configure found a version of 'msbuild.exe' 60635 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 60636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 60637 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 60638 BUILD_FREETYPE=no 60639 fi 60640 60641 # Ready to go.. 60642 if test "x$BUILD_FREETYPE" = xyes; then 60643 # msbuild requires trailing slashes for output directories 60644 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 60645 freetype_lib_path_unix="$freetype_lib_path" 60646 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 60647 60648 unix_path="$vcxproj_path" 60649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60650 windows_path=`$CYGPATH -m "$unix_path"` 60651 vcxproj_path="$windows_path" 60652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60653 windows_path=`cmd //c echo $unix_path` 60654 vcxproj_path="$windows_path" 60655 fi 60656 60657 60658 unix_path="$freetype_lib_path" 60659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60660 windows_path=`$CYGPATH -m "$unix_path"` 60661 freetype_lib_path="$windows_path" 60662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60663 windows_path=`cmd //c echo $unix_path` 60664 freetype_lib_path="$windows_path" 60665 fi 60666 60667 60668 unix_path="$freetype_obj_path" 60669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60670 windows_path=`$CYGPATH -m "$unix_path"` 60671 freetype_obj_path="$windows_path" 60672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60673 windows_path=`cmd //c echo $unix_path` 60674 freetype_obj_path="$windows_path" 60675 fi 60676 60677 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60678 freetype_platform=x64 60679 else 60680 freetype_platform=win32 60681 fi 60682 60683 # The original freetype project file is for VS 2010 (i.e. 'v100'), 60684 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 60685 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 60686 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 60687 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 60688 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 60689 60690 # First we try to build the freetype.dll 60691 $ECHO -e "@echo off\n"\ 60692 "$MSBUILD $vcxproj_path "\ 60693 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60694 "/p:Configuration=\"Release Multithreaded\" "\ 60695 "/p:Platform=$freetype_platform "\ 60696 "/p:ConfigurationType=DynamicLibrary "\ 60697 "/p:TargetName=freetype "\ 60698 "/p:OutDir=\"$freetype_lib_path\" "\ 60699 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 60700 cmd /c freetype.bat 60701 60702 if test -s "$freetype_lib_path_unix/freetype.dll"; then 60703 # If that succeeds we also build freetype.lib 60704 $ECHO -e "@echo off\n"\ 60705 "$MSBUILD $vcxproj_path "\ 60706 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60707 "/p:Configuration=\"Release Multithreaded\" "\ 60708 "/p:Platform=$freetype_platform "\ 60709 "/p:ConfigurationType=StaticLibrary "\ 60710 "/p:TargetName=freetype "\ 60711 "/p:OutDir=\"$freetype_lib_path\" "\ 60712 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 60713 cmd /c freetype.bat 60714 60715 if test -s "$freetype_lib_path_unix/freetype.lib"; then 60716 # Once we build both, lib and dll, set freetype lib and include path appropriately 60717 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 60718 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 60719 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 60720 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 60721 else 60722 BUILD_FREETYPE=no 60723 fi 60724 else 60725 BUILD_FREETYPE=no 60726 fi 60727 fi 60728 60729 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60730 60731 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60732 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 60733 METHOD="well-known location" 60734 60735 # Let's start with an optimistic view of the world :-) 60736 FOUND_FREETYPE=yes 60737 60738 # First look for the canonical freetype main include file ft2build.h. 60739 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60740 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60741 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60742 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60743 # Fail. 60744 FOUND_FREETYPE=no 60745 fi 60746 fi 60747 60748 if test "x$FOUND_FREETYPE" = xyes; then 60749 # Include file found, let's continue the sanity check. 60750 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60751 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60752 60753 # Reset to default value 60754 FREETYPE_BASE_NAME=freetype 60755 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60756 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60757 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60758 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60759 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60760 # for the .6 version explicitly. 60761 FREETYPE_BASE_NAME=freetype.6 60762 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60763 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60764 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60765 else 60766 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60767 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60768 FOUND_FREETYPE=no 60769 fi 60770 else 60771 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60772 # On Windows, we will need both .lib and .dll file. 60773 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60774 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60775 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60776 FOUND_FREETYPE=no 60777 fi 60778 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60779 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60780 # Found lib in isa dir, use that instead. 60781 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60783 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60784 fi 60785 fi 60786 fi 60787 60788 if test "x$FOUND_FREETYPE" = xyes; then 60789 60790 # Only process if variable expands to non-empty 60791 60792 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60794 60795 # Input might be given as Windows format, start by converting to 60796 # unix format. 60797 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60798 new_path=`$CYGPATH -u "$path"` 60799 60800 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60801 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60802 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60803 # "foo.exe" is OK but "foo" is an error. 60804 # 60805 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60806 # It is also a way to make sure we got the proper file name for the real test later on. 60807 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60808 if test "x$test_shortpath" = x; then 60809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60810 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60811 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60812 fi 60813 60814 # Call helper function which possibly converts this using DOS-style short mode. 60815 # If so, the updated path is stored in $new_path. 60816 60817 input_path="$new_path" 60818 # Check if we need to convert this using DOS-style short mode. If the path 60819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60820 # take no chances and rewrite it. 60821 # Note: m4 eats our [], so we need to use [ and ] instead. 60822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60823 if test "x$has_forbidden_chars" != x; then 60824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60825 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60826 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60827 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60828 # Going to short mode and back again did indeed matter. Since short mode is 60829 # case insensitive, let's make it lowercase to improve readability. 60830 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60831 # Now convert it back to Unix-style (cygpath) 60832 input_path=`$CYGPATH -u "$shortmode_path"` 60833 new_path="$input_path" 60834 fi 60835 fi 60836 60837 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60838 if test "x$test_cygdrive_prefix" = x; then 60839 # As a simple fix, exclude /usr/bin since it's not a real path. 60840 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60841 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60842 # a path prefixed by /cygdrive for fixpath to work. 60843 new_path="$CYGWIN_ROOT_PATH$input_path" 60844 fi 60845 fi 60846 60847 60848 if test "x$path" != "x$new_path"; then 60849 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60850 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60851 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60852 fi 60853 60854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60855 60856 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60857 has_colon=`$ECHO $path | $GREP ^.:` 60858 new_path="$path" 60859 if test "x$has_colon" = x; then 60860 # Not in mixed or Windows style, start by that. 60861 new_path=`cmd //c echo $path` 60862 fi 60863 60864 60865 input_path="$new_path" 60866 # Check if we need to convert this using DOS-style short mode. If the path 60867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60868 # take no chances and rewrite it. 60869 # Note: m4 eats our [], so we need to use [ and ] instead. 60870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60871 if test "x$has_forbidden_chars" != x; then 60872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60873 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60874 fi 60875 60876 60877 windows_path="$new_path" 60878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60879 unix_path=`$CYGPATH -u "$windows_path"` 60880 new_path="$unix_path" 60881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60882 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60883 new_path="$unix_path" 60884 fi 60885 60886 if test "x$path" != "x$new_path"; then 60887 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60889 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60890 fi 60891 60892 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60893 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60894 60895 else 60896 # We're on a unix platform. Hooray! :) 60897 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60898 has_space=`$ECHO "$path" | $GREP " "` 60899 if test "x$has_space" != x; then 60900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60901 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60902 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60903 fi 60904 60905 # Use eval to expand a potential ~ 60906 eval path="$path" 60907 if test ! -f "$path" && test ! -d "$path"; then 60908 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60909 fi 60910 60911 if test -d "$path"; then 60912 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60913 else 60914 dir="`$DIRNAME "$path"`" 60915 base="`$BASENAME "$path"`" 60916 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60917 fi 60918 fi 60919 fi 60920 60921 60922 # Only process if variable expands to non-empty 60923 60924 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60926 60927 # Input might be given as Windows format, start by converting to 60928 # unix format. 60929 path="$POTENTIAL_FREETYPE_LIB_PATH" 60930 new_path=`$CYGPATH -u "$path"` 60931 60932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60935 # "foo.exe" is OK but "foo" is an error. 60936 # 60937 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60938 # It is also a way to make sure we got the proper file name for the real test later on. 60939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60940 if test "x$test_shortpath" = x; then 60941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60942 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60943 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60944 fi 60945 60946 # Call helper function which possibly converts this using DOS-style short mode. 60947 # If so, the updated path is stored in $new_path. 60948 60949 input_path="$new_path" 60950 # Check if we need to convert this using DOS-style short mode. If the path 60951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60952 # take no chances and rewrite it. 60953 # Note: m4 eats our [], so we need to use [ and ] instead. 60954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60955 if test "x$has_forbidden_chars" != x; then 60956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60960 # Going to short mode and back again did indeed matter. Since short mode is 60961 # case insensitive, let's make it lowercase to improve readability. 60962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60963 # Now convert it back to Unix-style (cygpath) 60964 input_path=`$CYGPATH -u "$shortmode_path"` 60965 new_path="$input_path" 60966 fi 60967 fi 60968 60969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60970 if test "x$test_cygdrive_prefix" = x; then 60971 # As a simple fix, exclude /usr/bin since it's not a real path. 60972 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60974 # a path prefixed by /cygdrive for fixpath to work. 60975 new_path="$CYGWIN_ROOT_PATH$input_path" 60976 fi 60977 fi 60978 60979 60980 if test "x$path" != "x$new_path"; then 60981 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60983 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60984 fi 60985 60986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60987 60988 path="$POTENTIAL_FREETYPE_LIB_PATH" 60989 has_colon=`$ECHO $path | $GREP ^.:` 60990 new_path="$path" 60991 if test "x$has_colon" = x; then 60992 # Not in mixed or Windows style, start by that. 60993 new_path=`cmd //c echo $path` 60994 fi 60995 60996 60997 input_path="$new_path" 60998 # Check if we need to convert this using DOS-style short mode. If the path 60999 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61000 # take no chances and rewrite it. 61001 # Note: m4 eats our [], so we need to use [ and ] instead. 61002 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61003 if test "x$has_forbidden_chars" != x; then 61004 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61005 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61006 fi 61007 61008 61009 windows_path="$new_path" 61010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61011 unix_path=`$CYGPATH -u "$windows_path"` 61012 new_path="$unix_path" 61013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61015 new_path="$unix_path" 61016 fi 61017 61018 if test "x$path" != "x$new_path"; then 61019 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61021 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61022 fi 61023 61024 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61025 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61026 61027 else 61028 # We're on a unix platform. Hooray! :) 61029 path="$POTENTIAL_FREETYPE_LIB_PATH" 61030 has_space=`$ECHO "$path" | $GREP " "` 61031 if test "x$has_space" != x; then 61032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61033 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61034 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61035 fi 61036 61037 # Use eval to expand a potential ~ 61038 eval path="$path" 61039 if test ! -f "$path" && test ! -d "$path"; then 61040 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61041 fi 61042 61043 if test -d "$path"; then 61044 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61045 else 61046 dir="`$DIRNAME "$path"`" 61047 base="`$BASENAME "$path"`" 61048 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61049 fi 61050 fi 61051 fi 61052 61053 61054 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61056 $as_echo_n "checking for freetype includes... " >&6; } 61057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61058 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61059 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61061 $as_echo_n "checking for freetype libraries... " >&6; } 61062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61063 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61064 fi 61065 61066 else 61067 61068 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61069 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61070 METHOD="well-known location" 61071 61072 # Let's start with an optimistic view of the world :-) 61073 FOUND_FREETYPE=yes 61074 61075 # First look for the canonical freetype main include file ft2build.h. 61076 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61077 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61078 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61079 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61080 # Fail. 61081 FOUND_FREETYPE=no 61082 fi 61083 fi 61084 61085 if test "x$FOUND_FREETYPE" = xyes; then 61086 # Include file found, let's continue the sanity check. 61087 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61088 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61089 61090 # Reset to default value 61091 FREETYPE_BASE_NAME=freetype 61092 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61093 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61094 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61095 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61096 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61097 # for the .6 version explicitly. 61098 FREETYPE_BASE_NAME=freetype.6 61099 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61100 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61101 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61102 else 61103 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61104 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61105 FOUND_FREETYPE=no 61106 fi 61107 else 61108 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61109 # On Windows, we will need both .lib and .dll file. 61110 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61111 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61112 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61113 FOUND_FREETYPE=no 61114 fi 61115 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61116 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61117 # Found lib in isa dir, use that instead. 61118 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61120 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61121 fi 61122 fi 61123 fi 61124 61125 if test "x$FOUND_FREETYPE" = xyes; then 61126 61127 # Only process if variable expands to non-empty 61128 61129 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61131 61132 # Input might be given as Windows format, start by converting to 61133 # unix format. 61134 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61135 new_path=`$CYGPATH -u "$path"` 61136 61137 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61138 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61139 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61140 # "foo.exe" is OK but "foo" is an error. 61141 # 61142 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61143 # It is also a way to make sure we got the proper file name for the real test later on. 61144 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61145 if test "x$test_shortpath" = x; then 61146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61147 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61148 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61149 fi 61150 61151 # Call helper function which possibly converts this using DOS-style short mode. 61152 # If so, the updated path is stored in $new_path. 61153 61154 input_path="$new_path" 61155 # Check if we need to convert this using DOS-style short mode. If the path 61156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61157 # take no chances and rewrite it. 61158 # Note: m4 eats our [], so we need to use [ and ] instead. 61159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61160 if test "x$has_forbidden_chars" != x; then 61161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61162 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61163 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61164 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61165 # Going to short mode and back again did indeed matter. Since short mode is 61166 # case insensitive, let's make it lowercase to improve readability. 61167 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61168 # Now convert it back to Unix-style (cygpath) 61169 input_path=`$CYGPATH -u "$shortmode_path"` 61170 new_path="$input_path" 61171 fi 61172 fi 61173 61174 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61175 if test "x$test_cygdrive_prefix" = x; then 61176 # As a simple fix, exclude /usr/bin since it's not a real path. 61177 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61178 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61179 # a path prefixed by /cygdrive for fixpath to work. 61180 new_path="$CYGWIN_ROOT_PATH$input_path" 61181 fi 61182 fi 61183 61184 61185 if test "x$path" != "x$new_path"; then 61186 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61187 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61188 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61189 fi 61190 61191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61192 61193 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61194 has_colon=`$ECHO $path | $GREP ^.:` 61195 new_path="$path" 61196 if test "x$has_colon" = x; then 61197 # Not in mixed or Windows style, start by that. 61198 new_path=`cmd //c echo $path` 61199 fi 61200 61201 61202 input_path="$new_path" 61203 # Check if we need to convert this using DOS-style short mode. If the path 61204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61205 # take no chances and rewrite it. 61206 # Note: m4 eats our [], so we need to use [ and ] instead. 61207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61208 if test "x$has_forbidden_chars" != x; then 61209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61210 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61211 fi 61212 61213 61214 windows_path="$new_path" 61215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61216 unix_path=`$CYGPATH -u "$windows_path"` 61217 new_path="$unix_path" 61218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61220 new_path="$unix_path" 61221 fi 61222 61223 if test "x$path" != "x$new_path"; then 61224 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61226 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61227 fi 61228 61229 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61230 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61231 61232 else 61233 # We're on a unix platform. Hooray! :) 61234 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61235 has_space=`$ECHO "$path" | $GREP " "` 61236 if test "x$has_space" != x; then 61237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61238 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61239 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61240 fi 61241 61242 # Use eval to expand a potential ~ 61243 eval path="$path" 61244 if test ! -f "$path" && test ! -d "$path"; then 61245 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61246 fi 61247 61248 if test -d "$path"; then 61249 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61250 else 61251 dir="`$DIRNAME "$path"`" 61252 base="`$BASENAME "$path"`" 61253 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61254 fi 61255 fi 61256 fi 61257 61258 61259 # Only process if variable expands to non-empty 61260 61261 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61263 61264 # Input might be given as Windows format, start by converting to 61265 # unix format. 61266 path="$POTENTIAL_FREETYPE_LIB_PATH" 61267 new_path=`$CYGPATH -u "$path"` 61268 61269 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61270 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61271 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61272 # "foo.exe" is OK but "foo" is an error. 61273 # 61274 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61275 # It is also a way to make sure we got the proper file name for the real test later on. 61276 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61277 if test "x$test_shortpath" = x; then 61278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61279 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61280 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61281 fi 61282 61283 # Call helper function which possibly converts this using DOS-style short mode. 61284 # If so, the updated path is stored in $new_path. 61285 61286 input_path="$new_path" 61287 # Check if we need to convert this using DOS-style short mode. If the path 61288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61289 # take no chances and rewrite it. 61290 # Note: m4 eats our [], so we need to use [ and ] instead. 61291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61292 if test "x$has_forbidden_chars" != x; then 61293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61294 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61295 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61296 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61297 # Going to short mode and back again did indeed matter. Since short mode is 61298 # case insensitive, let's make it lowercase to improve readability. 61299 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61300 # Now convert it back to Unix-style (cygpath) 61301 input_path=`$CYGPATH -u "$shortmode_path"` 61302 new_path="$input_path" 61303 fi 61304 fi 61305 61306 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61307 if test "x$test_cygdrive_prefix" = x; then 61308 # As a simple fix, exclude /usr/bin since it's not a real path. 61309 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61310 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61311 # a path prefixed by /cygdrive for fixpath to work. 61312 new_path="$CYGWIN_ROOT_PATH$input_path" 61313 fi 61314 fi 61315 61316 61317 if test "x$path" != "x$new_path"; then 61318 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61320 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61321 fi 61322 61323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61324 61325 path="$POTENTIAL_FREETYPE_LIB_PATH" 61326 has_colon=`$ECHO $path | $GREP ^.:` 61327 new_path="$path" 61328 if test "x$has_colon" = x; then 61329 # Not in mixed or Windows style, start by that. 61330 new_path=`cmd //c echo $path` 61331 fi 61332 61333 61334 input_path="$new_path" 61335 # Check if we need to convert this using DOS-style short mode. If the path 61336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61337 # take no chances and rewrite it. 61338 # Note: m4 eats our [], so we need to use [ and ] instead. 61339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61340 if test "x$has_forbidden_chars" != x; then 61341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61342 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61343 fi 61344 61345 61346 windows_path="$new_path" 61347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61348 unix_path=`$CYGPATH -u "$windows_path"` 61349 new_path="$unix_path" 61350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61352 new_path="$unix_path" 61353 fi 61354 61355 if test "x$path" != "x$new_path"; then 61356 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61358 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61359 fi 61360 61361 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61362 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61363 61364 else 61365 # We're on a unix platform. Hooray! :) 61366 path="$POTENTIAL_FREETYPE_LIB_PATH" 61367 has_space=`$ECHO "$path" | $GREP " "` 61368 if test "x$has_space" != x; then 61369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61370 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61371 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61372 fi 61373 61374 # Use eval to expand a potential ~ 61375 eval path="$path" 61376 if test ! -f "$path" && test ! -d "$path"; then 61377 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61378 fi 61379 61380 if test -d "$path"; then 61381 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61382 else 61383 dir="`$DIRNAME "$path"`" 61384 base="`$BASENAME "$path"`" 61385 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61386 fi 61387 fi 61388 fi 61389 61390 61391 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61393 $as_echo_n "checking for freetype includes... " >&6; } 61394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61395 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61396 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61398 $as_echo_n "checking for freetype libraries... " >&6; } 61399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61400 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61401 fi 61402 61403 fi 61404 fi 61405 fi 61406 else 61407 FREETYPE_BASE_DIR="$SYSROOT/usr" 61408 61409 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61410 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61411 METHOD="well-known location" 61412 61413 # Let's start with an optimistic view of the world :-) 61414 FOUND_FREETYPE=yes 61415 61416 # First look for the canonical freetype main include file ft2build.h. 61417 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61418 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61419 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61420 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61421 # Fail. 61422 FOUND_FREETYPE=no 61423 fi 61424 fi 61425 61426 if test "x$FOUND_FREETYPE" = xyes; then 61427 # Include file found, let's continue the sanity check. 61428 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61429 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61430 61431 # Reset to default value 61432 FREETYPE_BASE_NAME=freetype 61433 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61434 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61435 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61436 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61437 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61438 # for the .6 version explicitly. 61439 FREETYPE_BASE_NAME=freetype.6 61440 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61441 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61442 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61443 else 61444 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61445 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61446 FOUND_FREETYPE=no 61447 fi 61448 else 61449 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61450 # On Windows, we will need both .lib and .dll file. 61451 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61452 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61453 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61454 FOUND_FREETYPE=no 61455 fi 61456 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61457 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61458 # Found lib in isa dir, use that instead. 61459 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61461 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61462 fi 61463 fi 61464 fi 61465 61466 if test "x$FOUND_FREETYPE" = xyes; then 61467 61468 # Only process if variable expands to non-empty 61469 61470 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61472 61473 # Input might be given as Windows format, start by converting to 61474 # unix format. 61475 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61476 new_path=`$CYGPATH -u "$path"` 61477 61478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61481 # "foo.exe" is OK but "foo" is an error. 61482 # 61483 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61484 # It is also a way to make sure we got the proper file name for the real test later on. 61485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61486 if test "x$test_shortpath" = x; then 61487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61488 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61489 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61490 fi 61491 61492 # Call helper function which possibly converts this using DOS-style short mode. 61493 # If so, the updated path is stored in $new_path. 61494 61495 input_path="$new_path" 61496 # Check if we need to convert this using DOS-style short mode. If the path 61497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61498 # take no chances and rewrite it. 61499 # Note: m4 eats our [], so we need to use [ and ] instead. 61500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61501 if test "x$has_forbidden_chars" != x; then 61502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61506 # Going to short mode and back again did indeed matter. Since short mode is 61507 # case insensitive, let's make it lowercase to improve readability. 61508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61509 # Now convert it back to Unix-style (cygpath) 61510 input_path=`$CYGPATH -u "$shortmode_path"` 61511 new_path="$input_path" 61512 fi 61513 fi 61514 61515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61516 if test "x$test_cygdrive_prefix" = x; then 61517 # As a simple fix, exclude /usr/bin since it's not a real path. 61518 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61520 # a path prefixed by /cygdrive for fixpath to work. 61521 new_path="$CYGWIN_ROOT_PATH$input_path" 61522 fi 61523 fi 61524 61525 61526 if test "x$path" != "x$new_path"; then 61527 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61529 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61530 fi 61531 61532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61533 61534 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61535 has_colon=`$ECHO $path | $GREP ^.:` 61536 new_path="$path" 61537 if test "x$has_colon" = x; then 61538 # Not in mixed or Windows style, start by that. 61539 new_path=`cmd //c echo $path` 61540 fi 61541 61542 61543 input_path="$new_path" 61544 # Check if we need to convert this using DOS-style short mode. If the path 61545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61546 # take no chances and rewrite it. 61547 # Note: m4 eats our [], so we need to use [ and ] instead. 61548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61549 if test "x$has_forbidden_chars" != x; then 61550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61552 fi 61553 61554 61555 windows_path="$new_path" 61556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61557 unix_path=`$CYGPATH -u "$windows_path"` 61558 new_path="$unix_path" 61559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61561 new_path="$unix_path" 61562 fi 61563 61564 if test "x$path" != "x$new_path"; then 61565 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61567 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61568 fi 61569 61570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61572 61573 else 61574 # We're on a unix platform. Hooray! :) 61575 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61576 has_space=`$ECHO "$path" | $GREP " "` 61577 if test "x$has_space" != x; then 61578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61579 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61580 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61581 fi 61582 61583 # Use eval to expand a potential ~ 61584 eval path="$path" 61585 if test ! -f "$path" && test ! -d "$path"; then 61586 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61587 fi 61588 61589 if test -d "$path"; then 61590 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61591 else 61592 dir="`$DIRNAME "$path"`" 61593 base="`$BASENAME "$path"`" 61594 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61595 fi 61596 fi 61597 fi 61598 61599 61600 # Only process if variable expands to non-empty 61601 61602 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61604 61605 # Input might be given as Windows format, start by converting to 61606 # unix format. 61607 path="$POTENTIAL_FREETYPE_LIB_PATH" 61608 new_path=`$CYGPATH -u "$path"` 61609 61610 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61611 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61612 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61613 # "foo.exe" is OK but "foo" is an error. 61614 # 61615 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61616 # It is also a way to make sure we got the proper file name for the real test later on. 61617 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61618 if test "x$test_shortpath" = x; then 61619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61620 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61621 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61622 fi 61623 61624 # Call helper function which possibly converts this using DOS-style short mode. 61625 # If so, the updated path is stored in $new_path. 61626 61627 input_path="$new_path" 61628 # Check if we need to convert this using DOS-style short mode. If the path 61629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61630 # take no chances and rewrite it. 61631 # Note: m4 eats our [], so we need to use [ and ] instead. 61632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61633 if test "x$has_forbidden_chars" != x; then 61634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61635 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61636 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61637 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61638 # Going to short mode and back again did indeed matter. Since short mode is 61639 # case insensitive, let's make it lowercase to improve readability. 61640 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61641 # Now convert it back to Unix-style (cygpath) 61642 input_path=`$CYGPATH -u "$shortmode_path"` 61643 new_path="$input_path" 61644 fi 61645 fi 61646 61647 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61648 if test "x$test_cygdrive_prefix" = x; then 61649 # As a simple fix, exclude /usr/bin since it's not a real path. 61650 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61651 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61652 # a path prefixed by /cygdrive for fixpath to work. 61653 new_path="$CYGWIN_ROOT_PATH$input_path" 61654 fi 61655 fi 61656 61657 61658 if test "x$path" != "x$new_path"; then 61659 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61661 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61662 fi 61663 61664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61665 61666 path="$POTENTIAL_FREETYPE_LIB_PATH" 61667 has_colon=`$ECHO $path | $GREP ^.:` 61668 new_path="$path" 61669 if test "x$has_colon" = x; then 61670 # Not in mixed or Windows style, start by that. 61671 new_path=`cmd //c echo $path` 61672 fi 61673 61674 61675 input_path="$new_path" 61676 # Check if we need to convert this using DOS-style short mode. If the path 61677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61678 # take no chances and rewrite it. 61679 # Note: m4 eats our [], so we need to use [ and ] instead. 61680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61681 if test "x$has_forbidden_chars" != x; then 61682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61684 fi 61685 61686 61687 windows_path="$new_path" 61688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61689 unix_path=`$CYGPATH -u "$windows_path"` 61690 new_path="$unix_path" 61691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61692 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61693 new_path="$unix_path" 61694 fi 61695 61696 if test "x$path" != "x$new_path"; then 61697 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61699 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61700 fi 61701 61702 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61703 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61704 61705 else 61706 # We're on a unix platform. Hooray! :) 61707 path="$POTENTIAL_FREETYPE_LIB_PATH" 61708 has_space=`$ECHO "$path" | $GREP " "` 61709 if test "x$has_space" != x; then 61710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61711 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61712 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61713 fi 61714 61715 # Use eval to expand a potential ~ 61716 eval path="$path" 61717 if test ! -f "$path" && test ! -d "$path"; then 61718 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61719 fi 61720 61721 if test -d "$path"; then 61722 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61723 else 61724 dir="`$DIRNAME "$path"`" 61725 base="`$BASENAME "$path"`" 61726 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61727 fi 61728 fi 61729 fi 61730 61731 61732 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61734 $as_echo_n "checking for freetype includes... " >&6; } 61735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61736 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61737 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61739 $as_echo_n "checking for freetype libraries... " >&6; } 61740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61741 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61742 fi 61743 61744 61745 if test "x$FOUND_FREETYPE" != xyes; then 61746 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 61747 61748 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61749 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61750 METHOD="well-known location" 61751 61752 # Let's start with an optimistic view of the world :-) 61753 FOUND_FREETYPE=yes 61754 61755 # First look for the canonical freetype main include file ft2build.h. 61756 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61757 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61758 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61759 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61760 # Fail. 61761 FOUND_FREETYPE=no 61762 fi 61763 fi 61764 61765 if test "x$FOUND_FREETYPE" = xyes; then 61766 # Include file found, let's continue the sanity check. 61767 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61768 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61769 61770 # Reset to default value 61771 FREETYPE_BASE_NAME=freetype 61772 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61773 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61774 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61775 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61776 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61777 # for the .6 version explicitly. 61778 FREETYPE_BASE_NAME=freetype.6 61779 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61780 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61781 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61782 else 61783 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61784 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61785 FOUND_FREETYPE=no 61786 fi 61787 else 61788 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61789 # On Windows, we will need both .lib and .dll file. 61790 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61791 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61792 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61793 FOUND_FREETYPE=no 61794 fi 61795 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61796 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61797 # Found lib in isa dir, use that instead. 61798 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61800 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61801 fi 61802 fi 61803 fi 61804 61805 if test "x$FOUND_FREETYPE" = xyes; then 61806 61807 # Only process if variable expands to non-empty 61808 61809 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61811 61812 # Input might be given as Windows format, start by converting to 61813 # unix format. 61814 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61815 new_path=`$CYGPATH -u "$path"` 61816 61817 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61818 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61819 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61820 # "foo.exe" is OK but "foo" is an error. 61821 # 61822 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61823 # It is also a way to make sure we got the proper file name for the real test later on. 61824 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61825 if test "x$test_shortpath" = x; then 61826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61827 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61828 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61829 fi 61830 61831 # Call helper function which possibly converts this using DOS-style short mode. 61832 # If so, the updated path is stored in $new_path. 61833 61834 input_path="$new_path" 61835 # Check if we need to convert this using DOS-style short mode. If the path 61836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61837 # take no chances and rewrite it. 61838 # Note: m4 eats our [], so we need to use [ and ] instead. 61839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61840 if test "x$has_forbidden_chars" != x; then 61841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61842 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61843 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61844 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61845 # Going to short mode and back again did indeed matter. Since short mode is 61846 # case insensitive, let's make it lowercase to improve readability. 61847 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61848 # Now convert it back to Unix-style (cygpath) 61849 input_path=`$CYGPATH -u "$shortmode_path"` 61850 new_path="$input_path" 61851 fi 61852 fi 61853 61854 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61855 if test "x$test_cygdrive_prefix" = x; then 61856 # As a simple fix, exclude /usr/bin since it's not a real path. 61857 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61858 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61859 # a path prefixed by /cygdrive for fixpath to work. 61860 new_path="$CYGWIN_ROOT_PATH$input_path" 61861 fi 61862 fi 61863 61864 61865 if test "x$path" != "x$new_path"; then 61866 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61867 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61868 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61869 fi 61870 61871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61872 61873 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61874 has_colon=`$ECHO $path | $GREP ^.:` 61875 new_path="$path" 61876 if test "x$has_colon" = x; then 61877 # Not in mixed or Windows style, start by that. 61878 new_path=`cmd //c echo $path` 61879 fi 61880 61881 61882 input_path="$new_path" 61883 # Check if we need to convert this using DOS-style short mode. If the path 61884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61885 # take no chances and rewrite it. 61886 # Note: m4 eats our [], so we need to use [ and ] instead. 61887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61888 if test "x$has_forbidden_chars" != x; then 61889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61890 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61891 fi 61892 61893 61894 windows_path="$new_path" 61895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61896 unix_path=`$CYGPATH -u "$windows_path"` 61897 new_path="$unix_path" 61898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61900 new_path="$unix_path" 61901 fi 61902 61903 if test "x$path" != "x$new_path"; then 61904 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61906 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61907 fi 61908 61909 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61910 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61911 61912 else 61913 # We're on a unix platform. Hooray! :) 61914 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61915 has_space=`$ECHO "$path" | $GREP " "` 61916 if test "x$has_space" != x; then 61917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61918 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61919 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61920 fi 61921 61922 # Use eval to expand a potential ~ 61923 eval path="$path" 61924 if test ! -f "$path" && test ! -d "$path"; then 61925 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61926 fi 61927 61928 if test -d "$path"; then 61929 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61930 else 61931 dir="`$DIRNAME "$path"`" 61932 base="`$BASENAME "$path"`" 61933 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61934 fi 61935 fi 61936 fi 61937 61938 61939 # Only process if variable expands to non-empty 61940 61941 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61943 61944 # Input might be given as Windows format, start by converting to 61945 # unix format. 61946 path="$POTENTIAL_FREETYPE_LIB_PATH" 61947 new_path=`$CYGPATH -u "$path"` 61948 61949 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61950 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61951 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61952 # "foo.exe" is OK but "foo" is an error. 61953 # 61954 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61955 # It is also a way to make sure we got the proper file name for the real test later on. 61956 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61957 if test "x$test_shortpath" = x; then 61958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61959 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61960 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61961 fi 61962 61963 # Call helper function which possibly converts this using DOS-style short mode. 61964 # If so, the updated path is stored in $new_path. 61965 61966 input_path="$new_path" 61967 # Check if we need to convert this using DOS-style short mode. If the path 61968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61969 # take no chances and rewrite it. 61970 # Note: m4 eats our [], so we need to use [ and ] instead. 61971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61972 if test "x$has_forbidden_chars" != x; then 61973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61974 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61975 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61976 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61977 # Going to short mode and back again did indeed matter. Since short mode is 61978 # case insensitive, let's make it lowercase to improve readability. 61979 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61980 # Now convert it back to Unix-style (cygpath) 61981 input_path=`$CYGPATH -u "$shortmode_path"` 61982 new_path="$input_path" 61983 fi 61984 fi 61985 61986 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61987 if test "x$test_cygdrive_prefix" = x; then 61988 # As a simple fix, exclude /usr/bin since it's not a real path. 61989 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61990 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61991 # a path prefixed by /cygdrive for fixpath to work. 61992 new_path="$CYGWIN_ROOT_PATH$input_path" 61993 fi 61994 fi 61995 61996 61997 if test "x$path" != "x$new_path"; then 61998 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61999 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62000 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62001 fi 62002 62003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62004 62005 path="$POTENTIAL_FREETYPE_LIB_PATH" 62006 has_colon=`$ECHO $path | $GREP ^.:` 62007 new_path="$path" 62008 if test "x$has_colon" = x; then 62009 # Not in mixed or Windows style, start by that. 62010 new_path=`cmd //c echo $path` 62011 fi 62012 62013 62014 input_path="$new_path" 62015 # Check if we need to convert this using DOS-style short mode. If the path 62016 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62017 # take no chances and rewrite it. 62018 # Note: m4 eats our [], so we need to use [ and ] instead. 62019 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62020 if test "x$has_forbidden_chars" != x; then 62021 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62022 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62023 fi 62024 62025 62026 windows_path="$new_path" 62027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62028 unix_path=`$CYGPATH -u "$windows_path"` 62029 new_path="$unix_path" 62030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62032 new_path="$unix_path" 62033 fi 62034 62035 if test "x$path" != "x$new_path"; then 62036 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62037 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62038 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62039 fi 62040 62041 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62042 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62043 62044 else 62045 # We're on a unix platform. Hooray! :) 62046 path="$POTENTIAL_FREETYPE_LIB_PATH" 62047 has_space=`$ECHO "$path" | $GREP " "` 62048 if test "x$has_space" != x; then 62049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62050 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62051 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62052 fi 62053 62054 # Use eval to expand a potential ~ 62055 eval path="$path" 62056 if test ! -f "$path" && test ! -d "$path"; then 62057 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62058 fi 62059 62060 if test -d "$path"; then 62061 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62062 else 62063 dir="`$DIRNAME "$path"`" 62064 base="`$BASENAME "$path"`" 62065 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62066 fi 62067 fi 62068 fi 62069 62070 62071 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62073 $as_echo_n "checking for freetype includes... " >&6; } 62074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62075 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62076 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62078 $as_echo_n "checking for freetype libraries... " >&6; } 62079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62080 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62081 fi 62082 62083 fi 62084 if test "x$FOUND_FREETYPE" != xyes; then 62085 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 62086 62087 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62088 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62089 METHOD="well-known location" 62090 62091 # Let's start with an optimistic view of the world :-) 62092 FOUND_FREETYPE=yes 62093 62094 # First look for the canonical freetype main include file ft2build.h. 62095 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62096 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62097 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62098 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62099 # Fail. 62100 FOUND_FREETYPE=no 62101 fi 62102 fi 62103 62104 if test "x$FOUND_FREETYPE" = xyes; then 62105 # Include file found, let's continue the sanity check. 62106 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62107 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62108 62109 # Reset to default value 62110 FREETYPE_BASE_NAME=freetype 62111 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62112 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62113 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62114 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62115 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62116 # for the .6 version explicitly. 62117 FREETYPE_BASE_NAME=freetype.6 62118 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62119 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62120 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62121 else 62122 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62123 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62124 FOUND_FREETYPE=no 62125 fi 62126 else 62127 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62128 # On Windows, we will need both .lib and .dll file. 62129 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62130 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62131 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62132 FOUND_FREETYPE=no 62133 fi 62134 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62135 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62136 # Found lib in isa dir, use that instead. 62137 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62139 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62140 fi 62141 fi 62142 fi 62143 62144 if test "x$FOUND_FREETYPE" = xyes; then 62145 62146 # Only process if variable expands to non-empty 62147 62148 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62150 62151 # Input might be given as Windows format, start by converting to 62152 # unix format. 62153 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62154 new_path=`$CYGPATH -u "$path"` 62155 62156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62159 # "foo.exe" is OK but "foo" is an error. 62160 # 62161 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62162 # It is also a way to make sure we got the proper file name for the real test later on. 62163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62164 if test "x$test_shortpath" = x; then 62165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62166 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62167 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62168 fi 62169 62170 # Call helper function which possibly converts this using DOS-style short mode. 62171 # If so, the updated path is stored in $new_path. 62172 62173 input_path="$new_path" 62174 # Check if we need to convert this using DOS-style short mode. If the path 62175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62176 # take no chances and rewrite it. 62177 # Note: m4 eats our [], so we need to use [ and ] instead. 62178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62179 if test "x$has_forbidden_chars" != x; then 62180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62181 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62182 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62183 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62184 # Going to short mode and back again did indeed matter. Since short mode is 62185 # case insensitive, let's make it lowercase to improve readability. 62186 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62187 # Now convert it back to Unix-style (cygpath) 62188 input_path=`$CYGPATH -u "$shortmode_path"` 62189 new_path="$input_path" 62190 fi 62191 fi 62192 62193 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62194 if test "x$test_cygdrive_prefix" = x; then 62195 # As a simple fix, exclude /usr/bin since it's not a real path. 62196 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62197 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62198 # a path prefixed by /cygdrive for fixpath to work. 62199 new_path="$CYGWIN_ROOT_PATH$input_path" 62200 fi 62201 fi 62202 62203 62204 if test "x$path" != "x$new_path"; then 62205 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62207 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62208 fi 62209 62210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62211 62212 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62213 has_colon=`$ECHO $path | $GREP ^.:` 62214 new_path="$path" 62215 if test "x$has_colon" = x; then 62216 # Not in mixed or Windows style, start by that. 62217 new_path=`cmd //c echo $path` 62218 fi 62219 62220 62221 input_path="$new_path" 62222 # Check if we need to convert this using DOS-style short mode. If the path 62223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62224 # take no chances and rewrite it. 62225 # Note: m4 eats our [], so we need to use [ and ] instead. 62226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62227 if test "x$has_forbidden_chars" != x; then 62228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62230 fi 62231 62232 62233 windows_path="$new_path" 62234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62235 unix_path=`$CYGPATH -u "$windows_path"` 62236 new_path="$unix_path" 62237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62239 new_path="$unix_path" 62240 fi 62241 62242 if test "x$path" != "x$new_path"; then 62243 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62245 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62246 fi 62247 62248 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62249 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62250 62251 else 62252 # We're on a unix platform. Hooray! :) 62253 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62254 has_space=`$ECHO "$path" | $GREP " "` 62255 if test "x$has_space" != x; then 62256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62257 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62258 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62259 fi 62260 62261 # Use eval to expand a potential ~ 62262 eval path="$path" 62263 if test ! -f "$path" && test ! -d "$path"; then 62264 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62265 fi 62266 62267 if test -d "$path"; then 62268 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62269 else 62270 dir="`$DIRNAME "$path"`" 62271 base="`$BASENAME "$path"`" 62272 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62273 fi 62274 fi 62275 fi 62276 62277 62278 # Only process if variable expands to non-empty 62279 62280 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62282 62283 # Input might be given as Windows format, start by converting to 62284 # unix format. 62285 path="$POTENTIAL_FREETYPE_LIB_PATH" 62286 new_path=`$CYGPATH -u "$path"` 62287 62288 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62289 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62290 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62291 # "foo.exe" is OK but "foo" is an error. 62292 # 62293 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62294 # It is also a way to make sure we got the proper file name for the real test later on. 62295 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62296 if test "x$test_shortpath" = x; then 62297 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62298 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62299 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62300 fi 62301 62302 # Call helper function which possibly converts this using DOS-style short mode. 62303 # If so, the updated path is stored in $new_path. 62304 62305 input_path="$new_path" 62306 # Check if we need to convert this using DOS-style short mode. If the path 62307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62308 # take no chances and rewrite it. 62309 # Note: m4 eats our [], so we need to use [ and ] instead. 62310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62311 if test "x$has_forbidden_chars" != x; then 62312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62313 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62314 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62315 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62316 # Going to short mode and back again did indeed matter. Since short mode is 62317 # case insensitive, let's make it lowercase to improve readability. 62318 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62319 # Now convert it back to Unix-style (cygpath) 62320 input_path=`$CYGPATH -u "$shortmode_path"` 62321 new_path="$input_path" 62322 fi 62323 fi 62324 62325 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62326 if test "x$test_cygdrive_prefix" = x; then 62327 # As a simple fix, exclude /usr/bin since it's not a real path. 62328 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62329 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62330 # a path prefixed by /cygdrive for fixpath to work. 62331 new_path="$CYGWIN_ROOT_PATH$input_path" 62332 fi 62333 fi 62334 62335 62336 if test "x$path" != "x$new_path"; then 62337 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62338 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62339 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62340 fi 62341 62342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62343 62344 path="$POTENTIAL_FREETYPE_LIB_PATH" 62345 has_colon=`$ECHO $path | $GREP ^.:` 62346 new_path="$path" 62347 if test "x$has_colon" = x; then 62348 # Not in mixed or Windows style, start by that. 62349 new_path=`cmd //c echo $path` 62350 fi 62351 62352 62353 input_path="$new_path" 62354 # Check if we need to convert this using DOS-style short mode. If the path 62355 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62356 # take no chances and rewrite it. 62357 # Note: m4 eats our [], so we need to use [ and ] instead. 62358 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62359 if test "x$has_forbidden_chars" != x; then 62360 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62361 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62362 fi 62363 62364 62365 windows_path="$new_path" 62366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62367 unix_path=`$CYGPATH -u "$windows_path"` 62368 new_path="$unix_path" 62369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62371 new_path="$unix_path" 62372 fi 62373 62374 if test "x$path" != "x$new_path"; then 62375 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62377 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62378 fi 62379 62380 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62381 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62382 62383 else 62384 # We're on a unix platform. Hooray! :) 62385 path="$POTENTIAL_FREETYPE_LIB_PATH" 62386 has_space=`$ECHO "$path" | $GREP " "` 62387 if test "x$has_space" != x; then 62388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62389 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62390 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62391 fi 62392 62393 # Use eval to expand a potential ~ 62394 eval path="$path" 62395 if test ! -f "$path" && test ! -d "$path"; then 62396 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62397 fi 62398 62399 if test -d "$path"; then 62400 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62401 else 62402 dir="`$DIRNAME "$path"`" 62403 base="`$BASENAME "$path"`" 62404 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62405 fi 62406 fi 62407 fi 62408 62409 62410 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62412 $as_echo_n "checking for freetype includes... " >&6; } 62413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62414 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62415 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62417 $as_echo_n "checking for freetype libraries... " >&6; } 62418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62419 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62420 fi 62421 62422 fi 62423 62424 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 62425 if test "x$FOUND_FREETYPE" != xyes; then 62426 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 62427 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 62428 62429 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62430 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62431 METHOD="well-known location" 62432 62433 # Let's start with an optimistic view of the world :-) 62434 FOUND_FREETYPE=yes 62435 62436 # First look for the canonical freetype main include file ft2build.h. 62437 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62438 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62439 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62440 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62441 # Fail. 62442 FOUND_FREETYPE=no 62443 fi 62444 fi 62445 62446 if test "x$FOUND_FREETYPE" = xyes; then 62447 # Include file found, let's continue the sanity check. 62448 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62449 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62450 62451 # Reset to default value 62452 FREETYPE_BASE_NAME=freetype 62453 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62454 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62455 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62456 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62457 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62458 # for the .6 version explicitly. 62459 FREETYPE_BASE_NAME=freetype.6 62460 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62461 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62462 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62463 else 62464 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62465 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62466 FOUND_FREETYPE=no 62467 fi 62468 else 62469 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62470 # On Windows, we will need both .lib and .dll file. 62471 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62472 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62473 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62474 FOUND_FREETYPE=no 62475 fi 62476 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62477 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62478 # Found lib in isa dir, use that instead. 62479 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62480 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62481 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62482 fi 62483 fi 62484 fi 62485 62486 if test "x$FOUND_FREETYPE" = xyes; then 62487 62488 # Only process if variable expands to non-empty 62489 62490 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62492 62493 # Input might be given as Windows format, start by converting to 62494 # unix format. 62495 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62496 new_path=`$CYGPATH -u "$path"` 62497 62498 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62499 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62500 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62501 # "foo.exe" is OK but "foo" is an error. 62502 # 62503 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62504 # It is also a way to make sure we got the proper file name for the real test later on. 62505 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62506 if test "x$test_shortpath" = x; then 62507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62508 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62509 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62510 fi 62511 62512 # Call helper function which possibly converts this using DOS-style short mode. 62513 # If so, the updated path is stored in $new_path. 62514 62515 input_path="$new_path" 62516 # Check if we need to convert this using DOS-style short mode. If the path 62517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62518 # take no chances and rewrite it. 62519 # Note: m4 eats our [], so we need to use [ and ] instead. 62520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62521 if test "x$has_forbidden_chars" != x; then 62522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62523 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62524 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62525 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62526 # Going to short mode and back again did indeed matter. Since short mode is 62527 # case insensitive, let's make it lowercase to improve readability. 62528 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62529 # Now convert it back to Unix-style (cygpath) 62530 input_path=`$CYGPATH -u "$shortmode_path"` 62531 new_path="$input_path" 62532 fi 62533 fi 62534 62535 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62536 if test "x$test_cygdrive_prefix" = x; then 62537 # As a simple fix, exclude /usr/bin since it's not a real path. 62538 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62539 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62540 # a path prefixed by /cygdrive for fixpath to work. 62541 new_path="$CYGWIN_ROOT_PATH$input_path" 62542 fi 62543 fi 62544 62545 62546 if test "x$path" != "x$new_path"; then 62547 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62549 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62550 fi 62551 62552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62553 62554 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62555 has_colon=`$ECHO $path | $GREP ^.:` 62556 new_path="$path" 62557 if test "x$has_colon" = x; then 62558 # Not in mixed or Windows style, start by that. 62559 new_path=`cmd //c echo $path` 62560 fi 62561 62562 62563 input_path="$new_path" 62564 # Check if we need to convert this using DOS-style short mode. If the path 62565 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62566 # take no chances and rewrite it. 62567 # Note: m4 eats our [], so we need to use [ and ] instead. 62568 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62569 if test "x$has_forbidden_chars" != x; then 62570 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62571 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62572 fi 62573 62574 62575 windows_path="$new_path" 62576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62577 unix_path=`$CYGPATH -u "$windows_path"` 62578 new_path="$unix_path" 62579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62581 new_path="$unix_path" 62582 fi 62583 62584 if test "x$path" != "x$new_path"; then 62585 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62587 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62588 fi 62589 62590 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62591 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62592 62593 else 62594 # We're on a unix platform. Hooray! :) 62595 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62596 has_space=`$ECHO "$path" | $GREP " "` 62597 if test "x$has_space" != x; then 62598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62599 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62600 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62601 fi 62602 62603 # Use eval to expand a potential ~ 62604 eval path="$path" 62605 if test ! -f "$path" && test ! -d "$path"; then 62606 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62607 fi 62608 62609 if test -d "$path"; then 62610 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62611 else 62612 dir="`$DIRNAME "$path"`" 62613 base="`$BASENAME "$path"`" 62614 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62615 fi 62616 fi 62617 fi 62618 62619 62620 # Only process if variable expands to non-empty 62621 62622 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62624 62625 # Input might be given as Windows format, start by converting to 62626 # unix format. 62627 path="$POTENTIAL_FREETYPE_LIB_PATH" 62628 new_path=`$CYGPATH -u "$path"` 62629 62630 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62631 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62632 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62633 # "foo.exe" is OK but "foo" is an error. 62634 # 62635 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62636 # It is also a way to make sure we got the proper file name for the real test later on. 62637 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62638 if test "x$test_shortpath" = x; then 62639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62640 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62641 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62642 fi 62643 62644 # Call helper function which possibly converts this using DOS-style short mode. 62645 # If so, the updated path is stored in $new_path. 62646 62647 input_path="$new_path" 62648 # Check if we need to convert this using DOS-style short mode. If the path 62649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62650 # take no chances and rewrite it. 62651 # Note: m4 eats our [], so we need to use [ and ] instead. 62652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62653 if test "x$has_forbidden_chars" != x; then 62654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62655 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62656 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62657 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62658 # Going to short mode and back again did indeed matter. Since short mode is 62659 # case insensitive, let's make it lowercase to improve readability. 62660 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62661 # Now convert it back to Unix-style (cygpath) 62662 input_path=`$CYGPATH -u "$shortmode_path"` 62663 new_path="$input_path" 62664 fi 62665 fi 62666 62667 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62668 if test "x$test_cygdrive_prefix" = x; then 62669 # As a simple fix, exclude /usr/bin since it's not a real path. 62670 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62671 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62672 # a path prefixed by /cygdrive for fixpath to work. 62673 new_path="$CYGWIN_ROOT_PATH$input_path" 62674 fi 62675 fi 62676 62677 62678 if test "x$path" != "x$new_path"; then 62679 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62681 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62682 fi 62683 62684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62685 62686 path="$POTENTIAL_FREETYPE_LIB_PATH" 62687 has_colon=`$ECHO $path | $GREP ^.:` 62688 new_path="$path" 62689 if test "x$has_colon" = x; then 62690 # Not in mixed or Windows style, start by that. 62691 new_path=`cmd //c echo $path` 62692 fi 62693 62694 62695 input_path="$new_path" 62696 # Check if we need to convert this using DOS-style short mode. If the path 62697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62698 # take no chances and rewrite it. 62699 # Note: m4 eats our [], so we need to use [ and ] instead. 62700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62701 if test "x$has_forbidden_chars" != x; then 62702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62703 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62704 fi 62705 62706 62707 windows_path="$new_path" 62708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62709 unix_path=`$CYGPATH -u "$windows_path"` 62710 new_path="$unix_path" 62711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62713 new_path="$unix_path" 62714 fi 62715 62716 if test "x$path" != "x$new_path"; then 62717 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62719 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62720 fi 62721 62722 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62723 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62724 62725 else 62726 # We're on a unix platform. Hooray! :) 62727 path="$POTENTIAL_FREETYPE_LIB_PATH" 62728 has_space=`$ECHO "$path" | $GREP " "` 62729 if test "x$has_space" != x; then 62730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62731 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62732 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62733 fi 62734 62735 # Use eval to expand a potential ~ 62736 eval path="$path" 62737 if test ! -f "$path" && test ! -d "$path"; then 62738 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62739 fi 62740 62741 if test -d "$path"; then 62742 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62743 else 62744 dir="`$DIRNAME "$path"`" 62745 base="`$BASENAME "$path"`" 62746 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62747 fi 62748 fi 62749 fi 62750 62751 62752 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62754 $as_echo_n "checking for freetype includes... " >&6; } 62755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62756 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62757 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62759 $as_echo_n "checking for freetype libraries... " >&6; } 62760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62761 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62762 fi 62763 62764 fi 62765 fi 62766 62767 if test "x$FOUND_FREETYPE" != xyes; then 62768 FREETYPE_BASE_DIR="$SYSROOT/usr" 62769 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 62770 62771 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62772 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 62773 METHOD="well-known location" 62774 62775 # Let's start with an optimistic view of the world :-) 62776 FOUND_FREETYPE=yes 62777 62778 # First look for the canonical freetype main include file ft2build.h. 62779 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62780 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62781 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62782 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62783 # Fail. 62784 FOUND_FREETYPE=no 62785 fi 62786 fi 62787 62788 if test "x$FOUND_FREETYPE" = xyes; then 62789 # Include file found, let's continue the sanity check. 62790 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62791 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62792 62793 # Reset to default value 62794 FREETYPE_BASE_NAME=freetype 62795 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62796 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62797 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62798 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62799 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62800 # for the .6 version explicitly. 62801 FREETYPE_BASE_NAME=freetype.6 62802 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62803 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62804 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62805 else 62806 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62807 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62808 FOUND_FREETYPE=no 62809 fi 62810 else 62811 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62812 # On Windows, we will need both .lib and .dll file. 62813 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62814 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62815 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62816 FOUND_FREETYPE=no 62817 fi 62818 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62819 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62820 # Found lib in isa dir, use that instead. 62821 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62822 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62823 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62824 fi 62825 fi 62826 fi 62827 62828 if test "x$FOUND_FREETYPE" = xyes; then 62829 62830 # Only process if variable expands to non-empty 62831 62832 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62834 62835 # Input might be given as Windows format, start by converting to 62836 # unix format. 62837 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62838 new_path=`$CYGPATH -u "$path"` 62839 62840 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62841 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62842 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62843 # "foo.exe" is OK but "foo" is an error. 62844 # 62845 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62846 # It is also a way to make sure we got the proper file name for the real test later on. 62847 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62848 if test "x$test_shortpath" = x; then 62849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62850 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62851 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62852 fi 62853 62854 # Call helper function which possibly converts this using DOS-style short mode. 62855 # If so, the updated path is stored in $new_path. 62856 62857 input_path="$new_path" 62858 # Check if we need to convert this using DOS-style short mode. If the path 62859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62860 # take no chances and rewrite it. 62861 # Note: m4 eats our [], so we need to use [ and ] instead. 62862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62863 if test "x$has_forbidden_chars" != x; then 62864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62868 # Going to short mode and back again did indeed matter. Since short mode is 62869 # case insensitive, let's make it lowercase to improve readability. 62870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62871 # Now convert it back to Unix-style (cygpath) 62872 input_path=`$CYGPATH -u "$shortmode_path"` 62873 new_path="$input_path" 62874 fi 62875 fi 62876 62877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62878 if test "x$test_cygdrive_prefix" = x; then 62879 # As a simple fix, exclude /usr/bin since it's not a real path. 62880 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62882 # a path prefixed by /cygdrive for fixpath to work. 62883 new_path="$CYGWIN_ROOT_PATH$input_path" 62884 fi 62885 fi 62886 62887 62888 if test "x$path" != "x$new_path"; then 62889 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62891 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62892 fi 62893 62894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62895 62896 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62897 has_colon=`$ECHO $path | $GREP ^.:` 62898 new_path="$path" 62899 if test "x$has_colon" = x; then 62900 # Not in mixed or Windows style, start by that. 62901 new_path=`cmd //c echo $path` 62902 fi 62903 62904 62905 input_path="$new_path" 62906 # Check if we need to convert this using DOS-style short mode. If the path 62907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62908 # take no chances and rewrite it. 62909 # Note: m4 eats our [], so we need to use [ and ] instead. 62910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62911 if test "x$has_forbidden_chars" != x; then 62912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62913 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62914 fi 62915 62916 62917 windows_path="$new_path" 62918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62919 unix_path=`$CYGPATH -u "$windows_path"` 62920 new_path="$unix_path" 62921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62923 new_path="$unix_path" 62924 fi 62925 62926 if test "x$path" != "x$new_path"; then 62927 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62929 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62930 fi 62931 62932 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62933 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62934 62935 else 62936 # We're on a unix platform. Hooray! :) 62937 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62938 has_space=`$ECHO "$path" | $GREP " "` 62939 if test "x$has_space" != x; then 62940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62942 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62943 fi 62944 62945 # Use eval to expand a potential ~ 62946 eval path="$path" 62947 if test ! -f "$path" && test ! -d "$path"; then 62948 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62949 fi 62950 62951 if test -d "$path"; then 62952 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62953 else 62954 dir="`$DIRNAME "$path"`" 62955 base="`$BASENAME "$path"`" 62956 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62957 fi 62958 fi 62959 fi 62960 62961 62962 # Only process if variable expands to non-empty 62963 62964 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62966 62967 # Input might be given as Windows format, start by converting to 62968 # unix format. 62969 path="$POTENTIAL_FREETYPE_LIB_PATH" 62970 new_path=`$CYGPATH -u "$path"` 62971 62972 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62973 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62974 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62975 # "foo.exe" is OK but "foo" is an error. 62976 # 62977 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62978 # It is also a way to make sure we got the proper file name for the real test later on. 62979 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62980 if test "x$test_shortpath" = x; then 62981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62982 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62983 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62984 fi 62985 62986 # Call helper function which possibly converts this using DOS-style short mode. 62987 # If so, the updated path is stored in $new_path. 62988 62989 input_path="$new_path" 62990 # Check if we need to convert this using DOS-style short mode. If the path 62991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62992 # take no chances and rewrite it. 62993 # Note: m4 eats our [], so we need to use [ and ] instead. 62994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62995 if test "x$has_forbidden_chars" != x; then 62996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62997 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62998 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62999 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63000 # Going to short mode and back again did indeed matter. Since short mode is 63001 # case insensitive, let's make it lowercase to improve readability. 63002 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63003 # Now convert it back to Unix-style (cygpath) 63004 input_path=`$CYGPATH -u "$shortmode_path"` 63005 new_path="$input_path" 63006 fi 63007 fi 63008 63009 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63010 if test "x$test_cygdrive_prefix" = x; then 63011 # As a simple fix, exclude /usr/bin since it's not a real path. 63012 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63013 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63014 # a path prefixed by /cygdrive for fixpath to work. 63015 new_path="$CYGWIN_ROOT_PATH$input_path" 63016 fi 63017 fi 63018 63019 63020 if test "x$path" != "x$new_path"; then 63021 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63023 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63024 fi 63025 63026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63027 63028 path="$POTENTIAL_FREETYPE_LIB_PATH" 63029 has_colon=`$ECHO $path | $GREP ^.:` 63030 new_path="$path" 63031 if test "x$has_colon" = x; then 63032 # Not in mixed or Windows style, start by that. 63033 new_path=`cmd //c echo $path` 63034 fi 63035 63036 63037 input_path="$new_path" 63038 # Check if we need to convert this using DOS-style short mode. If the path 63039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63040 # take no chances and rewrite it. 63041 # Note: m4 eats our [], so we need to use [ and ] instead. 63042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63043 if test "x$has_forbidden_chars" != x; then 63044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63046 fi 63047 63048 63049 windows_path="$new_path" 63050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63051 unix_path=`$CYGPATH -u "$windows_path"` 63052 new_path="$unix_path" 63053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63055 new_path="$unix_path" 63056 fi 63057 63058 if test "x$path" != "x$new_path"; then 63059 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63061 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63062 fi 63063 63064 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63065 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63066 63067 else 63068 # We're on a unix platform. Hooray! :) 63069 path="$POTENTIAL_FREETYPE_LIB_PATH" 63070 has_space=`$ECHO "$path" | $GREP " "` 63071 if test "x$has_space" != x; then 63072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63073 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63074 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63075 fi 63076 63077 # Use eval to expand a potential ~ 63078 eval path="$path" 63079 if test ! -f "$path" && test ! -d "$path"; then 63080 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63081 fi 63082 63083 if test -d "$path"; then 63084 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63085 else 63086 dir="`$DIRNAME "$path"`" 63087 base="`$BASENAME "$path"`" 63088 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63089 fi 63090 fi 63091 fi 63092 63093 63094 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63096 $as_echo_n "checking for freetype includes... " >&6; } 63097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63098 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63099 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63101 $as_echo_n "checking for freetype libraries... " >&6; } 63102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63103 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63104 fi 63105 63106 else 63107 63108 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63109 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 63110 METHOD="well-known location" 63111 63112 # Let's start with an optimistic view of the world :-) 63113 FOUND_FREETYPE=yes 63114 63115 # First look for the canonical freetype main include file ft2build.h. 63116 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63117 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63118 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63119 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63120 # Fail. 63121 FOUND_FREETYPE=no 63122 fi 63123 fi 63124 63125 if test "x$FOUND_FREETYPE" = xyes; then 63126 # Include file found, let's continue the sanity check. 63127 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63128 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63129 63130 # Reset to default value 63131 FREETYPE_BASE_NAME=freetype 63132 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63133 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63134 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63135 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63136 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63137 # for the .6 version explicitly. 63138 FREETYPE_BASE_NAME=freetype.6 63139 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63140 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63141 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63142 else 63143 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63144 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63145 FOUND_FREETYPE=no 63146 fi 63147 else 63148 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63149 # On Windows, we will need both .lib and .dll file. 63150 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63151 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63152 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63153 FOUND_FREETYPE=no 63154 fi 63155 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63156 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63157 # Found lib in isa dir, use that instead. 63158 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63159 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63160 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63161 fi 63162 fi 63163 fi 63164 63165 if test "x$FOUND_FREETYPE" = xyes; then 63166 63167 # Only process if variable expands to non-empty 63168 63169 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63171 63172 # Input might be given as Windows format, start by converting to 63173 # unix format. 63174 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63175 new_path=`$CYGPATH -u "$path"` 63176 63177 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63178 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63179 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63180 # "foo.exe" is OK but "foo" is an error. 63181 # 63182 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63183 # It is also a way to make sure we got the proper file name for the real test later on. 63184 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63185 if test "x$test_shortpath" = x; then 63186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63187 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63188 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63189 fi 63190 63191 # Call helper function which possibly converts this using DOS-style short mode. 63192 # If so, the updated path is stored in $new_path. 63193 63194 input_path="$new_path" 63195 # Check if we need to convert this using DOS-style short mode. If the path 63196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63197 # take no chances and rewrite it. 63198 # Note: m4 eats our [], so we need to use [ and ] instead. 63199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63200 if test "x$has_forbidden_chars" != x; then 63201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63202 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63203 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63204 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63205 # Going to short mode and back again did indeed matter. Since short mode is 63206 # case insensitive, let's make it lowercase to improve readability. 63207 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63208 # Now convert it back to Unix-style (cygpath) 63209 input_path=`$CYGPATH -u "$shortmode_path"` 63210 new_path="$input_path" 63211 fi 63212 fi 63213 63214 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63215 if test "x$test_cygdrive_prefix" = x; then 63216 # As a simple fix, exclude /usr/bin since it's not a real path. 63217 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63218 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63219 # a path prefixed by /cygdrive for fixpath to work. 63220 new_path="$CYGWIN_ROOT_PATH$input_path" 63221 fi 63222 fi 63223 63224 63225 if test "x$path" != "x$new_path"; then 63226 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63228 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63229 fi 63230 63231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63232 63233 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63234 has_colon=`$ECHO $path | $GREP ^.:` 63235 new_path="$path" 63236 if test "x$has_colon" = x; then 63237 # Not in mixed or Windows style, start by that. 63238 new_path=`cmd //c echo $path` 63239 fi 63240 63241 63242 input_path="$new_path" 63243 # Check if we need to convert this using DOS-style short mode. If the path 63244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63245 # take no chances and rewrite it. 63246 # Note: m4 eats our [], so we need to use [ and ] instead. 63247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63248 if test "x$has_forbidden_chars" != x; then 63249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63251 fi 63252 63253 63254 windows_path="$new_path" 63255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63256 unix_path=`$CYGPATH -u "$windows_path"` 63257 new_path="$unix_path" 63258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63260 new_path="$unix_path" 63261 fi 63262 63263 if test "x$path" != "x$new_path"; then 63264 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63266 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63267 fi 63268 63269 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63270 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63271 63272 else 63273 # We're on a unix platform. Hooray! :) 63274 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63275 has_space=`$ECHO "$path" | $GREP " "` 63276 if test "x$has_space" != x; then 63277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63278 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63279 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63280 fi 63281 63282 # Use eval to expand a potential ~ 63283 eval path="$path" 63284 if test ! -f "$path" && test ! -d "$path"; then 63285 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63286 fi 63287 63288 if test -d "$path"; then 63289 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63290 else 63291 dir="`$DIRNAME "$path"`" 63292 base="`$BASENAME "$path"`" 63293 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63294 fi 63295 fi 63296 fi 63297 63298 63299 # Only process if variable expands to non-empty 63300 63301 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63303 63304 # Input might be given as Windows format, start by converting to 63305 # unix format. 63306 path="$POTENTIAL_FREETYPE_LIB_PATH" 63307 new_path=`$CYGPATH -u "$path"` 63308 63309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63312 # "foo.exe" is OK but "foo" is an error. 63313 # 63314 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63315 # It is also a way to make sure we got the proper file name for the real test later on. 63316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63317 if test "x$test_shortpath" = x; then 63318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63319 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63320 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63321 fi 63322 63323 # Call helper function which possibly converts this using DOS-style short mode. 63324 # If so, the updated path is stored in $new_path. 63325 63326 input_path="$new_path" 63327 # Check if we need to convert this using DOS-style short mode. If the path 63328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63329 # take no chances and rewrite it. 63330 # Note: m4 eats our [], so we need to use [ and ] instead. 63331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63332 if test "x$has_forbidden_chars" != x; then 63333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63334 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63335 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63336 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63337 # Going to short mode and back again did indeed matter. Since short mode is 63338 # case insensitive, let's make it lowercase to improve readability. 63339 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63340 # Now convert it back to Unix-style (cygpath) 63341 input_path=`$CYGPATH -u "$shortmode_path"` 63342 new_path="$input_path" 63343 fi 63344 fi 63345 63346 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63347 if test "x$test_cygdrive_prefix" = x; then 63348 # As a simple fix, exclude /usr/bin since it's not a real path. 63349 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63350 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63351 # a path prefixed by /cygdrive for fixpath to work. 63352 new_path="$CYGWIN_ROOT_PATH$input_path" 63353 fi 63354 fi 63355 63356 63357 if test "x$path" != "x$new_path"; then 63358 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63360 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63361 fi 63362 63363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63364 63365 path="$POTENTIAL_FREETYPE_LIB_PATH" 63366 has_colon=`$ECHO $path | $GREP ^.:` 63367 new_path="$path" 63368 if test "x$has_colon" = x; then 63369 # Not in mixed or Windows style, start by that. 63370 new_path=`cmd //c echo $path` 63371 fi 63372 63373 63374 input_path="$new_path" 63375 # Check if we need to convert this using DOS-style short mode. If the path 63376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63377 # take no chances and rewrite it. 63378 # Note: m4 eats our [], so we need to use [ and ] instead. 63379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63380 if test "x$has_forbidden_chars" != x; then 63381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63383 fi 63384 63385 63386 windows_path="$new_path" 63387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63388 unix_path=`$CYGPATH -u "$windows_path"` 63389 new_path="$unix_path" 63390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63392 new_path="$unix_path" 63393 fi 63394 63395 if test "x$path" != "x$new_path"; then 63396 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63398 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63399 fi 63400 63401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63403 63404 else 63405 # We're on a unix platform. Hooray! :) 63406 path="$POTENTIAL_FREETYPE_LIB_PATH" 63407 has_space=`$ECHO "$path" | $GREP " "` 63408 if test "x$has_space" != x; then 63409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63410 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63411 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63412 fi 63413 63414 # Use eval to expand a potential ~ 63415 eval path="$path" 63416 if test ! -f "$path" && test ! -d "$path"; then 63417 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63418 fi 63419 63420 if test -d "$path"; then 63421 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63422 else 63423 dir="`$DIRNAME "$path"`" 63424 base="`$BASENAME "$path"`" 63425 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63426 fi 63427 fi 63428 fi 63429 63430 63431 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63433 $as_echo_n "checking for freetype includes... " >&6; } 63434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63435 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63436 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63438 $as_echo_n "checking for freetype libraries... " >&6; } 63439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63440 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63441 fi 63442 63443 if test "x$FOUND_FREETYPE" != xyes; then 63444 63445 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63446 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 63447 METHOD="well-known location" 63448 63449 # Let's start with an optimistic view of the world :-) 63450 FOUND_FREETYPE=yes 63451 63452 # First look for the canonical freetype main include file ft2build.h. 63453 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63454 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63455 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63456 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63457 # Fail. 63458 FOUND_FREETYPE=no 63459 fi 63460 fi 63461 63462 if test "x$FOUND_FREETYPE" = xyes; then 63463 # Include file found, let's continue the sanity check. 63464 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63465 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63466 63467 # Reset to default value 63468 FREETYPE_BASE_NAME=freetype 63469 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63470 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63471 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63472 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63473 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63474 # for the .6 version explicitly. 63475 FREETYPE_BASE_NAME=freetype.6 63476 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63477 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63478 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63479 else 63480 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63481 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63482 FOUND_FREETYPE=no 63483 fi 63484 else 63485 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63486 # On Windows, we will need both .lib and .dll file. 63487 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63488 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63489 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63490 FOUND_FREETYPE=no 63491 fi 63492 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63493 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63494 # Found lib in isa dir, use that instead. 63495 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63496 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63497 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63498 fi 63499 fi 63500 fi 63501 63502 if test "x$FOUND_FREETYPE" = xyes; then 63503 63504 # Only process if variable expands to non-empty 63505 63506 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63508 63509 # Input might be given as Windows format, start by converting to 63510 # unix format. 63511 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63512 new_path=`$CYGPATH -u "$path"` 63513 63514 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63515 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63516 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63517 # "foo.exe" is OK but "foo" is an error. 63518 # 63519 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63520 # It is also a way to make sure we got the proper file name for the real test later on. 63521 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63522 if test "x$test_shortpath" = x; then 63523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63524 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63525 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63526 fi 63527 63528 # Call helper function which possibly converts this using DOS-style short mode. 63529 # If so, the updated path is stored in $new_path. 63530 63531 input_path="$new_path" 63532 # Check if we need to convert this using DOS-style short mode. If the path 63533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63534 # take no chances and rewrite it. 63535 # Note: m4 eats our [], so we need to use [ and ] instead. 63536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63537 if test "x$has_forbidden_chars" != x; then 63538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63539 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63540 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63541 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63542 # Going to short mode and back again did indeed matter. Since short mode is 63543 # case insensitive, let's make it lowercase to improve readability. 63544 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63545 # Now convert it back to Unix-style (cygpath) 63546 input_path=`$CYGPATH -u "$shortmode_path"` 63547 new_path="$input_path" 63548 fi 63549 fi 63550 63551 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63552 if test "x$test_cygdrive_prefix" = x; then 63553 # As a simple fix, exclude /usr/bin since it's not a real path. 63554 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63555 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63556 # a path prefixed by /cygdrive for fixpath to work. 63557 new_path="$CYGWIN_ROOT_PATH$input_path" 63558 fi 63559 fi 63560 63561 63562 if test "x$path" != "x$new_path"; then 63563 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63565 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63566 fi 63567 63568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63569 63570 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63571 has_colon=`$ECHO $path | $GREP ^.:` 63572 new_path="$path" 63573 if test "x$has_colon" = x; then 63574 # Not in mixed or Windows style, start by that. 63575 new_path=`cmd //c echo $path` 63576 fi 63577 63578 63579 input_path="$new_path" 63580 # Check if we need to convert this using DOS-style short mode. If the path 63581 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63582 # take no chances and rewrite it. 63583 # Note: m4 eats our [], so we need to use [ and ] instead. 63584 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63585 if test "x$has_forbidden_chars" != x; then 63586 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63587 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63588 fi 63589 63590 63591 windows_path="$new_path" 63592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63593 unix_path=`$CYGPATH -u "$windows_path"` 63594 new_path="$unix_path" 63595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63597 new_path="$unix_path" 63598 fi 63599 63600 if test "x$path" != "x$new_path"; then 63601 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63603 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63604 fi 63605 63606 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63607 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63608 63609 else 63610 # We're on a unix platform. Hooray! :) 63611 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63612 has_space=`$ECHO "$path" | $GREP " "` 63613 if test "x$has_space" != x; then 63614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63615 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63616 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63617 fi 63618 63619 # Use eval to expand a potential ~ 63620 eval path="$path" 63621 if test ! -f "$path" && test ! -d "$path"; then 63622 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63623 fi 63624 63625 if test -d "$path"; then 63626 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63627 else 63628 dir="`$DIRNAME "$path"`" 63629 base="`$BASENAME "$path"`" 63630 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63631 fi 63632 fi 63633 fi 63634 63635 63636 # Only process if variable expands to non-empty 63637 63638 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63640 63641 # Input might be given as Windows format, start by converting to 63642 # unix format. 63643 path="$POTENTIAL_FREETYPE_LIB_PATH" 63644 new_path=`$CYGPATH -u "$path"` 63645 63646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63649 # "foo.exe" is OK but "foo" is an error. 63650 # 63651 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63652 # It is also a way to make sure we got the proper file name for the real test later on. 63653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63654 if test "x$test_shortpath" = x; then 63655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63656 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63657 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63658 fi 63659 63660 # Call helper function which possibly converts this using DOS-style short mode. 63661 # If so, the updated path is stored in $new_path. 63662 63663 input_path="$new_path" 63664 # Check if we need to convert this using DOS-style short mode. If the path 63665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63666 # take no chances and rewrite it. 63667 # Note: m4 eats our [], so we need to use [ and ] instead. 63668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63669 if test "x$has_forbidden_chars" != x; then 63670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63674 # Going to short mode and back again did indeed matter. Since short mode is 63675 # case insensitive, let's make it lowercase to improve readability. 63676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63677 # Now convert it back to Unix-style (cygpath) 63678 input_path=`$CYGPATH -u "$shortmode_path"` 63679 new_path="$input_path" 63680 fi 63681 fi 63682 63683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63684 if test "x$test_cygdrive_prefix" = x; then 63685 # As a simple fix, exclude /usr/bin since it's not a real path. 63686 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63688 # a path prefixed by /cygdrive for fixpath to work. 63689 new_path="$CYGWIN_ROOT_PATH$input_path" 63690 fi 63691 fi 63692 63693 63694 if test "x$path" != "x$new_path"; then 63695 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63697 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63698 fi 63699 63700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63701 63702 path="$POTENTIAL_FREETYPE_LIB_PATH" 63703 has_colon=`$ECHO $path | $GREP ^.:` 63704 new_path="$path" 63705 if test "x$has_colon" = x; then 63706 # Not in mixed or Windows style, start by that. 63707 new_path=`cmd //c echo $path` 63708 fi 63709 63710 63711 input_path="$new_path" 63712 # Check if we need to convert this using DOS-style short mode. If the path 63713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63714 # take no chances and rewrite it. 63715 # Note: m4 eats our [], so we need to use [ and ] instead. 63716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63717 if test "x$has_forbidden_chars" != x; then 63718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63720 fi 63721 63722 63723 windows_path="$new_path" 63724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63725 unix_path=`$CYGPATH -u "$windows_path"` 63726 new_path="$unix_path" 63727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63729 new_path="$unix_path" 63730 fi 63731 63732 if test "x$path" != "x$new_path"; then 63733 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63735 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63736 fi 63737 63738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63740 63741 else 63742 # We're on a unix platform. Hooray! :) 63743 path="$POTENTIAL_FREETYPE_LIB_PATH" 63744 has_space=`$ECHO "$path" | $GREP " "` 63745 if test "x$has_space" != x; then 63746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63747 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63748 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63749 fi 63750 63751 # Use eval to expand a potential ~ 63752 eval path="$path" 63753 if test ! -f "$path" && test ! -d "$path"; then 63754 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63755 fi 63756 63757 if test -d "$path"; then 63758 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63759 else 63760 dir="`$DIRNAME "$path"`" 63761 base="`$BASENAME "$path"`" 63762 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63763 fi 63764 fi 63765 fi 63766 63767 63768 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63770 $as_echo_n "checking for freetype includes... " >&6; } 63771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63772 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63773 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63775 $as_echo_n "checking for freetype libraries... " >&6; } 63776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63777 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63778 fi 63779 63780 fi 63781 fi 63782 fi 63783 fi 63784 fi # end check in well-known locations 63785 63786 if test "x$FOUND_FREETYPE" != xyes; then 63787 63788 # Print a helpful message on how to acquire the necessary build dependency. 63789 # freetype is the help tag: freetype, cups, alsa etc 63790 MISSING_DEPENDENCY=freetype 63791 63792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63793 cygwin_help $MISSING_DEPENDENCY 63794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63795 msys_help $MISSING_DEPENDENCY 63796 else 63797 PKGHANDLER_COMMAND= 63798 63799 case $PKGHANDLER in 63800 apt-get) 63801 apt_help $MISSING_DEPENDENCY ;; 63802 yum) 63803 yum_help $MISSING_DEPENDENCY ;; 63804 brew) 63805 brew_help $MISSING_DEPENDENCY ;; 63806 port) 63807 port_help $MISSING_DEPENDENCY ;; 63808 pkgutil) 63809 pkgutil_help $MISSING_DEPENDENCY ;; 63810 pkgadd) 63811 pkgadd_help $MISSING_DEPENDENCY ;; 63812 esac 63813 63814 if test "x$PKGHANDLER_COMMAND" != x; then 63815 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63816 fi 63817 fi 63818 63819 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 63820 fi 63821 fi # end user specified settings 63822 63823 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 63824 if test "x$FREETYPE_CFLAGS" = x; then 63825 63826 # Only process if variable expands to non-empty 63827 63828 if test "x$FREETYPE_INCLUDE_PATH" != x; then 63829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63830 63831 # Input might be given as Windows format, start by converting to 63832 # unix format. 63833 path="$FREETYPE_INCLUDE_PATH" 63834 new_path=`$CYGPATH -u "$path"` 63835 63836 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63837 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63838 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63839 # "foo.exe" is OK but "foo" is an error. 63840 # 63841 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63842 # It is also a way to make sure we got the proper file name for the real test later on. 63843 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63844 if test "x$test_shortpath" = x; then 63845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63846 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63847 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 63848 fi 63849 63850 # Call helper function which possibly converts this using DOS-style short mode. 63851 # If so, the updated path is stored in $new_path. 63852 63853 input_path="$new_path" 63854 # Check if we need to convert this using DOS-style short mode. If the path 63855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63856 # take no chances and rewrite it. 63857 # Note: m4 eats our [], so we need to use [ and ] instead. 63858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63859 if test "x$has_forbidden_chars" != x; then 63860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63861 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63862 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63863 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63864 # Going to short mode and back again did indeed matter. Since short mode is 63865 # case insensitive, let's make it lowercase to improve readability. 63866 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63867 # Now convert it back to Unix-style (cygpath) 63868 input_path=`$CYGPATH -u "$shortmode_path"` 63869 new_path="$input_path" 63870 fi 63871 fi 63872 63873 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63874 if test "x$test_cygdrive_prefix" = x; then 63875 # As a simple fix, exclude /usr/bin since it's not a real path. 63876 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63877 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63878 # a path prefixed by /cygdrive for fixpath to work. 63879 new_path="$CYGWIN_ROOT_PATH$input_path" 63880 fi 63881 fi 63882 63883 63884 if test "x$path" != "x$new_path"; then 63885 FREETYPE_INCLUDE_PATH="$new_path" 63886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63887 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63888 fi 63889 63890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63891 63892 path="$FREETYPE_INCLUDE_PATH" 63893 has_colon=`$ECHO $path | $GREP ^.:` 63894 new_path="$path" 63895 if test "x$has_colon" = x; then 63896 # Not in mixed or Windows style, start by that. 63897 new_path=`cmd //c echo $path` 63898 fi 63899 63900 63901 input_path="$new_path" 63902 # Check if we need to convert this using DOS-style short mode. If the path 63903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63904 # take no chances and rewrite it. 63905 # Note: m4 eats our [], so we need to use [ and ] instead. 63906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63907 if test "x$has_forbidden_chars" != x; then 63908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63909 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63910 fi 63911 63912 63913 windows_path="$new_path" 63914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63915 unix_path=`$CYGPATH -u "$windows_path"` 63916 new_path="$unix_path" 63917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63919 new_path="$unix_path" 63920 fi 63921 63922 if test "x$path" != "x$new_path"; then 63923 FREETYPE_INCLUDE_PATH="$new_path" 63924 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63925 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63926 fi 63927 63928 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63929 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63930 63931 else 63932 # We're on a unix platform. Hooray! :) 63933 path="$FREETYPE_INCLUDE_PATH" 63934 has_space=`$ECHO "$path" | $GREP " "` 63935 if test "x$has_space" != x; then 63936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63937 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63938 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63939 fi 63940 63941 # Use eval to expand a potential ~ 63942 eval path="$path" 63943 if test ! -f "$path" && test ! -d "$path"; then 63944 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63945 fi 63946 63947 if test -d "$path"; then 63948 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63949 else 63950 dir="`$DIRNAME "$path"`" 63951 base="`$BASENAME "$path"`" 63952 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63953 fi 63954 fi 63955 fi 63956 63957 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 63958 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 63959 else 63960 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 63961 fi 63962 fi 63963 63964 if test "x$FREETYPE_LIBS" = x; then 63965 63966 # Only process if variable expands to non-empty 63967 63968 if test "x$FREETYPE_LIB_PATH" != x; then 63969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63970 63971 # Input might be given as Windows format, start by converting to 63972 # unix format. 63973 path="$FREETYPE_LIB_PATH" 63974 new_path=`$CYGPATH -u "$path"` 63975 63976 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63977 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63978 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63979 # "foo.exe" is OK but "foo" is an error. 63980 # 63981 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63982 # It is also a way to make sure we got the proper file name for the real test later on. 63983 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63984 if test "x$test_shortpath" = x; then 63985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63986 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63987 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 63988 fi 63989 63990 # Call helper function which possibly converts this using DOS-style short mode. 63991 # If so, the updated path is stored in $new_path. 63992 63993 input_path="$new_path" 63994 # Check if we need to convert this using DOS-style short mode. If the path 63995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63996 # take no chances and rewrite it. 63997 # Note: m4 eats our [], so we need to use [ and ] instead. 63998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63999 if test "x$has_forbidden_chars" != x; then 64000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64001 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64002 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64003 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64004 # Going to short mode and back again did indeed matter. Since short mode is 64005 # case insensitive, let's make it lowercase to improve readability. 64006 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64007 # Now convert it back to Unix-style (cygpath) 64008 input_path=`$CYGPATH -u "$shortmode_path"` 64009 new_path="$input_path" 64010 fi 64011 fi 64012 64013 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64014 if test "x$test_cygdrive_prefix" = x; then 64015 # As a simple fix, exclude /usr/bin since it's not a real path. 64016 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64017 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64018 # a path prefixed by /cygdrive for fixpath to work. 64019 new_path="$CYGWIN_ROOT_PATH$input_path" 64020 fi 64021 fi 64022 64023 64024 if test "x$path" != "x$new_path"; then 64025 FREETYPE_LIB_PATH="$new_path" 64026 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64027 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64028 fi 64029 64030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64031 64032 path="$FREETYPE_LIB_PATH" 64033 has_colon=`$ECHO $path | $GREP ^.:` 64034 new_path="$path" 64035 if test "x$has_colon" = x; then 64036 # Not in mixed or Windows style, start by that. 64037 new_path=`cmd //c echo $path` 64038 fi 64039 64040 64041 input_path="$new_path" 64042 # Check if we need to convert this using DOS-style short mode. If the path 64043 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64044 # take no chances and rewrite it. 64045 # Note: m4 eats our [], so we need to use [ and ] instead. 64046 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64047 if test "x$has_forbidden_chars" != x; then 64048 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64049 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64050 fi 64051 64052 64053 windows_path="$new_path" 64054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64055 unix_path=`$CYGPATH -u "$windows_path"` 64056 new_path="$unix_path" 64057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64058 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64059 new_path="$unix_path" 64060 fi 64061 64062 if test "x$path" != "x$new_path"; then 64063 FREETYPE_LIB_PATH="$new_path" 64064 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64065 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64066 fi 64067 64068 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64069 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64070 64071 else 64072 # We're on a unix platform. Hooray! :) 64073 path="$FREETYPE_LIB_PATH" 64074 has_space=`$ECHO "$path" | $GREP " "` 64075 if test "x$has_space" != x; then 64076 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64077 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64078 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64079 fi 64080 64081 # Use eval to expand a potential ~ 64082 eval path="$path" 64083 if test ! -f "$path" && test ! -d "$path"; then 64084 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64085 fi 64086 64087 if test -d "$path"; then 64088 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64089 else 64090 dir="`$DIRNAME "$path"`" 64091 base="`$BASENAME "$path"`" 64092 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64093 fi 64094 fi 64095 fi 64096 64097 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64098 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 64099 else 64100 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 64101 fi 64102 fi 64103 64104 # Try to compile it 64105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 64106 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 64107 ac_ext=cpp 64108 ac_cpp='$CXXCPP $CPPFLAGS' 64109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64112 64113 PREV_CXXCFLAGS="$CXXFLAGS" 64114 PREV_LIBS="$LIBS" 64115 PREV_CXX="$CXX" 64116 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 64117 LIBS="$LIBS $FREETYPE_LIBS" 64118 CXX="$FIXPATH $CXX" 64119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64120 /* end confdefs.h. */ 64121 64122 #include<ft2build.h> 64123 #include FT_FREETYPE_H 64124 int main () { 64125 FT_Init_FreeType(NULL); 64126 return 0; 64127 } 64128 64129 _ACEOF 64130 if ac_fn_cxx_try_link "$LINENO"; then : 64131 64132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64133 $as_echo "yes" >&6; } 64134 64135 else 64136 64137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64138 $as_echo "no" >&6; } 64139 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 64140 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 64141 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 64142 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 64143 64144 64145 # Print a helpful message on how to acquire the necessary build dependency. 64146 # freetype is the help tag: freetype, cups, alsa etc 64147 MISSING_DEPENDENCY=freetype 64148 64149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64150 cygwin_help $MISSING_DEPENDENCY 64151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64152 msys_help $MISSING_DEPENDENCY 64153 else 64154 PKGHANDLER_COMMAND= 64155 64156 case $PKGHANDLER in 64157 apt-get) 64158 apt_help $MISSING_DEPENDENCY ;; 64159 yum) 64160 yum_help $MISSING_DEPENDENCY ;; 64161 brew) 64162 brew_help $MISSING_DEPENDENCY ;; 64163 port) 64164 port_help $MISSING_DEPENDENCY ;; 64165 pkgutil) 64166 pkgutil_help $MISSING_DEPENDENCY ;; 64167 pkgadd) 64168 pkgadd_help $MISSING_DEPENDENCY ;; 64169 esac 64170 64171 if test "x$PKGHANDLER_COMMAND" != x; then 64172 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64173 fi 64174 fi 64175 64176 64177 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 64178 64179 64180 fi 64181 rm -f core conftest.err conftest.$ac_objext \ 64182 conftest$ac_exeext conftest.$ac_ext 64183 CXXCFLAGS="$PREV_CXXFLAGS" 64184 LIBS="$PREV_LIBS" 64185 CXX="$PREV_CXX" 64186 ac_ext=cpp 64187 ac_cpp='$CXXCPP $CPPFLAGS' 64188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64191 64192 64193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 64194 $as_echo_n "checking if we should bundle freetype... " >&6; } 64195 if test "x$BUNDLE_FREETYPE" = xyes; then 64196 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 64197 fi 64198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 64199 $as_echo "$BUNDLE_FREETYPE" >&6; } 64200 64201 fi # end freetype needed 64202 64203 FREETYPE_LICENSE="" 64204 if test "x$with_freetype_license" = "xyes"; then 64205 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 64206 elif test "x$with_freetype_license" != "x"; then 64207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 64208 $as_echo_n "checking for freetype license... " >&6; } 64209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 64210 $as_echo "$with_freetype_license" >&6; } 64211 FREETYPE_LICENSE="$with_freetype_license" 64212 64213 # Only process if variable expands to non-empty 64214 64215 if test "x$FREETYPE_LICENSE" != x; then 64216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64217 64218 # Input might be given as Windows format, start by converting to 64219 # unix format. 64220 path="$FREETYPE_LICENSE" 64221 new_path=`$CYGPATH -u "$path"` 64222 64223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64226 # "foo.exe" is OK but "foo" is an error. 64227 # 64228 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64229 # It is also a way to make sure we got the proper file name for the real test later on. 64230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64231 if test "x$test_shortpath" = x; then 64232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64233 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64234 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 64235 fi 64236 64237 # Call helper function which possibly converts this using DOS-style short mode. 64238 # If so, the updated path is stored in $new_path. 64239 64240 input_path="$new_path" 64241 # Check if we need to convert this using DOS-style short mode. If the path 64242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64243 # take no chances and rewrite it. 64244 # Note: m4 eats our [], so we need to use [ and ] instead. 64245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64246 if test "x$has_forbidden_chars" != x; then 64247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64251 # Going to short mode and back again did indeed matter. Since short mode is 64252 # case insensitive, let's make it lowercase to improve readability. 64253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64254 # Now convert it back to Unix-style (cygpath) 64255 input_path=`$CYGPATH -u "$shortmode_path"` 64256 new_path="$input_path" 64257 fi 64258 fi 64259 64260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64261 if test "x$test_cygdrive_prefix" = x; then 64262 # As a simple fix, exclude /usr/bin since it's not a real path. 64263 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64265 # a path prefixed by /cygdrive for fixpath to work. 64266 new_path="$CYGWIN_ROOT_PATH$input_path" 64267 fi 64268 fi 64269 64270 64271 if test "x$path" != "x$new_path"; then 64272 FREETYPE_LICENSE="$new_path" 64273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64274 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64275 fi 64276 64277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64278 64279 path="$FREETYPE_LICENSE" 64280 has_colon=`$ECHO $path | $GREP ^.:` 64281 new_path="$path" 64282 if test "x$has_colon" = x; then 64283 # Not in mixed or Windows style, start by that. 64284 new_path=`cmd //c echo $path` 64285 fi 64286 64287 64288 input_path="$new_path" 64289 # Check if we need to convert this using DOS-style short mode. If the path 64290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64291 # take no chances and rewrite it. 64292 # Note: m4 eats our [], so we need to use [ and ] instead. 64293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64294 if test "x$has_forbidden_chars" != x; then 64295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64297 fi 64298 64299 64300 windows_path="$new_path" 64301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64302 unix_path=`$CYGPATH -u "$windows_path"` 64303 new_path="$unix_path" 64304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64306 new_path="$unix_path" 64307 fi 64308 64309 if test "x$path" != "x$new_path"; then 64310 FREETYPE_LICENSE="$new_path" 64311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64312 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64313 fi 64314 64315 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64316 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64317 64318 else 64319 # We're on a unix platform. Hooray! :) 64320 path="$FREETYPE_LICENSE" 64321 has_space=`$ECHO "$path" | $GREP " "` 64322 if test "x$has_space" != x; then 64323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64324 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64325 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64326 fi 64327 64328 # Use eval to expand a potential ~ 64329 eval path="$path" 64330 if test ! -f "$path" && test ! -d "$path"; then 64331 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 64332 fi 64333 64334 if test -d "$path"; then 64335 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 64336 else 64337 dir="`$DIRNAME "$path"`" 64338 base="`$BASENAME "$path"`" 64339 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 64340 fi 64341 fi 64342 fi 64343 64344 if test ! -f "$FREETYPE_LICENSE"; then 64345 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 64346 fi 64347 fi 64348 64349 64350 64351 64352 64353 64354 64355 64356 # Check whether --with-alsa was given. 64357 if test "${with_alsa+set}" = set; then : 64358 withval=$with_alsa; 64359 fi 64360 64361 64362 # Check whether --with-alsa-include was given. 64363 if test "${with_alsa_include+set}" = set; then : 64364 withval=$with_alsa_include; 64365 fi 64366 64367 64368 # Check whether --with-alsa-lib was given. 64369 if test "${with_alsa_lib+set}" = set; then : 64370 withval=$with_alsa_lib; 64371 fi 64372 64373 64374 if test "x$NEEDS_LIB_ALSA" = xfalse; then 64375 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 64376 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 64377 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 64378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 64379 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 64380 fi 64381 ALSA_CFLAGS= 64382 ALSA_LIBS= 64383 else 64384 ALSA_FOUND=no 64385 64386 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 64387 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 64388 fi 64389 64390 if test "x${with_alsa}" != x; then 64391 ALSA_LIBS="-L${with_alsa}/lib -lasound" 64392 ALSA_CFLAGS="-I${with_alsa}/include" 64393 ALSA_FOUND=yes 64394 fi 64395 if test "x${with_alsa_include}" != x; then 64396 ALSA_CFLAGS="-I${with_alsa_include}" 64397 ALSA_FOUND=yes 64398 fi 64399 if test "x${with_alsa_lib}" != x; then 64400 ALSA_LIBS="-L${with_alsa_lib} -lasound" 64401 ALSA_FOUND=yes 64402 fi 64403 # Do not try pkg-config if we have a sysroot set. 64404 if test "x$SYSROOT" = x; then 64405 if test "x$ALSA_FOUND" = xno; then 64406 64407 pkg_failed=no 64408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 64409 $as_echo_n "checking for ALSA... " >&6; } 64410 64411 if test -n "$ALSA_CFLAGS"; then 64412 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 64413 elif test -n "$PKG_CONFIG"; then 64414 if test -n "$PKG_CONFIG" && \ 64415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64416 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64417 ac_status=$? 64418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64419 test $ac_status = 0; }; then 64420 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 64421 else 64422 pkg_failed=yes 64423 fi 64424 else 64425 pkg_failed=untried 64426 fi 64427 if test -n "$ALSA_LIBS"; then 64428 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 64429 elif test -n "$PKG_CONFIG"; then 64430 if test -n "$PKG_CONFIG" && \ 64431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64432 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64433 ac_status=$? 64434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64435 test $ac_status = 0; }; then 64436 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 64437 else 64438 pkg_failed=yes 64439 fi 64440 else 64441 pkg_failed=untried 64442 fi 64443 64444 64445 64446 if test $pkg_failed = yes; then 64447 64448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64449 _pkg_short_errors_supported=yes 64450 else 64451 _pkg_short_errors_supported=no 64452 fi 64453 if test $_pkg_short_errors_supported = yes; then 64454 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 64455 else 64456 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 64457 fi 64458 # Put the nasty error message in config.log where it belongs 64459 echo "$ALSA_PKG_ERRORS" >&5 64460 64461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64462 $as_echo "no" >&6; } 64463 ALSA_FOUND=no 64464 elif test $pkg_failed = untried; then 64465 ALSA_FOUND=no 64466 else 64467 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 64468 ALSA_LIBS=$pkg_cv_ALSA_LIBS 64469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64470 $as_echo "yes" >&6; } 64471 ALSA_FOUND=yes 64472 fi 64473 fi 64474 fi 64475 if test "x$ALSA_FOUND" = xno; then 64476 for ac_header in alsa/asoundlib.h 64477 do : 64478 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 64479 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 64480 cat >>confdefs.h <<_ACEOF 64481 #define HAVE_ALSA_ASOUNDLIB_H 1 64482 _ACEOF 64483 64484 ALSA_FOUND=yes 64485 ALSA_CFLAGS=-Iignoreme 64486 ALSA_LIBS=-lasound 64487 DEFAULT_ALSA=yes 64488 64489 else 64490 ALSA_FOUND=no 64491 64492 fi 64493 64494 done 64495 64496 fi 64497 if test "x$ALSA_FOUND" = xno; then 64498 64499 # Print a helpful message on how to acquire the necessary build dependency. 64500 # alsa is the help tag: freetype, cups, alsa etc 64501 MISSING_DEPENDENCY=alsa 64502 64503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64504 cygwin_help $MISSING_DEPENDENCY 64505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64506 msys_help $MISSING_DEPENDENCY 64507 else 64508 PKGHANDLER_COMMAND= 64509 64510 case $PKGHANDLER in 64511 apt-get) 64512 apt_help $MISSING_DEPENDENCY ;; 64513 yum) 64514 yum_help $MISSING_DEPENDENCY ;; 64515 brew) 64516 brew_help $MISSING_DEPENDENCY ;; 64517 port) 64518 port_help $MISSING_DEPENDENCY ;; 64519 pkgutil) 64520 pkgutil_help $MISSING_DEPENDENCY ;; 64521 pkgadd) 64522 pkgadd_help $MISSING_DEPENDENCY ;; 64523 esac 64524 64525 if test "x$PKGHANDLER_COMMAND" != x; then 64526 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64527 fi 64528 fi 64529 64530 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 64531 fi 64532 fi 64533 64534 64535 64536 64537 64538 64539 # Check whether --with-libffi was given. 64540 if test "${with_libffi+set}" = set; then : 64541 withval=$with_libffi; 64542 fi 64543 64544 64545 # Check whether --with-libffi-include was given. 64546 if test "${with_libffi_include+set}" = set; then : 64547 withval=$with_libffi_include; 64548 fi 64549 64550 64551 # Check whether --with-libffi-lib was given. 64552 if test "${with_libffi_lib+set}" = set; then : 64553 withval=$with_libffi_lib; 64554 fi 64555 64556 # Check whether --enable-libffi-bundling was given. 64557 if test "${enable_libffi_bundling+set}" = set; then : 64558 enableval=$enable_libffi_bundling; 64559 fi 64560 64561 64562 if test "x$NEEDS_LIB_FFI" = xfalse; then 64563 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 64564 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 64565 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 64566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 64567 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 64568 fi 64569 LIBFFI_CFLAGS= 64570 LIBFFI_LIBS= 64571 else 64572 LIBFFI_FOUND=no 64573 64574 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 64575 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 64576 fi 64577 64578 if test "x${with_libffi}" != x; then 64579 LIBFFI_LIB_PATH="${with_libffi}/lib" 64580 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 64581 LIBFFI_CFLAGS="-I${with_libffi}/include" 64582 LIBFFI_FOUND=yes 64583 fi 64584 if test "x${with_libffi_include}" != x; then 64585 LIBFFI_CFLAGS="-I${with_libffi_include}" 64586 LIBFFI_FOUND=yes 64587 fi 64588 if test "x${with_libffi_lib}" != x; then 64589 LIBFFI_LIB_PATH="${with_libffi_lib}" 64590 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 64591 LIBFFI_FOUND=yes 64592 fi 64593 # Do not try pkg-config if we have a sysroot set. 64594 if test "x$SYSROOT" = x; then 64595 if test "x$LIBFFI_FOUND" = xno; then 64596 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 64597 64598 pkg_failed=no 64599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 64600 $as_echo_n "checking for LIBFFI... " >&6; } 64601 64602 if test -n "$LIBFFI_CFLAGS"; then 64603 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 64604 elif test -n "$PKG_CONFIG"; then 64605 if test -n "$PKG_CONFIG" && \ 64606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64607 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64608 ac_status=$? 64609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64610 test $ac_status = 0; }; then 64611 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 64612 else 64613 pkg_failed=yes 64614 fi 64615 else 64616 pkg_failed=untried 64617 fi 64618 if test -n "$LIBFFI_LIBS"; then 64619 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 64620 elif test -n "$PKG_CONFIG"; then 64621 if test -n "$PKG_CONFIG" && \ 64622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64623 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64624 ac_status=$? 64625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64626 test $ac_status = 0; }; then 64627 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 64628 else 64629 pkg_failed=yes 64630 fi 64631 else 64632 pkg_failed=untried 64633 fi 64634 64635 64636 64637 if test $pkg_failed = yes; then 64638 64639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64640 _pkg_short_errors_supported=yes 64641 else 64642 _pkg_short_errors_supported=no 64643 fi 64644 if test $_pkg_short_errors_supported = yes; then 64645 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 64646 else 64647 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 64648 fi 64649 # Put the nasty error message in config.log where it belongs 64650 echo "$LIBFFI_PKG_ERRORS" >&5 64651 64652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64653 $as_echo "no" >&6; } 64654 LIBFFI_FOUND=no 64655 elif test $pkg_failed = untried; then 64656 LIBFFI_FOUND=no 64657 else 64658 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 64659 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 64660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64661 $as_echo "yes" >&6; } 64662 LIBFFI_FOUND=yes 64663 fi 64664 fi 64665 fi 64666 if test "x$LIBFFI_FOUND" = xno; then 64667 for ac_header in ffi.h 64668 do : 64669 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 64670 if test "x$ac_cv_header_ffi_h" = xyes; then : 64671 cat >>confdefs.h <<_ACEOF 64672 #define HAVE_FFI_H 1 64673 _ACEOF 64674 64675 LIBFFI_FOUND=yes 64676 LIBFFI_CFLAGS= 64677 LIBFFI_LIBS=-lffi 64678 64679 else 64680 LIBFFI_FOUND=no 64681 64682 fi 64683 64684 done 64685 64686 fi 64687 if test "x$LIBFFI_FOUND" = xno; then 64688 64689 # Print a helpful message on how to acquire the necessary build dependency. 64690 # ffi is the help tag: freetype, cups, alsa etc 64691 MISSING_DEPENDENCY=ffi 64692 64693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64694 cygwin_help $MISSING_DEPENDENCY 64695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64696 msys_help $MISSING_DEPENDENCY 64697 else 64698 PKGHANDLER_COMMAND= 64699 64700 case $PKGHANDLER in 64701 apt-get) 64702 apt_help $MISSING_DEPENDENCY ;; 64703 yum) 64704 yum_help $MISSING_DEPENDENCY ;; 64705 brew) 64706 brew_help $MISSING_DEPENDENCY ;; 64707 port) 64708 port_help $MISSING_DEPENDENCY ;; 64709 pkgutil) 64710 pkgutil_help $MISSING_DEPENDENCY ;; 64711 pkgadd) 64712 pkgadd_help $MISSING_DEPENDENCY ;; 64713 esac 64714 64715 if test "x$PKGHANDLER_COMMAND" != x; then 64716 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64717 fi 64718 fi 64719 64720 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 64721 fi 64722 64723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 64724 $as_echo_n "checking if libffi works... " >&6; } 64725 ac_ext=c 64726 ac_cpp='$CPP $CPPFLAGS' 64727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64729 ac_compiler_gnu=$ac_cv_c_compiler_gnu 64730 64731 OLD_CFLAGS="$CFLAGS" 64732 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 64733 OLD_LIBS="$LIBS" 64734 LIBS="$LIBS $LIBFFI_LIBS" 64735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64736 /* end confdefs.h. */ 64737 #include <ffi.h> 64738 int 64739 main () 64740 { 64741 64742 ffi_call(NULL, NULL, NULL, NULL); 64743 return 0; 64744 64745 ; 64746 return 0; 64747 } 64748 _ACEOF 64749 if ac_fn_c_try_link "$LINENO"; then : 64750 LIBFFI_WORKS=yes 64751 else 64752 LIBFFI_WORKS=no 64753 64754 fi 64755 rm -f core conftest.err conftest.$ac_objext \ 64756 conftest$ac_exeext conftest.$ac_ext 64757 CFLAGS="$OLD_CFLAGS" 64758 LIBS="$OLD_LIBS" 64759 ac_ext=cpp 64760 ac_cpp='$CXXCPP $CPPFLAGS' 64761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64764 64765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 64766 $as_echo "$LIBFFI_WORKS" >&6; } 64767 64768 if test "x$LIBFFI_WORKS" = xno; then 64769 64770 # Print a helpful message on how to acquire the necessary build dependency. 64771 # ffi is the help tag: freetype, cups, alsa etc 64772 MISSING_DEPENDENCY=ffi 64773 64774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64775 cygwin_help $MISSING_DEPENDENCY 64776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64777 msys_help $MISSING_DEPENDENCY 64778 else 64779 PKGHANDLER_COMMAND= 64780 64781 case $PKGHANDLER in 64782 apt-get) 64783 apt_help $MISSING_DEPENDENCY ;; 64784 yum) 64785 yum_help $MISSING_DEPENDENCY ;; 64786 brew) 64787 brew_help $MISSING_DEPENDENCY ;; 64788 port) 64789 port_help $MISSING_DEPENDENCY ;; 64790 pkgutil) 64791 pkgutil_help $MISSING_DEPENDENCY ;; 64792 pkgadd) 64793 pkgadd_help $MISSING_DEPENDENCY ;; 64794 esac 64795 64796 if test "x$PKGHANDLER_COMMAND" != x; then 64797 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64798 fi 64799 fi 64800 64801 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 64802 fi 64803 64804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 64805 $as_echo_n "checking if libffi should be bundled... " >&6; } 64806 if test "x$enable_libffi_bundling" = "x"; then 64807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64808 $as_echo "no" >&6; } 64809 ENABLE_LIBFFI_BUNDLING=false 64810 elif test "x$enable_libffi_bundling" = "xno"; then 64811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64812 $as_echo "no, forced" >&6; } 64813 ENABLE_LIBFFI_BUNDLING=false 64814 elif test "x$enable_libffi_bundling" = "xyes"; then 64815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64816 $as_echo "yes, forced" >&6; } 64817 ENABLE_LIBFFI_BUNDLING=true 64818 else 64819 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 64820 fi 64821 64822 # Find the libffi.so.X to bundle 64823 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 64824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 64825 $as_echo_n "checking for libffi lib file location... " >&6; } 64826 if test "x${LIBFFI_LIB_PATH}" != x; then 64827 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 64828 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 64829 else 64830 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 64831 fi 64832 else 64833 # If we don't have an explicit path, look in a few obvious places 64834 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 64835 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64836 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64837 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 64838 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 64839 else 64840 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64841 fi 64842 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 64843 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 64844 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 64845 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 64846 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 64847 else 64848 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64849 fi 64850 else 64851 # Fallback on the default /usr/lib dir 64852 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64853 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64854 else 64855 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64856 fi 64857 fi 64858 fi 64859 # Make sure the wildcard is evaluated 64860 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 64861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 64862 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 64863 fi 64864 fi 64865 64866 64867 64868 64869 64870 64871 64872 64873 # Check whether --with-libjpeg was given. 64874 if test "${with_libjpeg+set}" = set; then : 64875 withval=$with_libjpeg; 64876 fi 64877 64878 64879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 64880 $as_echo_n "checking for which libjpeg to use... " >&6; } 64881 # default is bundled 64882 DEFAULT_LIBJPEG=bundled 64883 # if user didn't specify, use DEFAULT_LIBJPEG 64884 if test "x${with_libjpeg}" = "x"; then 64885 with_libjpeg=${DEFAULT_LIBJPEG} 64886 fi 64887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 64888 $as_echo "${with_libjpeg}" >&6; } 64889 64890 if test "x${with_libjpeg}" = "xbundled"; then 64891 USE_EXTERNAL_LIBJPEG=false 64892 elif test "x${with_libjpeg}" = "xsystem"; then 64893 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 64894 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 64895 64896 else 64897 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 64898 fi 64899 64900 64901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 64902 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 64903 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 64904 $as_echo_n "(cached) " >&6 64905 else 64906 ac_check_lib_save_LIBS=$LIBS 64907 LIBS="-ljpeg $LIBS" 64908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64909 /* end confdefs.h. */ 64910 64911 /* Override any GCC internal prototype to avoid an error. 64912 Use char because int might match the return type of a GCC 64913 builtin and then its argument prototype would still apply. */ 64914 #ifdef __cplusplus 64915 extern "C" 64916 #endif 64917 char jpeg_CreateDecompress (); 64918 int 64919 main () 64920 { 64921 return jpeg_CreateDecompress (); 64922 ; 64923 return 0; 64924 } 64925 _ACEOF 64926 if ac_fn_cxx_try_link "$LINENO"; then : 64927 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 64928 else 64929 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 64930 fi 64931 rm -f core conftest.err conftest.$ac_objext \ 64932 conftest$ac_exeext conftest.$ac_ext 64933 LIBS=$ac_check_lib_save_LIBS 64934 fi 64935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 64936 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 64937 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 64938 cat >>confdefs.h <<_ACEOF 64939 #define HAVE_LIBJPEG 1 64940 _ACEOF 64941 64942 LIBS="-ljpeg $LIBS" 64943 64944 else 64945 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 64946 fi 64947 64948 64949 USE_EXTERNAL_LIBJPEG=true 64950 else 64951 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 64952 fi 64953 64954 64955 64956 64957 64958 # Check whether --with-giflib was given. 64959 if test "${with_giflib+set}" = set; then : 64960 withval=$with_giflib; 64961 fi 64962 64963 64964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 64965 $as_echo_n "checking for which giflib to use... " >&6; } 64966 # default is bundled 64967 DEFAULT_GIFLIB=bundled 64968 # if user didn't specify, use DEFAULT_GIFLIB 64969 if test "x${with_giflib}" = "x"; then 64970 with_giflib=${DEFAULT_GIFLIB} 64971 fi 64972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 64973 $as_echo "${with_giflib}" >&6; } 64974 64975 if test "x${with_giflib}" = "xbundled"; then 64976 USE_EXTERNAL_LIBGIF=false 64977 elif test "x${with_giflib}" = "xsystem"; then 64978 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 64979 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 64980 64981 else 64982 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 64983 fi 64984 64985 64986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 64987 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 64988 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 64989 $as_echo_n "(cached) " >&6 64990 else 64991 ac_check_lib_save_LIBS=$LIBS 64992 LIBS="-lgif $LIBS" 64993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64994 /* end confdefs.h. */ 64995 64996 /* Override any GCC internal prototype to avoid an error. 64997 Use char because int might match the return type of a GCC 64998 builtin and then its argument prototype would still apply. */ 64999 #ifdef __cplusplus 65000 extern "C" 65001 #endif 65002 char DGifGetCode (); 65003 int 65004 main () 65005 { 65006 return DGifGetCode (); 65007 ; 65008 return 0; 65009 } 65010 _ACEOF 65011 if ac_fn_cxx_try_link "$LINENO"; then : 65012 ac_cv_lib_gif_DGifGetCode=yes 65013 else 65014 ac_cv_lib_gif_DGifGetCode=no 65015 fi 65016 rm -f core conftest.err conftest.$ac_objext \ 65017 conftest$ac_exeext conftest.$ac_ext 65018 LIBS=$ac_check_lib_save_LIBS 65019 fi 65020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 65021 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 65022 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 65023 cat >>confdefs.h <<_ACEOF 65024 #define HAVE_LIBGIF 1 65025 _ACEOF 65026 65027 LIBS="-lgif $LIBS" 65028 65029 else 65030 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 65031 fi 65032 65033 65034 USE_EXTERNAL_LIBGIF=true 65035 else 65036 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 65037 fi 65038 65039 65040 65041 65042 65043 # Check whether --with-libpng was given. 65044 if test "${with_libpng+set}" = set; then : 65045 withval=$with_libpng; 65046 fi 65047 65048 65049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 65050 $as_echo_n "checking for which libpng to use... " >&6; } 65051 65052 # default is bundled 65053 DEFAULT_LIBPNG=bundled 65054 # if user didn't specify, use DEFAULT_LIBPNG 65055 if test "x${with_libpng}" = "x"; then 65056 with_libpng=${DEFAULT_LIBPNG} 65057 fi 65058 65059 if test "x${with_libpng}" = "xbundled"; then 65060 USE_EXTERNAL_LIBPNG=false 65061 PNG_CFLAGS="" 65062 PNG_LIBS="" 65063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65064 $as_echo "bundled" >&6; } 65065 elif test "x${with_libpng}" = "xsystem"; then 65066 65067 pkg_failed=no 65068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 65069 $as_echo_n "checking for PNG... " >&6; } 65070 65071 if test -n "$PNG_CFLAGS"; then 65072 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 65073 elif test -n "$PKG_CONFIG"; then 65074 if test -n "$PKG_CONFIG" && \ 65075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65076 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65077 ac_status=$? 65078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65079 test $ac_status = 0; }; then 65080 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 65081 else 65082 pkg_failed=yes 65083 fi 65084 else 65085 pkg_failed=untried 65086 fi 65087 if test -n "$PNG_LIBS"; then 65088 pkg_cv_PNG_LIBS="$PNG_LIBS" 65089 elif test -n "$PKG_CONFIG"; then 65090 if test -n "$PKG_CONFIG" && \ 65091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65092 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65093 ac_status=$? 65094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65095 test $ac_status = 0; }; then 65096 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 65097 else 65098 pkg_failed=yes 65099 fi 65100 else 65101 pkg_failed=untried 65102 fi 65103 65104 65105 65106 if test $pkg_failed = yes; then 65107 65108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65109 _pkg_short_errors_supported=yes 65110 else 65111 _pkg_short_errors_supported=no 65112 fi 65113 if test $_pkg_short_errors_supported = yes; then 65114 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 65115 else 65116 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 65117 fi 65118 # Put the nasty error message in config.log where it belongs 65119 echo "$PNG_PKG_ERRORS" >&5 65120 65121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65122 $as_echo "no" >&6; } 65123 LIBPNG_FOUND=no 65124 elif test $pkg_failed = untried; then 65125 LIBPNG_FOUND=no 65126 else 65127 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 65128 PNG_LIBS=$pkg_cv_PNG_LIBS 65129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65130 $as_echo "yes" >&6; } 65131 LIBPNG_FOUND=yes 65132 fi 65133 if test "x${LIBPNG_FOUND}" = "xyes"; then 65134 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 65135 USE_EXTERNAL_LIBPNG=true 65136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65137 $as_echo "system" >&6; } 65138 else 65139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65140 $as_echo "system not found" >&6; } 65141 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 65142 fi 65143 else 65144 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 65145 fi 65146 65147 65148 65149 65150 65151 65152 65153 # Check whether --with-zlib was given. 65154 if test "${with_zlib+set}" = set; then : 65155 withval=$with_zlib; 65156 fi 65157 65158 65159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 65160 $as_echo_n "checking for compress in -lz... " >&6; } 65161 if ${ac_cv_lib_z_compress+:} false; then : 65162 $as_echo_n "(cached) " >&6 65163 else 65164 ac_check_lib_save_LIBS=$LIBS 65165 LIBS="-lz $LIBS" 65166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65167 /* end confdefs.h. */ 65168 65169 /* Override any GCC internal prototype to avoid an error. 65170 Use char because int might match the return type of a GCC 65171 builtin and then its argument prototype would still apply. */ 65172 #ifdef __cplusplus 65173 extern "C" 65174 #endif 65175 char compress (); 65176 int 65177 main () 65178 { 65179 return compress (); 65180 ; 65181 return 0; 65182 } 65183 _ACEOF 65184 if ac_fn_cxx_try_link "$LINENO"; then : 65185 ac_cv_lib_z_compress=yes 65186 else 65187 ac_cv_lib_z_compress=no 65188 fi 65189 rm -f core conftest.err conftest.$ac_objext \ 65190 conftest$ac_exeext conftest.$ac_ext 65191 LIBS=$ac_check_lib_save_LIBS 65192 fi 65193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 65194 $as_echo "$ac_cv_lib_z_compress" >&6; } 65195 if test "x$ac_cv_lib_z_compress" = xyes; then : 65196 ZLIB_FOUND=yes 65197 else 65198 ZLIB_FOUND=no 65199 fi 65200 65201 65202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 65203 $as_echo_n "checking for which zlib to use... " >&6; } 65204 65205 DEFAULT_ZLIB=system 65206 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65207 # On windows default is bundled...on others default is system 65208 DEFAULT_ZLIB=bundled 65209 fi 65210 65211 if test "x${ZLIB_FOUND}" != "xyes"; then 65212 # If we don't find any system...set default to bundled 65213 DEFAULT_ZLIB=bundled 65214 fi 65215 65216 # If user didn't specify, use DEFAULT_ZLIB 65217 if test "x${with_zlib}" = "x"; then 65218 with_zlib=${DEFAULT_ZLIB} 65219 fi 65220 65221 if test "x${with_zlib}" = "xbundled"; then 65222 USE_EXTERNAL_LIBZ=false 65223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65224 $as_echo "bundled" >&6; } 65225 elif test "x${with_zlib}" = "xsystem"; then 65226 if test "x${ZLIB_FOUND}" = "xyes"; then 65227 USE_EXTERNAL_LIBZ=true 65228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65229 $as_echo "system" >&6; } 65230 else 65231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65232 $as_echo "system not found" >&6; } 65233 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 65234 fi 65235 else 65236 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 65237 fi 65238 65239 65240 65241 65242 65243 # Check whether --with-lcms was given. 65244 if test "${with_lcms+set}" = set; then : 65245 withval=$with_lcms; 65246 fi 65247 65248 65249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 65250 $as_echo_n "checking for which lcms to use... " >&6; } 65251 65252 DEFAULT_LCMS=bundled 65253 # If user didn't specify, use DEFAULT_LCMS 65254 if test "x${with_lcms}" = "x"; then 65255 with_lcms=${DEFAULT_LCMS} 65256 fi 65257 65258 if test "x${with_lcms}" = "xbundled"; then 65259 USE_EXTERNAL_LCMS=false 65260 LCMS_CFLAGS="" 65261 LCMS_LIBS="" 65262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65263 $as_echo "bundled" >&6; } 65264 elif test "x${with_lcms}" = "xsystem"; then 65265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65266 $as_echo "system" >&6; } 65267 65268 pkg_failed=no 65269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 65270 $as_echo_n "checking for LCMS... " >&6; } 65271 65272 if test -n "$LCMS_CFLAGS"; then 65273 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 65274 elif test -n "$PKG_CONFIG"; then 65275 if test -n "$PKG_CONFIG" && \ 65276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65277 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65278 ac_status=$? 65279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65280 test $ac_status = 0; }; then 65281 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 65282 else 65283 pkg_failed=yes 65284 fi 65285 else 65286 pkg_failed=untried 65287 fi 65288 if test -n "$LCMS_LIBS"; then 65289 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 65290 elif test -n "$PKG_CONFIG"; then 65291 if test -n "$PKG_CONFIG" && \ 65292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65293 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65294 ac_status=$? 65295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65296 test $ac_status = 0; }; then 65297 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 65298 else 65299 pkg_failed=yes 65300 fi 65301 else 65302 pkg_failed=untried 65303 fi 65304 65305 65306 65307 if test $pkg_failed = yes; then 65308 65309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65310 _pkg_short_errors_supported=yes 65311 else 65312 _pkg_short_errors_supported=no 65313 fi 65314 if test $_pkg_short_errors_supported = yes; then 65315 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 65316 else 65317 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 65318 fi 65319 # Put the nasty error message in config.log where it belongs 65320 echo "$LCMS_PKG_ERRORS" >&5 65321 65322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65323 $as_echo "no" >&6; } 65324 LCMS_FOUND=no 65325 elif test $pkg_failed = untried; then 65326 LCMS_FOUND=no 65327 else 65328 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 65329 LCMS_LIBS=$pkg_cv_LCMS_LIBS 65330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65331 $as_echo "yes" >&6; } 65332 LCMS_FOUND=yes 65333 fi 65334 if test "x${LCMS_FOUND}" = "xyes"; then 65335 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 65336 USE_EXTERNAL_LCMS=true 65337 else 65338 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 65339 fi 65340 else 65341 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 65342 fi 65343 65344 65345 65346 65347 65348 65349 65350 65351 65352 65353 65354 65355 65356 # Setup libm (the maths library) 65357 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 65358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 65359 $as_echo_n "checking for cos in -lm... " >&6; } 65360 if ${ac_cv_lib_m_cos+:} false; then : 65361 $as_echo_n "(cached) " >&6 65362 else 65363 ac_check_lib_save_LIBS=$LIBS 65364 LIBS="-lm $LIBS" 65365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65366 /* end confdefs.h. */ 65367 65368 /* Override any GCC internal prototype to avoid an error. 65369 Use char because int might match the return type of a GCC 65370 builtin and then its argument prototype would still apply. */ 65371 #ifdef __cplusplus 65372 extern "C" 65373 #endif 65374 char cos (); 65375 int 65376 main () 65377 { 65378 return cos (); 65379 ; 65380 return 0; 65381 } 65382 _ACEOF 65383 if ac_fn_cxx_try_link "$LINENO"; then : 65384 ac_cv_lib_m_cos=yes 65385 else 65386 ac_cv_lib_m_cos=no 65387 fi 65388 rm -f core conftest.err conftest.$ac_objext \ 65389 conftest$ac_exeext conftest.$ac_ext 65390 LIBS=$ac_check_lib_save_LIBS 65391 fi 65392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 65393 $as_echo "$ac_cv_lib_m_cos" >&6; } 65394 if test "x$ac_cv_lib_m_cos" = xyes; then : 65395 cat >>confdefs.h <<_ACEOF 65396 #define HAVE_LIBM 1 65397 _ACEOF 65398 65399 LIBS="-lm $LIBS" 65400 65401 else 65402 65403 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 65404 $as_echo "$as_me: Maths library was not found" >&6;} 65405 65406 fi 65407 65408 LIBM="-lm" 65409 else 65410 LIBM="" 65411 fi 65412 65413 65414 # Setup libdl (for dynamic library loading) 65415 save_LIBS="$LIBS" 65416 LIBS="" 65417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 65418 $as_echo_n "checking for dlopen in -ldl... " >&6; } 65419 if ${ac_cv_lib_dl_dlopen+:} false; then : 65420 $as_echo_n "(cached) " >&6 65421 else 65422 ac_check_lib_save_LIBS=$LIBS 65423 LIBS="-ldl $LIBS" 65424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65425 /* end confdefs.h. */ 65426 65427 /* Override any GCC internal prototype to avoid an error. 65428 Use char because int might match the return type of a GCC 65429 builtin and then its argument prototype would still apply. */ 65430 #ifdef __cplusplus 65431 extern "C" 65432 #endif 65433 char dlopen (); 65434 int 65435 main () 65436 { 65437 return dlopen (); 65438 ; 65439 return 0; 65440 } 65441 _ACEOF 65442 if ac_fn_cxx_try_link "$LINENO"; then : 65443 ac_cv_lib_dl_dlopen=yes 65444 else 65445 ac_cv_lib_dl_dlopen=no 65446 fi 65447 rm -f core conftest.err conftest.$ac_objext \ 65448 conftest$ac_exeext conftest.$ac_ext 65449 LIBS=$ac_check_lib_save_LIBS 65450 fi 65451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 65452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 65453 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 65454 cat >>confdefs.h <<_ACEOF 65455 #define HAVE_LIBDL 1 65456 _ACEOF 65457 65458 LIBS="-ldl $LIBS" 65459 65460 fi 65461 65462 LIBDL="$LIBS" 65463 65464 LIBS="$save_LIBS" 65465 65466 # Deprecated libraries, keep the flags for backwards compatibility 65467 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 65468 65469 65470 # Check whether --with-dxsdk was given. 65471 if test "${with_dxsdk+set}" = set; then : 65472 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 65473 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 65474 fi 65475 65476 65477 65478 65479 # Check whether --with-dxsdk-lib was given. 65480 if test "${with_dxsdk_lib+set}" = set; then : 65481 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 65482 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 65483 fi 65484 65485 65486 65487 65488 # Check whether --with-dxsdk-include was given. 65489 if test "${with_dxsdk_include+set}" = set; then : 65490 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 65491 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 65492 fi 65493 65494 65495 fi 65496 65497 # Control if libzip can use mmap. Available for purposes of overriding. 65498 LIBZIP_CAN_USE_MMAP=true 65499 65500 65501 65502 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 65503 # Find the root of the Solaris Studio installation from the compiler path 65504 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 65505 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 65506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 65507 $as_echo_n "checking for libstlport.so.1... " >&6; } 65508 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 65509 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 65510 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 65511 fi 65512 if test -f "$STLPORT_LIB"; then 65513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 65514 $as_echo "yes, $STLPORT_LIB" >&6; } 65515 65516 # Only process if variable expands to non-empty 65517 65518 if test "x$STLPORT_LIB" != x; then 65519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65520 65521 # Input might be given as Windows format, start by converting to 65522 # unix format. 65523 path="$STLPORT_LIB" 65524 new_path=`$CYGPATH -u "$path"` 65525 65526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65529 # "foo.exe" is OK but "foo" is an error. 65530 # 65531 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65532 # It is also a way to make sure we got the proper file name for the real test later on. 65533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65534 if test "x$test_shortpath" = x; then 65535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65536 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65537 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 65538 fi 65539 65540 # Call helper function which possibly converts this using DOS-style short mode. 65541 # If so, the updated path is stored in $new_path. 65542 65543 input_path="$new_path" 65544 # Check if we need to convert this using DOS-style short mode. If the path 65545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65546 # take no chances and rewrite it. 65547 # Note: m4 eats our [], so we need to use [ and ] instead. 65548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65549 if test "x$has_forbidden_chars" != x; then 65550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65551 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65552 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65553 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65554 # Going to short mode and back again did indeed matter. Since short mode is 65555 # case insensitive, let's make it lowercase to improve readability. 65556 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65557 # Now convert it back to Unix-style (cygpath) 65558 input_path=`$CYGPATH -u "$shortmode_path"` 65559 new_path="$input_path" 65560 fi 65561 fi 65562 65563 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65564 if test "x$test_cygdrive_prefix" = x; then 65565 # As a simple fix, exclude /usr/bin since it's not a real path. 65566 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65567 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65568 # a path prefixed by /cygdrive for fixpath to work. 65569 new_path="$CYGWIN_ROOT_PATH$input_path" 65570 fi 65571 fi 65572 65573 65574 if test "x$path" != "x$new_path"; then 65575 STLPORT_LIB="$new_path" 65576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65577 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65578 fi 65579 65580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65581 65582 path="$STLPORT_LIB" 65583 has_colon=`$ECHO $path | $GREP ^.:` 65584 new_path="$path" 65585 if test "x$has_colon" = x; then 65586 # Not in mixed or Windows style, start by that. 65587 new_path=`cmd //c echo $path` 65588 fi 65589 65590 65591 input_path="$new_path" 65592 # Check if we need to convert this using DOS-style short mode. If the path 65593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65594 # take no chances and rewrite it. 65595 # Note: m4 eats our [], so we need to use [ and ] instead. 65596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65597 if test "x$has_forbidden_chars" != x; then 65598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65599 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65600 fi 65601 65602 65603 windows_path="$new_path" 65604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65605 unix_path=`$CYGPATH -u "$windows_path"` 65606 new_path="$unix_path" 65607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65609 new_path="$unix_path" 65610 fi 65611 65612 if test "x$path" != "x$new_path"; then 65613 STLPORT_LIB="$new_path" 65614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65615 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65616 fi 65617 65618 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65619 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65620 65621 else 65622 # We're on a unix platform. Hooray! :) 65623 path="$STLPORT_LIB" 65624 has_space=`$ECHO "$path" | $GREP " "` 65625 if test "x$has_space" != x; then 65626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65627 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65628 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65629 fi 65630 65631 # Use eval to expand a potential ~ 65632 eval path="$path" 65633 if test ! -f "$path" && test ! -d "$path"; then 65634 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 65635 fi 65636 65637 if test -d "$path"; then 65638 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 65639 else 65640 dir="`$DIRNAME "$path"`" 65641 base="`$BASENAME "$path"`" 65642 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 65643 fi 65644 fi 65645 fi 65646 65647 else 65648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 65649 $as_echo "no, not found at $STLPORT_LIB" >&6; } 65650 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 65651 fi 65652 65653 fi 65654 65655 65656 65657 65658 65659 65660 65661 65662 65663 65664 65665 65666 65667 # Hotspot setup depends on lib checks. 65668 65669 65670 # The user can in some cases supply additional jvm features. For the custom 65671 # variant, this defines the entire variant. 65672 65673 # Check whether --with-jvm-features was given. 65674 if test "${with_jvm_features+set}" = set; then : 65675 withval=$with_jvm_features; 65676 fi 65677 65678 if test "x$with_jvm_features" != x; then 65679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 65680 $as_echo_n "checking additional JVM features... " >&6; } 65681 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 65682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 65683 $as_echo "$JVM_FEATURES" >&6; } 65684 fi 65685 65686 # Override hotspot cpu definitions for ARM platforms 65687 if test "x$OPENJDK_TARGET_CPU" = xarm; then 65688 HOTSPOT_TARGET_CPU=arm_32 65689 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 65690 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65691 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65692 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 65693 HOTSPOT_TARGET_CPU=arm_64 65694 HOTSPOT_TARGET_CPU_ARCH=arm 65695 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65696 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65697 fi 65698 65699 # Verify that dependencies are met for explicitly set features. 65700 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 65701 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 65702 fi 65703 65704 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 65705 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 65706 fi 65707 65708 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 65709 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 65710 fi 65711 65712 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65713 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 65714 fi 65715 65716 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65717 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 65718 fi 65719 65720 # Turn on additional features based on other parts of configure 65721 if test "x$INCLUDE_DTRACE" = "xtrue"; then 65722 JVM_FEATURES="$JVM_FEATURES dtrace" 65723 else 65724 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 65725 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 65726 fi 65727 fi 65728 65729 if test "x$STATIC_BUILD" = "xtrue"; then 65730 JVM_FEATURES="$JVM_FEATURES static-build" 65731 else 65732 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 65733 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 65734 fi 65735 fi 65736 65737 # Only enable jvmci on x86_64, sparcv9 and aarch64. 65738 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 65739 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 65740 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 65741 JVM_FEATURES_jvmci="jvmci" 65742 else 65743 JVM_FEATURES_jvmci="" 65744 fi 65745 65746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 65747 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 65748 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 65749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65750 $as_echo "yes, forced" >&6; } 65751 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 65752 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 65753 fi 65754 INCLUDE_GRAAL="true" 65755 else 65756 # By default enable graal build on linux-x64 or where AOT is available. 65757 # graal build requires jvmci. 65758 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 65759 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 65760 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 65761 test "x$ENABLE_AOT" = "xtrue") ; then 65762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65763 $as_echo "yes" >&6; } 65764 JVM_FEATURES_graal="graal" 65765 INCLUDE_GRAAL="true" 65766 else 65767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65768 $as_echo "no" >&6; } 65769 JVM_FEATURES_graal="" 65770 INCLUDE_GRAAL="false" 65771 fi 65772 fi 65773 65774 65775 65776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 65777 $as_echo_n "checking if aot should be enabled... " >&6; } 65778 if test "x$ENABLE_AOT" = "xtrue"; then 65779 if test "x$enable_aot" = "xyes"; then 65780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65781 $as_echo "yes, forced" >&6; } 65782 else 65783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65784 $as_echo "yes" >&6; } 65785 fi 65786 JVM_FEATURES_aot="aot" 65787 else 65788 if test "x$enable_aot" = "xno"; then 65789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65790 $as_echo "no, forced" >&6; } 65791 else 65792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65793 $as_echo "no" >&6; } 65794 fi 65795 JVM_FEATURES_aot="" 65796 fi 65797 65798 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 65799 # Default to use link time optimizations on minimal on arm 65800 JVM_FEATURES_link_time_opt="link-time-opt" 65801 else 65802 JVM_FEATURES_link_time_opt="" 65803 fi 65804 65805 # All variants but minimal (and custom) get these features 65806 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 65807 if test "x$ENABLE_CDS" = "xtrue"; then 65808 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 65809 fi 65810 65811 # Enable features depending on variant. 65812 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 65813 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 65814 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 65815 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 65816 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 65817 JVM_FEATURES_custom="$JVM_FEATURES" 65818 65819 65820 65821 65822 65823 65824 65825 65826 # Used for verification of Makefiles by check-jvm-feature 65827 65828 65829 # We don't support --with-jvm-interpreter anymore, use zero instead. 65830 65831 65832 # Check whether --with-jvm-interpreter was given. 65833 if test "${with_jvm_interpreter+set}" = set; then : 65834 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 65835 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 65836 fi 65837 65838 65839 65840 65841 ############################################################################### 65842 # 65843 # We need to do some final tweaking, when everything else is done. 65844 # 65845 ############################################################################### 65846 65847 65848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 65849 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 65850 65851 if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then 65852 ENABLE_INTREE_EC=true 65853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65854 $as_echo "yes" >&6; } 65855 else 65856 ENABLE_INTREE_EC=false 65857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65858 $as_echo "no" >&6; } 65859 fi 65860 65861 65862 65863 65864 # Check whether --enable-jtreg-failure-handler was given. 65865 if test "${enable_jtreg_failure_handler+set}" = set; then : 65866 enableval=$enable_jtreg_failure_handler; 65867 fi 65868 65869 65870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 65871 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 65872 65873 if test "x$enable_jtreg_failure_handler" = "xyes"; then 65874 if test "x$JT_HOME" = "x"; then 65875 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 65876 else 65877 BUILD_FAILURE_HANDLER=true 65878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65879 $as_echo "yes, forced" >&6; } 65880 fi 65881 elif test "x$enable_jtreg_failure_handler" = "xno"; then 65882 BUILD_FAILURE_HANDLER=false 65883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65884 $as_echo "no, forced" >&6; } 65885 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 65886 || test "x$enable_jtreg_failure_handler" = "x"; then 65887 if test "x$JT_HOME" = "x"; then 65888 BUILD_FAILURE_HANDLER=false 65889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 65890 $as_echo "no, missing jtreg" >&6; } 65891 else 65892 BUILD_FAILURE_HANDLER=true 65893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 65894 $as_echo "yes, jtreg present" >&6; } 65895 fi 65896 else 65897 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 65898 fi 65899 65900 65901 65902 65903 # Check whether --enable-generate-classlist was given. 65904 if test "${enable_generate_classlist+set}" = set; then : 65905 enableval=$enable_generate_classlist; 65906 fi 65907 65908 65909 # Check if it's likely that it's possible to generate the classlist. Depending 65910 # on exact jvm configuration it could be possible anyway. 65911 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 65912 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 65913 else 65914 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 65915 fi 65916 65917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 65918 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 65919 if test "x$enable_generate_classlist" = "xyes"; then 65920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65921 $as_echo "yes, forced" >&6; } 65922 ENABLE_GENERATE_CLASSLIST="true" 65923 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 65924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&5 65925 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 65926 fi 65927 elif test "x$enable_generate_classlist" = "xno"; then 65928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65929 $as_echo "no, forced" >&6; } 65930 ENABLE_GENERATE_CLASSLIST="false" 65931 elif test "x$enable_generate_classlist" = "x"; then 65932 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 65933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65934 $as_echo "yes" >&6; } 65935 ENABLE_GENERATE_CLASSLIST="true" 65936 else 65937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65938 $as_echo "no" >&6; } 65939 ENABLE_GENERATE_CLASSLIST="false" 65940 fi 65941 else 65942 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 65943 fi 65944 65945 65946 65947 65948 ############################################################################### 65949 # 65950 # Configure parts of the build that only affect the build performance, 65951 # not the result. 65952 # 65953 ############################################################################### 65954 65955 65956 # How many cores do we have on this build system? 65957 65958 # Check whether --with-num-cores was given. 65959 if test "${with_num_cores+set}" = set; then : 65960 withval=$with_num_cores; 65961 fi 65962 65963 if test "x$with_num_cores" = x; then 65964 # The number of cores were not specified, try to probe them. 65965 65966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 65967 $as_echo_n "checking for number of cores... " >&6; } 65968 NUM_CORES=1 65969 FOUND_CORES=no 65970 65971 if test -f /proc/cpuinfo; then 65972 # Looks like a Linux (or cygwin) system 65973 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 65974 FOUND_CORES=yes 65975 elif test -x /usr/sbin/psrinfo; then 65976 # Looks like a Solaris system 65977 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 65978 FOUND_CORES=yes 65979 elif test -x /usr/sbin/sysctl; then 65980 # Looks like a MacOSX system 65981 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 65982 FOUND_CORES=yes 65983 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 65984 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 65985 FOUND_CORES=yes 65986 elif test -n "$NUMBER_OF_PROCESSORS"; then 65987 # On windows, look in the env 65988 NUM_CORES=$NUMBER_OF_PROCESSORS 65989 FOUND_CORES=yes 65990 fi 65991 65992 if test "x$FOUND_CORES" = xyes; then 65993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 65994 $as_echo "$NUM_CORES" >&6; } 65995 else 65996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 65997 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 65998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 65999 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 66000 fi 66001 66002 else 66003 NUM_CORES=$with_num_cores 66004 fi 66005 66006 66007 66008 # How much memory do we have on this build system? 66009 66010 # Check whether --with-memory-size was given. 66011 if test "${with_memory_size+set}" = set; then : 66012 withval=$with_memory_size; 66013 fi 66014 66015 if test "x$with_memory_size" = x; then 66016 # The memory size was not specified, try to probe it. 66017 66018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 66019 $as_echo_n "checking for memory size... " >&6; } 66020 # Default to 1024 MB 66021 MEMORY_SIZE=1024 66022 FOUND_MEM=no 66023 66024 if test -f /proc/meminfo; then 66025 # Looks like a Linux (or cygwin) system 66026 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 66027 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 66028 FOUND_MEM=yes 66029 elif test -x /usr/sbin/prtconf; then 66030 # Looks like a Solaris or AIX system 66031 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 66032 FOUND_MEM=yes 66033 elif test -x /usr/sbin/sysctl; then 66034 # Looks like a MacOSX system 66035 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 66036 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66037 FOUND_MEM=yes 66038 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 66039 # Windows, but without cygwin 66040 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 66041 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66042 FOUND_MEM=yes 66043 fi 66044 66045 if test "x$FOUND_MEM" = xyes; then 66046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 66047 $as_echo "$MEMORY_SIZE MB" >&6; } 66048 else 66049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 66050 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 66051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 66052 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 66053 fi 66054 66055 else 66056 MEMORY_SIZE=$with_memory_size 66057 fi 66058 66059 66060 66061 # Provide a decent default number of parallel jobs for make depending on 66062 # number of cores, amount of memory and machine architecture. 66063 66064 # Check whether --with-jobs was given. 66065 if test "${with_jobs+set}" = set; then : 66066 withval=$with_jobs; 66067 fi 66068 66069 if test "x$with_jobs" = x; then 66070 # Number of jobs was not specified, calculate. 66071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 66072 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 66073 # Approximate memory in GB. 66074 memory_gb=`expr $MEMORY_SIZE / 1024` 66075 # Pick the lowest of memory in gb and number of cores. 66076 if test "$memory_gb" -lt "$NUM_CORES"; then 66077 JOBS="$memory_gb" 66078 else 66079 JOBS="$NUM_CORES" 66080 fi 66081 if test "$JOBS" -eq "0"; then 66082 JOBS=1 66083 fi 66084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 66085 $as_echo "$JOBS" >&6; } 66086 else 66087 JOBS=$with_jobs 66088 fi 66089 66090 66091 66092 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 66093 66094 # Check whether --with-test-jobs was given. 66095 if test "${with_test_jobs+set}" = set; then : 66096 withval=$with_test_jobs; 66097 fi 66098 66099 if test "x$with_test_jobs" = x; then 66100 TEST_JOBS=0 66101 else 66102 TEST_JOBS=$with_test_jobs 66103 fi 66104 66105 66106 66107 # Setup arguments for the boot jdk (after cores and memory have been setup) 66108 66109 ############################################################################## 66110 # 66111 # Specify jvm options for anything that is run with the Boot JDK. 66112 # Not all JVM:s accept the same arguments on the command line. 66113 # 66114 66115 # Check whether --with-boot-jdk-jvmargs was given. 66116 if test "${with_boot_jdk_jvmargs+set}" = set; then : 66117 withval=$with_boot_jdk_jvmargs; 66118 fi 66119 66120 66121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 66122 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 66123 66124 # Disable special log output when a debug build is used as Boot JDK... 66125 66126 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 66127 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 66128 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 66129 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66130 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66131 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66132 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 66133 JVM_ARG_OK=true 66134 else 66135 $ECHO "Arg failed:" >&5 66136 $ECHO "$OUTPUT" >&5 66137 JVM_ARG_OK=false 66138 fi 66139 66140 66141 # Force en-US environment 66142 66143 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 66144 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 66145 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 66146 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66147 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66148 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66149 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 66150 JVM_ARG_OK=true 66151 else 66152 $ECHO "Arg failed:" >&5 66153 $ECHO "$OUTPUT" >&5 66154 JVM_ARG_OK=false 66155 fi 66156 66157 66158 if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then 66159 # Use our own CDS archive 66160 66161 $ECHO "Check if jvm arg is ok: $boot_jdk_cds_args -Xshare:auto" >&5 66162 $ECHO "Command: $JAVA $boot_jdk_cds_args -Xshare:auto -version" >&5 66163 OUTPUT=`$JAVA $boot_jdk_cds_args -Xshare:auto -version 2>&1` 66164 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66165 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66166 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66167 boot_jdk_jvmargs="$boot_jdk_jvmargs $boot_jdk_cds_args -Xshare:auto" 66168 JVM_ARG_OK=true 66169 else 66170 $ECHO "Arg failed:" >&5 66171 $ECHO "$OUTPUT" >&5 66172 JVM_ARG_OK=false 66173 fi 66174 66175 else 66176 # Otherwise optimistically use the system-wide one, if one is present 66177 66178 $ECHO "Check if jvm arg is ok: -Xshare:auto" >&5 66179 $ECHO "Command: $JAVA -Xshare:auto -version" >&5 66180 OUTPUT=`$JAVA -Xshare:auto -version 2>&1` 66181 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66182 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66183 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66184 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xshare:auto" 66185 JVM_ARG_OK=true 66186 else 66187 $ECHO "Arg failed:" >&5 66188 $ECHO "$OUTPUT" >&5 66189 JVM_ARG_OK=false 66190 fi 66191 66192 fi 66193 66194 # Apply user provided options. 66195 66196 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 66197 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 66198 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 66199 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66200 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66201 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66202 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 66203 JVM_ARG_OK=true 66204 else 66205 $ECHO "Arg failed:" >&5 66206 $ECHO "$OUTPUT" >&5 66207 JVM_ARG_OK=false 66208 fi 66209 66210 66211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 66212 $as_echo "$boot_jdk_jvmargs" >&6; } 66213 66214 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 66215 JAVA_FLAGS=$boot_jdk_jvmargs 66216 66217 66218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 66219 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 66220 66221 # Starting amount of heap memory. 66222 66223 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 66224 $ECHO "Command: $JAVA -Xms64M -version" >&5 66225 OUTPUT=`$JAVA -Xms64M -version 2>&1` 66226 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66227 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66228 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66229 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 66230 JVM_ARG_OK=true 66231 else 66232 $ECHO "Arg failed:" >&5 66233 $ECHO "$OUTPUT" >&5 66234 JVM_ARG_OK=false 66235 fi 66236 66237 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 66238 66239 # Maximum amount of heap memory and stack size. 66240 JVM_HEAP_LIMIT_32="1024" 66241 # Running a 64 bit JVM allows for and requires a bigger heap 66242 JVM_HEAP_LIMIT_64="1600" 66243 STACK_SIZE_32=768 66244 STACK_SIZE_64=1536 66245 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 66246 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 66247 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 66248 fi 66249 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 66250 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 66251 fi 66252 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 66253 JVM_HEAP_LIMIT_32=512 66254 JVM_HEAP_LIMIT_64=512 66255 fi 66256 66257 if test "x$BOOT_JDK_BITS" = "x32"; then 66258 STACK_SIZE=$STACK_SIZE_32 66259 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 66260 else 66261 STACK_SIZE=$STACK_SIZE_64 66262 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 66263 fi 66264 66265 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 66266 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 66267 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 66268 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66269 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66270 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66271 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 66272 JVM_ARG_OK=true 66273 else 66274 $ECHO "Arg failed:" >&5 66275 $ECHO "$OUTPUT" >&5 66276 JVM_ARG_OK=false 66277 fi 66278 66279 66280 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 66281 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 66282 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 66283 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66284 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66285 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66286 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 66287 JVM_ARG_OK=true 66288 else 66289 $ECHO "Arg failed:" >&5 66290 $ECHO "$OUTPUT" >&5 66291 JVM_ARG_OK=false 66292 fi 66293 66294 66295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 66296 $as_echo "$boot_jdk_jvmargs_big" >&6; } 66297 66298 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 66299 66300 66301 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 66302 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 66303 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 66304 else 66305 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 66306 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 66307 fi 66308 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 66309 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 66310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 66311 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 66312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 66313 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 66314 66315 66316 # By default, the main javac compilations use big 66317 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 66318 66319 66320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 66321 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 66322 66323 # Use serial gc for small short lived tools if possible 66324 66325 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 66326 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 66327 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 66328 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66329 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66330 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66331 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 66332 JVM_ARG_OK=true 66333 else 66334 $ECHO "Arg failed:" >&5 66335 $ECHO "$OUTPUT" >&5 66336 JVM_ARG_OK=false 66337 fi 66338 66339 66340 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 66341 $ECHO "Command: $JAVA -Xms32M -version" >&5 66342 OUTPUT=`$JAVA -Xms32M -version 2>&1` 66343 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66344 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66345 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66346 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 66347 JVM_ARG_OK=true 66348 else 66349 $ECHO "Arg failed:" >&5 66350 $ECHO "$OUTPUT" >&5 66351 JVM_ARG_OK=false 66352 fi 66353 66354 66355 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 66356 $ECHO "Command: $JAVA -Xmx512M -version" >&5 66357 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 66358 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66359 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66360 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66361 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 66362 JVM_ARG_OK=true 66363 else 66364 $ECHO "Arg failed:" >&5 66365 $ECHO "$OUTPUT" >&5 66366 JVM_ARG_OK=false 66367 fi 66368 66369 66370 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 66371 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 66372 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 66373 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66374 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66375 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66376 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 66377 JVM_ARG_OK=true 66378 else 66379 $ECHO "Arg failed:" >&5 66380 $ECHO "$OUTPUT" >&5 66381 JVM_ARG_OK=false 66382 fi 66383 66384 66385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 66386 $as_echo "$boot_jdk_jvmargs_small" >&6; } 66387 66388 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 66389 66390 66391 JAVA_TOOL_FLAGS_SMALL="" 66392 for f in $JAVA_FLAGS_SMALL; do 66393 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 66394 done 66395 66396 66397 66398 # Setup smart javac (after cores and memory have been setup) 66399 66400 66401 # Check whether --with-sjavac-server-java was given. 66402 if test "${with_sjavac_server_java+set}" = set; then : 66403 withval=$with_sjavac_server_java; 66404 fi 66405 66406 66407 if test "x$with_sjavac_server_java" != x; then 66408 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 66409 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 66410 if test "x$FOUND_VERSION" = x; then 66411 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 66412 fi 66413 else 66414 SJAVAC_SERVER_JAVA="$JAVA" 66415 fi 66416 66417 66418 if test "$MEMORY_SIZE" -gt "3000"; then 66419 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 66420 JVM_64BIT=true 66421 fi 66422 fi 66423 66424 MX_VALUE=`expr $MEMORY_SIZE / 2` 66425 if test "$JVM_64BIT" = true; then 66426 # Set ms lower than mx since more than one instance of the server might 66427 # get launched at the same time before they figure out which instance won. 66428 MS_VALUE=512 66429 if test "$MX_VALUE" -gt "2048"; then 66430 MX_VALUE=2048 66431 fi 66432 else 66433 MS_VALUE=256 66434 if test "$MX_VALUE" -gt "1500"; then 66435 MX_VALUE=1500 66436 fi 66437 fi 66438 if test "$MX_VALUE" -lt "512"; then 66439 MX_VALUE=512 66440 fi 66441 66442 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 66443 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 66444 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 66445 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66446 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66447 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66448 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 66449 JVM_ARG_OK=true 66450 else 66451 $ECHO "Arg failed:" >&5 66452 $ECHO "$OUTPUT" >&5 66453 JVM_ARG_OK=false 66454 fi 66455 66456 66457 66458 # Check whether --enable-sjavac was given. 66459 if test "${enable_sjavac+set}" = set; then : 66460 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 66461 else 66462 ENABLE_SJAVAC="no" 66463 fi 66464 66465 if test "x$JVM_ARG_OK" = "xfalse"; then 66466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 66467 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 66468 ENABLE_SJAVAC="no" 66469 fi 66470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 66471 $as_echo_n "checking whether to use sjavac... " >&6; } 66472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 66473 $as_echo "$ENABLE_SJAVAC" >&6; } 66474 66475 66476 # Check whether --enable-javac-server was given. 66477 if test "${enable_javac_server+set}" = set; then : 66478 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 66479 else 66480 ENABLE_JAVAC_SERVER="yes" 66481 fi 66482 66483 if test "x$JVM_ARG_OK" = "xfalse"; then 66484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 66485 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 66486 ENABLE_JAVAC_SERVER="no" 66487 fi 66488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 66489 $as_echo_n "checking whether to use javac server... " >&6; } 66490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 66491 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 66492 66493 66494 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 66495 # When using a server javac, the small client instances do not need much 66496 # resources. 66497 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 66498 fi 66499 66500 66501 # Setup use of icecc if requested 66502 66503 # Check whether --enable-icecc was given. 66504 if test "${enable_icecc+set}" = set; then : 66505 enableval=$enable_icecc; 66506 fi 66507 66508 66509 if test "x${enable_icecc}" = "xyes"; then 66510 66511 66512 66513 # Publish this variable in the help. 66514 66515 66516 if [ -z "${ICECC_CMD+x}" ]; then 66517 # The variable is not set by user, try to locate tool using the code snippet 66518 for ac_prog in icecc 66519 do 66520 # Extract the first word of "$ac_prog", so it can be a program name with args. 66521 set dummy $ac_prog; ac_word=$2 66522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66523 $as_echo_n "checking for $ac_word... " >&6; } 66524 if ${ac_cv_path_ICECC_CMD+:} false; then : 66525 $as_echo_n "(cached) " >&6 66526 else 66527 case $ICECC_CMD in 66528 [\\/]* | ?:[\\/]*) 66529 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66530 ;; 66531 *) 66532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66533 for as_dir in $PATH 66534 do 66535 IFS=$as_save_IFS 66536 test -z "$as_dir" && as_dir=. 66537 for ac_exec_ext in '' $ac_executable_extensions; do 66538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66539 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66541 break 2 66542 fi 66543 done 66544 done 66545 IFS=$as_save_IFS 66546 66547 ;; 66548 esac 66549 fi 66550 ICECC_CMD=$ac_cv_path_ICECC_CMD 66551 if test -n "$ICECC_CMD"; then 66552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66553 $as_echo "$ICECC_CMD" >&6; } 66554 else 66555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66556 $as_echo "no" >&6; } 66557 fi 66558 66559 66560 test -n "$ICECC_CMD" && break 66561 done 66562 66563 else 66564 # The variable is set, but is it from the command line or the environment? 66565 66566 # Try to remove the string !ICECC_CMD! from our list. 66567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 66568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66569 # If it failed, the variable was not from the command line. Ignore it, 66570 # but warn the user (except for BASH, which is always set by the calling BASH). 66571 if test "xICECC_CMD" != xBASH; then 66572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 66573 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 66574 fi 66575 # Try to locate tool using the code snippet 66576 for ac_prog in icecc 66577 do 66578 # Extract the first word of "$ac_prog", so it can be a program name with args. 66579 set dummy $ac_prog; ac_word=$2 66580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66581 $as_echo_n "checking for $ac_word... " >&6; } 66582 if ${ac_cv_path_ICECC_CMD+:} false; then : 66583 $as_echo_n "(cached) " >&6 66584 else 66585 case $ICECC_CMD in 66586 [\\/]* | ?:[\\/]*) 66587 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66588 ;; 66589 *) 66590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66591 for as_dir in $PATH 66592 do 66593 IFS=$as_save_IFS 66594 test -z "$as_dir" && as_dir=. 66595 for ac_exec_ext in '' $ac_executable_extensions; do 66596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66597 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66599 break 2 66600 fi 66601 done 66602 done 66603 IFS=$as_save_IFS 66604 66605 ;; 66606 esac 66607 fi 66608 ICECC_CMD=$ac_cv_path_ICECC_CMD 66609 if test -n "$ICECC_CMD"; then 66610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66611 $as_echo "$ICECC_CMD" >&6; } 66612 else 66613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66614 $as_echo "no" >&6; } 66615 fi 66616 66617 66618 test -n "$ICECC_CMD" && break 66619 done 66620 66621 else 66622 # If it succeeded, then it was overridden by the user. We will use it 66623 # for the tool. 66624 66625 # First remove it from the list of overridden variables, so we can test 66626 # for unknown variables in the end. 66627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66628 66629 # Check if we try to supply an empty value 66630 if test "x$ICECC_CMD" = x; then 66631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 66632 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 66633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66634 $as_echo_n "checking for ICECC_CMD... " >&6; } 66635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66636 $as_echo "disabled" >&6; } 66637 else 66638 # Check if the provided tool contains a complete path. 66639 tool_specified="$ICECC_CMD" 66640 tool_basename="${tool_specified##*/}" 66641 if test "x$tool_basename" = "x$tool_specified"; then 66642 # A command without a complete path is provided, search $PATH. 66643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 66644 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 66645 # Extract the first word of "$tool_basename", so it can be a program name with args. 66646 set dummy $tool_basename; ac_word=$2 66647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66648 $as_echo_n "checking for $ac_word... " >&6; } 66649 if ${ac_cv_path_ICECC_CMD+:} false; then : 66650 $as_echo_n "(cached) " >&6 66651 else 66652 case $ICECC_CMD in 66653 [\\/]* | ?:[\\/]*) 66654 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66655 ;; 66656 *) 66657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66658 for as_dir in $PATH 66659 do 66660 IFS=$as_save_IFS 66661 test -z "$as_dir" && as_dir=. 66662 for ac_exec_ext in '' $ac_executable_extensions; do 66663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66664 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66666 break 2 66667 fi 66668 done 66669 done 66670 IFS=$as_save_IFS 66671 66672 ;; 66673 esac 66674 fi 66675 ICECC_CMD=$ac_cv_path_ICECC_CMD 66676 if test -n "$ICECC_CMD"; then 66677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66678 $as_echo "$ICECC_CMD" >&6; } 66679 else 66680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66681 $as_echo "no" >&6; } 66682 fi 66683 66684 66685 if test "x$ICECC_CMD" = x; then 66686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66687 fi 66688 else 66689 # Otherwise we believe it is a complete path. Use it as it is. 66690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 66691 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 66692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66693 $as_echo_n "checking for ICECC_CMD... " >&6; } 66694 if test ! -x "$tool_specified"; then 66695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66696 $as_echo "not found" >&6; } 66697 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 66698 fi 66699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66700 $as_echo "$tool_specified" >&6; } 66701 fi 66702 fi 66703 fi 66704 66705 fi 66706 66707 66708 66709 if test "x$ICECC_CMD" = x; then 66710 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 66711 fi 66712 66713 66714 old_path="$PATH" 66715 66716 # Look for icecc-create-env in some known places 66717 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 66718 66719 66720 66721 # Publish this variable in the help. 66722 66723 66724 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 66725 # The variable is not set by user, try to locate tool using the code snippet 66726 for ac_prog in icecc-create-env 66727 do 66728 # Extract the first word of "$ac_prog", so it can be a program name with args. 66729 set dummy $ac_prog; ac_word=$2 66730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66731 $as_echo_n "checking for $ac_word... " >&6; } 66732 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66733 $as_echo_n "(cached) " >&6 66734 else 66735 case $ICECC_CREATE_ENV in 66736 [\\/]* | ?:[\\/]*) 66737 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66738 ;; 66739 *) 66740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66741 for as_dir in $PATH 66742 do 66743 IFS=$as_save_IFS 66744 test -z "$as_dir" && as_dir=. 66745 for ac_exec_ext in '' $ac_executable_extensions; do 66746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66747 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66749 break 2 66750 fi 66751 done 66752 done 66753 IFS=$as_save_IFS 66754 66755 ;; 66756 esac 66757 fi 66758 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66759 if test -n "$ICECC_CREATE_ENV"; then 66760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66761 $as_echo "$ICECC_CREATE_ENV" >&6; } 66762 else 66763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66764 $as_echo "no" >&6; } 66765 fi 66766 66767 66768 test -n "$ICECC_CREATE_ENV" && break 66769 done 66770 66771 else 66772 # The variable is set, but is it from the command line or the environment? 66773 66774 # Try to remove the string !ICECC_CREATE_ENV! from our list. 66775 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 66776 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66777 # If it failed, the variable was not from the command line. Ignore it, 66778 # but warn the user (except for BASH, which is always set by the calling BASH). 66779 if test "xICECC_CREATE_ENV" != xBASH; then 66780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 66781 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 66782 fi 66783 # Try to locate tool using the code snippet 66784 for ac_prog in icecc-create-env 66785 do 66786 # Extract the first word of "$ac_prog", so it can be a program name with args. 66787 set dummy $ac_prog; ac_word=$2 66788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66789 $as_echo_n "checking for $ac_word... " >&6; } 66790 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66791 $as_echo_n "(cached) " >&6 66792 else 66793 case $ICECC_CREATE_ENV in 66794 [\\/]* | ?:[\\/]*) 66795 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66796 ;; 66797 *) 66798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66799 for as_dir in $PATH 66800 do 66801 IFS=$as_save_IFS 66802 test -z "$as_dir" && as_dir=. 66803 for ac_exec_ext in '' $ac_executable_extensions; do 66804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66805 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66807 break 2 66808 fi 66809 done 66810 done 66811 IFS=$as_save_IFS 66812 66813 ;; 66814 esac 66815 fi 66816 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66817 if test -n "$ICECC_CREATE_ENV"; then 66818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66819 $as_echo "$ICECC_CREATE_ENV" >&6; } 66820 else 66821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66822 $as_echo "no" >&6; } 66823 fi 66824 66825 66826 test -n "$ICECC_CREATE_ENV" && break 66827 done 66828 66829 else 66830 # If it succeeded, then it was overridden by the user. We will use it 66831 # for the tool. 66832 66833 # First remove it from the list of overridden variables, so we can test 66834 # for unknown variables in the end. 66835 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66836 66837 # Check if we try to supply an empty value 66838 if test "x$ICECC_CREATE_ENV" = x; then 66839 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 66840 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 66841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 66842 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 66843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66844 $as_echo "disabled" >&6; } 66845 else 66846 # Check if the provided tool contains a complete path. 66847 tool_specified="$ICECC_CREATE_ENV" 66848 tool_basename="${tool_specified##*/}" 66849 if test "x$tool_basename" = "x$tool_specified"; then 66850 # A command without a complete path is provided, search $PATH. 66851 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 66852 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 66853 # Extract the first word of "$tool_basename", so it can be a program name with args. 66854 set dummy $tool_basename; ac_word=$2 66855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66856 $as_echo_n "checking for $ac_word... " >&6; } 66857 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66858 $as_echo_n "(cached) " >&6 66859 else 66860 case $ICECC_CREATE_ENV in 66861 [\\/]* | ?:[\\/]*) 66862 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66863 ;; 66864 *) 66865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66866 for as_dir in $PATH 66867 do 66868 IFS=$as_save_IFS 66869 test -z "$as_dir" && as_dir=. 66870 for ac_exec_ext in '' $ac_executable_extensions; do 66871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66872 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66874 break 2 66875 fi 66876 done 66877 done 66878 IFS=$as_save_IFS 66879 66880 ;; 66881 esac 66882 fi 66883 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66884 if test -n "$ICECC_CREATE_ENV"; then 66885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66886 $as_echo "$ICECC_CREATE_ENV" >&6; } 66887 else 66888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66889 $as_echo "no" >&6; } 66890 fi 66891 66892 66893 if test "x$ICECC_CREATE_ENV" = x; then 66894 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66895 fi 66896 else 66897 # Otherwise we believe it is a complete path. Use it as it is. 66898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 66899 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 66900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 66901 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 66902 if test ! -x "$tool_specified"; then 66903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66904 $as_echo "not found" >&6; } 66905 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 66906 fi 66907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66908 $as_echo "$tool_specified" >&6; } 66909 fi 66910 fi 66911 fi 66912 66913 fi 66914 66915 66916 66917 if test "x$ICECC_CREATE_ENV" = x; then 66918 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 66919 fi 66920 66921 66922 # Use icecc-create-env to create a minimal compilation environment that can 66923 # be sent to the other hosts in the icecream cluster. 66924 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 66925 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 66926 # Older versions of icecc does not have the --gcc parameter 66927 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 66928 icecc_gcc_arg="--gcc" 66929 fi 66930 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 66931 66932 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66933 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 66934 ${icecc_create_env_log} 2>&1 ) 66935 if test "$?" != "0"; then 66936 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66937 $as_echo "$as_me: icecc-create-env output:" >&6;} 66938 cat \ 66939 ${icecc_create_env_log} 66940 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66941 fi 66942 66943 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 66944 # For clang, the icecc compilerwrapper is needed. It usually resides next 66945 # to icecc-create-env. 66946 66947 66948 66949 # Publish this variable in the help. 66950 66951 66952 if [ -z "${ICECC_WRAPPER+x}" ]; then 66953 # The variable is not set by user, try to locate tool using the code snippet 66954 for ac_prog in compilerwrapper 66955 do 66956 # Extract the first word of "$ac_prog", so it can be a program name with args. 66957 set dummy $ac_prog; ac_word=$2 66958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66959 $as_echo_n "checking for $ac_word... " >&6; } 66960 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 66961 $as_echo_n "(cached) " >&6 66962 else 66963 case $ICECC_WRAPPER in 66964 [\\/]* | ?:[\\/]*) 66965 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 66966 ;; 66967 *) 66968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66969 for as_dir in $PATH 66970 do 66971 IFS=$as_save_IFS 66972 test -z "$as_dir" && as_dir=. 66973 for ac_exec_ext in '' $ac_executable_extensions; do 66974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66975 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 66976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66977 break 2 66978 fi 66979 done 66980 done 66981 IFS=$as_save_IFS 66982 66983 ;; 66984 esac 66985 fi 66986 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 66987 if test -n "$ICECC_WRAPPER"; then 66988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 66989 $as_echo "$ICECC_WRAPPER" >&6; } 66990 else 66991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66992 $as_echo "no" >&6; } 66993 fi 66994 66995 66996 test -n "$ICECC_WRAPPER" && break 66997 done 66998 66999 else 67000 # The variable is set, but is it from the command line or the environment? 67001 67002 # Try to remove the string !ICECC_WRAPPER! from our list. 67003 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 67004 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67005 # If it failed, the variable was not from the command line. Ignore it, 67006 # but warn the user (except for BASH, which is always set by the calling BASH). 67007 if test "xICECC_WRAPPER" != xBASH; then 67008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 67009 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 67010 fi 67011 # Try to locate tool using the code snippet 67012 for ac_prog in compilerwrapper 67013 do 67014 # Extract the first word of "$ac_prog", so it can be a program name with args. 67015 set dummy $ac_prog; ac_word=$2 67016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67017 $as_echo_n "checking for $ac_word... " >&6; } 67018 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67019 $as_echo_n "(cached) " >&6 67020 else 67021 case $ICECC_WRAPPER in 67022 [\\/]* | ?:[\\/]*) 67023 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67024 ;; 67025 *) 67026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67027 for as_dir in $PATH 67028 do 67029 IFS=$as_save_IFS 67030 test -z "$as_dir" && as_dir=. 67031 for ac_exec_ext in '' $ac_executable_extensions; do 67032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67033 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67035 break 2 67036 fi 67037 done 67038 done 67039 IFS=$as_save_IFS 67040 67041 ;; 67042 esac 67043 fi 67044 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67045 if test -n "$ICECC_WRAPPER"; then 67046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67047 $as_echo "$ICECC_WRAPPER" >&6; } 67048 else 67049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67050 $as_echo "no" >&6; } 67051 fi 67052 67053 67054 test -n "$ICECC_WRAPPER" && break 67055 done 67056 67057 else 67058 # If it succeeded, then it was overridden by the user. We will use it 67059 # for the tool. 67060 67061 # First remove it from the list of overridden variables, so we can test 67062 # for unknown variables in the end. 67063 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67064 67065 # Check if we try to supply an empty value 67066 if test "x$ICECC_WRAPPER" = x; then 67067 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 67068 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 67069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67070 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67072 $as_echo "disabled" >&6; } 67073 else 67074 # Check if the provided tool contains a complete path. 67075 tool_specified="$ICECC_WRAPPER" 67076 tool_basename="${tool_specified##*/}" 67077 if test "x$tool_basename" = "x$tool_specified"; then 67078 # A command without a complete path is provided, search $PATH. 67079 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 67080 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 67081 # Extract the first word of "$tool_basename", so it can be a program name with args. 67082 set dummy $tool_basename; ac_word=$2 67083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67084 $as_echo_n "checking for $ac_word... " >&6; } 67085 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67086 $as_echo_n "(cached) " >&6 67087 else 67088 case $ICECC_WRAPPER in 67089 [\\/]* | ?:[\\/]*) 67090 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67091 ;; 67092 *) 67093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67094 for as_dir in $PATH 67095 do 67096 IFS=$as_save_IFS 67097 test -z "$as_dir" && as_dir=. 67098 for ac_exec_ext in '' $ac_executable_extensions; do 67099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67100 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67102 break 2 67103 fi 67104 done 67105 done 67106 IFS=$as_save_IFS 67107 67108 ;; 67109 esac 67110 fi 67111 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67112 if test -n "$ICECC_WRAPPER"; then 67113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67114 $as_echo "$ICECC_WRAPPER" >&6; } 67115 else 67116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67117 $as_echo "no" >&6; } 67118 fi 67119 67120 67121 if test "x$ICECC_WRAPPER" = x; then 67122 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67123 fi 67124 else 67125 # Otherwise we believe it is a complete path. Use it as it is. 67126 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 67127 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 67128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67129 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67130 if test ! -x "$tool_specified"; then 67131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67132 $as_echo "not found" >&6; } 67133 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 67134 fi 67135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67136 $as_echo "$tool_specified" >&6; } 67137 fi 67138 fi 67139 fi 67140 67141 fi 67142 67143 67144 67145 if test "x$ICECC_WRAPPER" = x; then 67146 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 67147 fi 67148 67149 67150 67151 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67152 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 67153 if test "$?" != "0"; then 67154 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67155 $as_echo "$as_me: icecc-create-env output:" >&6;} 67156 cat ${icecc_create_env_log} 67157 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67158 fi 67159 67160 else 67161 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 67162 fi 67163 PATH="$old_path" 67164 # The bundle with the compiler gets a name based on checksums. Parse log file 67165 # to find it. 67166 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 67167 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67168 if test ! -f ${ICECC_ENV_BUNDLE}; then 67169 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67170 fi 67171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 67172 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 67173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67174 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67175 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 67176 67177 if test "x${COMPILE_TYPE}" = "xcross"; then 67178 # If cross compiling, create a separate env package for the build compiler 67179 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 67180 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 67181 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 67182 67183 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67184 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 67185 ${icecc_create_env_log_build} 2>&1 ) 67186 if test "$?" != "0"; then 67187 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67188 $as_echo "$as_me: icecc-create-env output:" >&6;} 67189 cat \ 67190 ${icecc_create_env_log_build} 67191 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67192 fi 67193 67194 elif test "x${BUILD_CC##*/}" = "xclang"; then 67195 67196 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67197 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 67198 if test "$?" != "0"; then 67199 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67200 $as_echo "$as_me: icecc-create-env output:" >&6;} 67201 cat ${icecc_create_env_log_build} 67202 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67203 fi 67204 67205 else 67206 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 67207 fi 67208 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 67209 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67210 if test ! -f ${ICECC_ENV_BUNDLE}; then 67211 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67212 fi 67213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 67214 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 67215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67216 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67217 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 67218 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 67219 else 67220 BUILD_ICECC="${ICECC}" 67221 fi 67222 67223 67224 fi 67225 67226 67227 # Can the C/C++ compiler use precompiled headers? 67228 67229 67230 ############################################################################### 67231 # 67232 # Can the C/C++ compiler use precompiled headers? 67233 # 67234 # Check whether --enable-precompiled-headers was given. 67235 if test "${enable_precompiled_headers+set}" = set; then : 67236 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 67237 else 67238 ENABLE_PRECOMPH=yes 67239 fi 67240 67241 67242 USE_PRECOMPILED_HEADER=true 67243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 67244 $as_echo_n "checking If precompiled header is enabled... " >&6; } 67245 if test "x$ENABLE_PRECOMPH" = xno; then 67246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67247 $as_echo "no, forced" >&6; } 67248 USE_PRECOMPILED_HEADER=false 67249 elif test "x$ICECC" != "x"; then 67250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 67251 $as_echo "no, does not work effectively with icecc" >&6; } 67252 USE_PRECOMPILED_HEADER=false 67253 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 67254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 67255 $as_echo "no, does not work with Solaris Studio" >&6; } 67256 USE_PRECOMPILED_HEADER=false 67257 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 67258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 67259 $as_echo "no, does not work with xlc" >&6; } 67260 USE_PRECOMPILED_HEADER=false 67261 else 67262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67263 $as_echo "yes" >&6; } 67264 fi 67265 67266 if test "x$ENABLE_PRECOMPH" = xyes; then 67267 # Check that the compiler actually supports precomp headers. 67268 if test "x$TOOLCHAIN_TYPE" = xgcc; then 67269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 67270 $as_echo_n "checking that precompiled headers work... " >&6; } 67271 echo "int alfa();" > conftest.h 67272 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 67273 if test ! -f conftest.hpp.gch; then 67274 USE_PRECOMPILED_HEADER=false 67275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67276 $as_echo "no" >&6; } 67277 else 67278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67279 $as_echo "yes" >&6; } 67280 fi 67281 $RM conftest.h conftest.hpp.gch 67282 fi 67283 fi 67284 67285 67286 67287 67288 # Setup use of ccache, if available 67289 67290 # Check whether --enable-ccache was given. 67291 if test "${enable_ccache+set}" = set; then : 67292 enableval=$enable_ccache; 67293 fi 67294 67295 67296 CCACHE_STATUS= 67297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 67298 $as_echo_n "checking is ccache enabled... " >&6; } 67299 if test "x$enable_ccache" = xyes; then 67300 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 67301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67302 $as_echo "yes" >&6; } 67303 OLD_PATH="$PATH" 67304 if test "x$TOOLCHAIN_PATH" != x; then 67305 PATH=$TOOLCHAIN_PATH:$PATH 67306 fi 67307 67308 67309 67310 # Publish this variable in the help. 67311 67312 67313 if [ -z "${CCACHE+x}" ]; then 67314 # The variable is not set by user, try to locate tool using the code snippet 67315 for ac_prog in ccache 67316 do 67317 # Extract the first word of "$ac_prog", so it can be a program name with args. 67318 set dummy $ac_prog; ac_word=$2 67319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67320 $as_echo_n "checking for $ac_word... " >&6; } 67321 if ${ac_cv_path_CCACHE+:} false; then : 67322 $as_echo_n "(cached) " >&6 67323 else 67324 case $CCACHE in 67325 [\\/]* | ?:[\\/]*) 67326 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67327 ;; 67328 *) 67329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67330 for as_dir in $PATH 67331 do 67332 IFS=$as_save_IFS 67333 test -z "$as_dir" && as_dir=. 67334 for ac_exec_ext in '' $ac_executable_extensions; do 67335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67336 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67338 break 2 67339 fi 67340 done 67341 done 67342 IFS=$as_save_IFS 67343 67344 ;; 67345 esac 67346 fi 67347 CCACHE=$ac_cv_path_CCACHE 67348 if test -n "$CCACHE"; then 67349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67350 $as_echo "$CCACHE" >&6; } 67351 else 67352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67353 $as_echo "no" >&6; } 67354 fi 67355 67356 67357 test -n "$CCACHE" && break 67358 done 67359 67360 else 67361 # The variable is set, but is it from the command line or the environment? 67362 67363 # Try to remove the string !CCACHE! from our list. 67364 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 67365 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67366 # If it failed, the variable was not from the command line. Ignore it, 67367 # but warn the user (except for BASH, which is always set by the calling BASH). 67368 if test "xCCACHE" != xBASH; then 67369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 67370 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 67371 fi 67372 # Try to locate tool using the code snippet 67373 for ac_prog in ccache 67374 do 67375 # Extract the first word of "$ac_prog", so it can be a program name with args. 67376 set dummy $ac_prog; ac_word=$2 67377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67378 $as_echo_n "checking for $ac_word... " >&6; } 67379 if ${ac_cv_path_CCACHE+:} false; then : 67380 $as_echo_n "(cached) " >&6 67381 else 67382 case $CCACHE in 67383 [\\/]* | ?:[\\/]*) 67384 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67385 ;; 67386 *) 67387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67388 for as_dir in $PATH 67389 do 67390 IFS=$as_save_IFS 67391 test -z "$as_dir" && as_dir=. 67392 for ac_exec_ext in '' $ac_executable_extensions; do 67393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67394 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67396 break 2 67397 fi 67398 done 67399 done 67400 IFS=$as_save_IFS 67401 67402 ;; 67403 esac 67404 fi 67405 CCACHE=$ac_cv_path_CCACHE 67406 if test -n "$CCACHE"; then 67407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67408 $as_echo "$CCACHE" >&6; } 67409 else 67410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67411 $as_echo "no" >&6; } 67412 fi 67413 67414 67415 test -n "$CCACHE" && break 67416 done 67417 67418 else 67419 # If it succeeded, then it was overridden by the user. We will use it 67420 # for the tool. 67421 67422 # First remove it from the list of overridden variables, so we can test 67423 # for unknown variables in the end. 67424 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67425 67426 # Check if we try to supply an empty value 67427 if test "x$CCACHE" = x; then 67428 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 67429 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 67430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67431 $as_echo_n "checking for CCACHE... " >&6; } 67432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67433 $as_echo "disabled" >&6; } 67434 else 67435 # Check if the provided tool contains a complete path. 67436 tool_specified="$CCACHE" 67437 tool_basename="${tool_specified##*/}" 67438 if test "x$tool_basename" = "x$tool_specified"; then 67439 # A command without a complete path is provided, search $PATH. 67440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 67441 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 67442 # Extract the first word of "$tool_basename", so it can be a program name with args. 67443 set dummy $tool_basename; ac_word=$2 67444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67445 $as_echo_n "checking for $ac_word... " >&6; } 67446 if ${ac_cv_path_CCACHE+:} false; then : 67447 $as_echo_n "(cached) " >&6 67448 else 67449 case $CCACHE in 67450 [\\/]* | ?:[\\/]*) 67451 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67452 ;; 67453 *) 67454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67455 for as_dir in $PATH 67456 do 67457 IFS=$as_save_IFS 67458 test -z "$as_dir" && as_dir=. 67459 for ac_exec_ext in '' $ac_executable_extensions; do 67460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67461 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67463 break 2 67464 fi 67465 done 67466 done 67467 IFS=$as_save_IFS 67468 67469 ;; 67470 esac 67471 fi 67472 CCACHE=$ac_cv_path_CCACHE 67473 if test -n "$CCACHE"; then 67474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67475 $as_echo "$CCACHE" >&6; } 67476 else 67477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67478 $as_echo "no" >&6; } 67479 fi 67480 67481 67482 if test "x$CCACHE" = x; then 67483 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67484 fi 67485 else 67486 # Otherwise we believe it is a complete path. Use it as it is. 67487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 67488 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 67489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67490 $as_echo_n "checking for CCACHE... " >&6; } 67491 if test ! -x "$tool_specified"; then 67492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67493 $as_echo "not found" >&6; } 67494 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 67495 fi 67496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67497 $as_echo "$tool_specified" >&6; } 67498 fi 67499 fi 67500 fi 67501 67502 fi 67503 67504 67505 67506 if test "x$CCACHE" = x; then 67507 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 67508 fi 67509 67510 67511 PATH="$OLD_PATH" 67512 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 67513 CCACHE_STATUS="Active ($CCACHE_VERSION)" 67514 else 67515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67516 $as_echo "no" >&6; } 67517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 67518 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 67519 fi 67520 elif test "x$enable_ccache" = xno; then 67521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 67522 $as_echo "no, explicitly disabled" >&6; } 67523 CCACHE_STATUS="Disabled" 67524 elif test "x$enable_ccache" = x; then 67525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67526 $as_echo "no" >&6; } 67527 else 67528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 67529 $as_echo "unknown" >&6; } 67530 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 67531 fi 67532 67533 67534 67535 # Check whether --with-ccache-dir was given. 67536 if test "${with_ccache_dir+set}" = set; then : 67537 withval=$with_ccache_dir; 67538 fi 67539 67540 67541 if test "x$with_ccache_dir" != x; then 67542 # When using a non home ccache directory, assume the use is to share ccache files 67543 # with other users. Thus change the umask. 67544 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 67545 if test "x$CCACHE" = x; then 67546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 67547 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 67548 fi 67549 fi 67550 67551 if test "x$CCACHE" != x; then 67552 67553 if test "x$CCACHE" != x; then 67554 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 67555 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67556 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 67557 if test "x$HAS_BAD_CCACHE" != "x"; then 67558 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 67559 fi 67560 fi 67561 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 67562 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67563 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 67564 if test "x$HAS_BAD_CCACHE" != "x"; then 67565 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 67566 fi 67567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 67568 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 67569 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 67570 PUSHED_FLAGS="$CXXFLAGS" 67571 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 67572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67573 /* end confdefs.h. */ 67574 67575 int 67576 main () 67577 { 67578 67579 ; 67580 return 0; 67581 } 67582 _ACEOF 67583 if ac_fn_cxx_try_compile "$LINENO"; then : 67584 CC_KNOWS_CCACHE_TRICK=yes 67585 else 67586 CC_KNOWS_CCACHE_TRICK=no 67587 fi 67588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67589 CXXFLAGS="$PUSHED_FLAGS" 67590 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 67591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67592 $as_echo "yes" >&6; } 67593 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 67594 67595 CCACHE_SLOPPINESS=pch_defines,time_macros 67596 else 67597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67598 $as_echo "no" >&6; } 67599 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 67600 fi 67601 fi 67602 67603 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 67604 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 67605 67606 if test "x$SET_CCACHE_DIR" != x; then 67607 mkdir -p $CCACHE_DIR > /dev/null 2>&1 67608 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 67609 fi 67610 fi 67611 67612 fi 67613 67614 67615 ############################################################################### 67616 # 67617 # And now the finish... 67618 # 67619 ############################################################################### 67620 67621 # Check for some common pitfalls 67622 67623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 67624 file_to_test="$TOPDIR/LICENSE" 67625 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 67626 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 67627 fi 67628 fi 67629 67630 67631 # Did user specify any unknown variables? 67632 67633 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 67634 # Replace the separating ! with spaces before presenting for end user. 67635 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 67636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 67637 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 67638 fi 67639 67640 67641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 67642 $as_echo_n "checking if build directory is on local disk... " >&6; } 67643 67644 # df -l lists only local disks; if the given directory is not found then 67645 # a non-zero exit code is given 67646 if test "x$DF" = x; then 67647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 67648 # msys does not have df; use Windows "net use" instead. 67649 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 67650 if test "x$IS_NETWORK_DISK" = x; then 67651 OUTPUT_DIR_IS_LOCAL="yes" 67652 else 67653 OUTPUT_DIR_IS_LOCAL="no" 67654 fi 67655 else 67656 # No df here, say it's local 67657 OUTPUT_DIR_IS_LOCAL="yes" 67658 fi 67659 else 67660 if $DF -l $OUTPUTDIR > /dev/null 2>&1; then 67661 OUTPUT_DIR_IS_LOCAL="yes" 67662 else 67663 OUTPUT_DIR_IS_LOCAL="no" 67664 fi 67665 fi 67666 67667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 67668 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 67669 67670 67671 67672 # Check if the user has any old-style ALT_ variables set. 67673 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 67674 67675 # Before generating output files, test if they exist. If they do, this is a reconfigure. 67676 # Since we can't properly handle the dependencies for this, warn the user about the situation 67677 if test -e $OUTPUTDIR/spec.gmk; then 67678 IS_RECONFIGURE=yes 67679 else 67680 IS_RECONFIGURE=no 67681 fi 67682 67683 67684 # At the end, call the custom hook. (Dummy macro if no custom sources available) 67685 67686 67687 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 67688 67689 # Keep feature lists sorted and free of duplicates 67690 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 67691 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 67692 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 67693 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 67694 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 67695 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 67696 67697 # Validate features 67698 for variant in $JVM_VARIANTS; do 67699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 67700 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 67701 features_var_name=JVM_FEATURES_$variant 67702 JVM_FEATURES_TO_TEST=${!features_var_name} 67703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 67704 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 67705 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 67706 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 67707 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 67708 if test "x$INVALID_FEATURES" != x; then 67709 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 67710 fi 67711 done 67712 67713 67714 # We're messing a bit with internal autoconf variables to put the config.status 67715 # in the output directory instead of the current directory. 67716 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 67717 67718 # Create the actual output files. Now the main work of configure is done. 67719 cat >confcache <<\_ACEOF 67720 # This file is a shell script that caches the results of configure 67721 # tests run on this system so they can be shared between configure 67722 # scripts and configure runs, see configure's option --config-cache. 67723 # It is not useful on other systems. If it contains results you don't 67724 # want to keep, you may remove or edit it. 67725 # 67726 # config.status only pays attention to the cache file if you give it 67727 # the --recheck option to rerun configure. 67728 # 67729 # `ac_cv_env_foo' variables (set or unset) will be overridden when 67730 # loading this file, other *unset* `ac_cv_foo' will be assigned the 67731 # following values. 67732 67733 _ACEOF 67734 67735 # The following way of writing the cache mishandles newlines in values, 67736 # but we know of no workaround that is simple, portable, and efficient. 67737 # So, we kill variables containing newlines. 67738 # Ultrix sh set writes to stderr and can't be redirected directly, 67739 # and sets the high bit in the cache file unless we assign to the vars. 67740 ( 67741 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 67742 eval ac_val=\$$ac_var 67743 case $ac_val in #( 67744 *${as_nl}*) 67745 case $ac_var in #( 67746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 67747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 67748 esac 67749 case $ac_var in #( 67750 _ | IFS | as_nl) ;; #( 67751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 67752 *) { eval $ac_var=; unset $ac_var;} ;; 67753 esac ;; 67754 esac 67755 done 67756 67757 (set) 2>&1 | 67758 case $as_nl`(ac_space=' '; set) 2>&1` in #( 67759 *${as_nl}ac_space=\ *) 67760 # `set' does not quote correctly, so add quotes: double-quote 67761 # substitution turns \\\\ into \\, and sed turns \\ into \. 67762 sed -n \ 67763 "s/'/'\\\\''/g; 67764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 67765 ;; #( 67766 *) 67767 # `set' quotes correctly as required by POSIX, so do not add quotes. 67768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 67769 ;; 67770 esac | 67771 sort 67772 ) | 67773 sed ' 67774 /^ac_cv_env_/b end 67775 t clear 67776 :clear 67777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 67778 t end 67779 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 67780 :end' >>confcache 67781 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 67782 if test -w "$cache_file"; then 67783 if test "x$cache_file" != "x/dev/null"; then 67784 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 67785 $as_echo "$as_me: updating cache $cache_file" >&6;} 67786 if test ! -f "$cache_file" || test -h "$cache_file"; then 67787 cat confcache >"$cache_file" 67788 else 67789 case $cache_file in #( 67790 */* | ?:*) 67791 mv -f confcache "$cache_file"$$ && 67792 mv -f "$cache_file"$$ "$cache_file" ;; #( 67793 *) 67794 mv -f confcache "$cache_file" ;; 67795 esac 67796 fi 67797 fi 67798 else 67799 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 67800 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 67801 fi 67802 fi 67803 rm -f confcache 67804 67805 test "x$prefix" = xNONE && prefix=$ac_default_prefix 67806 # Let make expand exec_prefix. 67807 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 67808 67809 # Transform confdefs.h into DEFS. 67810 # Protect against shell expansion while executing Makefile rules. 67811 # Protect against Makefile macro expansion. 67812 # 67813 # If the first sed substitution is executed (which looks for macros that 67814 # take arguments), then branch to the quote section. Otherwise, 67815 # look for a macro that doesn't take arguments. 67816 ac_script=' 67817 :mline 67818 /\\$/{ 67819 N 67820 s,\\\n,, 67821 b mline 67822 } 67823 t clear 67824 :clear 67825 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 67826 t quote 67827 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 67828 t quote 67829 b any 67830 :quote 67831 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 67832 s/\[/\\&/g 67833 s/\]/\\&/g 67834 s/\$/$$/g 67835 H 67836 :any 67837 ${ 67838 g 67839 s/^\n// 67840 s/\n/ /g 67841 p 67842 } 67843 ' 67844 DEFS=`sed -n "$ac_script" confdefs.h` 67845 67846 67847 ac_libobjs= 67848 ac_ltlibobjs= 67849 U= 67850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 67851 # 1. Remove the extension, and $U if already installed. 67852 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 67853 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 67854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 67855 # will be set to the directory where LIBOBJS objects are built. 67856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 67857 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 67858 done 67859 LIBOBJS=$ac_libobjs 67860 67861 LTLIBOBJS=$ac_ltlibobjs 67862 67863 67864 67865 : "${CONFIG_STATUS=./config.status}" 67866 ac_write_fail=0 67867 ac_clean_files_save=$ac_clean_files 67868 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 67869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 67870 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 67871 as_write_fail=0 67872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 67873 #! $SHELL 67874 # Generated by $as_me. 67875 # Run this file to recreate the current configuration. 67876 # Compiler output produced by configure, useful for debugging 67877 # configure, is in config.log if it exists. 67878 67879 debug=false 67880 ac_cs_recheck=false 67881 ac_cs_silent=false 67882 67883 SHELL=\${CONFIG_SHELL-$SHELL} 67884 export SHELL 67885 _ASEOF 67886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 67887 ## -------------------- ## 67888 ## M4sh Initialization. ## 67889 ## -------------------- ## 67890 67891 # Be more Bourne compatible 67892 DUALCASE=1; export DUALCASE # for MKS sh 67893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 67894 emulate sh 67895 NULLCMD=: 67896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 67897 # is contrary to our usage. Disable this feature. 67898 alias -g '${1+"$@"}'='"$@"' 67899 setopt NO_GLOB_SUBST 67900 else 67901 case `(set -o) 2>/dev/null` in #( 67902 *posix*) : 67903 set -o posix ;; #( 67904 *) : 67905 ;; 67906 esac 67907 fi 67908 67909 67910 as_nl=' 67911 ' 67912 export as_nl 67913 # Printing a long string crashes Solaris 7 /usr/bin/printf. 67914 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 67915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 67916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 67917 # Prefer a ksh shell builtin over an external printf program on Solaris, 67918 # but without wasting forks for bash or zsh. 67919 if test -z "$BASH_VERSION$ZSH_VERSION" \ 67920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 67921 as_echo='print -r --' 67922 as_echo_n='print -rn --' 67923 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 67924 as_echo='printf %s\n' 67925 as_echo_n='printf %s' 67926 else 67927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 67928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 67929 as_echo_n='/usr/ucb/echo -n' 67930 else 67931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 67932 as_echo_n_body='eval 67933 arg=$1; 67934 case $arg in #( 67935 *"$as_nl"*) 67936 expr "X$arg" : "X\\(.*\\)$as_nl"; 67937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 67938 esac; 67939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67940 ' 67941 export as_echo_n_body 67942 as_echo_n='sh -c $as_echo_n_body as_echo' 67943 fi 67944 export as_echo_body 67945 as_echo='sh -c $as_echo_body as_echo' 67946 fi 67947 67948 # The user is always right. 67949 if test "${PATH_SEPARATOR+set}" != set; then 67950 PATH_SEPARATOR=: 67951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 67952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 67953 PATH_SEPARATOR=';' 67954 } 67955 fi 67956 67957 67958 # IFS 67959 # We need space, tab and new line, in precisely that order. Quoting is 67960 # there to prevent editors from complaining about space-tab. 67961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 67962 # splitting by setting IFS to empty value.) 67963 IFS=" "" $as_nl" 67964 67965 # Find who we are. Look in the path if we contain no directory separator. 67966 as_myself= 67967 case $0 in #(( 67968 *[\\/]* ) as_myself=$0 ;; 67969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67970 for as_dir in $PATH 67971 do 67972 IFS=$as_save_IFS 67973 test -z "$as_dir" && as_dir=. 67974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 67975 done 67976 IFS=$as_save_IFS 67977 67978 ;; 67979 esac 67980 # We did not find ourselves, most probably we were run as `sh COMMAND' 67981 # in which case we are not to be found in the path. 67982 if test "x$as_myself" = x; then 67983 as_myself=$0 67984 fi 67985 if test ! -f "$as_myself"; then 67986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 67987 exit 1 67988 fi 67989 67990 # Unset variables that we do not need and which cause bugs (e.g. in 67991 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 67992 # suppresses any "Segmentation fault" message there. '((' could 67993 # trigger a bug in pdksh 5.2.14. 67994 for as_var in BASH_ENV ENV MAIL MAILPATH 67995 do eval test x\${$as_var+set} = xset \ 67996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 67997 done 67998 PS1='$ ' 67999 PS2='> ' 68000 PS4='+ ' 68001 68002 # NLS nuisances. 68003 LC_ALL=C 68004 export LC_ALL 68005 LANGUAGE=C 68006 export LANGUAGE 68007 68008 # CDPATH. 68009 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 68010 68011 68012 # as_fn_error STATUS ERROR [LINENO LOG_FD] 68013 # ---------------------------------------- 68014 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 68015 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 68016 # script with STATUS, using 1 if that was 0. 68017 as_fn_error () 68018 { 68019 as_status=$1; test $as_status -eq 0 && as_status=1 68020 if test "$4"; then 68021 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 68022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 68023 fi 68024 $as_echo "$as_me: error: $2" >&2 68025 as_fn_exit $as_status 68026 } # as_fn_error 68027 68028 68029 # as_fn_set_status STATUS 68030 # ----------------------- 68031 # Set $? to STATUS, without forking. 68032 as_fn_set_status () 68033 { 68034 return $1 68035 } # as_fn_set_status 68036 68037 # as_fn_exit STATUS 68038 # ----------------- 68039 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 68040 as_fn_exit () 68041 { 68042 set +e 68043 as_fn_set_status $1 68044 exit $1 68045 } # as_fn_exit 68046 68047 # as_fn_unset VAR 68048 # --------------- 68049 # Portably unset VAR. 68050 as_fn_unset () 68051 { 68052 { eval $1=; unset $1;} 68053 } 68054 as_unset=as_fn_unset 68055 # as_fn_append VAR VALUE 68056 # ---------------------- 68057 # Append the text in VALUE to the end of the definition contained in VAR. Take 68058 # advantage of any shell optimizations that allow amortized linear growth over 68059 # repeated appends, instead of the typical quadratic growth present in naive 68060 # implementations. 68061 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 68062 eval 'as_fn_append () 68063 { 68064 eval $1+=\$2 68065 }' 68066 else 68067 as_fn_append () 68068 { 68069 eval $1=\$$1\$2 68070 } 68071 fi # as_fn_append 68072 68073 # as_fn_arith ARG... 68074 # ------------------ 68075 # Perform arithmetic evaluation on the ARGs, and store the result in the 68076 # global $as_val. Take advantage of shells that can avoid forks. The arguments 68077 # must be portable across $(()) and expr. 68078 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 68079 eval 'as_fn_arith () 68080 { 68081 as_val=$(( $* )) 68082 }' 68083 else 68084 as_fn_arith () 68085 { 68086 as_val=`expr "$@" || test $? -eq 1` 68087 } 68088 fi # as_fn_arith 68089 68090 68091 if expr a : '\(a\)' >/dev/null 2>&1 && 68092 test "X`expr 00001 : '.*\(...\)'`" = X001; then 68093 as_expr=expr 68094 else 68095 as_expr=false 68096 fi 68097 68098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 68099 as_basename=basename 68100 else 68101 as_basename=false 68102 fi 68103 68104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 68105 as_dirname=dirname 68106 else 68107 as_dirname=false 68108 fi 68109 68110 as_me=`$as_basename -- "$0" || 68111 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68112 X"$0" : 'X\(//\)$' \| \ 68113 X"$0" : 'X\(/\)' \| . 2>/dev/null || 68114 $as_echo X/"$0" | 68115 sed '/^.*\/\([^/][^/]*\)\/*$/{ 68116 s//\1/ 68117 q 68118 } 68119 /^X\/\(\/\/\)$/{ 68120 s//\1/ 68121 q 68122 } 68123 /^X\/\(\/\).*/{ 68124 s//\1/ 68125 q 68126 } 68127 s/.*/./; q'` 68128 68129 # Avoid depending upon Character Ranges. 68130 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 68131 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 68132 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 68133 as_cr_digits='0123456789' 68134 as_cr_alnum=$as_cr_Letters$as_cr_digits 68135 68136 ECHO_C= ECHO_N= ECHO_T= 68137 case `echo -n x` in #((((( 68138 -n*) 68139 case `echo 'xy\c'` in 68140 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 68141 xy) ECHO_C='\c';; 68142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 68143 ECHO_T=' ';; 68144 esac;; 68145 *) 68146 ECHO_N='-n';; 68147 esac 68148 68149 rm -f conf$$ conf$$.exe conf$$.file 68150 if test -d conf$$.dir; then 68151 rm -f conf$$.dir/conf$$.file 68152 else 68153 rm -f conf$$.dir 68154 mkdir conf$$.dir 2>/dev/null 68155 fi 68156 if (echo >conf$$.file) 2>/dev/null; then 68157 if ln -s conf$$.file conf$$ 2>/dev/null; then 68158 as_ln_s='ln -s' 68159 # ... but there are two gotchas: 68160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 68161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 68162 # In both cases, we have to default to `cp -pR'. 68163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 68164 as_ln_s='cp -pR' 68165 elif ln conf$$.file conf$$ 2>/dev/null; then 68166 as_ln_s=ln 68167 else 68168 as_ln_s='cp -pR' 68169 fi 68170 else 68171 as_ln_s='cp -pR' 68172 fi 68173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 68174 rmdir conf$$.dir 2>/dev/null 68175 68176 68177 # as_fn_mkdir_p 68178 # ------------- 68179 # Create "$as_dir" as a directory, including parents if necessary. 68180 as_fn_mkdir_p () 68181 { 68182 68183 case $as_dir in #( 68184 -*) as_dir=./$as_dir;; 68185 esac 68186 test -d "$as_dir" || eval $as_mkdir_p || { 68187 as_dirs= 68188 while :; do 68189 case $as_dir in #( 68190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 68191 *) as_qdir=$as_dir;; 68192 esac 68193 as_dirs="'$as_qdir' $as_dirs" 68194 as_dir=`$as_dirname -- "$as_dir" || 68195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68196 X"$as_dir" : 'X\(//\)[^/]' \| \ 68197 X"$as_dir" : 'X\(//\)$' \| \ 68198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 68199 $as_echo X"$as_dir" | 68200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68201 s//\1/ 68202 q 68203 } 68204 /^X\(\/\/\)[^/].*/{ 68205 s//\1/ 68206 q 68207 } 68208 /^X\(\/\/\)$/{ 68209 s//\1/ 68210 q 68211 } 68212 /^X\(\/\).*/{ 68213 s//\1/ 68214 q 68215 } 68216 s/.*/./; q'` 68217 test -d "$as_dir" && break 68218 done 68219 test -z "$as_dirs" || eval "mkdir $as_dirs" 68220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 68221 68222 68223 } # as_fn_mkdir_p 68224 if mkdir -p . 2>/dev/null; then 68225 as_mkdir_p='mkdir -p "$as_dir"' 68226 else 68227 test -d ./-p && rmdir ./-p 68228 as_mkdir_p=false 68229 fi 68230 68231 68232 # as_fn_executable_p FILE 68233 # ----------------------- 68234 # Test if FILE is an executable regular file. 68235 as_fn_executable_p () 68236 { 68237 test -f "$1" && test -x "$1" 68238 } # as_fn_executable_p 68239 as_test_x='test -x' 68240 as_executable_p=as_fn_executable_p 68241 68242 # Sed expression to map a string onto a valid CPP name. 68243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 68244 68245 # Sed expression to map a string onto a valid variable name. 68246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 68247 68248 68249 exec 6>&1 68250 ## ----------------------------------- ## 68251 ## Main body of $CONFIG_STATUS script. ## 68252 ## ----------------------------------- ## 68253 _ASEOF 68254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 68255 68256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68257 # Save the log message, to keep $0 and so on meaningful, and to 68258 # report actual input values of CONFIG_FILES etc. instead of their 68259 # values after options handling. 68260 ac_log=" 68261 This file was extended by OpenJDK $as_me jdk9, which was 68262 generated by GNU Autoconf 2.69. Invocation command line was 68263 68264 CONFIG_FILES = $CONFIG_FILES 68265 CONFIG_HEADERS = $CONFIG_HEADERS 68266 CONFIG_LINKS = $CONFIG_LINKS 68267 CONFIG_COMMANDS = $CONFIG_COMMANDS 68268 $ $0 $@ 68269 68270 on `(hostname || uname -n) 2>/dev/null | sed 1q` 68271 " 68272 68273 _ACEOF 68274 68275 case $ac_config_files in *" 68276 "*) set x $ac_config_files; shift; ac_config_files=$*;; 68277 esac 68278 68279 68280 68281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68282 # Files that config.status was made for. 68283 config_files="$ac_config_files" 68284 68285 _ACEOF 68286 68287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68288 ac_cs_usage="\ 68289 \`$as_me' instantiates files and other configuration actions 68290 from templates according to the current configuration. Unless the files 68291 and actions are specified as TAGs, all are instantiated by default. 68292 68293 Usage: $0 [OPTION]... [TAG]... 68294 68295 -h, --help print this help, then exit 68296 -V, --version print version number and configuration settings, then exit 68297 --config print configuration, then exit 68298 -q, --quiet, --silent 68299 do not print progress messages 68300 -d, --debug don't remove temporary files 68301 --recheck update $as_me by reconfiguring in the same conditions 68302 --file=FILE[:TEMPLATE] 68303 instantiate the configuration file FILE 68304 68305 Configuration files: 68306 $config_files 68307 68308 Report bugs to <build-dev@openjdk.java.net>. 68309 OpenJDK home page: <http://openjdk.java.net>." 68310 68311 _ACEOF 68312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 68314 ac_cs_version="\\ 68315 OpenJDK config.status jdk9 68316 configured by $0, generated by GNU Autoconf 2.69, 68317 with options \\"\$ac_cs_config\\" 68318 68319 Copyright (C) 2012 Free Software Foundation, Inc. 68320 This config.status script is free software; the Free Software Foundation 68321 gives unlimited permission to copy, distribute and modify it." 68322 68323 ac_pwd='$ac_pwd' 68324 srcdir='$srcdir' 68325 AWK='$AWK' 68326 test -n "\$AWK" || AWK=awk 68327 _ACEOF 68328 68329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68330 # The default lists apply if the user does not specify any file. 68331 ac_need_defaults=: 68332 while test $# != 0 68333 do 68334 case $1 in 68335 --*=?*) 68336 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68337 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 68338 ac_shift=: 68339 ;; 68340 --*=) 68341 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68342 ac_optarg= 68343 ac_shift=: 68344 ;; 68345 *) 68346 ac_option=$1 68347 ac_optarg=$2 68348 ac_shift=shift 68349 ;; 68350 esac 68351 68352 case $ac_option in 68353 # Handling of the options. 68354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 68355 ac_cs_recheck=: ;; 68356 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 68357 $as_echo "$ac_cs_version"; exit ;; 68358 --config | --confi | --conf | --con | --co | --c ) 68359 $as_echo "$ac_cs_config"; exit ;; 68360 --debug | --debu | --deb | --de | --d | -d ) 68361 debug=: ;; 68362 --file | --fil | --fi | --f ) 68363 $ac_shift 68364 case $ac_optarg in 68365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 68366 '') as_fn_error $? "missing file argument" ;; 68367 esac 68368 as_fn_append CONFIG_FILES " '$ac_optarg'" 68369 ac_need_defaults=false;; 68370 --he | --h | --help | --hel | -h ) 68371 $as_echo "$ac_cs_usage"; exit ;; 68372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 68373 | -silent | --silent | --silen | --sile | --sil | --si | --s) 68374 ac_cs_silent=: ;; 68375 68376 # This is an error. 68377 -*) as_fn_error $? "unrecognized option: \`$1' 68378 Try \`$0 --help' for more information." ;; 68379 68380 *) as_fn_append ac_config_targets " $1" 68381 ac_need_defaults=false ;; 68382 68383 esac 68384 shift 68385 done 68386 68387 ac_configure_extra_args= 68388 68389 if $ac_cs_silent; then 68390 exec 6>/dev/null 68391 ac_configure_extra_args="$ac_configure_extra_args --silent" 68392 fi 68393 68394 _ACEOF 68395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68396 if \$ac_cs_recheck; then 68397 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 68398 shift 68399 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 68400 CONFIG_SHELL='$SHELL' 68401 export CONFIG_SHELL 68402 exec "\$@" 68403 fi 68404 68405 _ACEOF 68406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68407 exec 5>>config.log 68408 { 68409 echo 68410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 68411 ## Running $as_me. ## 68412 _ASBOX 68413 $as_echo "$ac_log" 68414 } >&5 68415 68416 _ACEOF 68417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68418 _ACEOF 68419 68420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68421 68422 # Handling of arguments. 68423 for ac_config_target in $ac_config_targets 68424 do 68425 case $ac_config_target in 68426 "$OUTPUTDIR/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 68427 "$OUTPUTDIR/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 68428 "$OUTPUTDIR/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 68429 "$OUTPUTDIR/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 68430 "$OUTPUTDIR/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 68431 68432 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 68433 esac 68434 done 68435 68436 68437 # If the user did not use the arguments to specify the items to instantiate, 68438 # then the envvar interface is used. Set only those that are not. 68439 # We use the long form for the default assignment because of an extremely 68440 # bizarre bug on SunOS 4.1.3. 68441 if $ac_need_defaults; then 68442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 68443 fi 68444 68445 # Have a temporary directory for convenience. Make it in the build tree 68446 # simply because there is no reason against having it here, and in addition, 68447 # creating and moving files from /tmp can sometimes cause problems. 68448 # Hook for its removal unless debugging. 68449 # Note that there is a small window in which the directory will not be cleaned: 68450 # after its creation but before its name has been assigned to `$tmp'. 68451 $debug || 68452 { 68453 tmp= ac_tmp= 68454 trap 'exit_status=$? 68455 : "${ac_tmp:=$tmp}" 68456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 68457 ' 0 68458 trap 'as_fn_exit 1' 1 2 13 15 68459 } 68460 # Create a (secure) tmp directory for tmp files. 68461 68462 { 68463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 68464 test -d "$tmp" 68465 } || 68466 { 68467 tmp=./conf$$-$RANDOM 68468 (umask 077 && mkdir "$tmp") 68469 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 68470 ac_tmp=$tmp 68471 68472 # Set up the scripts for CONFIG_FILES section. 68473 # No need to generate them if there are no CONFIG_FILES. 68474 # This happens for instance with `./config.status config.h'. 68475 if test -n "$CONFIG_FILES"; then 68476 68477 68478 ac_cr=`echo X | tr X '\015'` 68479 # On cygwin, bash can eat \r inside `` if the user requested igncr. 68480 # But we know of no other shell where ac_cr would be empty at this 68481 # point, so we can use a bashism as a fallback. 68482 if test "x$ac_cr" = x; then 68483 eval ac_cr=\$\'\\r\' 68484 fi 68485 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 68486 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 68487 ac_cs_awk_cr='\\r' 68488 else 68489 ac_cs_awk_cr=$ac_cr 68490 fi 68491 68492 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 68493 _ACEOF 68494 68495 68496 { 68497 echo "cat >conf$$subs.awk <<_ACEOF" && 68498 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 68499 echo "_ACEOF" 68500 } >conf$$subs.sh || 68501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68502 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 68503 ac_delim='%!_!# ' 68504 for ac_last_try in false false false false false :; do 68505 . ./conf$$subs.sh || 68506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68507 68508 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 68509 if test $ac_delim_n = $ac_delim_num; then 68510 break 68511 elif $ac_last_try; then 68512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68513 else 68514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 68515 fi 68516 done 68517 rm -f conf$$subs.sh 68518 68519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68520 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 68521 _ACEOF 68522 sed -n ' 68523 h 68524 s/^/S["/; s/!.*/"]=/ 68525 p 68526 g 68527 s/^[^!]*!// 68528 :repl 68529 t repl 68530 s/'"$ac_delim"'$// 68531 t delim 68532 :nl 68533 h 68534 s/\(.\{148\}\)..*/\1/ 68535 t more1 68536 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 68537 p 68538 n 68539 b repl 68540 :more1 68541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68542 p 68543 g 68544 s/.\{148\}// 68545 t nl 68546 :delim 68547 h 68548 s/\(.\{148\}\)..*/\1/ 68549 t more2 68550 s/["\\]/\\&/g; s/^/"/; s/$/"/ 68551 p 68552 b 68553 :more2 68554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68555 p 68556 g 68557 s/.\{148\}// 68558 t delim 68559 ' <conf$$subs.awk | sed ' 68560 /^[^""]/{ 68561 N 68562 s/\n// 68563 } 68564 ' >>$CONFIG_STATUS || ac_write_fail=1 68565 rm -f conf$$subs.awk 68566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68567 _ACAWK 68568 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 68569 for (key in S) S_is_set[key] = 1 68570 FS = "" 68571 68572 } 68573 { 68574 line = $ 0 68575 nfields = split(line, field, "@") 68576 substed = 0 68577 len = length(field[1]) 68578 for (i = 2; i < nfields; i++) { 68579 key = field[i] 68580 keylen = length(key) 68581 if (S_is_set[key]) { 68582 value = S[key] 68583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 68584 len += length(value) + length(field[++i]) 68585 substed = 1 68586 } else 68587 len += 1 + keylen 68588 } 68589 68590 print line 68591 } 68592 68593 _ACAWK 68594 _ACEOF 68595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68596 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 68597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 68598 else 68599 cat 68600 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 68601 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 68602 _ACEOF 68603 68604 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 68605 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 68606 # trailing colons and then remove the whole line if VPATH becomes empty 68607 # (actually we leave an empty line to preserve line numbers). 68608 if test "x$srcdir" = x.; then 68609 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 68610 h 68611 s/// 68612 s/^/:/ 68613 s/[ ]*$/:/ 68614 s/:\$(srcdir):/:/g 68615 s/:\${srcdir}:/:/g 68616 s/:@srcdir@:/:/g 68617 s/^:*// 68618 s/:*$// 68619 x 68620 s/\(=[ ]*\).*/\1/ 68621 G 68622 s/\n// 68623 s/^[^=]*=[ ]*$// 68624 }' 68625 fi 68626 68627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68628 fi # test -n "$CONFIG_FILES" 68629 68630 68631 eval set X " :F $CONFIG_FILES " 68632 shift 68633 for ac_tag 68634 do 68635 case $ac_tag in 68636 :[FHLC]) ac_mode=$ac_tag; continue;; 68637 esac 68638 case $ac_mode$ac_tag in 68639 :[FHL]*:*);; 68640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 68641 :[FH]-) ac_tag=-:-;; 68642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 68643 esac 68644 ac_save_IFS=$IFS 68645 IFS=: 68646 set x $ac_tag 68647 IFS=$ac_save_IFS 68648 shift 68649 ac_file=$1 68650 shift 68651 68652 case $ac_mode in 68653 :L) ac_source=$1;; 68654 :[FH]) 68655 ac_file_inputs= 68656 for ac_f 68657 do 68658 case $ac_f in 68659 -) ac_f="$ac_tmp/stdin";; 68660 *) # Look for the file first in the build tree, then in the source tree 68661 # (if the path is not absolute). The absolute path cannot be DOS-style, 68662 # because $ac_f cannot contain `:'. 68663 test -f "$ac_f" || 68664 case $ac_f in 68665 [\\/$]*) false;; 68666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 68667 esac || 68668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 68669 esac 68670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 68671 as_fn_append ac_file_inputs " '$ac_f'" 68672 done 68673 68674 # Let's still pretend it is `configure' which instantiates (i.e., don't 68675 # use $as_me), people would be surprised to read: 68676 # /* config.h. Generated by config.status. */ 68677 configure_input='Generated from '` 68678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 68679 `' by configure.' 68680 if test x"$ac_file" != x-; then 68681 configure_input="$ac_file. $configure_input" 68682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 68683 $as_echo "$as_me: creating $ac_file" >&6;} 68684 fi 68685 # Neutralize special characters interpreted by sed in replacement strings. 68686 case $configure_input in #( 68687 *\&* | *\|* | *\\* ) 68688 ac_sed_conf_input=`$as_echo "$configure_input" | 68689 sed 's/[\\\\&|]/\\\\&/g'`;; #( 68690 *) ac_sed_conf_input=$configure_input;; 68691 esac 68692 68693 case $ac_tag in 68694 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 68695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 68696 esac 68697 ;; 68698 esac 68699 68700 ac_dir=`$as_dirname -- "$ac_file" || 68701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68702 X"$ac_file" : 'X\(//\)[^/]' \| \ 68703 X"$ac_file" : 'X\(//\)$' \| \ 68704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 68705 $as_echo X"$ac_file" | 68706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68707 s//\1/ 68708 q 68709 } 68710 /^X\(\/\/\)[^/].*/{ 68711 s//\1/ 68712 q 68713 } 68714 /^X\(\/\/\)$/{ 68715 s//\1/ 68716 q 68717 } 68718 /^X\(\/\).*/{ 68719 s//\1/ 68720 q 68721 } 68722 s/.*/./; q'` 68723 as_dir="$ac_dir"; as_fn_mkdir_p 68724 ac_builddir=. 68725 68726 case "$ac_dir" in 68727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 68728 *) 68729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 68730 # A ".." for each directory in $ac_dir_suffix. 68731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 68732 case $ac_top_builddir_sub in 68733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 68734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 68735 esac ;; 68736 esac 68737 ac_abs_top_builddir=$ac_pwd 68738 ac_abs_builddir=$ac_pwd$ac_dir_suffix 68739 # for backward compatibility: 68740 ac_top_builddir=$ac_top_build_prefix 68741 68742 case $srcdir in 68743 .) # We are building in place. 68744 ac_srcdir=. 68745 ac_top_srcdir=$ac_top_builddir_sub 68746 ac_abs_top_srcdir=$ac_pwd ;; 68747 [\\/]* | ?:[\\/]* ) # Absolute name. 68748 ac_srcdir=$srcdir$ac_dir_suffix; 68749 ac_top_srcdir=$srcdir 68750 ac_abs_top_srcdir=$srcdir ;; 68751 *) # Relative name. 68752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 68753 ac_top_srcdir=$ac_top_build_prefix$srcdir 68754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 68755 esac 68756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 68757 68758 68759 case $ac_mode in 68760 :F) 68761 # 68762 # CONFIG_FILE 68763 # 68764 68765 _ACEOF 68766 68767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68768 # If the template does not know about datarootdir, expand it. 68769 # FIXME: This hack should be removed a few years after 2.60. 68770 ac_datarootdir_hack=; ac_datarootdir_seen= 68771 ac_sed_dataroot=' 68772 /datarootdir/ { 68773 p 68774 q 68775 } 68776 /@datadir@/p 68777 /@docdir@/p 68778 /@infodir@/p 68779 /@localedir@/p 68780 /@mandir@/p' 68781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 68782 *datarootdir*) ac_datarootdir_seen=yes;; 68783 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 68784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 68785 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 68786 _ACEOF 68787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68788 ac_datarootdir_hack=' 68789 s&@datadir@&$datadir&g 68790 s&@docdir@&$docdir&g 68791 s&@infodir@&$infodir&g 68792 s&@localedir@&$localedir&g 68793 s&@mandir@&$mandir&g 68794 s&\\\${datarootdir}&$datarootdir&g' ;; 68795 esac 68796 _ACEOF 68797 68798 # Neutralize VPATH when `$srcdir' = `.'. 68799 # Shell code in configure.ac might set extrasub. 68800 # FIXME: do we really want to maintain this feature? 68801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68802 ac_sed_extra="$ac_vpsub 68803 $extrasub 68804 _ACEOF 68805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68806 :t 68807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 68808 s|@configure_input@|$ac_sed_conf_input|;t t 68809 s&@top_builddir@&$ac_top_builddir_sub&;t t 68810 s&@top_build_prefix@&$ac_top_build_prefix&;t t 68811 s&@srcdir@&$ac_srcdir&;t t 68812 s&@abs_srcdir@&$ac_abs_srcdir&;t t 68813 s&@top_srcdir@&$ac_top_srcdir&;t t 68814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 68815 s&@builddir@&$ac_builddir&;t t 68816 s&@abs_builddir@&$ac_abs_builddir&;t t 68817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 68818 $ac_datarootdir_hack 68819 " 68820 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 68821 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 68822 68823 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 68824 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 68825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 68826 "$ac_tmp/out"`; test -z "$ac_out"; } && 68827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68828 which seems to be undefined. Please make sure it is defined" >&5 68829 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68830 which seems to be undefined. Please make sure it is defined" >&2;} 68831 68832 rm -f "$ac_tmp/stdin" 68833 case $ac_file in 68834 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 68835 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 68836 esac \ 68837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 68838 ;; 68839 68840 68841 68842 esac 68843 68844 done # for ac_tag 68845 68846 68847 as_fn_exit 0 68848 _ACEOF 68849 ac_clean_files=$ac_clean_files_save 68850 68851 test $ac_write_fail = 0 || 68852 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 68853 68854 68855 # configure is writing to config.log, and then calls config.status. 68856 # config.status does its own redirection, appending to config.log. 68857 # Unfortunately, on DOS this fails, as config.log is still kept open 68858 # by configure, so config.status won't be able to write to it; its 68859 # output is simply discarded. So we exec the FD to /dev/null, 68860 # effectively closing config.log, so it can be properly (re)opened and 68861 # appended to by config.status. When coming back to configure, we 68862 # need to make the FD available again. 68863 if test "$no_create" != yes; then 68864 ac_cs_success=: 68865 ac_config_status_args= 68866 test "$silent" = yes && 68867 ac_config_status_args="$ac_config_status_args --quiet" 68868 exec 5>/dev/null 68869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 68870 exec 5>>config.log 68871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 68872 # would make configure fail if this is the last instruction. 68873 $ac_cs_success || as_fn_exit 1 68874 fi 68875 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 68876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 68877 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 68878 fi 68879 68880 68881 # After AC_OUTPUT, we need to do final work 68882 68883 68884 # Try to move config.log (generated by autoconf) to the configure-support directory. 68885 if test -e ./config.log; then 68886 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 68887 fi 68888 68889 # Rotate our log file (configure.log) 68890 if test -e "$OUTPUTDIR/configure.log.old"; then 68891 $RM -f "$OUTPUTDIR/configure.log.old" 68892 fi 68893 if test -e "$OUTPUTDIR/configure.log"; then 68894 $MV -f "$OUTPUTDIR/configure.log" "$OUTPUTDIR/configure.log.old" 2> /dev/null 68895 fi 68896 68897 # Move configure.log from current directory to the build output root 68898 if test -e ./configure.log; then 68899 $MV -f ./configure.log "$OUTPUTDIR/configure.log" 2> /dev/null 68900 fi 68901 68902 # Make the compare script executable 68903 $CHMOD +x $OUTPUTDIR/compare.sh 68904 68905 68906 # Finally output some useful information to the user 68907 68908 # Finally output some useful information to the user 68909 68910 printf "\n" 68911 printf "====================================================\n" 68912 if test "x$no_create" != "xyes"; then 68913 if test "x$IS_RECONFIGURE" != "xyes"; then 68914 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR" 68915 else 68916 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR" 68917 fi 68918 else 68919 if test "x$IS_RECONFIGURE" != "xyes"; then 68920 printf "A configuration has been successfully checked but not created\n" 68921 else 68922 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR" 68923 fi 68924 fi 68925 if test "x$CONFIGURE_COMMAND_LINE" != x; then 68926 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 68927 else 68928 printf "using default settings.\n" 68929 fi 68930 68931 printf "\n" 68932 printf "Configuration summary:\n" 68933 printf "* Debug level: $DEBUG_LEVEL\n" 68934 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 68935 printf "* JDK variant: $JDK_VARIANT\n" 68936 printf "* JVM variants: $JVM_VARIANTS\n" 68937 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 68938 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 68939 68940 printf "\n" 68941 printf "Tools summary:\n" 68942 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 68943 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 68944 fi 68945 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 68946 if test "x$TOOLCHAIN_VERSION" != "x"; then 68947 print_version=" $TOOLCHAIN_VERSION" 68948 fi 68949 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 68950 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 68951 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 68952 68953 printf "\n" 68954 printf "Build performance summary:\n" 68955 printf "* Cores to use: $JOBS\n" 68956 printf "* Memory limit: $MEMORY_SIZE MB\n" 68957 if test "x$CCACHE_STATUS" != "x"; then 68958 printf "* ccache status: $CCACHE_STATUS\n" 68959 fi 68960 printf "\n" 68961 68962 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 68963 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 68964 printf "will result in longer build times.\n" 68965 printf "\n" 68966 fi 68967 68968 if test "x$FOUND_ALT_VARIABLES" != "x"; then 68969 printf "WARNING: You have old-style ALT_ environment variables set.\n" 68970 printf "These are not respected, and will be ignored. It is recommended\n" 68971 printf "that you clean your environment. The following variables are set:\n" 68972 printf "$FOUND_ALT_VARIABLES\n" 68973 printf "\n" 68974 fi 68975 68976 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 68977 printf "WARNING: Your build output directory is not on a local disk.\n" 68978 printf "This will severely degrade build performance!\n" 68979 printf "It is recommended that you create an output directory on a local disk,\n" 68980 printf "and run the configure script again from that directory.\n" 68981 printf "\n" 68982 fi 68983 68984 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 68985 printf "WARNING: The result of this configuration has overridden an older\n" 68986 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 68987 printf "proper build. Failure to do so might result in strange build problems.\n" 68988 printf "\n" 68989 fi 68990 68991 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 68992 printf "WARNING: The result of this configuration was not saved.\n" 68993 printf "You should run without '--no-create | -n' to create the configuration.\n" 68994 printf "\n" 68995 fi 68996 68997 68998 68999 # Locate config.log. 69000 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 69001 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 69002 elif test -e "./config.log"; then 69003 CONFIG_LOG_PATH="." 69004 fi 69005 69006 if test -e "$CONFIG_LOG_PATH/config.log"; then 69007 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 69008 if test $? -eq 0; then 69009 printf "The following warnings were produced. Repeated here for convenience:\n" 69010 # We must quote sed expression (using []) to stop m4 from eating the []. 69011 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 69012 printf "\n" 69013 fi 69014 fi 69015