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_zeroshark 660 JVM_FEATURES_zero 661 JVM_FEATURES_minimal 662 JVM_FEATURES_core 663 JVM_FEATURES_client 664 JVM_FEATURES_server 665 INCLUDE_GRAAL 666 STLPORT_LIB 667 LIBZIP_CAN_USE_MMAP 668 LIBDL 669 LIBM 670 USE_EXTERNAL_LCMS 671 LCMS_LIBS 672 LCMS_CFLAGS 673 USE_EXTERNAL_LIBZ 674 USE_EXTERNAL_LIBPNG 675 PNG_LIBS 676 PNG_CFLAGS 677 USE_EXTERNAL_LIBGIF 678 USE_EXTERNAL_LIBJPEG 679 LLVM_LIBS 680 LLVM_LDFLAGS 681 LLVM_CFLAGS 682 LLVM_CONFIG 683 LIBFFI_LIB_FILE 684 ENABLE_LIBFFI_BUNDLING 685 LIBFFI_LIBS 686 LIBFFI_CFLAGS 687 ALSA_LIBS 688 ALSA_CFLAGS 689 FREETYPE_LICENSE 690 FREETYPE_BUNDLE_LIB_PATH 691 FREETYPE_LIBS 692 FREETYPE_CFLAGS 693 CUPS_CFLAGS 694 X_EXTRA_LIBS 695 X_LIBS 696 X_PRE_LIBS 697 X_CFLAGS 698 XMKMF 699 MSVCP_DLL 700 MSVCR_DLL 701 LIBCXX 702 FIXPATH_DETACH_FLAG 703 FIXPATH 704 BUILD_GTEST 705 ENABLE_CDS 706 ENABLE_AOT 707 ASAN_ENABLED 708 GCOV_ENABLED 709 ZIP_EXTERNAL_DEBUG_SYMBOLS 710 COPY_DEBUG_SYMBOLS 711 COMPILE_WITH_DEBUG_SYMBOLS 712 CFLAGS_WARNINGS_ARE_ERRORS 713 BUILD_CC_DISABLE_WARNING_PREFIX 714 DISABLE_WARNING_PREFIX 715 WARNINGS_AS_ERRORS 716 COMPILER_SUPPORTS_TARGET_BITS_FLAG 717 LDFLAGS_TESTEXE 718 LDFLAGS_TESTLIB 719 CXXFLAGS_TESTEXE 720 CXXFLAGS_TESTLIB 721 CFLAGS_TESTEXE 722 CFLAGS_TESTLIB 723 OPENJDK_BUILD_JVM_LIBS 724 OPENJDK_BUILD_JVM_ASFLAGS 725 OPENJDK_BUILD_JVM_LDFLAGS 726 OPENJDK_BUILD_JVM_CFLAGS 727 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK 728 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 729 OPENJDK_BUILD_LDFLAGS_CXX_JDK 730 OPENJDK_BUILD_JDKEXE_LIBS 731 OPENJDK_BUILD_JDKLIB_LIBS 732 OPENJDK_BUILD_LDFLAGS_JDKEXE 733 OPENJDK_BUILD_LDFLAGS_JDKLIB 734 OPENJDK_BUILD_CXXFLAGS_JDKEXE 735 OPENJDK_BUILD_CXXFLAGS_JDKLIB 736 OPENJDK_BUILD_CFLAGS_JDKEXE 737 OPENJDK_BUILD_CFLAGS_JDKLIB 738 OPENJDK_BUILD_CXXSTD_CXXFLAG 739 JVM_LIBS 740 JVM_ASFLAGS 741 JVM_LDFLAGS 742 JVM_CFLAGS 743 LDFLAGS_NO_EXEC_STACK 744 LDFLAGS_HASH_STYLE 745 LDFLAGS_CXX_JDK 746 JDKEXE_LIBS 747 JDKLIB_LIBS 748 LDFLAGS_JDKEXE 749 LDFLAGS_JDKLIB 750 CXXFLAGS_JDKEXE 751 CXXFLAGS_JDKLIB 752 CFLAGS_JDKEXE 753 CFLAGS_JDKLIB 754 MACOSX_VERSION_MAX 755 MACOSX_VERSION_MIN 756 CXXSTD_CXXFLAG 757 JDK_ARCH_ABI_PROP_NAME 758 CXX_O_FLAG_SIZE 759 CXX_O_FLAG_NONE 760 CXX_O_FLAG_DEBUG 761 CXX_O_FLAG_NORM 762 CXX_O_FLAG_HI 763 CXX_O_FLAG_HIGHEST 764 CXX_O_FLAG_HIGHEST_JVM 765 C_O_FLAG_SIZE 766 C_O_FLAG_NONE 767 C_O_FLAG_DEBUG 768 C_O_FLAG_NORM 769 C_O_FLAG_HI 770 C_O_FLAG_HIGHEST 771 C_O_FLAG_HIGHEST_JVM 772 JVM_CFLAGS_SYMBOLS 773 CXXFLAGS_DEBUG_SYMBOLS 774 CFLAGS_DEBUG_SYMBOLS 775 CXX_FLAG_DEPS 776 C_FLAG_DEPS 777 SHARED_LIBRARY_FLAGS 778 SET_SHARED_LIBRARY_MAPFILE 779 SET_SHARED_LIBRARY_NAME 780 SET_SHARED_LIBRARY_ORIGIN 781 SET_EXECUTABLE_ORIGIN 782 CXX_FLAG_REORDER 783 C_FLAG_REORDER 784 JVM_RCFLAGS 785 RC_FLAGS 786 AR_OUT_OPTION 787 LD_OUT_OPTION 788 EXE_OUT_OPTION 789 CC_OUT_OPTION 790 STRIPFLAGS 791 ARFLAGS 792 COMPILER_BINDCMD_FILE_FLAG 793 COMPILER_COMMAND_FILE_FLAG 794 COMPILER_TARGET_BITS_FLAG 795 JIB_JAR 796 JT_HOME 797 JTREGEXE 798 HOTSPOT_TOOLCHAIN_TYPE 799 USING_BROKEN_SUSE_LD 800 PACKAGE_PATH 801 BUILD_AS 802 BUILD_LDCXX 803 BUILD_LD 804 BUILD_STRIP 805 BUILD_OBJCOPY 806 BUILD_AR 807 BUILD_NM 808 BUILD_CXX 809 BUILD_CC 810 BUILD_SYSROOT_LDFLAGS 811 BUILD_SYSROOT_CFLAGS 812 ac_ct_OBJDUMP 813 OBJDUMP 814 ac_ct_OBJCOPY 815 OBJCOPY 816 ac_ct_NM 817 ac_ct_STRIP 818 GNM 819 NM 820 STRIP 821 MSBUILD 822 DUMPBIN 823 RC 824 MT 825 LIPO 826 ac_ct_AR 827 AR 828 AS 829 LDCXX 830 LD 831 CXXCPP 832 CPP 833 CXX_VERSION_NUMBER 834 CC_VERSION_NUMBER 835 ac_ct_CXX 836 CXXFLAGS 837 CXX 838 TOOLCHAIN_PATH_CXX 839 POTENTIAL_CXX 840 OBJEXT 841 EXEEXT 842 ac_ct_CC 843 CPPFLAGS 844 LDFLAGS 845 CFLAGS 846 CC 847 TOOLCHAIN_PATH_CC 848 POTENTIAL_CC 849 TOOLCHAIN_VERSION 850 VS_LIB 851 VS_INCLUDE 852 VS_PATH 853 CYGWIN_LINK 854 SYSROOT_LDFLAGS 855 SYSROOT_CFLAGS 856 EXTRA_LDFLAGS 857 EXTRA_CXXFLAGS 858 EXTRA_CFLAGS 859 EXE_SUFFIX 860 OBJ_SUFFIX 861 STATIC_LIBRARY 862 SHARED_LIBRARY 863 STATIC_LIBRARY_SUFFIX 864 SHARED_LIBRARY_SUFFIX 865 LIBRARY_PREFIX 866 TOOLCHAIN_TYPE 867 STATIC_BUILD 868 IMPORT_MODULES_MAKE 869 IMPORT_MODULES_SRC 870 IMPORT_MODULES_MAN 871 IMPORT_MODULES_LEGAL 872 IMPORT_MODULES_CONF 873 IMPORT_MODULES_LIBS 874 IMPORT_MODULES_CMDS 875 IMPORT_MODULES_CLASSES 876 EXTERNAL_BUILDJDK 877 BUILD_JDK 878 CREATE_BUILDJDK 879 JLINK 880 JMOD 881 JAVAC_FLAGS 882 BOOT_JDK_SOURCETARGET 883 JARSIGNER 884 JAR 885 JAVADOC 886 JAVAH 887 JAVAC 888 JAVA 889 BOOT_JDK 890 JAVA_CHECK 891 JAVAC_CHECK 892 VERSION_IS_GA 893 VERSION_SHORT 894 VERSION_STRING 895 VERSION_NUMBER_FOUR_POSITIONS 896 VERSION_NUMBER 897 VERSION_OPT 898 VERSION_BUILD 899 VERSION_PRE 900 VERSION_PATCH 901 VERSION_SECURITY 902 VERSION_MINOR 903 VERSION_MAJOR 904 MACOSX_BUNDLE_ID_BASE 905 MACOSX_BUNDLE_NAME_BASE 906 HOTSPOT_VM_DISTRO 907 COMPANY_NAME 908 JDK_RC_PLATFORM_NAME 909 PRODUCT_SUFFIX 910 PRODUCT_NAME 911 LAUNCHER_NAME 912 JLINK_KEEP_PACKAGED_MODULES 913 COPYRIGHT_YEAR 914 COMPRESS_JARS 915 INCLUDE_SA 916 UNLIMITED_CRYPTO 917 CACERTS_FILE 918 ENABLE_FULL_DOCS 919 ENABLE_HEADLESS_ONLY 920 DEFAULT_MAKE_TARGET 921 OS_VERSION_MICRO 922 OS_VERSION_MINOR 923 OS_VERSION_MAJOR 924 PKG_CONFIG 925 BASH_ARGS 926 SETFILE 927 CODESIGN 928 XATTR 929 DSYMUTIL 930 IS_GNU_TIME 931 PATCH 932 DTRACE 933 FLOCK 934 TIME 935 STAT 936 HG 937 DOT 938 READELF 939 OTOOL 940 LDD 941 ZIPEXE 942 UNZIP 943 TAR_SUPPORTS_TRANSFORM 944 TAR_INCLUDE_PARAM 945 TAR_CREATE_EXTRA_PARAM 946 TAR_TYPE 947 FIND_DELETE 948 OUTPUT_SYNC 949 OUTPUT_SYNC_SUPPORTED 950 CHECK_TOOLSDIR_MAKE 951 CHECK_TOOLSDIR_GMAKE 952 CHECK_MAKE 953 CHECK_GMAKE 954 MAKE 955 PKGHANDLER 956 CONFIGURESUPPORT_OUTPUTDIR 957 OUTPUTDIR 958 CONF_NAME 959 SPEC 960 SDKROOT 961 XCODEBUILD 962 DEVKIT_LIB_DIR 963 JVM_VARIANT_MAIN 964 VALID_JVM_VARIANTS 965 JVM_VARIANTS 966 DEBUG_LEVEL 967 HOTSPOT_DEBUG_LEVEL 968 JDK_VARIANT 969 USERNAME 970 TOPDIR 971 PATH_SEP 972 HOTSPOT_BUILD_CPU_DEFINE 973 HOTSPOT_BUILD_CPU_ARCH 974 HOTSPOT_BUILD_CPU 975 HOTSPOT_BUILD_OS_TYPE 976 HOTSPOT_BUILD_OS 977 OPENJDK_BUILD_BUNDLE_PLATFORM 978 OPENJDK_BUILD_OS_EXPORT_DIR 979 OPENJDK_BUILD_CPU_OSARCH 980 OPENJDK_BUILD_CPU_ISADIR 981 OPENJDK_BUILD_CPU_LEGACY_LIB 982 OPENJDK_BUILD_CPU_LEGACY 983 HOTSPOT_TARGET_CPU_DEFINE 984 HOTSPOT_TARGET_CPU_ARCH 985 HOTSPOT_TARGET_CPU 986 HOTSPOT_TARGET_OS_TYPE 987 HOTSPOT_TARGET_OS 988 DEFINE_CROSS_COMPILE_ARCH 989 OPENJDK_TARGET_BUNDLE_PLATFORM 990 OPENJDK_TARGET_OS_EXPORT_DIR 991 OPENJDK_TARGET_CPU_OSARCH 992 OPENJDK_TARGET_CPU_ISADIR 993 OPENJDK_TARGET_CPU_LEGACY_LIB 994 OPENJDK_TARGET_CPU_LEGACY 995 RELEASE_FILE_OS_ARCH 996 RELEASE_FILE_OS_NAME 997 OPENJDK_MODULE_TARGET_PLATFORM 998 COMPILE_TYPE 999 OPENJDK_TARGET_CPU_ENDIAN 1000 OPENJDK_TARGET_CPU_BITS 1001 OPENJDK_TARGET_CPU_ARCH 1002 OPENJDK_TARGET_CPU 1003 OPENJDK_TARGET_OS_ENV 1004 OPENJDK_TARGET_OS_TYPE 1005 OPENJDK_TARGET_OS 1006 OPENJDK_BUILD_CPU_ENDIAN 1007 OPENJDK_BUILD_CPU_BITS 1008 OPENJDK_BUILD_CPU_ARCH 1009 OPENJDK_BUILD_CPU 1010 OPENJDK_BUILD_OS_ENV 1011 OPENJDK_BUILD_OS_TYPE 1012 OPENJDK_BUILD_OS 1013 OPENJDK_BUILD_AUTOCONF_NAME 1014 OPENJDK_TARGET_AUTOCONF_NAME 1015 target_os 1016 target_vendor 1017 target_cpu 1018 target 1019 host_os 1020 host_vendor 1021 host_cpu 1022 host 1023 build_os 1024 build_vendor 1025 build_cpu 1026 build 1027 PANDOC 1028 NICE 1029 CPIO 1030 DF 1031 READLINK 1032 CYGPATH 1033 SED 1034 FGREP 1035 EGREP 1036 GREP 1037 AWK 1038 XARGS 1039 WHICH 1040 WC 1041 UNIQ 1042 UNAME 1043 TR 1044 TOUCH 1045 TEE 1046 TAR 1047 TAIL 1048 SORT 1049 SH 1050 RMDIR 1051 RM 1052 PRINTF 1053 NAWK 1054 MV 1055 MKTEMP 1056 MKDIR 1057 LS 1058 LN 1059 GZIP 1060 GUNZIP 1061 HEAD 1062 FIND 1063 FILE 1064 EXPR 1065 ECHO 1066 DIRNAME 1067 DIFF 1068 DATE 1069 CUT 1070 CP 1071 COMM 1072 CMP 1073 CHMOD 1074 CAT 1075 BASH 1076 BASENAME 1077 DATE_WHEN_CONFIGURED 1078 ORIGINAL_PATH 1079 CONFIGURE_COMMAND_LINE 1080 target_alias 1081 host_alias 1082 build_alias 1083 LIBS 1084 ECHO_T 1085 ECHO_N 1086 ECHO_C 1087 DEFS 1088 mandir 1089 localedir 1090 libdir 1091 psdir 1092 pdfdir 1093 dvidir 1094 htmldir 1095 infodir 1096 docdir 1097 oldincludedir 1098 includedir 1099 localstatedir 1100 sharedstatedir 1101 sysconfdir 1102 datadir 1103 datarootdir 1104 libexecdir 1105 sbindir 1106 bindir 1107 program_transform_name 1108 prefix 1109 exec_prefix 1110 PACKAGE_URL 1111 PACKAGE_BUGREPORT 1112 PACKAGE_STRING 1113 PACKAGE_VERSION 1114 PACKAGE_TARNAME 1115 PACKAGE_NAME 1116 PATH_SEPARATOR 1117 SHELL' 1118 ac_subst_files='' 1119 ac_user_opts=' 1120 enable_option_checking 1121 with_target_bits 1122 enable_openjdk_only 1123 with_custom_make_dir 1124 with_jdk_variant 1125 enable_debug 1126 with_debug_level 1127 with_jvm_variants 1128 with_cpu_port 1129 with_devkit 1130 with_sys_root 1131 with_sysroot 1132 with_tools_dir 1133 with_toolchain_path 1134 with_extra_path 1135 with_sdk_name 1136 with_conf_name 1137 with_output_sync 1138 with_default_make_target 1139 enable_headless_only 1140 enable_full_docs 1141 with_cacerts_file 1142 enable_unlimited_crypto 1143 with_copyright_year 1144 enable_keep_packaged_modules 1145 with_milestone 1146 with_update_version 1147 with_user_release_suffix 1148 with_build_number 1149 with_version_string 1150 with_version_pre 1151 with_version_opt 1152 with_version_build 1153 with_version_major 1154 with_version_minor 1155 with_version_security 1156 with_version_patch 1157 with_boot_jdk 1158 with_build_jdk 1159 with_import_modules 1160 enable_static_build 1161 with_toolchain_type 1162 with_extra_cflags 1163 with_extra_cxxflags 1164 with_extra_ldflags 1165 with_toolchain_version 1166 with_build_devkit 1167 with_jtreg 1168 with_jib 1169 with_abi_profile 1170 with_macosx_version_max 1171 enable_warnings_as_errors 1172 with_native_debug_symbols 1173 enable_debug_symbols 1174 enable_zip_debug_info 1175 enable_native_coverage 1176 enable_asan 1177 enable_dtrace 1178 enable_aot 1179 enable_cds 1180 enable_hotspot_gtest 1181 with_stdc__lib 1182 with_msvcr_dll 1183 with_msvcp_dll 1184 with_x 1185 with_cups 1186 with_cups_include 1187 with_freetype 1188 with_freetype_include 1189 with_freetype_lib 1190 with_freetype_src 1191 enable_freetype_bundling 1192 with_freetype_license 1193 with_alsa 1194 with_alsa_include 1195 with_alsa_lib 1196 with_libffi 1197 with_libffi_include 1198 with_libffi_lib 1199 enable_libffi_bundling 1200 with_libjpeg 1201 with_giflib 1202 with_libpng 1203 with_zlib 1204 with_lcms 1205 with_dxsdk 1206 with_dxsdk_lib 1207 with_dxsdk_include 1208 with_jvm_features 1209 with_jvm_interpreter 1210 enable_jtreg_failure_handler 1211 enable_generate_classlist 1212 with_num_cores 1213 with_memory_size 1214 with_jobs 1215 with_test_jobs 1216 with_boot_jdk_jvmargs 1217 with_sjavac_server_java 1218 enable_sjavac 1219 enable_javac_server 1220 enable_icecc 1221 enable_precompiled_headers 1222 enable_ccache 1223 with_ccache_dir 1224 ' 1225 ac_precious_vars='build_alias 1226 host_alias 1227 target_alias 1228 BASENAME 1229 BASH 1230 CAT 1231 CHMOD 1232 CMP 1233 COMM 1234 CP 1235 CUT 1236 DATE 1237 DIFF 1238 DIRNAME 1239 ECHO 1240 EXPR 1241 FILE 1242 FIND 1243 HEAD 1244 GUNZIP 1245 GZIP 1246 LN 1247 LS 1248 MKDIR 1249 MKTEMP 1250 MV 1251 NAWK 1252 PRINTF 1253 RM 1254 RMDIR 1255 SH 1256 SORT 1257 TAIL 1258 TAR 1259 TEE 1260 TOUCH 1261 TR 1262 UNAME 1263 UNIQ 1264 WC 1265 WHICH 1266 XARGS 1267 AWK 1268 GREP 1269 EGREP 1270 FGREP 1271 SED 1272 CYGPATH 1273 READLINK 1274 DF 1275 CPIO 1276 NICE 1277 PANDOC 1278 MAKE 1279 UNZIP 1280 ZIPEXE 1281 LDD 1282 OTOOL 1283 READELF 1284 DOT 1285 HG 1286 STAT 1287 TIME 1288 FLOCK 1289 DTRACE 1290 PATCH 1291 DSYMUTIL 1292 XATTR 1293 CODESIGN 1294 SETFILE 1295 PKG_CONFIG 1296 JAVA 1297 JAVAC 1298 JAVAH 1299 JAVADOC 1300 JAR 1301 JARSIGNER 1302 CC 1303 CFLAGS 1304 LDFLAGS 1305 LIBS 1306 CPPFLAGS 1307 CXX 1308 CXXFLAGS 1309 CCC 1310 CPP 1311 CXXCPP 1312 AS 1313 AR 1314 LIPO 1315 STRIP 1316 NM 1317 GNM 1318 OBJCOPY 1319 OBJDUMP 1320 BUILD_CC 1321 BUILD_CXX 1322 BUILD_NM 1323 BUILD_AR 1324 BUILD_OBJCOPY 1325 BUILD_STRIP 1326 JTREGEXE 1327 XMKMF 1328 FREETYPE_CFLAGS 1329 FREETYPE_LIBS 1330 ALSA_CFLAGS 1331 ALSA_LIBS 1332 LIBFFI_CFLAGS 1333 LIBFFI_LIBS 1334 PNG_CFLAGS 1335 PNG_LIBS 1336 LCMS_CFLAGS 1337 LCMS_LIBS 1338 ICECC_CMD 1339 ICECC_CREATE_ENV 1340 ICECC_WRAPPER 1341 CCACHE' 1342 1343 1344 # Initialize some variables set by options. 1345 ac_init_help= 1346 ac_init_version=false 1347 ac_unrecognized_opts= 1348 ac_unrecognized_sep= 1349 # The variables have the same names as the options, with 1350 # dashes changed to underlines. 1351 cache_file=/dev/null 1352 exec_prefix=NONE 1353 no_create= 1354 no_recursion= 1355 prefix=NONE 1356 program_prefix=NONE 1357 program_suffix=NONE 1358 program_transform_name=s,x,x, 1359 silent= 1360 site= 1361 srcdir= 1362 verbose= 1363 x_includes=NONE 1364 x_libraries=NONE 1365 1366 # Installation directory options. 1367 # These are left unexpanded so users can "make install exec_prefix=/foo" 1368 # and all the variables that are supposed to be based on exec_prefix 1369 # by default will actually change. 1370 # Use braces instead of parens because sh, perl, etc. also accept them. 1371 # (The list follows the same order as the GNU Coding Standards.) 1372 bindir='${exec_prefix}/bin' 1373 sbindir='${exec_prefix}/sbin' 1374 libexecdir='${exec_prefix}/libexec' 1375 datarootdir='${prefix}/share' 1376 datadir='${datarootdir}' 1377 sysconfdir='${prefix}/etc' 1378 sharedstatedir='${prefix}/com' 1379 localstatedir='${prefix}/var' 1380 includedir='${prefix}/include' 1381 oldincludedir='/usr/include' 1382 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1383 infodir='${datarootdir}/info' 1384 htmldir='${docdir}' 1385 dvidir='${docdir}' 1386 pdfdir='${docdir}' 1387 psdir='${docdir}' 1388 libdir='${exec_prefix}/lib' 1389 localedir='${datarootdir}/locale' 1390 mandir='${datarootdir}/man' 1391 1392 ac_prev= 1393 ac_dashdash= 1394 for ac_option 1395 do 1396 # If the previous option needs an argument, assign it. 1397 if test -n "$ac_prev"; then 1398 eval $ac_prev=\$ac_option 1399 ac_prev= 1400 continue 1401 fi 1402 1403 case $ac_option in 1404 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1405 *=) ac_optarg= ;; 1406 *) ac_optarg=yes ;; 1407 esac 1408 1409 # Accept the important Cygnus configure options, so we can diagnose typos. 1410 1411 case $ac_dashdash$ac_option in 1412 --) 1413 ac_dashdash=yes ;; 1414 1415 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1416 ac_prev=bindir ;; 1417 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1418 bindir=$ac_optarg ;; 1419 1420 -build | --build | --buil | --bui | --bu) 1421 ac_prev=build_alias ;; 1422 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1423 build_alias=$ac_optarg ;; 1424 1425 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1426 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1427 ac_prev=cache_file ;; 1428 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1429 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1430 cache_file=$ac_optarg ;; 1431 1432 --config-cache | -C) 1433 cache_file=config.cache ;; 1434 1435 -datadir | --datadir | --datadi | --datad) 1436 ac_prev=datadir ;; 1437 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1438 datadir=$ac_optarg ;; 1439 1440 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1441 | --dataroo | --dataro | --datar) 1442 ac_prev=datarootdir ;; 1443 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1444 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1445 datarootdir=$ac_optarg ;; 1446 1447 -disable-* | --disable-*) 1448 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1449 # Reject names that are not valid shell variable names. 1450 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1451 as_fn_error $? "invalid feature name: $ac_useropt" 1452 ac_useropt_orig=$ac_useropt 1453 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1454 case $ac_user_opts in 1455 *" 1456 "enable_$ac_useropt" 1457 "*) ;; 1458 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1459 ac_unrecognized_sep=', ';; 1460 esac 1461 eval enable_$ac_useropt=no ;; 1462 1463 -docdir | --docdir | --docdi | --doc | --do) 1464 ac_prev=docdir ;; 1465 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1466 docdir=$ac_optarg ;; 1467 1468 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1469 ac_prev=dvidir ;; 1470 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1471 dvidir=$ac_optarg ;; 1472 1473 -enable-* | --enable-*) 1474 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1475 # Reject names that are not valid shell variable names. 1476 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1477 as_fn_error $? "invalid feature name: $ac_useropt" 1478 ac_useropt_orig=$ac_useropt 1479 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1480 case $ac_user_opts in 1481 *" 1482 "enable_$ac_useropt" 1483 "*) ;; 1484 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1485 ac_unrecognized_sep=', ';; 1486 esac 1487 eval enable_$ac_useropt=\$ac_optarg ;; 1488 1489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1491 | --exec | --exe | --ex) 1492 ac_prev=exec_prefix ;; 1493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1495 | --exec=* | --exe=* | --ex=*) 1496 exec_prefix=$ac_optarg ;; 1497 1498 -gas | --gas | --ga | --g) 1499 # Obsolete; use --with-gas. 1500 with_gas=yes ;; 1501 1502 -help | --help | --hel | --he | -h) 1503 ac_init_help=long ;; 1504 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1505 ac_init_help=recursive ;; 1506 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1507 ac_init_help=short ;; 1508 1509 -host | --host | --hos | --ho) 1510 ac_prev=host_alias ;; 1511 -host=* | --host=* | --hos=* | --ho=*) 1512 host_alias=$ac_optarg ;; 1513 1514 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1515 ac_prev=htmldir ;; 1516 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1517 | --ht=*) 1518 htmldir=$ac_optarg ;; 1519 1520 -includedir | --includedir | --includedi | --included | --include \ 1521 | --includ | --inclu | --incl | --inc) 1522 ac_prev=includedir ;; 1523 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1524 | --includ=* | --inclu=* | --incl=* | --inc=*) 1525 includedir=$ac_optarg ;; 1526 1527 -infodir | --infodir | --infodi | --infod | --info | --inf) 1528 ac_prev=infodir ;; 1529 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1530 infodir=$ac_optarg ;; 1531 1532 -libdir | --libdir | --libdi | --libd) 1533 ac_prev=libdir ;; 1534 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1535 libdir=$ac_optarg ;; 1536 1537 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1538 | --libexe | --libex | --libe) 1539 ac_prev=libexecdir ;; 1540 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1541 | --libexe=* | --libex=* | --libe=*) 1542 libexecdir=$ac_optarg ;; 1543 1544 -localedir | --localedir | --localedi | --localed | --locale) 1545 ac_prev=localedir ;; 1546 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1547 localedir=$ac_optarg ;; 1548 1549 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1550 | --localstate | --localstat | --localsta | --localst | --locals) 1551 ac_prev=localstatedir ;; 1552 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1553 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1554 localstatedir=$ac_optarg ;; 1555 1556 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1557 ac_prev=mandir ;; 1558 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1559 mandir=$ac_optarg ;; 1560 1561 -nfp | --nfp | --nf) 1562 # Obsolete; use --without-fp. 1563 with_fp=no ;; 1564 1565 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1566 | --no-cr | --no-c | -n) 1567 no_create=yes ;; 1568 1569 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1570 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1571 no_recursion=yes ;; 1572 1573 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1574 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1575 | --oldin | --oldi | --old | --ol | --o) 1576 ac_prev=oldincludedir ;; 1577 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1578 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1579 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1580 oldincludedir=$ac_optarg ;; 1581 1582 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1583 ac_prev=prefix ;; 1584 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1585 prefix=$ac_optarg ;; 1586 1587 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1588 | --program-pre | --program-pr | --program-p) 1589 ac_prev=program_prefix ;; 1590 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1591 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1592 program_prefix=$ac_optarg ;; 1593 1594 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1595 | --program-suf | --program-su | --program-s) 1596 ac_prev=program_suffix ;; 1597 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1598 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1599 program_suffix=$ac_optarg ;; 1600 1601 -program-transform-name | --program-transform-name \ 1602 | --program-transform-nam | --program-transform-na \ 1603 | --program-transform-n | --program-transform- \ 1604 | --program-transform | --program-transfor \ 1605 | --program-transfo | --program-transf \ 1606 | --program-trans | --program-tran \ 1607 | --progr-tra | --program-tr | --program-t) 1608 ac_prev=program_transform_name ;; 1609 -program-transform-name=* | --program-transform-name=* \ 1610 | --program-transform-nam=* | --program-transform-na=* \ 1611 | --program-transform-n=* | --program-transform-=* \ 1612 | --program-transform=* | --program-transfor=* \ 1613 | --program-transfo=* | --program-transf=* \ 1614 | --program-trans=* | --program-tran=* \ 1615 | --progr-tra=* | --program-tr=* | --program-t=*) 1616 program_transform_name=$ac_optarg ;; 1617 1618 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1619 ac_prev=pdfdir ;; 1620 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1621 pdfdir=$ac_optarg ;; 1622 1623 -psdir | --psdir | --psdi | --psd | --ps) 1624 ac_prev=psdir ;; 1625 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1626 psdir=$ac_optarg ;; 1627 1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1629 | -silent | --silent | --silen | --sile | --sil) 1630 silent=yes ;; 1631 1632 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1633 ac_prev=sbindir ;; 1634 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1635 | --sbi=* | --sb=*) 1636 sbindir=$ac_optarg ;; 1637 1638 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1639 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1640 | --sharedst | --shareds | --shared | --share | --shar \ 1641 | --sha | --sh) 1642 ac_prev=sharedstatedir ;; 1643 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1644 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1645 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1646 | --sha=* | --sh=*) 1647 sharedstatedir=$ac_optarg ;; 1648 1649 -site | --site | --sit) 1650 ac_prev=site ;; 1651 -site=* | --site=* | --sit=*) 1652 site=$ac_optarg ;; 1653 1654 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1655 ac_prev=srcdir ;; 1656 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1657 srcdir=$ac_optarg ;; 1658 1659 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1660 | --syscon | --sysco | --sysc | --sys | --sy) 1661 ac_prev=sysconfdir ;; 1662 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1663 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1664 sysconfdir=$ac_optarg ;; 1665 1666 -target | --target | --targe | --targ | --tar | --ta | --t) 1667 ac_prev=target_alias ;; 1668 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1669 target_alias=$ac_optarg ;; 1670 1671 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1672 verbose=yes ;; 1673 1674 -version | --version | --versio | --versi | --vers | -V) 1675 ac_init_version=: ;; 1676 1677 -with-* | --with-*) 1678 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1679 # Reject names that are not valid shell variable names. 1680 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1681 as_fn_error $? "invalid package name: $ac_useropt" 1682 ac_useropt_orig=$ac_useropt 1683 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1684 case $ac_user_opts in 1685 *" 1686 "with_$ac_useropt" 1687 "*) ;; 1688 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1689 ac_unrecognized_sep=', ';; 1690 esac 1691 eval with_$ac_useropt=\$ac_optarg ;; 1692 1693 -without-* | --without-*) 1694 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1695 # Reject names that are not valid shell variable names. 1696 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1697 as_fn_error $? "invalid package name: $ac_useropt" 1698 ac_useropt_orig=$ac_useropt 1699 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1700 case $ac_user_opts in 1701 *" 1702 "with_$ac_useropt" 1703 "*) ;; 1704 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1705 ac_unrecognized_sep=', ';; 1706 esac 1707 eval with_$ac_useropt=no ;; 1708 1709 --x) 1710 # Obsolete; use --with-x. 1711 with_x=yes ;; 1712 1713 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1714 | --x-incl | --x-inc | --x-in | --x-i) 1715 ac_prev=x_includes ;; 1716 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1717 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1718 x_includes=$ac_optarg ;; 1719 1720 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1721 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1722 ac_prev=x_libraries ;; 1723 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1724 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1725 x_libraries=$ac_optarg ;; 1726 1727 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1728 Try \`$0 --help' for more information" 1729 ;; 1730 1731 *=*) 1732 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1733 # Reject names that are not valid shell variable names. 1734 case $ac_envvar in #( 1735 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1736 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1737 esac 1738 eval $ac_envvar=\$ac_optarg 1739 export $ac_envvar ;; 1740 1741 *) 1742 # FIXME: should be removed in autoconf 3.0. 1743 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1744 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1745 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1746 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1747 ;; 1748 1749 esac 1750 done 1751 1752 if test -n "$ac_prev"; then 1753 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1754 as_fn_error $? "missing argument to $ac_option" 1755 fi 1756 1757 if test -n "$ac_unrecognized_opts"; then 1758 case $enable_option_checking in 1759 no) ;; 1760 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1761 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1762 esac 1763 fi 1764 1765 # Check all directory arguments for consistency. 1766 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1767 datadir sysconfdir sharedstatedir localstatedir includedir \ 1768 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1769 libdir localedir mandir 1770 do 1771 eval ac_val=\$$ac_var 1772 # Remove trailing slashes. 1773 case $ac_val in 1774 */ ) 1775 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1776 eval $ac_var=\$ac_val;; 1777 esac 1778 # Be sure to have absolute directory names. 1779 case $ac_val in 1780 [\\/$]* | ?:[\\/]* ) continue;; 1781 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1782 esac 1783 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1784 done 1785 1786 # There might be people who depend on the old broken behavior: `$host' 1787 # used to hold the argument of --host etc. 1788 # FIXME: To remove some day. 1789 build=$build_alias 1790 host=$host_alias 1791 target=$target_alias 1792 1793 # FIXME: To remove some day. 1794 if test "x$host_alias" != x; then 1795 if test "x$build_alias" = x; then 1796 cross_compiling=maybe 1797 elif test "x$build_alias" != "x$host_alias"; then 1798 cross_compiling=yes 1799 fi 1800 fi 1801 1802 ac_tool_prefix= 1803 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1804 1805 test "$silent" = yes && exec 6>/dev/null 1806 1807 1808 ac_pwd=`pwd` && test -n "$ac_pwd" && 1809 ac_ls_di=`ls -di .` && 1810 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1811 as_fn_error $? "working directory cannot be determined" 1812 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1813 as_fn_error $? "pwd does not report name of working directory" 1814 1815 1816 # Find the source files, if location was not specified. 1817 if test -z "$srcdir"; then 1818 ac_srcdir_defaulted=yes 1819 # Try the directory containing this script, then the parent directory. 1820 ac_confdir=`$as_dirname -- "$as_myself" || 1821 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1822 X"$as_myself" : 'X\(//\)[^/]' \| \ 1823 X"$as_myself" : 'X\(//\)$' \| \ 1824 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1825 $as_echo X"$as_myself" | 1826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1827 s//\1/ 1828 q 1829 } 1830 /^X\(\/\/\)[^/].*/{ 1831 s//\1/ 1832 q 1833 } 1834 /^X\(\/\/\)$/{ 1835 s//\1/ 1836 q 1837 } 1838 /^X\(\/\).*/{ 1839 s//\1/ 1840 q 1841 } 1842 s/.*/./; q'` 1843 srcdir=$ac_confdir 1844 if test ! -r "$srcdir/$ac_unique_file"; then 1845 srcdir=.. 1846 fi 1847 else 1848 ac_srcdir_defaulted=no 1849 fi 1850 if test ! -r "$srcdir/$ac_unique_file"; then 1851 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1852 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1853 fi 1854 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1855 ac_abs_confdir=`( 1856 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1857 pwd)` 1858 # When building in place, set srcdir=. 1859 if test "$ac_abs_confdir" = "$ac_pwd"; then 1860 srcdir=. 1861 fi 1862 # Remove unnecessary trailing slashes from srcdir. 1863 # Double slashes in file names in object file debugging info 1864 # mess up M-x gdb in Emacs. 1865 case $srcdir in 1866 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1867 esac 1868 for ac_var in $ac_precious_vars; do 1869 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1870 eval ac_env_${ac_var}_value=\$${ac_var} 1871 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1872 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1873 done 1874 1875 # 1876 # Report the --help message. 1877 # 1878 if test "$ac_init_help" = "long"; then 1879 # Omit some internal or obsolete options to make the list less imposing. 1880 # This message is too long to be a string in the A/UX 3.1 sh. 1881 cat <<_ACEOF 1882 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1883 1884 Usage: $0 [OPTION]... [VAR=VALUE]... 1885 1886 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1887 VAR=VALUE. See below for descriptions of some of the useful variables. 1888 1889 Defaults for the options are specified in brackets. 1890 1891 Configuration: 1892 -h, --help display this help and exit 1893 --help=short display options specific to this package 1894 --help=recursive display the short help of all the included packages 1895 -V, --version display version information and exit 1896 -q, --quiet, --silent do not print \`checking ...' messages 1897 --cache-file=FILE cache test results in FILE [disabled] 1898 -C, --config-cache alias for \`--cache-file=config.cache' 1899 -n, --no-create do not create output files 1900 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1901 1902 Installation directories: 1903 --prefix=PREFIX install architecture-independent files in PREFIX 1904 [$ac_default_prefix] 1905 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1906 [PREFIX] 1907 1908 By default, \`make install' will install all the files in 1909 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1910 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1911 for instance \`--prefix=\$HOME'. 1912 1913 For better control, use the options below. 1914 1915 Fine tuning of the installation directories: 1916 --bindir=DIR user executables [EPREFIX/bin] 1917 --sbindir=DIR system admin executables [EPREFIX/sbin] 1918 --libexecdir=DIR program executables [EPREFIX/libexec] 1919 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1920 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1921 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1922 --libdir=DIR object code libraries [EPREFIX/lib] 1923 --includedir=DIR C header files [PREFIX/include] 1924 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1925 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1926 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1927 --infodir=DIR info documentation [DATAROOTDIR/info] 1928 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1929 --mandir=DIR man documentation [DATAROOTDIR/man] 1930 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1931 --htmldir=DIR html documentation [DOCDIR] 1932 --dvidir=DIR dvi documentation [DOCDIR] 1933 --pdfdir=DIR pdf documentation [DOCDIR] 1934 --psdir=DIR ps documentation [DOCDIR] 1935 _ACEOF 1936 1937 cat <<\_ACEOF 1938 1939 X features: 1940 --x-includes=DIR X include files are in DIR 1941 --x-libraries=DIR X library files are in DIR 1942 1943 System types: 1944 --build=BUILD configure for building on BUILD [guessed] 1945 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1946 --target=TARGET configure for building compilers for TARGET [HOST] 1947 _ACEOF 1948 fi 1949 1950 if test -n "$ac_init_help"; then 1951 case $ac_init_help in 1952 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1953 esac 1954 cat <<\_ACEOF 1955 1956 Optional Features: 1957 --disable-option-checking ignore unrecognized --enable/--with options 1958 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1959 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1960 --enable-openjdk-only suppress building custom source even if present 1961 [disabled] 1962 --enable-debug set the debug level to fastdebug (shorthand for 1963 --with-debug-level=fastdebug) [disabled] 1964 --enable-headless-only only build headless (no GUI) support [disabled] 1965 --enable-full-docs build complete documentation [enabled if all tools 1966 found] 1967 --disable-unlimited-crypto 1968 Disable unlimited crypto policy [enabled] 1969 --disable-keep-packaged-modules 1970 Do not keep packaged modules in jdk image [enable] 1971 --enable-static-build enable static library build [disabled] 1972 --disable-warnings-as-errors 1973 do not consider native warnings to be an error 1974 [enabled] 1975 --enable-debug-symbols Deprecated. Option is kept for backwards 1976 compatibility and is ignored 1977 --enable-zip-debug-info Deprecated. Option is kept for backwards 1978 compatibility and is ignored 1979 --enable-native-coverage 1980 enable native compilation with code coverage 1981 data[disabled] 1982 --enable-asan enable AddressSanitizer if possible [disabled] 1983 --enable-dtrace[=yes/no/auto] 1984 enable dtrace. Default is auto, where dtrace is 1985 enabled if all dependencies are present. 1986 --enable-aot[=yes/no/auto] 1987 enable ahead of time compilation feature. Default is 1988 auto, where aot is enabled if all dependencies are 1989 present. 1990 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 1991 Default is yes. 1992 --disable-hotspot-gtest Disables building of the Hotspot unit tests 1993 --disable-freetype-bundling 1994 disable bundling of the freetype library with the 1995 build result [enabled on Windows or when using 1996 --with-freetype, disabled otherwise] 1997 --enable-libffi-bundling 1998 enable bundling of libffi.so to make the built JDK 1999 runnable on more systems 2000 --enable-jtreg-failure-handler 2001 forces build of the jtreg failure handler to be 2002 enabled, missing dependencies become fatal errors. 2003 Default is auto, where the failure handler is built 2004 if all dependencies are present and otherwise just 2005 disabled. 2006 --disable-generate-classlist 2007 forces enabling or disabling of the generation of a 2008 CDS classlist at build time. Default is to generate 2009 it when either the server or client JVMs are built 2010 and enable-cds is true. 2011 --enable-sjavac use sjavac to do fast incremental compiles 2012 [disabled] 2013 --disable-javac-server disable javac server [enabled] 2014 --enable-icecc enable distribted compilation of native code using 2015 icecc/icecream [disabled] 2016 --disable-precompiled-headers 2017 disable using precompiled headers when compiling C++ 2018 [enabled] 2019 --enable-ccache enable using ccache to speed up recompilations 2020 [disabled] 2021 2022 Optional Packages: 2023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2025 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2026 support it), e.g. --with-target-bits=32 [guessed] 2027 --with-custom-make-dir Deprecated. Option is kept for backwards 2028 compatibility and is ignored 2029 --with-jdk-variant JDK variant to build (normal) [normal] 2030 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2031 optimized) [release] 2032 --with-jvm-variants JVM variants (separated by commas) to build 2033 (server,client,minimal,core,zero,zeroshark,custom) 2034 [server] 2035 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2036 (arm64,aarch64) [aarch64] 2037 --with-devkit use this devkit for compilers, tools and resources 2038 --with-sys-root alias for --with-sysroot for backwards compatability 2039 --with-sysroot use this directory as sysroot 2040 --with-tools-dir alias for --with-toolchain-path for backwards 2041 compatibility 2042 --with-toolchain-path prepend these directories when searching for 2043 toolchain binaries (compilers etc) 2044 --with-extra-path prepend these directories to the default path 2045 --with-sdk-name use the platform SDK of the given name. [macosx] 2046 --with-conf-name use this as the name of the configuration [generated 2047 from important configuration options] 2048 --with-output-sync set make output sync type if supported by make. 2049 [recurse] 2050 --with-default-make-target 2051 set the default make target [exploded-image] 2052 --with-cacerts-file specify alternative cacerts file 2053 --with-copyright-year Set copyright year value for build [current year] 2054 --with-milestone Deprecated. Option is kept for backwards 2055 compatibility and is ignored 2056 --with-update-version Deprecated. Option is kept for backwards 2057 compatibility and is ignored 2058 --with-user-release-suffix 2059 Deprecated. Option is kept for backwards 2060 compatibility and is ignored 2061 --with-build-number Deprecated. Option is kept for backwards 2062 compatibility and is ignored 2063 --with-version-string Set version string [calculated] 2064 --with-version-pre Set the base part of the version 'PRE' field 2065 (pre-release identifier) ['internal'] 2066 --with-version-opt Set version 'OPT' field (build metadata) 2067 [<timestamp>.<user>.<dirname>] 2068 --with-version-build Set version 'BUILD' field (build number) [not 2069 specified] 2070 --with-version-major Set version 'MAJOR' field (first number) [current 2071 source value] 2072 --with-version-minor Set version 'MINOR' field (second number) [current 2073 source value] 2074 --with-version-security Set version 'SECURITY' field (third number) [current 2075 source value] 2076 --with-version-patch Set version 'PATCH' field (fourth number) [not 2077 specified] 2078 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2079 --with-build-jdk path to JDK of same version as is being built[the 2080 newly built JDK] 2081 --with-import-modules import a set of prebuilt modules either as a zip 2082 file or an exploded directory 2083 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2084 to show possible values [platform dependent] 2085 --with-extra-cflags extra flags to be used when compiling jdk c-files 2086 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2087 --with-extra-ldflags extra flags to be used when linking jdk 2088 --with-toolchain-version 2089 the version of the toolchain to look for, use 2090 '--help' to show possible values [platform 2091 dependent] 2092 --with-build-devkit Devkit to use for the build platform toolchain 2093 --with-jtreg Regression Test Harness [probed] 2094 --with-jib Jib dependency management tool [not used] 2095 --with-abi-profile specify ABI profile for ARM builds 2096 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2097 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2098 [toolchain dependent] 2099 --with-macosx-version-max 2100 error on use of newer functionality. [macosx] 2101 --with-native-debug-symbols 2102 set the native debug symbol configuration (none, 2103 internal, external, zipped) [varying] 2104 --with-stdc++lib=<static>,<dynamic>,<default> 2105 force linking of the C++ runtime on Linux to either 2106 static or dynamic, default is static with dynamic as 2107 fallback 2108 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2109 (Windows only) [probed] 2110 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2111 (Windows only) [probed] 2112 --with-x use the X Window System 2113 --with-cups specify prefix directory for the cups package 2114 (expecting the headers under PATH/include) 2115 --with-cups-include specify directory for the cups include files 2116 --with-freetype specify prefix directory for the freetype package 2117 (expecting the libraries under PATH/lib and the 2118 headers under PATH/include) 2119 --with-freetype-include specify directory for the freetype include files 2120 --with-freetype-lib specify directory for the freetype library 2121 --with-freetype-src specify directory with freetype sources to 2122 automatically build the library (experimental, 2123 Windows-only) 2124 --with-freetype-license if bundling freetype, also bundle this license file 2125 --with-alsa specify prefix directory for the alsa package 2126 (expecting the libraries under PATH/lib and the 2127 headers under PATH/include) 2128 --with-alsa-include specify directory for the alsa include files 2129 --with-alsa-lib specify directory for the alsa library 2130 --with-libffi specify prefix directory for the libffi package 2131 (expecting the libraries under PATH/lib and the 2132 headers under PATH/include) 2133 --with-libffi-include specify directory for the libffi include files 2134 --with-libffi-lib specify directory for the libffi library 2135 --with-libjpeg use libjpeg from build system or OpenJDK source 2136 (system, bundled) [bundled] 2137 --with-giflib use giflib from build system or OpenJDK source 2138 (system, bundled) [bundled] 2139 --with-libpng use libpng from build system or OpenJDK source 2140 (system, bundled) [bundled] 2141 --with-zlib use zlib from build system or OpenJDK source 2142 (system, bundled) [bundled] 2143 --with-lcms use lcms2 from build system or OpenJDK source 2144 (system, bundled) [bundled] 2145 --with-dxsdk Deprecated. Option is kept for backwards 2146 compatibility and is ignored 2147 --with-dxsdk-lib Deprecated. Option is kept for backwards 2148 compatibility and is ignored 2149 --with-dxsdk-include Deprecated. Option is kept for backwards 2150 compatibility and is ignored 2151 --with-jvm-features additional JVM features to enable (separated by 2152 comma), use '--help' to show possible values [none] 2153 --with-jvm-interpreter Deprecated. Option is kept for backwards 2154 compatibility and is ignored 2155 --with-num-cores number of cores in the build system, e.g. 2156 --with-num-cores=8 [probed] 2157 --with-memory-size memory (in MB) available in the build system, e.g. 2158 --with-memory-size=1024 [probed] 2159 --with-jobs number of parallel jobs to let make run [calculated 2160 based on cores and memory] 2161 --with-test-jobs number of parallel tests jobs to run [based on build 2162 jobs] 2163 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2164 invocations of boot JDK, overriding the default 2165 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2166 -enableassertions" 2167 --with-sjavac-server-java 2168 use this java binary for running the sjavac 2169 background server [Boot JDK java] 2170 --with-ccache-dir where to store ccache files [~/.ccache] 2171 2172 Some influential environment variables: 2173 BASENAME Override default value for BASENAME 2174 BASH Override default value for BASH 2175 CAT Override default value for CAT 2176 CHMOD Override default value for CHMOD 2177 CMP Override default value for CMP 2178 COMM Override default value for COMM 2179 CP Override default value for CP 2180 CUT Override default value for CUT 2181 DATE Override default value for DATE 2182 DIFF Override default value for DIFF 2183 DIRNAME Override default value for DIRNAME 2184 ECHO Override default value for ECHO 2185 EXPR Override default value for EXPR 2186 FILE Override default value for FILE 2187 FIND Override default value for FIND 2188 HEAD Override default value for HEAD 2189 GUNZIP Override default value for GUNZIP 2190 GZIP Override default value for GZIP 2191 LN Override default value for LN 2192 LS Override default value for LS 2193 MKDIR Override default value for MKDIR 2194 MKTEMP Override default value for MKTEMP 2195 MV Override default value for MV 2196 NAWK Override default value for NAWK 2197 PRINTF Override default value for PRINTF 2198 RM Override default value for RM 2199 RMDIR Override default value for RMDIR 2200 SH Override default value for SH 2201 SORT Override default value for SORT 2202 TAIL Override default value for TAIL 2203 TAR Override default value for TAR 2204 TEE Override default value for TEE 2205 TOUCH Override default value for TOUCH 2206 TR Override default value for TR 2207 UNAME Override default value for UNAME 2208 UNIQ Override default value for UNIQ 2209 WC Override default value for WC 2210 WHICH Override default value for WHICH 2211 XARGS Override default value for XARGS 2212 AWK Override default value for AWK 2213 GREP Override default value for GREP 2214 EGREP Override default value for EGREP 2215 FGREP Override default value for FGREP 2216 SED Override default value for SED 2217 CYGPATH Override default value for CYGPATH 2218 READLINK Override default value for READLINK 2219 DF Override default value for DF 2220 CPIO Override default value for CPIO 2221 NICE Override default value for NICE 2222 PANDOC Override default value for PANDOC 2223 MAKE Override default value for MAKE 2224 UNZIP Override default value for UNZIP 2225 ZIPEXE Override default value for ZIPEXE 2226 LDD Override default value for LDD 2227 OTOOL Override default value for OTOOL 2228 READELF Override default value for READELF 2229 DOT Override default value for DOT 2230 HG Override default value for HG 2231 STAT Override default value for STAT 2232 TIME Override default value for TIME 2233 FLOCK Override default value for FLOCK 2234 DTRACE Override default value for DTRACE 2235 PATCH Override default value for PATCH 2236 DSYMUTIL Override default value for DSYMUTIL 2237 XATTR Override default value for XATTR 2238 CODESIGN Override default value for CODESIGN 2239 SETFILE Override default value for SETFILE 2240 PKG_CONFIG path to pkg-config utility 2241 JAVA Override default value for JAVA 2242 JAVAC Override default value for JAVAC 2243 JAVAH Override default value for JAVAH 2244 JAVADOC Override default value for JAVADOC 2245 JAR Override default value for JAR 2246 JARSIGNER Override default value for JARSIGNER 2247 CC C compiler command 2248 CFLAGS C compiler flags 2249 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2250 nonstandard directory <lib dir> 2251 LIBS libraries to pass to the linker, e.g. -l<library> 2252 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2253 you have headers in a nonstandard directory <include dir> 2254 CXX C++ compiler command 2255 CXXFLAGS C++ compiler flags 2256 CPP C preprocessor 2257 CXXCPP C++ preprocessor 2258 AS Override default value for AS 2259 AR Override default value for AR 2260 LIPO Override default value for LIPO 2261 STRIP Override default value for STRIP 2262 NM Override default value for NM 2263 GNM Override default value for GNM 2264 OBJCOPY Override default value for OBJCOPY 2265 OBJDUMP Override default value for OBJDUMP 2266 BUILD_CC Override default value for BUILD_CC 2267 BUILD_CXX Override default value for BUILD_CXX 2268 BUILD_NM Override default value for BUILD_NM 2269 BUILD_AR Override default value for BUILD_AR 2270 BUILD_OBJCOPY 2271 Override default value for BUILD_OBJCOPY 2272 BUILD_STRIP Override default value for BUILD_STRIP 2273 JTREGEXE Override default value for JTREGEXE 2274 XMKMF Path to xmkmf, Makefile generator for X Window System 2275 FREETYPE_CFLAGS 2276 C compiler flags for FREETYPE, overriding pkg-config 2277 FREETYPE_LIBS 2278 linker flags for FREETYPE, overriding pkg-config 2279 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2280 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2281 LIBFFI_CFLAGS 2282 C compiler flags for LIBFFI, overriding pkg-config 2283 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2284 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2285 PNG_LIBS linker flags for PNG, overriding pkg-config 2286 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2287 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2288 ICECC_CMD Override default value for ICECC_CMD 2289 ICECC_CREATE_ENV 2290 Override default value for ICECC_CREATE_ENV 2291 ICECC_WRAPPER 2292 Override default value for ICECC_WRAPPER 2293 CCACHE Override default value for CCACHE 2294 2295 Use these variables to override the choices made by `configure' or to help 2296 it to find libraries and programs with nonstandard names/locations. 2297 2298 Report bugs to <build-dev@openjdk.java.net>. 2299 OpenJDK home page: <http://openjdk.java.net>. 2300 _ACEOF 2301 ac_status=$? 2302 fi 2303 2304 if test "$ac_init_help" = "recursive"; then 2305 # If there are subdirs, report their specific --help. 2306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2307 test -d "$ac_dir" || 2308 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2309 continue 2310 ac_builddir=. 2311 2312 case "$ac_dir" in 2313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2314 *) 2315 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2316 # A ".." for each directory in $ac_dir_suffix. 2317 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2318 case $ac_top_builddir_sub in 2319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2321 esac ;; 2322 esac 2323 ac_abs_top_builddir=$ac_pwd 2324 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2325 # for backward compatibility: 2326 ac_top_builddir=$ac_top_build_prefix 2327 2328 case $srcdir in 2329 .) # We are building in place. 2330 ac_srcdir=. 2331 ac_top_srcdir=$ac_top_builddir_sub 2332 ac_abs_top_srcdir=$ac_pwd ;; 2333 [\\/]* | ?:[\\/]* ) # Absolute name. 2334 ac_srcdir=$srcdir$ac_dir_suffix; 2335 ac_top_srcdir=$srcdir 2336 ac_abs_top_srcdir=$srcdir ;; 2337 *) # Relative name. 2338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2339 ac_top_srcdir=$ac_top_build_prefix$srcdir 2340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2341 esac 2342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2343 2344 cd "$ac_dir" || { ac_status=$?; continue; } 2345 # Check for guested configure. 2346 if test -f "$ac_srcdir/configure.gnu"; then 2347 echo && 2348 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2349 elif test -f "$ac_srcdir/configure"; then 2350 echo && 2351 $SHELL "$ac_srcdir/configure" --help=recursive 2352 else 2353 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2354 fi || ac_status=$? 2355 cd "$ac_pwd" || { ac_status=$?; break; } 2356 done 2357 fi 2358 2359 test -n "$ac_init_help" && exit $ac_status 2360 if $ac_init_version; then 2361 cat <<\_ACEOF 2362 OpenJDK configure jdk9 2363 generated by GNU Autoconf 2.69 2364 2365 Copyright (C) 2012 Free Software Foundation, Inc. 2366 This configure script is free software; the Free Software Foundation 2367 gives unlimited permission to copy, distribute and modify it. 2368 _ACEOF 2369 exit 2370 fi 2371 2372 ## ------------------------ ## 2373 ## Autoconf initialization. ## 2374 ## ------------------------ ## 2375 2376 # ac_fn_c_try_compile LINENO 2377 # -------------------------- 2378 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2379 ac_fn_c_try_compile () 2380 { 2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2382 rm -f conftest.$ac_objext 2383 if { { ac_try="$ac_compile" 2384 case "(($ac_try" in 2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2386 *) ac_try_echo=$ac_try;; 2387 esac 2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2389 $as_echo "$ac_try_echo"; } >&5 2390 (eval "$ac_compile") 2>conftest.err 2391 ac_status=$? 2392 if test -s conftest.err; then 2393 grep -v '^ *+' conftest.err >conftest.er1 2394 cat conftest.er1 >&5 2395 mv -f conftest.er1 conftest.err 2396 fi 2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2398 test $ac_status = 0; } && { 2399 test -z "$ac_c_werror_flag" || 2400 test ! -s conftest.err 2401 } && test -s conftest.$ac_objext; then : 2402 ac_retval=0 2403 else 2404 $as_echo "$as_me: failed program was:" >&5 2405 sed 's/^/| /' conftest.$ac_ext >&5 2406 2407 ac_retval=1 2408 fi 2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2410 as_fn_set_status $ac_retval 2411 2412 } # ac_fn_c_try_compile 2413 2414 # ac_fn_cxx_try_compile LINENO 2415 # ---------------------------- 2416 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2417 ac_fn_cxx_try_compile () 2418 { 2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2420 rm -f conftest.$ac_objext 2421 if { { ac_try="$ac_compile" 2422 case "(($ac_try" in 2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2424 *) ac_try_echo=$ac_try;; 2425 esac 2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2427 $as_echo "$ac_try_echo"; } >&5 2428 (eval "$ac_compile") 2>conftest.err 2429 ac_status=$? 2430 if test -s conftest.err; then 2431 grep -v '^ *+' conftest.err >conftest.er1 2432 cat conftest.er1 >&5 2433 mv -f conftest.er1 conftest.err 2434 fi 2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2436 test $ac_status = 0; } && { 2437 test -z "$ac_cxx_werror_flag" || 2438 test ! -s conftest.err 2439 } && test -s conftest.$ac_objext; then : 2440 ac_retval=0 2441 else 2442 $as_echo "$as_me: failed program was:" >&5 2443 sed 's/^/| /' conftest.$ac_ext >&5 2444 2445 ac_retval=1 2446 fi 2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2448 as_fn_set_status $ac_retval 2449 2450 } # ac_fn_cxx_try_compile 2451 2452 # ac_fn_c_try_cpp LINENO 2453 # ---------------------- 2454 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2455 ac_fn_c_try_cpp () 2456 { 2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2458 if { { ac_try="$ac_cpp conftest.$ac_ext" 2459 case "(($ac_try" in 2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2461 *) ac_try_echo=$ac_try;; 2462 esac 2463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2464 $as_echo "$ac_try_echo"; } >&5 2465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2466 ac_status=$? 2467 if test -s conftest.err; then 2468 grep -v '^ *+' conftest.err >conftest.er1 2469 cat conftest.er1 >&5 2470 mv -f conftest.er1 conftest.err 2471 fi 2472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2473 test $ac_status = 0; } > conftest.i && { 2474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2475 test ! -s conftest.err 2476 }; then : 2477 ac_retval=0 2478 else 2479 $as_echo "$as_me: failed program was:" >&5 2480 sed 's/^/| /' conftest.$ac_ext >&5 2481 2482 ac_retval=1 2483 fi 2484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2485 as_fn_set_status $ac_retval 2486 2487 } # ac_fn_c_try_cpp 2488 2489 # ac_fn_cxx_try_cpp LINENO 2490 # ------------------------ 2491 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2492 ac_fn_cxx_try_cpp () 2493 { 2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2495 if { { ac_try="$ac_cpp conftest.$ac_ext" 2496 case "(($ac_try" in 2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2498 *) ac_try_echo=$ac_try;; 2499 esac 2500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2501 $as_echo "$ac_try_echo"; } >&5 2502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2503 ac_status=$? 2504 if test -s conftest.err; then 2505 grep -v '^ *+' conftest.err >conftest.er1 2506 cat conftest.er1 >&5 2507 mv -f conftest.er1 conftest.err 2508 fi 2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2510 test $ac_status = 0; } > conftest.i && { 2511 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2512 test ! -s conftest.err 2513 }; then : 2514 ac_retval=0 2515 else 2516 $as_echo "$as_me: failed program was:" >&5 2517 sed 's/^/| /' conftest.$ac_ext >&5 2518 2519 ac_retval=1 2520 fi 2521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2522 as_fn_set_status $ac_retval 2523 2524 } # ac_fn_cxx_try_cpp 2525 2526 # ac_fn_c_try_link LINENO 2527 # ----------------------- 2528 # Try to link conftest.$ac_ext, and return whether this succeeded. 2529 ac_fn_c_try_link () 2530 { 2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2532 rm -f conftest.$ac_objext conftest$ac_exeext 2533 if { { ac_try="$ac_link" 2534 case "(($ac_try" in 2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2536 *) ac_try_echo=$ac_try;; 2537 esac 2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2539 $as_echo "$ac_try_echo"; } >&5 2540 (eval "$ac_link") 2>conftest.err 2541 ac_status=$? 2542 if test -s conftest.err; then 2543 grep -v '^ *+' conftest.err >conftest.er1 2544 cat conftest.er1 >&5 2545 mv -f conftest.er1 conftest.err 2546 fi 2547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2548 test $ac_status = 0; } && { 2549 test -z "$ac_c_werror_flag" || 2550 test ! -s conftest.err 2551 } && test -s conftest$ac_exeext && { 2552 test "$cross_compiling" = yes || 2553 test -x conftest$ac_exeext 2554 }; then : 2555 ac_retval=0 2556 else 2557 $as_echo "$as_me: failed program was:" >&5 2558 sed 's/^/| /' conftest.$ac_ext >&5 2559 2560 ac_retval=1 2561 fi 2562 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2563 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2564 # interfere with the next link command; also delete a directory that is 2565 # left behind by Apple's compiler. We do this before executing the actions. 2566 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2568 as_fn_set_status $ac_retval 2569 2570 } # ac_fn_c_try_link 2571 2572 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2573 # --------------------------------------------------------- 2574 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2575 # the include files in INCLUDES and setting the cache variable VAR 2576 # accordingly. 2577 ac_fn_cxx_check_header_mongrel () 2578 { 2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2580 if eval \${$3+:} false; then : 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2582 $as_echo_n "checking for $2... " >&6; } 2583 if eval \${$3+:} false; then : 2584 $as_echo_n "(cached) " >&6 2585 fi 2586 eval ac_res=\$$3 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2588 $as_echo "$ac_res" >&6; } 2589 else 2590 # Is the header compilable? 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2592 $as_echo_n "checking $2 usability... " >&6; } 2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2594 /* end confdefs.h. */ 2595 $4 2596 #include <$2> 2597 _ACEOF 2598 if ac_fn_cxx_try_compile "$LINENO"; then : 2599 ac_header_compiler=yes 2600 else 2601 ac_header_compiler=no 2602 fi 2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2605 $as_echo "$ac_header_compiler" >&6; } 2606 2607 # Is the header present? 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2609 $as_echo_n "checking $2 presence... " >&6; } 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2611 /* end confdefs.h. */ 2612 #include <$2> 2613 _ACEOF 2614 if ac_fn_cxx_try_cpp "$LINENO"; then : 2615 ac_header_preproc=yes 2616 else 2617 ac_header_preproc=no 2618 fi 2619 rm -f conftest.err conftest.i conftest.$ac_ext 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2621 $as_echo "$ac_header_preproc" >&6; } 2622 2623 # So? What about this header? 2624 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2625 yes:no: ) 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2627 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2630 ;; 2631 no:yes:* ) 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2633 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2635 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2637 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2639 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2642 ( $as_echo "## ----------------------------------------- ## 2643 ## Report this to build-dev@openjdk.java.net ## 2644 ## ----------------------------------------- ##" 2645 ) | sed "s/^/$as_me: WARNING: /" >&2 2646 ;; 2647 esac 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2649 $as_echo_n "checking for $2... " >&6; } 2650 if eval \${$3+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652 else 2653 eval "$3=\$ac_header_compiler" 2654 fi 2655 eval ac_res=\$$3 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2657 $as_echo "$ac_res" >&6; } 2658 fi 2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2660 2661 } # ac_fn_cxx_check_header_mongrel 2662 2663 # ac_fn_cxx_try_run LINENO 2664 # ------------------------ 2665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2666 # that executables *can* be run. 2667 ac_fn_cxx_try_run () 2668 { 2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2670 if { { ac_try="$ac_link" 2671 case "(($ac_try" in 2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2673 *) ac_try_echo=$ac_try;; 2674 esac 2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2676 $as_echo "$ac_try_echo"; } >&5 2677 (eval "$ac_link") 2>&5 2678 ac_status=$? 2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2681 { { case "(($ac_try" in 2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2683 *) ac_try_echo=$ac_try;; 2684 esac 2685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2686 $as_echo "$ac_try_echo"; } >&5 2687 (eval "$ac_try") 2>&5 2688 ac_status=$? 2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2690 test $ac_status = 0; }; }; then : 2691 ac_retval=0 2692 else 2693 $as_echo "$as_me: program exited with status $ac_status" >&5 2694 $as_echo "$as_me: failed program was:" >&5 2695 sed 's/^/| /' conftest.$ac_ext >&5 2696 2697 ac_retval=$ac_status 2698 fi 2699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2701 as_fn_set_status $ac_retval 2702 2703 } # ac_fn_cxx_try_run 2704 2705 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2706 # --------------------------------------------------------- 2707 # Tests whether HEADER exists and can be compiled using the include files in 2708 # INCLUDES, setting the cache variable VAR accordingly. 2709 ac_fn_cxx_check_header_compile () 2710 { 2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2713 $as_echo_n "checking for $2... " >&6; } 2714 if eval \${$3+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716 else 2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2718 /* end confdefs.h. */ 2719 $4 2720 #include <$2> 2721 _ACEOF 2722 if ac_fn_cxx_try_compile "$LINENO"; then : 2723 eval "$3=yes" 2724 else 2725 eval "$3=no" 2726 fi 2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2728 fi 2729 eval ac_res=\$$3 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2731 $as_echo "$ac_res" >&6; } 2732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2733 2734 } # ac_fn_cxx_check_header_compile 2735 2736 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2737 # ---------------------------------------------- 2738 # Tries to find the compile-time value of EXPR in a program that includes 2739 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2740 # computed 2741 ac_fn_cxx_compute_int () 2742 { 2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2744 if test "$cross_compiling" = yes; then 2745 # Depending upon the size, compute the lo and hi bounds. 2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2747 /* end confdefs.h. */ 2748 $4 2749 int 2750 main () 2751 { 2752 static int test_array [1 - 2 * !(($2) >= 0)]; 2753 test_array [0] = 0; 2754 return test_array [0]; 2755 2756 ; 2757 return 0; 2758 } 2759 _ACEOF 2760 if ac_fn_cxx_try_compile "$LINENO"; then : 2761 ac_lo=0 ac_mid=0 2762 while :; do 2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2764 /* end confdefs.h. */ 2765 $4 2766 int 2767 main () 2768 { 2769 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2770 test_array [0] = 0; 2771 return test_array [0]; 2772 2773 ; 2774 return 0; 2775 } 2776 _ACEOF 2777 if ac_fn_cxx_try_compile "$LINENO"; then : 2778 ac_hi=$ac_mid; break 2779 else 2780 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2781 if test $ac_lo -le $ac_mid; then 2782 ac_lo= ac_hi= 2783 break 2784 fi 2785 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2786 fi 2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2788 done 2789 else 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791 /* end confdefs.h. */ 2792 $4 2793 int 2794 main () 2795 { 2796 static int test_array [1 - 2 * !(($2) < 0)]; 2797 test_array [0] = 0; 2798 return test_array [0]; 2799 2800 ; 2801 return 0; 2802 } 2803 _ACEOF 2804 if ac_fn_cxx_try_compile "$LINENO"; then : 2805 ac_hi=-1 ac_mid=-1 2806 while :; do 2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2808 /* end confdefs.h. */ 2809 $4 2810 int 2811 main () 2812 { 2813 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2814 test_array [0] = 0; 2815 return test_array [0]; 2816 2817 ; 2818 return 0; 2819 } 2820 _ACEOF 2821 if ac_fn_cxx_try_compile "$LINENO"; then : 2822 ac_lo=$ac_mid; break 2823 else 2824 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2825 if test $ac_mid -le $ac_hi; then 2826 ac_lo= ac_hi= 2827 break 2828 fi 2829 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2830 fi 2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2832 done 2833 else 2834 ac_lo= ac_hi= 2835 fi 2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2837 fi 2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2839 # Binary search between lo and hi bounds. 2840 while test "x$ac_lo" != "x$ac_hi"; do 2841 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2843 /* end confdefs.h. */ 2844 $4 2845 int 2846 main () 2847 { 2848 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2849 test_array [0] = 0; 2850 return test_array [0]; 2851 2852 ; 2853 return 0; 2854 } 2855 _ACEOF 2856 if ac_fn_cxx_try_compile "$LINENO"; then : 2857 ac_hi=$ac_mid 2858 else 2859 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2860 fi 2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2862 done 2863 case $ac_lo in #(( 2864 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2865 '') ac_retval=1 ;; 2866 esac 2867 else 2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2869 /* end confdefs.h. */ 2870 $4 2871 static long int longval () { return $2; } 2872 static unsigned long int ulongval () { return $2; } 2873 #include <stdio.h> 2874 #include <stdlib.h> 2875 int 2876 main () 2877 { 2878 2879 FILE *f = fopen ("conftest.val", "w"); 2880 if (! f) 2881 return 1; 2882 if (($2) < 0) 2883 { 2884 long int i = longval (); 2885 if (i != ($2)) 2886 return 1; 2887 fprintf (f, "%ld", i); 2888 } 2889 else 2890 { 2891 unsigned long int i = ulongval (); 2892 if (i != ($2)) 2893 return 1; 2894 fprintf (f, "%lu", i); 2895 } 2896 /* Do not output a trailing newline, as this causes \r\n confusion 2897 on some platforms. */ 2898 return ferror (f) || fclose (f) != 0; 2899 2900 ; 2901 return 0; 2902 } 2903 _ACEOF 2904 if ac_fn_cxx_try_run "$LINENO"; then : 2905 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2906 else 2907 ac_retval=1 2908 fi 2909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2910 conftest.$ac_objext conftest.beam conftest.$ac_ext 2911 rm -f conftest.val 2912 2913 fi 2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2915 as_fn_set_status $ac_retval 2916 2917 } # ac_fn_cxx_compute_int 2918 2919 # ac_fn_cxx_try_link LINENO 2920 # ------------------------- 2921 # Try to link conftest.$ac_ext, and return whether this succeeded. 2922 ac_fn_cxx_try_link () 2923 { 2924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2925 rm -f conftest.$ac_objext conftest$ac_exeext 2926 if { { ac_try="$ac_link" 2927 case "(($ac_try" in 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2929 *) ac_try_echo=$ac_try;; 2930 esac 2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2932 $as_echo "$ac_try_echo"; } >&5 2933 (eval "$ac_link") 2>conftest.err 2934 ac_status=$? 2935 if test -s conftest.err; then 2936 grep -v '^ *+' conftest.err >conftest.er1 2937 cat conftest.er1 >&5 2938 mv -f conftest.er1 conftest.err 2939 fi 2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2941 test $ac_status = 0; } && { 2942 test -z "$ac_cxx_werror_flag" || 2943 test ! -s conftest.err 2944 } && test -s conftest$ac_exeext && { 2945 test "$cross_compiling" = yes || 2946 test -x conftest$ac_exeext 2947 }; then : 2948 ac_retval=0 2949 else 2950 $as_echo "$as_me: failed program was:" >&5 2951 sed 's/^/| /' conftest.$ac_ext >&5 2952 2953 ac_retval=1 2954 fi 2955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2957 # interfere with the next link command; also delete a directory that is 2958 # left behind by Apple's compiler. We do this before executing the actions. 2959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2961 as_fn_set_status $ac_retval 2962 2963 } # ac_fn_cxx_try_link 2964 2965 # ac_fn_cxx_check_func LINENO FUNC VAR 2966 # ------------------------------------ 2967 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2968 ac_fn_cxx_check_func () 2969 { 2970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2972 $as_echo_n "checking for $2... " >&6; } 2973 if eval \${$3+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975 else 2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2977 /* end confdefs.h. */ 2978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2979 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2980 #define $2 innocuous_$2 2981 2982 /* System header to define __stub macros and hopefully few prototypes, 2983 which can conflict with char $2 (); below. 2984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2985 <limits.h> exists even on freestanding compilers. */ 2986 2987 #ifdef __STDC__ 2988 # include <limits.h> 2989 #else 2990 # include <assert.h> 2991 #endif 2992 2993 #undef $2 2994 2995 /* Override any GCC internal prototype to avoid an error. 2996 Use char because int might match the return type of a GCC 2997 builtin and then its argument prototype would still apply. */ 2998 #ifdef __cplusplus 2999 extern "C" 3000 #endif 3001 char $2 (); 3002 /* The GNU C library defines this for functions which it implements 3003 to always fail with ENOSYS. Some functions are actually named 3004 something starting with __ and the normal name is an alias. */ 3005 #if defined __stub_$2 || defined __stub___$2 3006 choke me 3007 #endif 3008 3009 int 3010 main () 3011 { 3012 return $2 (); 3013 ; 3014 return 0; 3015 } 3016 _ACEOF 3017 if ac_fn_cxx_try_link "$LINENO"; then : 3018 eval "$3=yes" 3019 else 3020 eval "$3=no" 3021 fi 3022 rm -f core conftest.err conftest.$ac_objext \ 3023 conftest$ac_exeext conftest.$ac_ext 3024 fi 3025 eval ac_res=\$$3 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3027 $as_echo "$ac_res" >&6; } 3028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3029 3030 } # ac_fn_cxx_check_func 3031 3032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3033 # ------------------------------------------------------- 3034 # Tests whether HEADER exists and can be compiled using the include files in 3035 # INCLUDES, setting the cache variable VAR accordingly. 3036 ac_fn_c_check_header_compile () 3037 { 3038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3040 $as_echo_n "checking for $2... " >&6; } 3041 if eval \${$3+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043 else 3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3045 /* end confdefs.h. */ 3046 $4 3047 #include <$2> 3048 _ACEOF 3049 if ac_fn_c_try_compile "$LINENO"; then : 3050 eval "$3=yes" 3051 else 3052 eval "$3=no" 3053 fi 3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3055 fi 3056 eval ac_res=\$$3 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3058 $as_echo "$ac_res" >&6; } 3059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3060 3061 } # ac_fn_c_check_header_compile 3062 cat >config.log <<_ACEOF 3063 This file contains any messages produced by compilers while 3064 running configure, to aid debugging if configure makes a mistake. 3065 3066 It was created by OpenJDK $as_me jdk9, which was 3067 generated by GNU Autoconf 2.69. Invocation command line was 3068 3069 $ $0 $@ 3070 3071 _ACEOF 3072 exec 5>>config.log 3073 { 3074 cat <<_ASUNAME 3075 ## --------- ## 3076 ## Platform. ## 3077 ## --------- ## 3078 3079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3080 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3081 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3082 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3083 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3084 3085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3087 3088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3091 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3095 3096 _ASUNAME 3097 3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099 for as_dir in $PATH 3100 do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 $as_echo "PATH: $as_dir" 3104 done 3105 IFS=$as_save_IFS 3106 3107 } >&5 3108 3109 cat >&5 <<_ACEOF 3110 3111 3112 ## ----------- ## 3113 ## Core tests. ## 3114 ## ----------- ## 3115 3116 _ACEOF 3117 3118 3119 # Keep a trace of the command line. 3120 # Strip out --no-create and --no-recursion so they do not pile up. 3121 # Strip out --silent because we don't want to record it for future runs. 3122 # Also quote any args containing shell meta-characters. 3123 # Make two passes to allow for proper duplicate-argument suppression. 3124 ac_configure_args= 3125 ac_configure_args0= 3126 ac_configure_args1= 3127 ac_must_keep_next=false 3128 for ac_pass in 1 2 3129 do 3130 for ac_arg 3131 do 3132 case $ac_arg in 3133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3135 | -silent | --silent | --silen | --sile | --sil) 3136 continue ;; 3137 *\'*) 3138 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3139 esac 3140 case $ac_pass in 3141 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3142 2) 3143 as_fn_append ac_configure_args1 " '$ac_arg'" 3144 if test $ac_must_keep_next = true; then 3145 ac_must_keep_next=false # Got value, back to normal. 3146 else 3147 case $ac_arg in 3148 *=* | --config-cache | -C | -disable-* | --disable-* \ 3149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3151 | -with-* | --with-* | -without-* | --without-* | --x) 3152 case "$ac_configure_args0 " in 3153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3154 esac 3155 ;; 3156 -* ) ac_must_keep_next=true ;; 3157 esac 3158 fi 3159 as_fn_append ac_configure_args " '$ac_arg'" 3160 ;; 3161 esac 3162 done 3163 done 3164 { ac_configure_args0=; unset ac_configure_args0;} 3165 { ac_configure_args1=; unset ac_configure_args1;} 3166 3167 # When interrupted or exit'd, cleanup temporary files, and complete 3168 # config.log. We remove comments because anyway the quotes in there 3169 # would cause problems or look ugly. 3170 # WARNING: Use '\'' to represent an apostrophe within the trap. 3171 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3172 trap 'exit_status=$? 3173 # Save into config.log some information that might help in debugging. 3174 { 3175 echo 3176 3177 $as_echo "## ---------------- ## 3178 ## Cache variables. ## 3179 ## ---------------- ##" 3180 echo 3181 # The following way of writing the cache mishandles newlines in values, 3182 ( 3183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3184 eval ac_val=\$$ac_var 3185 case $ac_val in #( 3186 *${as_nl}*) 3187 case $ac_var in #( 3188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3190 esac 3191 case $ac_var in #( 3192 _ | IFS | as_nl) ;; #( 3193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3194 *) { eval $ac_var=; unset $ac_var;} ;; 3195 esac ;; 3196 esac 3197 done 3198 (set) 2>&1 | 3199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3200 *${as_nl}ac_space=\ *) 3201 sed -n \ 3202 "s/'\''/'\''\\\\'\'''\''/g; 3203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3204 ;; #( 3205 *) 3206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3207 ;; 3208 esac | 3209 sort 3210 ) 3211 echo 3212 3213 $as_echo "## ----------------- ## 3214 ## Output variables. ## 3215 ## ----------------- ##" 3216 echo 3217 for ac_var in $ac_subst_vars 3218 do 3219 eval ac_val=\$$ac_var 3220 case $ac_val in 3221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3222 esac 3223 $as_echo "$ac_var='\''$ac_val'\''" 3224 done | sort 3225 echo 3226 3227 if test -n "$ac_subst_files"; then 3228 $as_echo "## ------------------- ## 3229 ## File substitutions. ## 3230 ## ------------------- ##" 3231 echo 3232 for ac_var in $ac_subst_files 3233 do 3234 eval ac_val=\$$ac_var 3235 case $ac_val in 3236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3237 esac 3238 $as_echo "$ac_var='\''$ac_val'\''" 3239 done | sort 3240 echo 3241 fi 3242 3243 if test -s confdefs.h; then 3244 $as_echo "## ----------- ## 3245 ## confdefs.h. ## 3246 ## ----------- ##" 3247 echo 3248 cat confdefs.h 3249 echo 3250 fi 3251 test "$ac_signal" != 0 && 3252 $as_echo "$as_me: caught signal $ac_signal" 3253 $as_echo "$as_me: exit $exit_status" 3254 } >&5 3255 rm -f core *.core core.conftest.* && 3256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3257 exit $exit_status 3258 ' 0 3259 for ac_signal in 1 2 13 15; do 3260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3261 done 3262 ac_signal=0 3263 3264 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3265 rm -f -r conftest* confdefs.h 3266 3267 $as_echo "/* confdefs.h */" > confdefs.h 3268 3269 # Predefined preprocessor variables. 3270 3271 cat >>confdefs.h <<_ACEOF 3272 #define PACKAGE_NAME "$PACKAGE_NAME" 3273 _ACEOF 3274 3275 cat >>confdefs.h <<_ACEOF 3276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3277 _ACEOF 3278 3279 cat >>confdefs.h <<_ACEOF 3280 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3281 _ACEOF 3282 3283 cat >>confdefs.h <<_ACEOF 3284 #define PACKAGE_STRING "$PACKAGE_STRING" 3285 _ACEOF 3286 3287 cat >>confdefs.h <<_ACEOF 3288 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3289 _ACEOF 3290 3291 cat >>confdefs.h <<_ACEOF 3292 #define PACKAGE_URL "$PACKAGE_URL" 3293 _ACEOF 3294 3295 3296 # Let the site file select an alternate cache file if it wants to. 3297 # Prefer an explicitly selected file to automatically selected ones. 3298 ac_site_file1=NONE 3299 ac_site_file2=NONE 3300 if test -n "$CONFIG_SITE"; then 3301 # We do not want a PATH search for config.site. 3302 case $CONFIG_SITE in #(( 3303 -*) ac_site_file1=./$CONFIG_SITE;; 3304 */*) ac_site_file1=$CONFIG_SITE;; 3305 *) ac_site_file1=./$CONFIG_SITE;; 3306 esac 3307 elif test "x$prefix" != xNONE; then 3308 ac_site_file1=$prefix/share/config.site 3309 ac_site_file2=$prefix/etc/config.site 3310 else 3311 ac_site_file1=$ac_default_prefix/share/config.site 3312 ac_site_file2=$ac_default_prefix/etc/config.site 3313 fi 3314 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3315 do 3316 test "x$ac_site_file" = xNONE && continue 3317 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3319 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3320 sed 's/^/| /' "$ac_site_file" >&5 3321 . "$ac_site_file" \ 3322 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3324 as_fn_error $? "failed to load site script $ac_site_file 3325 See \`config.log' for more details" "$LINENO" 5; } 3326 fi 3327 done 3328 3329 if test -r "$cache_file"; then 3330 # Some versions of bash will fail to source /dev/null (special files 3331 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3332 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3334 $as_echo "$as_me: loading cache $cache_file" >&6;} 3335 case $cache_file in 3336 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3337 *) . "./$cache_file";; 3338 esac 3339 fi 3340 else 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3342 $as_echo "$as_me: creating cache $cache_file" >&6;} 3343 >$cache_file 3344 fi 3345 3346 # Check that the precious variables saved in the cache have kept the same 3347 # value. 3348 ac_cache_corrupted=false 3349 for ac_var in $ac_precious_vars; do 3350 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3351 eval ac_new_set=\$ac_env_${ac_var}_set 3352 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3353 eval ac_new_val=\$ac_env_${ac_var}_value 3354 case $ac_old_set,$ac_new_set in 3355 set,) 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3358 ac_cache_corrupted=: ;; 3359 ,set) 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3362 ac_cache_corrupted=: ;; 3363 ,);; 3364 *) 3365 if test "x$ac_old_val" != "x$ac_new_val"; then 3366 # differences in whitespace do not lead to failure. 3367 ac_old_val_w=`echo x $ac_old_val` 3368 ac_new_val_w=`echo x $ac_new_val` 3369 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3372 ac_cache_corrupted=: 3373 else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3376 eval $ac_var=\$ac_old_val 3377 fi 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3382 fi;; 3383 esac 3384 # Pass precious variables to config.status. 3385 if test "$ac_new_set" = set; then 3386 case $ac_new_val in 3387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3388 *) ac_arg=$ac_var=$ac_new_val ;; 3389 esac 3390 case " $ac_configure_args " in 3391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3392 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3393 esac 3394 fi 3395 done 3396 if $ac_cache_corrupted; then 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3401 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3402 fi 3403 ## -------------------- ## 3404 ## Main body of script. ## 3405 ## -------------------- ## 3406 3407 ac_ext=c 3408 ac_cpp='$CPP $CPPFLAGS' 3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3412 3413 3414 3415 ac_aux_dir= 3416 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do 3417 if test -f "$ac_dir/install-sh"; then 3418 ac_aux_dir=$ac_dir 3419 ac_install_sh="$ac_aux_dir/install-sh -c" 3420 break 3421 elif test -f "$ac_dir/install.sh"; then 3422 ac_aux_dir=$ac_dir 3423 ac_install_sh="$ac_aux_dir/install.sh -c" 3424 break 3425 elif test -f "$ac_dir/shtool"; then 3426 ac_aux_dir=$ac_dir 3427 ac_install_sh="$ac_aux_dir/shtool install -c" 3428 break 3429 fi 3430 done 3431 if test -z "$ac_aux_dir"; then 3432 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 3433 fi 3434 3435 # These three variables are undocumented and unsupported, 3436 # and are intended to be withdrawn in a future Autoconf release. 3437 # They can cause serious problems if a builder's source tree is in a directory 3438 # whose full name contains unusual characters. 3439 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3440 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3441 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3442 3443 3444 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3445 3446 # 3447 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3448 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3449 # 3450 # This code is free software; you can redistribute it and/or modify it 3451 # under the terms of the GNU General Public License version 2 only, as 3452 # published by the Free Software Foundation. Oracle designates this 3453 # particular file as subject to the "Classpath" exception as provided 3454 # by Oracle in the LICENSE file that accompanied this code. 3455 # 3456 # This code is distributed in the hope that it will be useful, but WITHOUT 3457 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3458 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3459 # version 2 for more details (a copy is included in the LICENSE file that 3460 # accompanied this code). 3461 # 3462 # You should have received a copy of the GNU General Public License version 3463 # 2 along with this work; if not, write to the Free Software Foundation, 3464 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3465 # 3466 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3467 # or visit www.oracle.com if you need additional information or have any 3468 # questions. 3469 # 3470 3471 # 3472 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3473 # 3474 # This program is free software; you can redistribute it and/or modify 3475 # it under the terms of the GNU General Public License as published by 3476 # the Free Software Foundation; either version 2 of the License, or 3477 # (at your option) any later version. 3478 # 3479 # This program is distributed in the hope that it will be useful, but 3480 # WITHOUT ANY WARRANTY; without even the implied warranty of 3481 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3482 # General Public License for more details. 3483 # 3484 # You should have received a copy of the GNU General Public License 3485 # along with this program; if not, write to the Free Software 3486 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3487 # 3488 # As a special exception to the GNU General Public License, if you 3489 # distribute this file as part of a program that contains a 3490 # configuration script generated by Autoconf, you may include it under 3491 # the same distribution terms that you use for the rest of that program. 3492 3493 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3494 # ---------------------------------- 3495 # PKG_PROG_PKG_CONFIG 3496 3497 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3498 # 3499 # Check to see whether a particular set of modules exists. Similar 3500 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3501 # 3502 # 3503 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3504 # this or PKG_CHECK_MODULES is called, or make sure to call 3505 # PKG_CHECK_EXISTS manually 3506 # -------------------------------------------------------------- 3507 3508 3509 3510 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3511 # --------------------------------------------- 3512 # _PKG_CONFIG 3513 3514 # _PKG_SHORT_ERRORS_SUPPORTED 3515 # ----------------------------- 3516 # _PKG_SHORT_ERRORS_SUPPORTED 3517 3518 3519 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3520 # [ACTION-IF-NOT-FOUND]) 3521 # 3522 # 3523 # Note that if there is a possibility the first call to 3524 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3525 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3526 # 3527 # 3528 # -------------------------------------------------------------- 3529 # PKG_CHECK_MODULES 3530 3531 3532 # Include these first... 3533 # 3534 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3535 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3536 # 3537 # This code is free software; you can redistribute it and/or modify it 3538 # under the terms of the GNU General Public License version 2 only, as 3539 # published by the Free Software Foundation. Oracle designates this 3540 # particular file as subject to the "Classpath" exception as provided 3541 # by Oracle in the LICENSE file that accompanied this code. 3542 # 3543 # This code is distributed in the hope that it will be useful, but WITHOUT 3544 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3545 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3546 # version 2 for more details (a copy is included in the LICENSE file that 3547 # accompanied this code). 3548 # 3549 # You should have received a copy of the GNU General Public License version 3550 # 2 along with this work; if not, write to the Free Software Foundation, 3551 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3552 # 3553 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3554 # or visit www.oracle.com if you need additional information or have any 3555 # questions. 3556 # 3557 3558 # Create a function/macro that takes a series of named arguments. The call is 3559 # similar to AC_DEFUN, but the setup of the function looks like this: 3560 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3561 # ... do something 3562 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3563 # ]) 3564 # A star (*) in front of a named argument means that it is required and it's 3565 # presence will be verified. To pass e.g. the first value as a normal indexed 3566 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3567 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3568 # "ARG_FOO". 3569 # 3570 # The generated function can be called like this: 3571 # MYFUNC(FOO: [foo-val], 3572 # BAR: [ 3573 # $ECHO hello world 3574 # ]) 3575 # Note that the argument value must start on the same line as the argument name. 3576 # 3577 # Argument 1: Name of the function to define 3578 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3579 # Argument 3: Argument array to treat as named, typically $@ 3580 # Argument 4: The main function body 3581 3582 3583 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3584 # If so, then append $1 to $2 \ 3585 # Also set JVM_ARG_OK to true/false depending on outcome. 3586 3587 3588 # Appends a string to a path variable, only adding the : when needed. 3589 3590 3591 # Prepends a string to a path variable, only adding the : when needed. 3592 3593 3594 # This will make sure the given variable points to a full and proper 3595 # path. This means: 3596 # 1) There will be no spaces in the path. On unix platforms, 3597 # spaces in the path will result in an error. On Windows, 3598 # the path will be rewritten using short-style to be space-free. 3599 # 2) The path will be absolute, and it will be in unix-style (on 3600 # cygwin). 3601 # $1: The name of the variable to fix 3602 3603 3604 # This will make sure the given variable points to a executable 3605 # with a full and proper path. This means: 3606 # 1) There will be no spaces in the path. On unix platforms, 3607 # spaces in the path will result in an error. On Windows, 3608 # the path will be rewritten using short-style to be space-free. 3609 # 2) The path will be absolute, and it will be in unix-style (on 3610 # cygwin). 3611 # Any arguments given to the executable is preserved. 3612 # If the input variable does not have a directory specification, then 3613 # it need to be in the PATH. 3614 # $1: The name of the variable to fix 3615 3616 3617 3618 3619 # Register a --with argument but mark it as deprecated 3620 # $1: The name of the with argument to deprecate, not including --with- 3621 3622 3623 # Register a --enable argument but mark it as deprecated 3624 # $1: The name of the with argument to deprecate, not including --enable- 3625 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3626 # $3: Messages to user. 3627 3628 3629 3630 3631 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3632 # $1: variable to check 3633 3634 3635 # Check that there are no unprocessed overridden variables left. 3636 # If so, they are an incorrect argument and we will exit with an error. 3637 3638 3639 # Setup a tool for the given variable. If correctly specified by the user, 3640 # use that value, otherwise search for the tool using the supplied code snippet. 3641 # $1: variable to set 3642 # $2: code snippet to call to look for the tool 3643 # $3: code snippet to call if variable was used to find tool 3644 3645 3646 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3647 # $1: variable to set 3648 # $2: executable name (or list of names) to look for 3649 # $3: [path] 3650 3651 3652 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3653 # $1: variable to set 3654 # $2: executable name (or list of names) to look for 3655 3656 3657 # Like BASIC_PATH_PROGS but fails if no tool was found. 3658 # $1: variable to set 3659 # $2: executable name (or list of names) to look for 3660 # $3: [path] 3661 3662 3663 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3664 # $1: variable to set 3665 # $2: autoconf macro to call to look for the special tool 3666 3667 3668 # Setup the most fundamental tools that relies on not much else to set up, 3669 # but is used by much of the early bootstrap code. 3670 3671 3672 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3673 3674 3675 # Evaluates platform specific overrides for devkit variables. 3676 # $1: Name of variable 3677 3678 3679 3680 3681 3682 3683 #%%% Simple tools %%% 3684 3685 # Check if we have found a usable version of make 3686 # $1: the path to a potential make binary (or empty) 3687 # $2: the description on how we found this 3688 3689 3690 3691 3692 # Goes looking for a usable version of GNU make. 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 # Check if build directory is on local disk. If not possible to determine, 3704 # we prefer to claim it's local. 3705 # Argument 1: directory to test 3706 # Argument 2: what to do if it is on local disk 3707 # Argument 3: what to do otherwise (remote disk or failure) 3708 3709 3710 # Check that source files have basic read permissions set. This might 3711 # not be the case in cygwin in certain conditions. 3712 3713 3714 3715 3716 # Check for support for specific options in bash 3717 3718 3719 ################################################################################ 3720 # 3721 # Default make target 3722 # 3723 3724 3725 # Code to run after AC_OUTPUT 3726 3727 3728 # 3729 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3730 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3731 # 3732 # This code is free software; you can redistribute it and/or modify it 3733 # under the terms of the GNU General Public License version 2 only, as 3734 # published by the Free Software Foundation. Oracle designates this 3735 # particular file as subject to the "Classpath" exception as provided 3736 # by Oracle in the LICENSE file that accompanied this code. 3737 # 3738 # This code is distributed in the hope that it will be useful, but WITHOUT 3739 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3740 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3741 # version 2 for more details (a copy is included in the LICENSE file that 3742 # accompanied this code). 3743 # 3744 # You should have received a copy of the GNU General Public License version 3745 # 2 along with this work; if not, write to the Free Software Foundation, 3746 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3747 # 3748 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3749 # or visit www.oracle.com if you need additional information or have any 3750 # questions. 3751 # 3752 3753 3754 3755 3756 3757 # Helper function which possibly converts a path using DOS-style short mode. 3758 # If so, the updated path is stored in $new_path. 3759 # $1: The path to check 3760 3761 3762 # Helper function which possibly converts a path using DOS-style short mode. 3763 # If so, the updated path is stored in $new_path. 3764 # $1: The path to check 3765 3766 3767 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3768 # and could probably be heavily simplified. However, all changes in this 3769 # area tend to need lot of testing in different scenarios, and in lack of 3770 # proper unit testing, cleaning this up has not been deemed worth the effort 3771 # at the moment. 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3782 3783 3784 3785 3786 # ... then the rest 3787 # 3788 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3789 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3790 # 3791 # This code is free software; you can redistribute it and/or modify it 3792 # under the terms of the GNU General Public License version 2 only, as 3793 # published by the Free Software Foundation. Oracle designates this 3794 # particular file as subject to the "Classpath" exception as provided 3795 # by Oracle in the LICENSE file that accompanied this code. 3796 # 3797 # This code is distributed in the hope that it will be useful, but WITHOUT 3798 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3799 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3800 # version 2 for more details (a copy is included in the LICENSE file that 3801 # accompanied this code). 3802 # 3803 # You should have received a copy of the GNU General Public License version 3804 # 2 along with this work; if not, write to the Free Software Foundation, 3805 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3806 # 3807 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3808 # or visit www.oracle.com if you need additional information or have any 3809 # questions. 3810 # 3811 3812 ######################################################################## 3813 # This file handles detection of the Boot JDK. The Boot JDK detection 3814 # process has been developed as a response to solve a complex real-world 3815 # problem. Initially, it was simple, but it has grown as platform after 3816 # platform, idiosyncracy after idiosyncracy has been supported. 3817 # 3818 # The basic idea is this: 3819 # 1) You need an acceptable *) JDK to use as a Boot JDK 3820 # 2) There are several ways to locate a JDK, that are mostly platform 3821 # dependent **) 3822 # 3) You can have multiple JDKs installed 3823 # 4) If possible, configure should try to dig out an acceptable JDK 3824 # automatically, without having to resort to command-line options 3825 # 3826 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3827 # javac) and not a JRE, etc. 3828 # 3829 # **) On Windows we typically use a well-known path. 3830 # On MacOSX we typically use the tool java_home. 3831 # On Linux we typically find javac in the $PATH, and then follow a 3832 # chain of symlinks that often ends up in a real JDK. 3833 # 3834 # This leads to the code where we check in different ways to locate a 3835 # JDK, and if one is found, check if it is acceptable. If not, we print 3836 # our reasons for rejecting it (useful when debugging non-working 3837 # configure situations) and continue checking the next one. 3838 ######################################################################## 3839 3840 # Execute the check given as argument, and verify the result 3841 # If the Boot JDK was previously found, do nothing 3842 # $1 A command line (typically autoconf macro) to execute 3843 3844 3845 # Test: Is bootjdk explicitly set by command line arguments? 3846 3847 3848 # Test: Is $JAVA_HOME set? 3849 3850 3851 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3852 3853 3854 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3855 # $1: Argument to the java_home binary (optional) 3856 3857 3858 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3859 3860 3861 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3862 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3863 # $1 = Path to directory containing jdk installations. 3864 # $2 = String to append to the found JDK directory to get the proper JDK home 3865 3866 3867 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3868 # environmental variable as base for where to look. 3869 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3870 3871 3872 # Test: Is there a JDK installed in default, well-known locations? 3873 3874 3875 # Check that a command-line tool in the Boot JDK is correct 3876 # $1 = name of variable to assign 3877 # $2 = name of binary 3878 3879 3880 ############################################################################### 3881 # 3882 # We need a Boot JDK to bootstrap the build. 3883 # 3884 3885 3886 3887 3888 3889 # BUILD_JDK: the location of the latest JDK that can run 3890 # on the host system and supports the target class file version 3891 # generated in this JDK build. This variable should only be 3892 # used after the launchers are built. 3893 # 3894 3895 # Execute the check given as argument, and verify the result. 3896 # If the JDK was previously found, do nothing. 3897 # $1 A command line (typically autoconf macro) to execute 3898 3899 3900 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3901 # is different than the host system doing the build (e.g. cross-compilation), 3902 # a special BUILD_JDK is built as part of the build process. An external 3903 # prebuilt BUILD_JDK can also be supplied. 3904 3905 3906 # 3907 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3908 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3909 # 3910 # This code is free software; you can redistribute it and/or modify it 3911 # under the terms of the GNU General Public License version 2 only, as 3912 # published by the Free Software Foundation. Oracle designates this 3913 # particular file as subject to the "Classpath" exception as provided 3914 # by Oracle in the LICENSE file that accompanied this code. 3915 # 3916 # This code is distributed in the hope that it will be useful, but WITHOUT 3917 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3918 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3919 # version 2 for more details (a copy is included in the LICENSE file that 3920 # accompanied this code). 3921 # 3922 # You should have received a copy of the GNU General Public License version 3923 # 2 along with this work; if not, write to the Free Software Foundation, 3924 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3925 # 3926 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3927 # or visit www.oracle.com if you need additional information or have any 3928 # questions. 3929 # 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 ################################################################################ 3948 # 3949 # Runs icecc-create-env once and prints the error if it fails 3950 # 3951 # $1: arguments to icecc-create-env 3952 # $2: log file 3953 # 3954 3955 3956 ################################################################################ 3957 # 3958 # Optionally enable distributed compilation of native code using icecc/icecream 3959 # 3960 3961 3962 3963 3964 3965 3966 3967 # 3968 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3969 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3970 # 3971 # This code is free software; you can redistribute it and/or modify it 3972 # under the terms of the GNU General Public License version 2 only, as 3973 # published by the Free Software Foundation. Oracle designates this 3974 # particular file as subject to the "Classpath" exception as provided 3975 # by Oracle in the LICENSE file that accompanied this code. 3976 # 3977 # This code is distributed in the hope that it will be useful, but WITHOUT 3978 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3979 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3980 # version 2 for more details (a copy is included in the LICENSE file that 3981 # accompanied this code). 3982 # 3983 # You should have received a copy of the GNU General Public License version 3984 # 2 along with this work; if not, write to the Free Software Foundation, 3985 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3986 # 3987 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3988 # or visit www.oracle.com if you need additional information or have any 3989 # questions. 3990 # 3991 3992 ################################################################################ 3993 # 3994 # Setup ABI profile (for arm) 3995 # 3996 3997 3998 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 3999 # corresponding configure arguments instead 4000 4001 4002 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4003 # that configure can use them while detecting compilers. 4004 # TOOLCHAIN_TYPE is available here. 4005 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4006 4007 4008 4009 4010 4011 4012 # Documentation on common flags used for solstudio in HIGHEST. 4013 # 4014 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4015 # done with care, there are some assumptions below that need to 4016 # be understood about the use of pointers, and IEEE behavior. 4017 # 4018 # -fns: Use non-standard floating point mode (not IEEE 754) 4019 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4020 # -fsingle: Use single precision floating point with 'float' 4021 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4022 # (Source with excessing pointer casting and data access with mixed 4023 # pointer types are not recommended) 4024 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4025 # (If you expect perfect errno behavior, do not use this) 4026 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4027 # -xrestrict: Pointer parameters to functions do not overlap 4028 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4029 # If you pass in multiple pointers to the same data, do not use this) 4030 # -xlibmil: Inline some library routines 4031 # (If you expect perfect errno behavior, do not use this) 4032 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4033 # (If you expect perfect errno behavior, do not use this) 4034 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4035 4036 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4037 # Bug? 4038 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4039 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4040 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4041 #fi 4042 4043 4044 4045 4046 4047 4048 ################################################################################ 4049 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4050 # conditionals against. 4051 # $2 - Optional prefix for each variable defined. 4052 4053 4054 # FLAGS_C_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_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4063 # IF_FALSE: [RUN-IF-FALSE]) 4064 # ------------------------------------------------------------ 4065 # Check that the C++ compiler supports an argument 4066 4067 4068 4069 4070 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4071 # IF_FALSE: [RUN-IF-FALSE]) 4072 # ------------------------------------------------------------ 4073 # Check that the C and C++ compilers support an argument 4074 4075 4076 4077 4078 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4079 # IF_FALSE: [RUN-IF-FALSE]) 4080 # ------------------------------------------------------------ 4081 # Check that the linker support an argument 4082 4083 4084 4085 4086 4087 4088 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4089 # Arguments: 4090 # $1 - Optional prefix for each variable defined. 4091 4092 4093 # 4094 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4095 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4096 # 4097 # This code is free software; you can redistribute it and/or modify it 4098 # under the terms of the GNU General Public License version 2 only, as 4099 # published by the Free Software Foundation. Oracle designates this 4100 # particular file as subject to the "Classpath" exception as provided 4101 # by Oracle in the LICENSE file that accompanied this code. 4102 # 4103 # This code is distributed in the hope that it will be useful, but WITHOUT 4104 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4105 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4106 # version 2 for more details (a copy is included in the LICENSE file that 4107 # accompanied this code). 4108 # 4109 # You should have received a copy of the GNU General Public License version 4110 # 2 along with this work; if not, write to the Free Software Foundation, 4111 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4112 # 4113 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4114 # or visit www.oracle.com if you need additional information or have any 4115 # questions. 4116 # 4117 4118 4119 4120 4121 4122 cygwin_help() { 4123 case $1 in 4124 unzip) 4125 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4126 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4127 ;; 4128 zip) 4129 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4130 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4131 ;; 4132 make) 4133 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4134 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4135 ;; 4136 freetype) 4137 HELP_MSG=" 4138 The freetype library can now be build during the configure process. 4139 Download the freetype sources and unpack them into an arbitrary directory: 4140 4141 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4142 tar -xzf freetype-2.5.3.tar.gz 4143 4144 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4145 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4146 builds or into '<freetype_src>/lib32' for 32-bit builds. 4147 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4148 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4149 4150 Alternatively you can unpack the sources like this to use the default directory: 4151 4152 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4153 ;; 4154 esac 4155 } 4156 4157 msys_help() { 4158 PKGHANDLER_COMMAND="" 4159 } 4160 4161 apt_help() { 4162 case $1 in 4163 reduced) 4164 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4165 devkit) 4166 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4167 openjdk) 4168 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4169 alsa) 4170 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4171 cups) 4172 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4173 freetype) 4174 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4175 ffi) 4176 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4177 x11) 4178 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4179 ccache) 4180 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4181 dtrace) 4182 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4183 esac 4184 } 4185 4186 yum_help() { 4187 case $1 in 4188 devkit) 4189 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4190 openjdk) 4191 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4192 alsa) 4193 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4194 cups) 4195 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4196 freetype) 4197 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4198 x11) 4199 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4200 ccache) 4201 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4202 esac 4203 } 4204 4205 brew_help() { 4206 case $1 in 4207 openjdk) 4208 PKGHANDLER_COMMAND="brew cask install java" ;; 4209 freetype) 4210 PKGHANDLER_COMMAND="brew install freetype" ;; 4211 ccache) 4212 PKGHANDLER_COMMAND="brew install ccache" ;; 4213 esac 4214 } 4215 4216 port_help() { 4217 PKGHANDLER_COMMAND="" 4218 } 4219 4220 pkgutil_help() { 4221 PKGHANDLER_COMMAND="" 4222 } 4223 4224 pkgadd_help() { 4225 PKGHANDLER_COMMAND="" 4226 } 4227 4228 # This function will check if we're called from the "configure" wrapper while 4229 # printing --help. If so, we will print out additional information that can 4230 # only be extracted within the autoconf script, and then exit. This must be 4231 # called at the very beginning in configure.ac. 4232 4233 4234 4235 4236 4237 4238 # 4239 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4240 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4241 # 4242 # This code is free software; you can redistribute it and/or modify it 4243 # under the terms of the GNU General Public License version 2 only, as 4244 # published by the Free Software Foundation. Oracle designates this 4245 # particular file as subject to the "Classpath" exception as provided 4246 # by Oracle in the LICENSE file that accompanied this code. 4247 # 4248 # This code is distributed in the hope that it will be useful, but WITHOUT 4249 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4250 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4251 # version 2 for more details (a copy is included in the LICENSE file that 4252 # accompanied this code). 4253 # 4254 # You should have received a copy of the GNU General Public License version 4255 # 2 along with this work; if not, write to the Free Software Foundation, 4256 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4257 # 4258 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4259 # or visit www.oracle.com if you need additional information or have any 4260 # questions. 4261 # 4262 4263 # All valid JVM features, regardless of platform 4264 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4265 graal vm-structs jni-check services management all-gcs nmt cds \ 4266 static-build link-time-opt aot" 4267 4268 # All valid JVM variants 4269 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4270 4271 ############################################################################### 4272 # Check if the specified JVM variant should be built. To be used in shell if 4273 # constructs, like this: 4274 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4275 # 4276 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4277 4278 # Definition kept in one line to allow inlining in if statements. 4279 # Additional [] needed to keep m4 from mangling shell constructs. 4280 4281 4282 ############################################################################### 4283 # Check if the specified JVM features are explicitly enabled. To be used in 4284 # shell if constructs, like this: 4285 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4286 # 4287 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4288 4289 # Definition kept in one line to allow inlining in if statements. 4290 # Additional [] needed to keep m4 from mangling shell constructs. 4291 4292 4293 ############################################################################### 4294 # Check which variants of the JVM that we want to build. Available variants are: 4295 # server: normal interpreter, and a tiered C1/C2 compiler 4296 # client: normal interpreter, and C1 (no C2 compiler) 4297 # minimal: reduced form of client with optional features stripped out 4298 # core: normal interpreter only, no compiler 4299 # zero: C++ based interpreter only, no compiler 4300 # zeroshark: C++ based interpreter, and a llvm-based compiler 4301 # custom: baseline JVM with no default features 4302 # 4303 4304 4305 ############################################################################### 4306 # Check if dtrace should be enabled and has all prerequisites present. 4307 # 4308 4309 4310 ################################################################################ 4311 # Check if AOT should be enabled 4312 # 4313 4314 4315 ################################################################################ 4316 # Allow to disable CDS 4317 # 4318 4319 4320 ############################################################################### 4321 # Set up all JVM features for each JVM variant. 4322 # 4323 4324 4325 ############################################################################### 4326 # Validate JVM features once all setup is complete, including custom setup. 4327 # 4328 4329 4330 ################################################################################ 4331 # 4332 # Specify which sources will be used to build the 64-bit ARM port 4333 # 4334 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4335 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4336 # 4337 4338 4339 4340 ################################################################################ 4341 # Check if gtest should be built 4342 # 4343 4344 4345 # 4346 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4347 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4348 # 4349 # This code is free software; you can redistribute it and/or modify it 4350 # under the terms of the GNU General Public License version 2 only, as 4351 # published by the Free Software Foundation. Oracle designates this 4352 # particular file as subject to the "Classpath" exception as provided 4353 # by Oracle in the LICENSE file that accompanied this code. 4354 # 4355 # This code is distributed in the hope that it will be useful, but WITHOUT 4356 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4357 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4358 # version 2 for more details (a copy is included in the LICENSE file that 4359 # accompanied this code). 4360 # 4361 # You should have received a copy of the GNU General Public License version 4362 # 2 along with this work; if not, write to the Free Software Foundation, 4363 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4364 # 4365 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4366 # or visit www.oracle.com if you need additional information or have any 4367 # questions. 4368 # 4369 4370 ############################################################################### 4371 # Check which variant of the JDK that we want to build. 4372 # Currently we have: 4373 # normal: standard edition 4374 # but the custom make system may add other variants 4375 # 4376 # Effectively the JDK variant gives a name to a specific set of 4377 # modules to compile into the JDK. 4378 4379 4380 ############################################################################### 4381 # Set the debug level 4382 # release: no debug information, all optimizations, no asserts. 4383 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4384 # fastdebug: debug information (-g), all optimizations, all asserts 4385 # slowdebug: debug information (-g), no optimizations, all asserts 4386 4387 4388 ############################################################################### 4389 # 4390 # Should we build only OpenJDK even if closed sources are present? 4391 # 4392 4393 4394 4395 4396 ############################################################################### 4397 # 4398 # Enable or disable the elliptic curve crypto implementation 4399 # 4400 4401 4402 4403 4404 ################################################################################ 4405 # 4406 # Gcov coverage data for hotspot 4407 # 4408 4409 4410 ############################################################################### 4411 # 4412 # AddressSanitizer 4413 # 4414 4415 4416 ################################################################################ 4417 # 4418 # Static build support. When enabled will generate static 4419 # libraries instead of shared libraries for all JDK libs. 4420 # 4421 4422 4423 ################################################################################ 4424 # 4425 # jlink options. 4426 # We always keep packaged modules in JDK image. 4427 # 4428 4429 4430 ################################################################################ 4431 # 4432 # Check if building of the jtreg failure handler should be enabled. 4433 # 4434 4435 4436 ################################################################################ 4437 # 4438 # Enable or disable generation of the classlist at build time 4439 # 4440 4441 4442 # 4443 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4444 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4445 # 4446 # This code is free software; you can redistribute it and/or modify it 4447 # under the terms of the GNU General Public License version 2 only, as 4448 # published by the Free Software Foundation. Oracle designates this 4449 # particular file as subject to the "Classpath" exception as provided 4450 # by Oracle in the LICENSE file that accompanied this code. 4451 # 4452 # This code is distributed in the hope that it will be useful, but WITHOUT 4453 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4454 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4455 # version 2 for more details (a copy is included in the LICENSE file that 4456 # accompanied this code). 4457 # 4458 # You should have received a copy of the GNU General Public License version 4459 # 2 along with this work; if not, write to the Free Software Foundation, 4460 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4461 # 4462 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4463 # or visit www.oracle.com if you need additional information or have any 4464 # questions. 4465 # 4466 4467 ############################################################################### 4468 # 4469 # Setup version numbers 4470 # 4471 4472 # Verify that a given string represents a valid version number, and assign it 4473 # to a variable. 4474 4475 # Argument 1: the variable to assign to 4476 # Argument 2: the value given by the user 4477 4478 4479 4480 4481 # 4482 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4483 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4484 # 4485 # This code is free software; you can redistribute it and/or modify it 4486 # under the terms of the GNU General Public License version 2 only, as 4487 # published by the Free Software Foundation. Oracle designates this 4488 # particular file as subject to the "Classpath" exception as provided 4489 # by Oracle in the LICENSE file that accompanied this code. 4490 # 4491 # This code is distributed in the hope that it will be useful, but WITHOUT 4492 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4493 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4494 # version 2 for more details (a copy is included in the LICENSE file that 4495 # accompanied this code). 4496 # 4497 # You should have received a copy of the GNU General Public License version 4498 # 2 along with this work; if not, write to the Free Software Foundation, 4499 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4500 # 4501 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4502 # or visit www.oracle.com if you need additional information or have any 4503 # questions. 4504 # 4505 4506 # Major library component reside in separate files. 4507 # 4508 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4509 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4510 # 4511 # This code is free software; you can redistribute it and/or modify it 4512 # under the terms of the GNU General Public License version 2 only, as 4513 # published by the Free Software Foundation. Oracle designates this 4514 # particular file as subject to the "Classpath" exception as provided 4515 # by Oracle in the LICENSE file that accompanied this code. 4516 # 4517 # This code is distributed in the hope that it will be useful, but WITHOUT 4518 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4519 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4520 # version 2 for more details (a copy is included in the LICENSE file that 4521 # accompanied this code). 4522 # 4523 # You should have received a copy of the GNU General Public License version 4524 # 2 along with this work; if not, write to the Free Software Foundation, 4525 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4526 # 4527 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4528 # or visit www.oracle.com if you need additional information or have any 4529 # questions. 4530 # 4531 4532 ################################################################################ 4533 # Setup alsa (Advanced Linux Sound Architecture) 4534 ################################################################################ 4535 4536 4537 # 4538 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4539 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4540 # 4541 # This code is free software; you can redistribute it and/or modify it 4542 # under the terms of the GNU General Public License version 2 only, as 4543 # published by the Free Software Foundation. Oracle designates this 4544 # particular file as subject to the "Classpath" exception as provided 4545 # by Oracle in the LICENSE file that accompanied this code. 4546 # 4547 # This code is distributed in the hope that it will be useful, but WITHOUT 4548 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4549 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4550 # version 2 for more details (a copy is included in the LICENSE file that 4551 # accompanied this code). 4552 # 4553 # You should have received a copy of the GNU General Public License version 4554 # 2 along with this work; if not, write to the Free Software Foundation, 4555 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4556 # 4557 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4558 # or visit www.oracle.com if you need additional information or have any 4559 # questions. 4560 # 4561 4562 ################################################################################ 4563 # Setup bundled libraries. 4564 # 4565 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4566 # OpenJDK repository. Default is to use these libraries as bundled, but they 4567 # might be replaced by en external version by the user. 4568 ################################################################################ 4569 4570 4571 ################################################################################ 4572 # Setup libjpeg 4573 ################################################################################ 4574 4575 4576 ################################################################################ 4577 # Setup giflib 4578 ################################################################################ 4579 4580 4581 ################################################################################ 4582 # Setup libpng 4583 ################################################################################ 4584 4585 4586 ################################################################################ 4587 # Setup zlib 4588 ################################################################################ 4589 4590 4591 ################################################################################ 4592 # Setup lcms (Little CMS) 4593 ################################################################################ 4594 4595 4596 # 4597 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4598 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4599 # 4600 # This code is free software; you can redistribute it and/or modify it 4601 # under the terms of the GNU General Public License version 2 only, as 4602 # published by the Free Software Foundation. Oracle designates this 4603 # particular file as subject to the "Classpath" exception as provided 4604 # by Oracle in the LICENSE file that accompanied this code. 4605 # 4606 # This code is distributed in the hope that it will be useful, but WITHOUT 4607 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4608 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4609 # version 2 for more details (a copy is included in the LICENSE file that 4610 # accompanied this code). 4611 # 4612 # You should have received a copy of the GNU General Public License version 4613 # 2 along with this work; if not, write to the Free Software Foundation, 4614 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4615 # 4616 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4617 # or visit www.oracle.com if you need additional information or have any 4618 # questions. 4619 # 4620 4621 ################################################################################ 4622 # Setup cups (Common Unix Printing System) 4623 ################################################################################ 4624 4625 4626 # 4627 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4628 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4629 # 4630 # This code is free software; you can redistribute it and/or modify it 4631 # under the terms of the GNU General Public License version 2 only, as 4632 # published by the Free Software Foundation. Oracle designates this 4633 # particular file as subject to the "Classpath" exception as provided 4634 # by Oracle in the LICENSE file that accompanied this code. 4635 # 4636 # This code is distributed in the hope that it will be useful, but WITHOUT 4637 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4638 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4639 # version 2 for more details (a copy is included in the LICENSE file that 4640 # accompanied this code). 4641 # 4642 # You should have received a copy of the GNU General Public License version 4643 # 2 along with this work; if not, write to the Free Software Foundation, 4644 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4645 # 4646 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4647 # or visit www.oracle.com if you need additional information or have any 4648 # questions. 4649 # 4650 4651 ################################################################################ 4652 # Setup libffi (Foreign Function Interface) 4653 ################################################################################ 4654 4655 4656 # 4657 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4658 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4659 # 4660 # This code is free software; you can redistribute it and/or modify it 4661 # under the terms of the GNU General Public License version 2 only, as 4662 # published by the Free Software Foundation. Oracle designates this 4663 # particular file as subject to the "Classpath" exception as provided 4664 # by Oracle in the LICENSE file that accompanied this code. 4665 # 4666 # This code is distributed in the hope that it will be useful, but WITHOUT 4667 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4668 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4669 # version 2 for more details (a copy is included in the LICENSE file that 4670 # accompanied this code). 4671 # 4672 # You should have received a copy of the GNU General Public License version 4673 # 2 along with this work; if not, write to the Free Software Foundation, 4674 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4675 # 4676 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4677 # or visit www.oracle.com if you need additional information or have any 4678 # questions. 4679 # 4680 4681 ################################################################################ 4682 # Build the freetype lib from source 4683 ################################################################################ 4684 4685 4686 ################################################################################ 4687 # Check if a potential freeype library match is correct and usable 4688 ################################################################################ 4689 4690 4691 ################################################################################ 4692 # Setup freetype (The FreeType2 font rendering library) 4693 ################################################################################ 4694 4695 4696 # 4697 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4698 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4699 # 4700 # This code is free software; you can redistribute it and/or modify it 4701 # under the terms of the GNU General Public License version 2 only, as 4702 # published by the Free Software Foundation. Oracle designates this 4703 # particular file as subject to the "Classpath" exception as provided 4704 # by Oracle in the LICENSE file that accompanied this code. 4705 # 4706 # This code is distributed in the hope that it will be useful, but WITHOUT 4707 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4708 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4709 # version 2 for more details (a copy is included in the LICENSE file that 4710 # accompanied this code). 4711 # 4712 # You should have received a copy of the GNU General Public License version 4713 # 2 along with this work; if not, write to the Free Software Foundation, 4714 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4715 # 4716 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4717 # or visit www.oracle.com if you need additional information or have any 4718 # questions. 4719 # 4720 4721 ################################################################################ 4722 # Setup the standard C/C++ runtime libraries. 4723 # 4724 # Most importantly, determine if stdc++ should be linked statically or 4725 # dynamically. 4726 ################################################################################ 4727 4728 4729 # 4730 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4731 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4732 # 4733 # This code is free software; you can redistribute it and/or modify it 4734 # under the terms of the GNU General Public License version 2 only, as 4735 # published by the Free Software Foundation. Oracle designates this 4736 # particular file as subject to the "Classpath" exception as provided 4737 # by Oracle in the LICENSE file that accompanied this code. 4738 # 4739 # This code is distributed in the hope that it will be useful, but WITHOUT 4740 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4741 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4742 # version 2 for more details (a copy is included in the LICENSE file that 4743 # accompanied this code). 4744 # 4745 # You should have received a copy of the GNU General Public License version 4746 # 2 along with this work; if not, write to the Free Software Foundation, 4747 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4748 # 4749 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4750 # or visit www.oracle.com if you need additional information or have any 4751 # questions. 4752 # 4753 4754 ################################################################################ 4755 # Setup X11 Windows system 4756 ################################################################################ 4757 4758 4759 4760 ################################################################################ 4761 # Determine which libraries are needed for this configuration 4762 ################################################################################ 4763 4764 4765 ################################################################################ 4766 # Parse library options, and setup needed libraries 4767 ################################################################################ 4768 4769 4770 ################################################################################ 4771 # Setup llvm (Low-Level VM) 4772 ################################################################################ 4773 4774 4775 ################################################################################ 4776 # Setup various libraries, typically small system libraries 4777 ################################################################################ 4778 4779 4780 ################################################################################ 4781 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4782 # redistribute it in the test image. 4783 ################################################################################ 4784 4785 4786 4787 # 4788 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4789 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4790 # 4791 # This code is free software; you can redistribute it and/or modify it 4792 # under the terms of the GNU General Public License version 2 only, as 4793 # published by the Free Software Foundation. Oracle designates this 4794 # particular file as subject to the "Classpath" exception as provided 4795 # by Oracle in the LICENSE file that accompanied this code. 4796 # 4797 # This code is distributed in the hope that it will be useful, but WITHOUT 4798 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4799 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4800 # version 2 for more details (a copy is included in the LICENSE file that 4801 # accompanied this code). 4802 # 4803 # You should have received a copy of the GNU General Public License version 4804 # 2 along with this work; if not, write to the Free Software Foundation, 4805 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4806 # 4807 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4808 # or visit www.oracle.com if you need additional information or have any 4809 # questions. 4810 # 4811 4812 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4813 # Converts autoconf style CPU name to OpenJDK style, into 4814 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4815 4816 4817 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4818 # Converts autoconf style OS name to OpenJDK style, into 4819 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4820 4821 4822 # Expects $host_os $host_cpu $build_os and $build_cpu 4823 # and $with_target_bits to have been setup! 4824 # 4825 # Translate the standard triplet(quadruplet) definition 4826 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4827 # OPENJDK_BUILD_OS, etc. 4828 4829 4830 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4831 # accordingly. Must be done after setting up build and target system, but before 4832 # doing anything else with these values. 4833 4834 4835 # Setup the legacy variables, for controlling the old makefiles. 4836 # 4837 4838 4839 # $1 - Either TARGET or BUILD to setup the variables for. 4840 4841 4842 4843 4844 4845 4846 #%%% Build and target systems %%% 4847 4848 4849 4850 4851 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4852 # Add -mX to various FLAGS variables. 4853 4854 4855 4856 4857 4858 4859 # 4860 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4861 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4862 # 4863 # This code is free software; you can redistribute it and/or modify it 4864 # under the terms of the GNU General Public License version 2 only, as 4865 # published by the Free Software Foundation. Oracle designates this 4866 # particular file as subject to the "Classpath" exception as provided 4867 # by Oracle in the LICENSE file that accompanied this code. 4868 # 4869 # This code is distributed in the hope that it will be useful, but WITHOUT 4870 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4871 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4872 # version 2 for more details (a copy is included in the LICENSE file that 4873 # accompanied this code). 4874 # 4875 # You should have received a copy of the GNU General Public License version 4876 # 2 along with this work; if not, write to the Free Software Foundation, 4877 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4878 # 4879 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4880 # or visit www.oracle.com if you need additional information or have any 4881 # questions. 4882 # 4883 4884 4885 4886 ################################################################################ 4887 # Define a mechanism for importing extra prebuilt modules 4888 # 4889 4890 4891 4892 # 4893 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4894 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4895 # 4896 # This code is free software; you can redistribute it and/or modify it 4897 # under the terms of the GNU General Public License version 2 only, as 4898 # published by the Free Software Foundation. Oracle designates this 4899 # particular file as subject to the "Classpath" exception as provided 4900 # by Oracle in the LICENSE file that accompanied this code. 4901 # 4902 # This code is distributed in the hope that it will be useful, but WITHOUT 4903 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4904 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4905 # version 2 for more details (a copy is included in the LICENSE file that 4906 # accompanied this code). 4907 # 4908 # You should have received a copy of the GNU General Public License version 4909 # 2 along with this work; if not, write to the Free Software Foundation, 4910 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4911 # 4912 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4913 # or visit www.oracle.com if you need additional information or have any 4914 # questions. 4915 # 4916 4917 ######################################################################## 4918 # This file is responsible for detecting, verifying and setting up the 4919 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4920 # proper paths to the binaries, but it will not setup any flags. 4921 # 4922 # The binaries used is determined by the toolchain type, which is the family of 4923 # compilers and related tools that are used. 4924 ######################################################################## 4925 4926 4927 # All valid toolchains, regardless of platform (used by help.m4) 4928 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4929 4930 # These toolchains are valid on different platforms 4931 VALID_TOOLCHAINS_linux="gcc clang" 4932 VALID_TOOLCHAINS_solaris="solstudio" 4933 VALID_TOOLCHAINS_macosx="gcc clang" 4934 VALID_TOOLCHAINS_aix="xlc" 4935 VALID_TOOLCHAINS_windows="microsoft" 4936 4937 # Toolchain descriptions 4938 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4939 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4940 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4941 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4942 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4943 4944 # Minimum supported versions, empty means unspecified 4945 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4946 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 4947 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 4948 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4949 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4950 4951 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4952 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4953 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4954 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4955 4956 4957 # Check if the configured compiler (C and C++) is of a specific version or 4958 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4959 # 4960 # Arguments: 4961 # VERSION: The version string to check against the found version 4962 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4963 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4964 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4965 4966 4967 4968 4969 # Setup a number of variables describing how native output files are 4970 # named on this platform/toolchain. 4971 4972 4973 # Determine which toolchain type to use, and make sure it is valid for this 4974 # platform. Setup various information about the selected toolchain. 4975 4976 4977 # Before we start detecting the toolchain executables, we might need some 4978 # special setup, e.g. additional paths etc. 4979 4980 4981 # Restore path, etc 4982 4983 4984 # Check if a compiler is of the toolchain type we expect, and save the version 4985 # information from it. If the compiler does not match the expected type, 4986 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4987 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4988 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4989 # 4990 # $1 = compiler to test (CC or CXX) 4991 # $2 = human readable name of compiler (C or C++) 4992 4993 4994 # Try to locate the given C or C++ compiler in the path, or otherwise. 4995 # 4996 # $1 = compiler to test (CC or CXX) 4997 # $2 = human readable name of compiler (C or C++) 4998 # $3 = compiler name to search for 4999 5000 5001 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5002 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5003 # archiver (AR). Verify that the compilers are correct according to the 5004 # toolchain type. 5005 5006 5007 # Setup additional tools that is considered a part of the toolchain, but not the 5008 # core part. Many of these are highly platform-specific and do not exist, 5009 # and/or are not needed on all platforms. 5010 5011 5012 # Setup the build tools (i.e, the compiler and linker used to build programs 5013 # that should be run on the build platform, not the target platform, as a build 5014 # helper). Since the non-cross-compile case uses the normal, target compilers 5015 # for this, we can only do this after these have been setup. 5016 5017 5018 # Do some additional checks on the detected tools. 5019 5020 5021 # Setup the JTReg Regression Test Harness. 5022 5023 5024 # Setup the JIB dependency resolver 5025 5026 5027 # 5028 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5029 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5030 # 5031 # This code is free software; you can redistribute it and/or modify it 5032 # under the terms of the GNU General Public License version 2 only, as 5033 # published by the Free Software Foundation. Oracle designates this 5034 # particular file as subject to the "Classpath" exception as provided 5035 # by Oracle in the LICENSE file that accompanied this code. 5036 # 5037 # This code is distributed in the hope that it will be useful, but WITHOUT 5038 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5039 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5040 # version 2 for more details (a copy is included in the LICENSE file that 5041 # accompanied this code). 5042 # 5043 # You should have received a copy of the GNU General Public License version 5044 # 2 along with this work; if not, write to the Free Software Foundation, 5045 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5046 # 5047 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5048 # or visit www.oracle.com if you need additional information or have any 5049 # questions. 5050 # 5051 5052 ################################################################################ 5053 # The order of these defines the priority by which we try to find them. 5054 VALID_VS_VERSIONS="2013 2012 2010" 5055 5056 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5057 VS_VERSION_INTERNAL_2010=100 5058 VS_MSVCR_2010=msvcr100.dll 5059 # We don't use msvcp on Visual Studio 2010 5060 #VS_MSVCP_2010=msvcp100.dll 5061 VS_ENVVAR_2010="VS100COMNTOOLS" 5062 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5063 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5064 VS_VS_PLATFORM_NAME_2010="v100" 5065 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5066 5067 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5068 VS_VERSION_INTERNAL_2012=110 5069 VS_MSVCR_2012=msvcr110.dll 5070 VS_MSVCP_2012=msvcp110.dll 5071 VS_ENVVAR_2012="VS110COMNTOOLS" 5072 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5073 VS_SDK_INSTALLDIR_2012= 5074 VS_VS_PLATFORM_NAME_2012="v110" 5075 VS_SDK_PLATFORM_NAME_2012= 5076 5077 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5078 VS_VERSION_INTERNAL_2013=120 5079 VS_MSVCR_2013=msvcr120.dll 5080 VS_MSVCP_2013=msvcp120.dll 5081 VS_ENVVAR_2013="VS120COMNTOOLS" 5082 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5083 VS_SDK_INSTALLDIR_2013= 5084 VS_VS_PLATFORM_NAME_2013="v120" 5085 VS_SDK_PLATFORM_NAME_2013= 5086 5087 ################################################################################ 5088 5089 5090 5091 ################################################################################ 5092 5093 5094 5095 ################################################################################ 5096 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5097 # build environment and assigns it to VS_ENV_CMD 5098 5099 5100 ################################################################################ 5101 5102 5103 5104 ################################################################################ 5105 # Check if the VS env variables were setup prior to running configure. 5106 # If not, then find vcvarsall.bat and run it automatically, and integrate 5107 # the set env variables into the spec file. 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 # This line needs to be here, verbatim, after all includes and the dummy hook 5123 # definitions. It is replaced with custom functionality when building 5124 # custom sources. 5125 #CUSTOM_AUTOCONF_INCLUDE 5126 5127 # Do not change or remove the following line, it is needed for consistency checks: 5128 DATE_WHEN_GENERATED=1509128484 5129 5130 ############################################################################### 5131 # 5132 # Initialization / Boot-strapping 5133 # 5134 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5135 # thus it jumps back and forth, each time gaining something needed later on. 5136 # 5137 ############################################################################### 5138 5139 # If we are requested to print additional help, do that and then exit. 5140 # This must be the very first call. 5141 5142 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5143 5144 # Print available toolchains 5145 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5146 $PRINTF "Which are valid to use depends on the build platform.\n" 5147 for toolchain in $VALID_TOOLCHAINS_all; do 5148 # Use indirect variable referencing 5149 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5150 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5151 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5152 done 5153 $PRINTF "\n" 5154 5155 # Print available jvm features 5156 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5157 $PRINTF "Which are valid to use depends on the target platform.\n " 5158 $PRINTF "%s " $VALID_JVM_FEATURES 5159 $PRINTF "\n" 5160 5161 # And now exit directly 5162 exit 0 5163 fi 5164 5165 5166 # Basic initialization that must happen first of all in the normal process. 5167 5168 # Save the original command line. This is passed to us by the wrapper configure script. 5169 5170 # Save the path variable before it gets changed 5171 ORIGINAL_PATH="$PATH" 5172 5173 DATE_WHEN_CONFIGURED=`LANG=C date` 5174 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5176 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5178 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5179 5180 5181 # Start with tools that do not need have cross compilation support 5182 # and can be expected to be found in the default PATH. These tools are 5183 # used by configure. 5184 5185 # First are all the simple required tools. 5186 5187 5188 5189 # Publish this variable in the help. 5190 5191 5192 if [ -z "${BASENAME+x}" ]; then 5193 # The variable is not set by user, try to locate tool using the code snippet 5194 for ac_prog in basename 5195 do 5196 # Extract the first word of "$ac_prog", so it can be a program name with args. 5197 set dummy $ac_prog; ac_word=$2 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5199 $as_echo_n "checking for $ac_word... " >&6; } 5200 if ${ac_cv_path_BASENAME+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202 else 5203 case $BASENAME in 5204 [\\/]* | ?:[\\/]*) 5205 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5206 ;; 5207 *) 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209 for as_dir in $PATH 5210 do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5215 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5217 break 2 5218 fi 5219 done 5220 done 5221 IFS=$as_save_IFS 5222 5223 ;; 5224 esac 5225 fi 5226 BASENAME=$ac_cv_path_BASENAME 5227 if test -n "$BASENAME"; then 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5229 $as_echo "$BASENAME" >&6; } 5230 else 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5232 $as_echo "no" >&6; } 5233 fi 5234 5235 5236 test -n "$BASENAME" && break 5237 done 5238 5239 else 5240 # The variable is set, but is it from the command line or the environment? 5241 5242 # Try to remove the string !BASENAME! from our list. 5243 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5244 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5245 # If it failed, the variable was not from the command line. Ignore it, 5246 # but warn the user (except for BASH, which is always set by the calling BASH). 5247 if test "xBASENAME" != xBASH; then 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5249 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5250 fi 5251 # Try to locate tool using the code snippet 5252 for ac_prog in basename 5253 do 5254 # Extract the first word of "$ac_prog", so it can be a program name with args. 5255 set dummy $ac_prog; ac_word=$2 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5257 $as_echo_n "checking for $ac_word... " >&6; } 5258 if ${ac_cv_path_BASENAME+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260 else 5261 case $BASENAME in 5262 [\\/]* | ?:[\\/]*) 5263 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5264 ;; 5265 *) 5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267 for as_dir in $PATH 5268 do 5269 IFS=$as_save_IFS 5270 test -z "$as_dir" && as_dir=. 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5273 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277 done 5278 done 5279 IFS=$as_save_IFS 5280 5281 ;; 5282 esac 5283 fi 5284 BASENAME=$ac_cv_path_BASENAME 5285 if test -n "$BASENAME"; then 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5287 $as_echo "$BASENAME" >&6; } 5288 else 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5290 $as_echo "no" >&6; } 5291 fi 5292 5293 5294 test -n "$BASENAME" && break 5295 done 5296 5297 else 5298 # If it succeeded, then it was overridden by the user. We will use it 5299 # for the tool. 5300 5301 # First remove it from the list of overridden variables, so we can test 5302 # for unknown variables in the end. 5303 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5304 5305 # Check if we try to supply an empty value 5306 if test "x$BASENAME" = x; then 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5308 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5310 $as_echo_n "checking for BASENAME... " >&6; } 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5312 $as_echo "disabled" >&6; } 5313 else 5314 # Check if the provided tool contains a complete path. 5315 tool_specified="$BASENAME" 5316 tool_basename="${tool_specified##*/}" 5317 if test "x$tool_basename" = "x$tool_specified"; then 5318 # A command without a complete path is provided, search $PATH. 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5320 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5321 # Extract the first word of "$tool_basename", so it can be a program name with args. 5322 set dummy $tool_basename; ac_word=$2 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324 $as_echo_n "checking for $ac_word... " >&6; } 5325 if ${ac_cv_path_BASENAME+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327 else 5328 case $BASENAME in 5329 [\\/]* | ?:[\\/]*) 5330 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5331 ;; 5332 *) 5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5334 for as_dir in $PATH 5335 do 5336 IFS=$as_save_IFS 5337 test -z "$as_dir" && as_dir=. 5338 for ac_exec_ext in '' $ac_executable_extensions; do 5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5340 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5342 break 2 5343 fi 5344 done 5345 done 5346 IFS=$as_save_IFS 5347 5348 ;; 5349 esac 5350 fi 5351 BASENAME=$ac_cv_path_BASENAME 5352 if test -n "$BASENAME"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5354 $as_echo "$BASENAME" >&6; } 5355 else 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357 $as_echo "no" >&6; } 5358 fi 5359 5360 5361 if test "x$BASENAME" = x; then 5362 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5363 fi 5364 else 5365 # Otherwise we believe it is a complete path. Use it as it is. 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5367 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5369 $as_echo_n "checking for BASENAME... " >&6; } 5370 if test ! -x "$tool_specified"; then 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5372 $as_echo "not found" >&6; } 5373 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5374 fi 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5376 $as_echo "$tool_specified" >&6; } 5377 fi 5378 fi 5379 fi 5380 5381 fi 5382 5383 5384 5385 if test "x$BASENAME" = x; then 5386 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5387 fi 5388 5389 5390 5391 5392 5393 # Publish this variable in the help. 5394 5395 5396 if [ -z "${BASH+x}" ]; then 5397 # The variable is not set by user, try to locate tool using the code snippet 5398 for ac_prog in bash 5399 do 5400 # Extract the first word of "$ac_prog", so it can be a program name with args. 5401 set dummy $ac_prog; ac_word=$2 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403 $as_echo_n "checking for $ac_word... " >&6; } 5404 if ${ac_cv_path_BASH+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406 else 5407 case $BASH in 5408 [\\/]* | ?:[\\/]*) 5409 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5410 ;; 5411 *) 5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413 for as_dir in $PATH 5414 do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5419 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423 done 5424 done 5425 IFS=$as_save_IFS 5426 5427 ;; 5428 esac 5429 fi 5430 BASH=$ac_cv_path_BASH 5431 if test -n "$BASH"; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5433 $as_echo "$BASH" >&6; } 5434 else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5436 $as_echo "no" >&6; } 5437 fi 5438 5439 5440 test -n "$BASH" && break 5441 done 5442 5443 else 5444 # The variable is set, but is it from the command line or the environment? 5445 5446 # Try to remove the string !BASH! from our list. 5447 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5448 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5449 # If it failed, the variable was not from the command line. Ignore it, 5450 # but warn the user (except for BASH, which is always set by the calling BASH). 5451 if test "xBASH" != xBASH; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5453 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5454 fi 5455 # Try to locate tool using the code snippet 5456 for ac_prog in bash 5457 do 5458 # Extract the first word of "$ac_prog", so it can be a program name with args. 5459 set dummy $ac_prog; ac_word=$2 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5461 $as_echo_n "checking for $ac_word... " >&6; } 5462 if ${ac_cv_path_BASH+:} false; then : 5463 $as_echo_n "(cached) " >&6 5464 else 5465 case $BASH in 5466 [\\/]* | ?:[\\/]*) 5467 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5468 ;; 5469 *) 5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471 for as_dir in $PATH 5472 do 5473 IFS=$as_save_IFS 5474 test -z "$as_dir" && as_dir=. 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5477 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5479 break 2 5480 fi 5481 done 5482 done 5483 IFS=$as_save_IFS 5484 5485 ;; 5486 esac 5487 fi 5488 BASH=$ac_cv_path_BASH 5489 if test -n "$BASH"; then 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5491 $as_echo "$BASH" >&6; } 5492 else 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5494 $as_echo "no" >&6; } 5495 fi 5496 5497 5498 test -n "$BASH" && break 5499 done 5500 5501 else 5502 # If it succeeded, then it was overridden by the user. We will use it 5503 # for the tool. 5504 5505 # First remove it from the list of overridden variables, so we can test 5506 # for unknown variables in the end. 5507 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5508 5509 # Check if we try to supply an empty value 5510 if test "x$BASH" = x; then 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5512 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5514 $as_echo_n "checking for BASH... " >&6; } 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5516 $as_echo "disabled" >&6; } 5517 else 5518 # Check if the provided tool contains a complete path. 5519 tool_specified="$BASH" 5520 tool_basename="${tool_specified##*/}" 5521 if test "x$tool_basename" = "x$tool_specified"; then 5522 # A command without a complete path is provided, search $PATH. 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5524 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5525 # Extract the first word of "$tool_basename", so it can be a program name with args. 5526 set dummy $tool_basename; ac_word=$2 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5528 $as_echo_n "checking for $ac_word... " >&6; } 5529 if ${ac_cv_path_BASH+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531 else 5532 case $BASH in 5533 [\\/]* | ?:[\\/]*) 5534 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5535 ;; 5536 *) 5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5538 for as_dir in $PATH 5539 do 5540 IFS=$as_save_IFS 5541 test -z "$as_dir" && as_dir=. 5542 for ac_exec_ext in '' $ac_executable_extensions; do 5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5544 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5546 break 2 5547 fi 5548 done 5549 done 5550 IFS=$as_save_IFS 5551 5552 ;; 5553 esac 5554 fi 5555 BASH=$ac_cv_path_BASH 5556 if test -n "$BASH"; then 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5558 $as_echo "$BASH" >&6; } 5559 else 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5561 $as_echo "no" >&6; } 5562 fi 5563 5564 5565 if test "x$BASH" = x; then 5566 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5567 fi 5568 else 5569 # Otherwise we believe it is a complete path. Use it as it is. 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5571 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5573 $as_echo_n "checking for BASH... " >&6; } 5574 if test ! -x "$tool_specified"; then 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5576 $as_echo "not found" >&6; } 5577 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5578 fi 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5580 $as_echo "$tool_specified" >&6; } 5581 fi 5582 fi 5583 fi 5584 5585 fi 5586 5587 5588 5589 if test "x$BASH" = x; then 5590 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5591 fi 5592 5593 5594 5595 5596 5597 # Publish this variable in the help. 5598 5599 5600 if [ -z "${CAT+x}" ]; then 5601 # The variable is not set by user, try to locate tool using the code snippet 5602 for ac_prog in cat 5603 do 5604 # Extract the first word of "$ac_prog", so it can be a program name with args. 5605 set dummy $ac_prog; ac_word=$2 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5607 $as_echo_n "checking for $ac_word... " >&6; } 5608 if ${ac_cv_path_CAT+:} false; then : 5609 $as_echo_n "(cached) " >&6 5610 else 5611 case $CAT in 5612 [\\/]* | ?:[\\/]*) 5613 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5614 ;; 5615 *) 5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5617 for as_dir in $PATH 5618 do 5619 IFS=$as_save_IFS 5620 test -z "$as_dir" && as_dir=. 5621 for ac_exec_ext in '' $ac_executable_extensions; do 5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5623 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5625 break 2 5626 fi 5627 done 5628 done 5629 IFS=$as_save_IFS 5630 5631 ;; 5632 esac 5633 fi 5634 CAT=$ac_cv_path_CAT 5635 if test -n "$CAT"; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5637 $as_echo "$CAT" >&6; } 5638 else 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5640 $as_echo "no" >&6; } 5641 fi 5642 5643 5644 test -n "$CAT" && break 5645 done 5646 5647 else 5648 # The variable is set, but is it from the command line or the environment? 5649 5650 # Try to remove the string !CAT! from our list. 5651 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5652 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5653 # If it failed, the variable was not from the command line. Ignore it, 5654 # but warn the user (except for BASH, which is always set by the calling BASH). 5655 if test "xCAT" != xBASH; then 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5657 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5658 fi 5659 # Try to locate tool using the code snippet 5660 for ac_prog in cat 5661 do 5662 # Extract the first word of "$ac_prog", so it can be a program name with args. 5663 set dummy $ac_prog; ac_word=$2 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665 $as_echo_n "checking for $ac_word... " >&6; } 5666 if ${ac_cv_path_CAT+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668 else 5669 case $CAT in 5670 [\\/]* | ?:[\\/]*) 5671 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5672 ;; 5673 *) 5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5675 for as_dir in $PATH 5676 do 5677 IFS=$as_save_IFS 5678 test -z "$as_dir" && as_dir=. 5679 for ac_exec_ext in '' $ac_executable_extensions; do 5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5681 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5683 break 2 5684 fi 5685 done 5686 done 5687 IFS=$as_save_IFS 5688 5689 ;; 5690 esac 5691 fi 5692 CAT=$ac_cv_path_CAT 5693 if test -n "$CAT"; then 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5695 $as_echo "$CAT" >&6; } 5696 else 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5698 $as_echo "no" >&6; } 5699 fi 5700 5701 5702 test -n "$CAT" && break 5703 done 5704 5705 else 5706 # If it succeeded, then it was overridden by the user. We will use it 5707 # for the tool. 5708 5709 # First remove it from the list of overridden variables, so we can test 5710 # for unknown variables in the end. 5711 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5712 5713 # Check if we try to supply an empty value 5714 if test "x$CAT" = x; then 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5716 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5718 $as_echo_n "checking for CAT... " >&6; } 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5720 $as_echo "disabled" >&6; } 5721 else 5722 # Check if the provided tool contains a complete path. 5723 tool_specified="$CAT" 5724 tool_basename="${tool_specified##*/}" 5725 if test "x$tool_basename" = "x$tool_specified"; then 5726 # A command without a complete path is provided, search $PATH. 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5728 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5729 # Extract the first word of "$tool_basename", so it can be a program name with args. 5730 set dummy $tool_basename; ac_word=$2 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5732 $as_echo_n "checking for $ac_word... " >&6; } 5733 if ${ac_cv_path_CAT+:} false; then : 5734 $as_echo_n "(cached) " >&6 5735 else 5736 case $CAT in 5737 [\\/]* | ?:[\\/]*) 5738 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5739 ;; 5740 *) 5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5742 for as_dir in $PATH 5743 do 5744 IFS=$as_save_IFS 5745 test -z "$as_dir" && as_dir=. 5746 for ac_exec_ext in '' $ac_executable_extensions; do 5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5748 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5750 break 2 5751 fi 5752 done 5753 done 5754 IFS=$as_save_IFS 5755 5756 ;; 5757 esac 5758 fi 5759 CAT=$ac_cv_path_CAT 5760 if test -n "$CAT"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5762 $as_echo "$CAT" >&6; } 5763 else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5765 $as_echo "no" >&6; } 5766 fi 5767 5768 5769 if test "x$CAT" = x; then 5770 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5771 fi 5772 else 5773 # Otherwise we believe it is a complete path. Use it as it is. 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5775 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5777 $as_echo_n "checking for CAT... " >&6; } 5778 if test ! -x "$tool_specified"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5780 $as_echo "not found" >&6; } 5781 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5782 fi 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5784 $as_echo "$tool_specified" >&6; } 5785 fi 5786 fi 5787 fi 5788 5789 fi 5790 5791 5792 5793 if test "x$CAT" = x; then 5794 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5795 fi 5796 5797 5798 5799 5800 5801 # Publish this variable in the help. 5802 5803 5804 if [ -z "${CHMOD+x}" ]; then 5805 # The variable is not set by user, try to locate tool using the code snippet 5806 for ac_prog in chmod 5807 do 5808 # Extract the first word of "$ac_prog", so it can be a program name with args. 5809 set dummy $ac_prog; ac_word=$2 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5811 $as_echo_n "checking for $ac_word... " >&6; } 5812 if ${ac_cv_path_CHMOD+:} false; then : 5813 $as_echo_n "(cached) " >&6 5814 else 5815 case $CHMOD in 5816 [\\/]* | ?:[\\/]*) 5817 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5818 ;; 5819 *) 5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821 for as_dir in $PATH 5822 do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5827 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831 done 5832 done 5833 IFS=$as_save_IFS 5834 5835 ;; 5836 esac 5837 fi 5838 CHMOD=$ac_cv_path_CHMOD 5839 if test -n "$CHMOD"; then 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5841 $as_echo "$CHMOD" >&6; } 5842 else 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5844 $as_echo "no" >&6; } 5845 fi 5846 5847 5848 test -n "$CHMOD" && break 5849 done 5850 5851 else 5852 # The variable is set, but is it from the command line or the environment? 5853 5854 # Try to remove the string !CHMOD! from our list. 5855 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5856 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5857 # If it failed, the variable was not from the command line. Ignore it, 5858 # but warn the user (except for BASH, which is always set by the calling BASH). 5859 if test "xCHMOD" != xBASH; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5861 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5862 fi 5863 # Try to locate tool using the code snippet 5864 for ac_prog in chmod 5865 do 5866 # Extract the first word of "$ac_prog", so it can be a program name with args. 5867 set dummy $ac_prog; ac_word=$2 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5869 $as_echo_n "checking for $ac_word... " >&6; } 5870 if ${ac_cv_path_CHMOD+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872 else 5873 case $CHMOD in 5874 [\\/]* | ?:[\\/]*) 5875 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5876 ;; 5877 *) 5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5879 for as_dir in $PATH 5880 do 5881 IFS=$as_save_IFS 5882 test -z "$as_dir" && as_dir=. 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5885 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889 done 5890 done 5891 IFS=$as_save_IFS 5892 5893 ;; 5894 esac 5895 fi 5896 CHMOD=$ac_cv_path_CHMOD 5897 if test -n "$CHMOD"; then 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5899 $as_echo "$CHMOD" >&6; } 5900 else 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902 $as_echo "no" >&6; } 5903 fi 5904 5905 5906 test -n "$CHMOD" && break 5907 done 5908 5909 else 5910 # If it succeeded, then it was overridden by the user. We will use it 5911 # for the tool. 5912 5913 # First remove it from the list of overridden variables, so we can test 5914 # for unknown variables in the end. 5915 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5916 5917 # Check if we try to supply an empty value 5918 if test "x$CHMOD" = x; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5920 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5922 $as_echo_n "checking for CHMOD... " >&6; } 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5924 $as_echo "disabled" >&6; } 5925 else 5926 # Check if the provided tool contains a complete path. 5927 tool_specified="$CHMOD" 5928 tool_basename="${tool_specified##*/}" 5929 if test "x$tool_basename" = "x$tool_specified"; then 5930 # A command without a complete path is provided, search $PATH. 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5932 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5933 # Extract the first word of "$tool_basename", so it can be a program name with args. 5934 set dummy $tool_basename; ac_word=$2 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5936 $as_echo_n "checking for $ac_word... " >&6; } 5937 if ${ac_cv_path_CHMOD+:} false; then : 5938 $as_echo_n "(cached) " >&6 5939 else 5940 case $CHMOD in 5941 [\\/]* | ?:[\\/]*) 5942 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5943 ;; 5944 *) 5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946 for as_dir in $PATH 5947 do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5952 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956 done 5957 done 5958 IFS=$as_save_IFS 5959 5960 ;; 5961 esac 5962 fi 5963 CHMOD=$ac_cv_path_CHMOD 5964 if test -n "$CHMOD"; then 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5966 $as_echo "$CHMOD" >&6; } 5967 else 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5969 $as_echo "no" >&6; } 5970 fi 5971 5972 5973 if test "x$CHMOD" = x; then 5974 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5975 fi 5976 else 5977 # Otherwise we believe it is a complete path. Use it as it is. 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5979 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5981 $as_echo_n "checking for CHMOD... " >&6; } 5982 if test ! -x "$tool_specified"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5984 $as_echo "not found" >&6; } 5985 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5986 fi 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5988 $as_echo "$tool_specified" >&6; } 5989 fi 5990 fi 5991 fi 5992 5993 fi 5994 5995 5996 5997 if test "x$CHMOD" = x; then 5998 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5999 fi 6000 6001 6002 6003 6004 6005 # Publish this variable in the help. 6006 6007 6008 if [ -z "${CMP+x}" ]; then 6009 # The variable is not set by user, try to locate tool using the code snippet 6010 for ac_prog in cmp 6011 do 6012 # Extract the first word of "$ac_prog", so it can be a program name with args. 6013 set dummy $ac_prog; ac_word=$2 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6015 $as_echo_n "checking for $ac_word... " >&6; } 6016 if ${ac_cv_path_CMP+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018 else 6019 case $CMP in 6020 [\\/]* | ?:[\\/]*) 6021 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6022 ;; 6023 *) 6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6025 for as_dir in $PATH 6026 do 6027 IFS=$as_save_IFS 6028 test -z "$as_dir" && as_dir=. 6029 for ac_exec_ext in '' $ac_executable_extensions; do 6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6031 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6033 break 2 6034 fi 6035 done 6036 done 6037 IFS=$as_save_IFS 6038 6039 ;; 6040 esac 6041 fi 6042 CMP=$ac_cv_path_CMP 6043 if test -n "$CMP"; then 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6045 $as_echo "$CMP" >&6; } 6046 else 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6048 $as_echo "no" >&6; } 6049 fi 6050 6051 6052 test -n "$CMP" && break 6053 done 6054 6055 else 6056 # The variable is set, but is it from the command line or the environment? 6057 6058 # Try to remove the string !CMP! from our list. 6059 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6060 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6061 # If it failed, the variable was not from the command line. Ignore it, 6062 # but warn the user (except for BASH, which is always set by the calling BASH). 6063 if test "xCMP" != xBASH; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6065 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6066 fi 6067 # Try to locate tool using the code snippet 6068 for ac_prog in cmp 6069 do 6070 # Extract the first word of "$ac_prog", so it can be a program name with args. 6071 set dummy $ac_prog; ac_word=$2 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6073 $as_echo_n "checking for $ac_word... " >&6; } 6074 if ${ac_cv_path_CMP+:} false; then : 6075 $as_echo_n "(cached) " >&6 6076 else 6077 case $CMP in 6078 [\\/]* | ?:[\\/]*) 6079 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6080 ;; 6081 *) 6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6083 for as_dir in $PATH 6084 do 6085 IFS=$as_save_IFS 6086 test -z "$as_dir" && as_dir=. 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6089 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093 done 6094 done 6095 IFS=$as_save_IFS 6096 6097 ;; 6098 esac 6099 fi 6100 CMP=$ac_cv_path_CMP 6101 if test -n "$CMP"; then 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6103 $as_echo "$CMP" >&6; } 6104 else 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6106 $as_echo "no" >&6; } 6107 fi 6108 6109 6110 test -n "$CMP" && break 6111 done 6112 6113 else 6114 # If it succeeded, then it was overridden by the user. We will use it 6115 # for the tool. 6116 6117 # First remove it from the list of overridden variables, so we can test 6118 # for unknown variables in the end. 6119 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6120 6121 # Check if we try to supply an empty value 6122 if test "x$CMP" = x; then 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6124 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6126 $as_echo_n "checking for CMP... " >&6; } 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6128 $as_echo "disabled" >&6; } 6129 else 6130 # Check if the provided tool contains a complete path. 6131 tool_specified="$CMP" 6132 tool_basename="${tool_specified##*/}" 6133 if test "x$tool_basename" = "x$tool_specified"; then 6134 # A command without a complete path is provided, search $PATH. 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6136 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6137 # Extract the first word of "$tool_basename", so it can be a program name with args. 6138 set dummy $tool_basename; ac_word=$2 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6140 $as_echo_n "checking for $ac_word... " >&6; } 6141 if ${ac_cv_path_CMP+:} false; then : 6142 $as_echo_n "(cached) " >&6 6143 else 6144 case $CMP in 6145 [\\/]* | ?:[\\/]*) 6146 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6147 ;; 6148 *) 6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150 for as_dir in $PATH 6151 do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6156 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160 done 6161 done 6162 IFS=$as_save_IFS 6163 6164 ;; 6165 esac 6166 fi 6167 CMP=$ac_cv_path_CMP 6168 if test -n "$CMP"; then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6170 $as_echo "$CMP" >&6; } 6171 else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173 $as_echo "no" >&6; } 6174 fi 6175 6176 6177 if test "x$CMP" = x; then 6178 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6179 fi 6180 else 6181 # Otherwise we believe it is a complete path. Use it as it is. 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6183 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6185 $as_echo_n "checking for CMP... " >&6; } 6186 if test ! -x "$tool_specified"; then 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6188 $as_echo "not found" >&6; } 6189 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6190 fi 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6192 $as_echo "$tool_specified" >&6; } 6193 fi 6194 fi 6195 fi 6196 6197 fi 6198 6199 6200 6201 if test "x$CMP" = x; then 6202 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6203 fi 6204 6205 6206 6207 6208 6209 # Publish this variable in the help. 6210 6211 6212 if [ -z "${COMM+x}" ]; then 6213 # The variable is not set by user, try to locate tool using the code snippet 6214 for ac_prog in comm 6215 do 6216 # Extract the first word of "$ac_prog", so it can be a program name with args. 6217 set dummy $ac_prog; ac_word=$2 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6219 $as_echo_n "checking for $ac_word... " >&6; } 6220 if ${ac_cv_path_COMM+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222 else 6223 case $COMM in 6224 [\\/]* | ?:[\\/]*) 6225 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6226 ;; 6227 *) 6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6229 for as_dir in $PATH 6230 do 6231 IFS=$as_save_IFS 6232 test -z "$as_dir" && as_dir=. 6233 for ac_exec_ext in '' $ac_executable_extensions; do 6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6235 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6237 break 2 6238 fi 6239 done 6240 done 6241 IFS=$as_save_IFS 6242 6243 ;; 6244 esac 6245 fi 6246 COMM=$ac_cv_path_COMM 6247 if test -n "$COMM"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6249 $as_echo "$COMM" >&6; } 6250 else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252 $as_echo "no" >&6; } 6253 fi 6254 6255 6256 test -n "$COMM" && break 6257 done 6258 6259 else 6260 # The variable is set, but is it from the command line or the environment? 6261 6262 # Try to remove the string !COMM! from our list. 6263 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6264 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6265 # If it failed, the variable was not from the command line. Ignore it, 6266 # but warn the user (except for BASH, which is always set by the calling BASH). 6267 if test "xCOMM" != xBASH; then 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6269 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6270 fi 6271 # Try to locate tool using the code snippet 6272 for ac_prog in comm 6273 do 6274 # Extract the first word of "$ac_prog", so it can be a program name with args. 6275 set dummy $ac_prog; ac_word=$2 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277 $as_echo_n "checking for $ac_word... " >&6; } 6278 if ${ac_cv_path_COMM+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280 else 6281 case $COMM in 6282 [\\/]* | ?:[\\/]*) 6283 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6284 ;; 6285 *) 6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287 for as_dir in $PATH 6288 do 6289 IFS=$as_save_IFS 6290 test -z "$as_dir" && as_dir=. 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6293 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297 done 6298 done 6299 IFS=$as_save_IFS 6300 6301 ;; 6302 esac 6303 fi 6304 COMM=$ac_cv_path_COMM 6305 if test -n "$COMM"; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6307 $as_echo "$COMM" >&6; } 6308 else 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310 $as_echo "no" >&6; } 6311 fi 6312 6313 6314 test -n "$COMM" && break 6315 done 6316 6317 else 6318 # If it succeeded, then it was overridden by the user. We will use it 6319 # for the tool. 6320 6321 # First remove it from the list of overridden variables, so we can test 6322 # for unknown variables in the end. 6323 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6324 6325 # Check if we try to supply an empty value 6326 if test "x$COMM" = x; then 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6328 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6330 $as_echo_n "checking for COMM... " >&6; } 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6332 $as_echo "disabled" >&6; } 6333 else 6334 # Check if the provided tool contains a complete path. 6335 tool_specified="$COMM" 6336 tool_basename="${tool_specified##*/}" 6337 if test "x$tool_basename" = "x$tool_specified"; then 6338 # A command without a complete path is provided, search $PATH. 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6340 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6341 # Extract the first word of "$tool_basename", so it can be a program name with args. 6342 set dummy $tool_basename; ac_word=$2 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6344 $as_echo_n "checking for $ac_word... " >&6; } 6345 if ${ac_cv_path_COMM+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347 else 6348 case $COMM in 6349 [\\/]* | ?:[\\/]*) 6350 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6351 ;; 6352 *) 6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6354 for as_dir in $PATH 6355 do 6356 IFS=$as_save_IFS 6357 test -z "$as_dir" && as_dir=. 6358 for ac_exec_ext in '' $ac_executable_extensions; do 6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6360 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6362 break 2 6363 fi 6364 done 6365 done 6366 IFS=$as_save_IFS 6367 6368 ;; 6369 esac 6370 fi 6371 COMM=$ac_cv_path_COMM 6372 if test -n "$COMM"; then 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6374 $as_echo "$COMM" >&6; } 6375 else 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6377 $as_echo "no" >&6; } 6378 fi 6379 6380 6381 if test "x$COMM" = x; then 6382 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6383 fi 6384 else 6385 # Otherwise we believe it is a complete path. Use it as it is. 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6387 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6389 $as_echo_n "checking for COMM... " >&6; } 6390 if test ! -x "$tool_specified"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6392 $as_echo "not found" >&6; } 6393 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6394 fi 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6396 $as_echo "$tool_specified" >&6; } 6397 fi 6398 fi 6399 fi 6400 6401 fi 6402 6403 6404 6405 if test "x$COMM" = x; then 6406 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6407 fi 6408 6409 6410 6411 6412 6413 # Publish this variable in the help. 6414 6415 6416 if [ -z "${CP+x}" ]; then 6417 # The variable is not set by user, try to locate tool using the code snippet 6418 for ac_prog in cp 6419 do 6420 # Extract the first word of "$ac_prog", so it can be a program name with args. 6421 set dummy $ac_prog; ac_word=$2 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6423 $as_echo_n "checking for $ac_word... " >&6; } 6424 if ${ac_cv_path_CP+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426 else 6427 case $CP in 6428 [\\/]* | ?:[\\/]*) 6429 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6430 ;; 6431 *) 6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433 for as_dir in $PATH 6434 do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6439 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443 done 6444 done 6445 IFS=$as_save_IFS 6446 6447 ;; 6448 esac 6449 fi 6450 CP=$ac_cv_path_CP 6451 if test -n "$CP"; then 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6453 $as_echo "$CP" >&6; } 6454 else 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6456 $as_echo "no" >&6; } 6457 fi 6458 6459 6460 test -n "$CP" && break 6461 done 6462 6463 else 6464 # The variable is set, but is it from the command line or the environment? 6465 6466 # Try to remove the string !CP! from our list. 6467 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6468 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6469 # If it failed, the variable was not from the command line. Ignore it, 6470 # but warn the user (except for BASH, which is always set by the calling BASH). 6471 if test "xCP" != xBASH; then 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6473 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6474 fi 6475 # Try to locate tool using the code snippet 6476 for ac_prog in cp 6477 do 6478 # Extract the first word of "$ac_prog", so it can be a program name with args. 6479 set dummy $ac_prog; ac_word=$2 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481 $as_echo_n "checking for $ac_word... " >&6; } 6482 if ${ac_cv_path_CP+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484 else 6485 case $CP in 6486 [\\/]* | ?:[\\/]*) 6487 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6488 ;; 6489 *) 6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491 for as_dir in $PATH 6492 do 6493 IFS=$as_save_IFS 6494 test -z "$as_dir" && as_dir=. 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6497 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6499 break 2 6500 fi 6501 done 6502 done 6503 IFS=$as_save_IFS 6504 6505 ;; 6506 esac 6507 fi 6508 CP=$ac_cv_path_CP 6509 if test -n "$CP"; then 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6511 $as_echo "$CP" >&6; } 6512 else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514 $as_echo "no" >&6; } 6515 fi 6516 6517 6518 test -n "$CP" && break 6519 done 6520 6521 else 6522 # If it succeeded, then it was overridden by the user. We will use it 6523 # for the tool. 6524 6525 # First remove it from the list of overridden variables, so we can test 6526 # for unknown variables in the end. 6527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6528 6529 # Check if we try to supply an empty value 6530 if test "x$CP" = x; then 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6532 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6534 $as_echo_n "checking for CP... " >&6; } 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6536 $as_echo "disabled" >&6; } 6537 else 6538 # Check if the provided tool contains a complete path. 6539 tool_specified="$CP" 6540 tool_basename="${tool_specified##*/}" 6541 if test "x$tool_basename" = "x$tool_specified"; then 6542 # A command without a complete path is provided, search $PATH. 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6544 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6545 # Extract the first word of "$tool_basename", so it can be a program name with args. 6546 set dummy $tool_basename; ac_word=$2 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6548 $as_echo_n "checking for $ac_word... " >&6; } 6549 if ${ac_cv_path_CP+:} false; then : 6550 $as_echo_n "(cached) " >&6 6551 else 6552 case $CP in 6553 [\\/]* | ?:[\\/]*) 6554 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6555 ;; 6556 *) 6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6558 for as_dir in $PATH 6559 do 6560 IFS=$as_save_IFS 6561 test -z "$as_dir" && as_dir=. 6562 for ac_exec_ext in '' $ac_executable_extensions; do 6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6564 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6566 break 2 6567 fi 6568 done 6569 done 6570 IFS=$as_save_IFS 6571 6572 ;; 6573 esac 6574 fi 6575 CP=$ac_cv_path_CP 6576 if test -n "$CP"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6578 $as_echo "$CP" >&6; } 6579 else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581 $as_echo "no" >&6; } 6582 fi 6583 6584 6585 if test "x$CP" = x; then 6586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6587 fi 6588 else 6589 # Otherwise we believe it is a complete path. Use it as it is. 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6591 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6593 $as_echo_n "checking for CP... " >&6; } 6594 if test ! -x "$tool_specified"; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6596 $as_echo "not found" >&6; } 6597 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6598 fi 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6600 $as_echo "$tool_specified" >&6; } 6601 fi 6602 fi 6603 fi 6604 6605 fi 6606 6607 6608 6609 if test "x$CP" = x; then 6610 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6611 fi 6612 6613 6614 6615 6616 6617 # Publish this variable in the help. 6618 6619 6620 if [ -z "${CUT+x}" ]; then 6621 # The variable is not set by user, try to locate tool using the code snippet 6622 for ac_prog in cut 6623 do 6624 # Extract the first word of "$ac_prog", so it can be a program name with args. 6625 set dummy $ac_prog; ac_word=$2 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627 $as_echo_n "checking for $ac_word... " >&6; } 6628 if ${ac_cv_path_CUT+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630 else 6631 case $CUT in 6632 [\\/]* | ?:[\\/]*) 6633 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6634 ;; 6635 *) 6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637 for as_dir in $PATH 6638 do 6639 IFS=$as_save_IFS 6640 test -z "$as_dir" && as_dir=. 6641 for ac_exec_ext in '' $ac_executable_extensions; do 6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6643 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6645 break 2 6646 fi 6647 done 6648 done 6649 IFS=$as_save_IFS 6650 6651 ;; 6652 esac 6653 fi 6654 CUT=$ac_cv_path_CUT 6655 if test -n "$CUT"; then 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6657 $as_echo "$CUT" >&6; } 6658 else 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6660 $as_echo "no" >&6; } 6661 fi 6662 6663 6664 test -n "$CUT" && break 6665 done 6666 6667 else 6668 # The variable is set, but is it from the command line or the environment? 6669 6670 # Try to remove the string !CUT! from our list. 6671 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6672 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6673 # If it failed, the variable was not from the command line. Ignore it, 6674 # but warn the user (except for BASH, which is always set by the calling BASH). 6675 if test "xCUT" != xBASH; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6677 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6678 fi 6679 # Try to locate tool using the code snippet 6680 for ac_prog in cut 6681 do 6682 # Extract the first word of "$ac_prog", so it can be a program name with args. 6683 set dummy $ac_prog; ac_word=$2 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6685 $as_echo_n "checking for $ac_word... " >&6; } 6686 if ${ac_cv_path_CUT+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688 else 6689 case $CUT in 6690 [\\/]* | ?:[\\/]*) 6691 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6692 ;; 6693 *) 6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695 for as_dir in $PATH 6696 do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705 done 6706 done 6707 IFS=$as_save_IFS 6708 6709 ;; 6710 esac 6711 fi 6712 CUT=$ac_cv_path_CUT 6713 if test -n "$CUT"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6715 $as_echo "$CUT" >&6; } 6716 else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718 $as_echo "no" >&6; } 6719 fi 6720 6721 6722 test -n "$CUT" && break 6723 done 6724 6725 else 6726 # If it succeeded, then it was overridden by the user. We will use it 6727 # for the tool. 6728 6729 # First remove it from the list of overridden variables, so we can test 6730 # for unknown variables in the end. 6731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6732 6733 # Check if we try to supply an empty value 6734 if test "x$CUT" = x; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6736 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6738 $as_echo_n "checking for CUT... " >&6; } 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6740 $as_echo "disabled" >&6; } 6741 else 6742 # Check if the provided tool contains a complete path. 6743 tool_specified="$CUT" 6744 tool_basename="${tool_specified##*/}" 6745 if test "x$tool_basename" = "x$tool_specified"; then 6746 # A command without a complete path is provided, search $PATH. 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6748 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6749 # Extract the first word of "$tool_basename", so it can be a program name with args. 6750 set dummy $tool_basename; ac_word=$2 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6752 $as_echo_n "checking for $ac_word... " >&6; } 6753 if ${ac_cv_path_CUT+:} false; then : 6754 $as_echo_n "(cached) " >&6 6755 else 6756 case $CUT in 6757 [\\/]* | ?:[\\/]*) 6758 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6759 ;; 6760 *) 6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762 for as_dir in $PATH 6763 do 6764 IFS=$as_save_IFS 6765 test -z "$as_dir" && as_dir=. 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6768 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772 done 6773 done 6774 IFS=$as_save_IFS 6775 6776 ;; 6777 esac 6778 fi 6779 CUT=$ac_cv_path_CUT 6780 if test -n "$CUT"; then 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6782 $as_echo "$CUT" >&6; } 6783 else 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6785 $as_echo "no" >&6; } 6786 fi 6787 6788 6789 if test "x$CUT" = x; then 6790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6791 fi 6792 else 6793 # Otherwise we believe it is a complete path. Use it as it is. 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6795 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6797 $as_echo_n "checking for CUT... " >&6; } 6798 if test ! -x "$tool_specified"; then 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6800 $as_echo "not found" >&6; } 6801 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6802 fi 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6804 $as_echo "$tool_specified" >&6; } 6805 fi 6806 fi 6807 fi 6808 6809 fi 6810 6811 6812 6813 if test "x$CUT" = x; then 6814 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6815 fi 6816 6817 6818 6819 6820 6821 # Publish this variable in the help. 6822 6823 6824 if [ -z "${DATE+x}" ]; then 6825 # The variable is not set by user, try to locate tool using the code snippet 6826 for ac_prog in date 6827 do 6828 # Extract the first word of "$ac_prog", so it can be a program name with args. 6829 set dummy $ac_prog; ac_word=$2 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6831 $as_echo_n "checking for $ac_word... " >&6; } 6832 if ${ac_cv_path_DATE+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834 else 6835 case $DATE in 6836 [\\/]* | ?:[\\/]*) 6837 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6838 ;; 6839 *) 6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6841 for as_dir in $PATH 6842 do 6843 IFS=$as_save_IFS 6844 test -z "$as_dir" && as_dir=. 6845 for ac_exec_ext in '' $ac_executable_extensions; do 6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6847 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6849 break 2 6850 fi 6851 done 6852 done 6853 IFS=$as_save_IFS 6854 6855 ;; 6856 esac 6857 fi 6858 DATE=$ac_cv_path_DATE 6859 if test -n "$DATE"; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6861 $as_echo "$DATE" >&6; } 6862 else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864 $as_echo "no" >&6; } 6865 fi 6866 6867 6868 test -n "$DATE" && break 6869 done 6870 6871 else 6872 # The variable is set, but is it from the command line or the environment? 6873 6874 # Try to remove the string !DATE! from our list. 6875 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6876 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6877 # If it failed, the variable was not from the command line. Ignore it, 6878 # but warn the user (except for BASH, which is always set by the calling BASH). 6879 if test "xDATE" != xBASH; then 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6881 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6882 fi 6883 # Try to locate tool using the code snippet 6884 for ac_prog in date 6885 do 6886 # Extract the first word of "$ac_prog", so it can be a program name with args. 6887 set dummy $ac_prog; ac_word=$2 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6889 $as_echo_n "checking for $ac_word... " >&6; } 6890 if ${ac_cv_path_DATE+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892 else 6893 case $DATE in 6894 [\\/]* | ?:[\\/]*) 6895 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6896 ;; 6897 *) 6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899 for as_dir in $PATH 6900 do 6901 IFS=$as_save_IFS 6902 test -z "$as_dir" && as_dir=. 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6905 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6907 break 2 6908 fi 6909 done 6910 done 6911 IFS=$as_save_IFS 6912 6913 ;; 6914 esac 6915 fi 6916 DATE=$ac_cv_path_DATE 6917 if test -n "$DATE"; then 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6919 $as_echo "$DATE" >&6; } 6920 else 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6922 $as_echo "no" >&6; } 6923 fi 6924 6925 6926 test -n "$DATE" && break 6927 done 6928 6929 else 6930 # If it succeeded, then it was overridden by the user. We will use it 6931 # for the tool. 6932 6933 # First remove it from the list of overridden variables, so we can test 6934 # for unknown variables in the end. 6935 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6936 6937 # Check if we try to supply an empty value 6938 if test "x$DATE" = x; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6940 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6942 $as_echo_n "checking for DATE... " >&6; } 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6944 $as_echo "disabled" >&6; } 6945 else 6946 # Check if the provided tool contains a complete path. 6947 tool_specified="$DATE" 6948 tool_basename="${tool_specified##*/}" 6949 if test "x$tool_basename" = "x$tool_specified"; then 6950 # A command without a complete path is provided, search $PATH. 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6952 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6953 # Extract the first word of "$tool_basename", so it can be a program name with args. 6954 set dummy $tool_basename; ac_word=$2 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6956 $as_echo_n "checking for $ac_word... " >&6; } 6957 if ${ac_cv_path_DATE+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959 else 6960 case $DATE in 6961 [\\/]* | ?:[\\/]*) 6962 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6963 ;; 6964 *) 6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6966 for as_dir in $PATH 6967 do 6968 IFS=$as_save_IFS 6969 test -z "$as_dir" && as_dir=. 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6972 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6974 break 2 6975 fi 6976 done 6977 done 6978 IFS=$as_save_IFS 6979 6980 ;; 6981 esac 6982 fi 6983 DATE=$ac_cv_path_DATE 6984 if test -n "$DATE"; then 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6986 $as_echo "$DATE" >&6; } 6987 else 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6989 $as_echo "no" >&6; } 6990 fi 6991 6992 6993 if test "x$DATE" = x; then 6994 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6995 fi 6996 else 6997 # Otherwise we believe it is a complete path. Use it as it is. 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6999 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7001 $as_echo_n "checking for DATE... " >&6; } 7002 if test ! -x "$tool_specified"; then 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7004 $as_echo "not found" >&6; } 7005 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7006 fi 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7008 $as_echo "$tool_specified" >&6; } 7009 fi 7010 fi 7011 fi 7012 7013 fi 7014 7015 7016 7017 if test "x$DATE" = x; then 7018 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7019 fi 7020 7021 7022 7023 7024 7025 # Publish this variable in the help. 7026 7027 7028 if [ -z "${DIFF+x}" ]; then 7029 # The variable is not set by user, try to locate tool using the code snippet 7030 for ac_prog in gdiff diff 7031 do 7032 # Extract the first word of "$ac_prog", so it can be a program name with args. 7033 set dummy $ac_prog; ac_word=$2 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035 $as_echo_n "checking for $ac_word... " >&6; } 7036 if ${ac_cv_path_DIFF+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038 else 7039 case $DIFF in 7040 [\\/]* | ?:[\\/]*) 7041 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7042 ;; 7043 *) 7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7045 for as_dir in $PATH 7046 do 7047 IFS=$as_save_IFS 7048 test -z "$as_dir" && as_dir=. 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7051 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7053 break 2 7054 fi 7055 done 7056 done 7057 IFS=$as_save_IFS 7058 7059 ;; 7060 esac 7061 fi 7062 DIFF=$ac_cv_path_DIFF 7063 if test -n "$DIFF"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7065 $as_echo "$DIFF" >&6; } 7066 else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068 $as_echo "no" >&6; } 7069 fi 7070 7071 7072 test -n "$DIFF" && break 7073 done 7074 7075 else 7076 # The variable is set, but is it from the command line or the environment? 7077 7078 # Try to remove the string !DIFF! from our list. 7079 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7080 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7081 # If it failed, the variable was not from the command line. Ignore it, 7082 # but warn the user (except for BASH, which is always set by the calling BASH). 7083 if test "xDIFF" != xBASH; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7085 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7086 fi 7087 # Try to locate tool using the code snippet 7088 for ac_prog in gdiff diff 7089 do 7090 # Extract the first word of "$ac_prog", so it can be a program name with args. 7091 set dummy $ac_prog; ac_word=$2 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093 $as_echo_n "checking for $ac_word... " >&6; } 7094 if ${ac_cv_path_DIFF+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096 else 7097 case $DIFF in 7098 [\\/]* | ?:[\\/]*) 7099 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7100 ;; 7101 *) 7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103 for as_dir in $PATH 7104 do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7109 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113 done 7114 done 7115 IFS=$as_save_IFS 7116 7117 ;; 7118 esac 7119 fi 7120 DIFF=$ac_cv_path_DIFF 7121 if test -n "$DIFF"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7123 $as_echo "$DIFF" >&6; } 7124 else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126 $as_echo "no" >&6; } 7127 fi 7128 7129 7130 test -n "$DIFF" && break 7131 done 7132 7133 else 7134 # If it succeeded, then it was overridden by the user. We will use it 7135 # for the tool. 7136 7137 # First remove it from the list of overridden variables, so we can test 7138 # for unknown variables in the end. 7139 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7140 7141 # Check if we try to supply an empty value 7142 if test "x$DIFF" = x; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7144 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7146 $as_echo_n "checking for DIFF... " >&6; } 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7148 $as_echo "disabled" >&6; } 7149 else 7150 # Check if the provided tool contains a complete path. 7151 tool_specified="$DIFF" 7152 tool_basename="${tool_specified##*/}" 7153 if test "x$tool_basename" = "x$tool_specified"; then 7154 # A command without a complete path is provided, search $PATH. 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7156 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7157 # Extract the first word of "$tool_basename", so it can be a program name with args. 7158 set dummy $tool_basename; ac_word=$2 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7160 $as_echo_n "checking for $ac_word... " >&6; } 7161 if ${ac_cv_path_DIFF+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163 else 7164 case $DIFF in 7165 [\\/]* | ?:[\\/]*) 7166 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7167 ;; 7168 *) 7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7170 for as_dir in $PATH 7171 do 7172 IFS=$as_save_IFS 7173 test -z "$as_dir" && as_dir=. 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7176 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180 done 7181 done 7182 IFS=$as_save_IFS 7183 7184 ;; 7185 esac 7186 fi 7187 DIFF=$ac_cv_path_DIFF 7188 if test -n "$DIFF"; then 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7190 $as_echo "$DIFF" >&6; } 7191 else 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7193 $as_echo "no" >&6; } 7194 fi 7195 7196 7197 if test "x$DIFF" = x; then 7198 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7199 fi 7200 else 7201 # Otherwise we believe it is a complete path. Use it as it is. 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7203 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7205 $as_echo_n "checking for DIFF... " >&6; } 7206 if test ! -x "$tool_specified"; then 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7208 $as_echo "not found" >&6; } 7209 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7210 fi 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7212 $as_echo "$tool_specified" >&6; } 7213 fi 7214 fi 7215 fi 7216 7217 fi 7218 7219 7220 7221 if test "x$DIFF" = x; then 7222 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7223 fi 7224 7225 7226 7227 7228 7229 # Publish this variable in the help. 7230 7231 7232 if [ -z "${DIRNAME+x}" ]; then 7233 # The variable is not set by user, try to locate tool using the code snippet 7234 for ac_prog in dirname 7235 do 7236 # Extract the first word of "$ac_prog", so it can be a program name with args. 7237 set dummy $ac_prog; ac_word=$2 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7239 $as_echo_n "checking for $ac_word... " >&6; } 7240 if ${ac_cv_path_DIRNAME+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242 else 7243 case $DIRNAME in 7244 [\\/]* | ?:[\\/]*) 7245 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7246 ;; 7247 *) 7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249 for as_dir in $PATH 7250 do 7251 IFS=$as_save_IFS 7252 test -z "$as_dir" && as_dir=. 7253 for ac_exec_ext in '' $ac_executable_extensions; do 7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7255 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7257 break 2 7258 fi 7259 done 7260 done 7261 IFS=$as_save_IFS 7262 7263 ;; 7264 esac 7265 fi 7266 DIRNAME=$ac_cv_path_DIRNAME 7267 if test -n "$DIRNAME"; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7269 $as_echo "$DIRNAME" >&6; } 7270 else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7272 $as_echo "no" >&6; } 7273 fi 7274 7275 7276 test -n "$DIRNAME" && break 7277 done 7278 7279 else 7280 # The variable is set, but is it from the command line or the environment? 7281 7282 # Try to remove the string !DIRNAME! from our list. 7283 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7284 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7285 # If it failed, the variable was not from the command line. Ignore it, 7286 # but warn the user (except for BASH, which is always set by the calling BASH). 7287 if test "xDIRNAME" != xBASH; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7289 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7290 fi 7291 # Try to locate tool using the code snippet 7292 for ac_prog in dirname 7293 do 7294 # Extract the first word of "$ac_prog", so it can be a program name with args. 7295 set dummy $ac_prog; ac_word=$2 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7297 $as_echo_n "checking for $ac_word... " >&6; } 7298 if ${ac_cv_path_DIRNAME+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300 else 7301 case $DIRNAME in 7302 [\\/]* | ?:[\\/]*) 7303 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7304 ;; 7305 *) 7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307 for as_dir in $PATH 7308 do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317 done 7318 done 7319 IFS=$as_save_IFS 7320 7321 ;; 7322 esac 7323 fi 7324 DIRNAME=$ac_cv_path_DIRNAME 7325 if test -n "$DIRNAME"; then 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7327 $as_echo "$DIRNAME" >&6; } 7328 else 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7330 $as_echo "no" >&6; } 7331 fi 7332 7333 7334 test -n "$DIRNAME" && break 7335 done 7336 7337 else 7338 # If it succeeded, then it was overridden by the user. We will use it 7339 # for the tool. 7340 7341 # First remove it from the list of overridden variables, so we can test 7342 # for unknown variables in the end. 7343 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7344 7345 # Check if we try to supply an empty value 7346 if test "x$DIRNAME" = x; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7348 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7350 $as_echo_n "checking for DIRNAME... " >&6; } 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7352 $as_echo "disabled" >&6; } 7353 else 7354 # Check if the provided tool contains a complete path. 7355 tool_specified="$DIRNAME" 7356 tool_basename="${tool_specified##*/}" 7357 if test "x$tool_basename" = "x$tool_specified"; then 7358 # A command without a complete path is provided, search $PATH. 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7360 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7361 # Extract the first word of "$tool_basename", so it can be a program name with args. 7362 set dummy $tool_basename; ac_word=$2 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7364 $as_echo_n "checking for $ac_word... " >&6; } 7365 if ${ac_cv_path_DIRNAME+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367 else 7368 case $DIRNAME in 7369 [\\/]* | ?:[\\/]*) 7370 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7371 ;; 7372 *) 7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374 for as_dir in $PATH 7375 do 7376 IFS=$as_save_IFS 7377 test -z "$as_dir" && as_dir=. 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7380 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384 done 7385 done 7386 IFS=$as_save_IFS 7387 7388 ;; 7389 esac 7390 fi 7391 DIRNAME=$ac_cv_path_DIRNAME 7392 if test -n "$DIRNAME"; then 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7394 $as_echo "$DIRNAME" >&6; } 7395 else 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7397 $as_echo "no" >&6; } 7398 fi 7399 7400 7401 if test "x$DIRNAME" = x; then 7402 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7403 fi 7404 else 7405 # Otherwise we believe it is a complete path. Use it as it is. 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7407 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7409 $as_echo_n "checking for DIRNAME... " >&6; } 7410 if test ! -x "$tool_specified"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7412 $as_echo "not found" >&6; } 7413 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7414 fi 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7416 $as_echo "$tool_specified" >&6; } 7417 fi 7418 fi 7419 fi 7420 7421 fi 7422 7423 7424 7425 if test "x$DIRNAME" = x; then 7426 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7427 fi 7428 7429 7430 7431 7432 7433 # Publish this variable in the help. 7434 7435 7436 if [ -z "${ECHO+x}" ]; then 7437 # The variable is not set by user, try to locate tool using the code snippet 7438 for ac_prog in echo 7439 do 7440 # Extract the first word of "$ac_prog", so it can be a program name with args. 7441 set dummy $ac_prog; ac_word=$2 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7443 $as_echo_n "checking for $ac_word... " >&6; } 7444 if ${ac_cv_path_ECHO+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446 else 7447 case $ECHO in 7448 [\\/]* | ?:[\\/]*) 7449 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7450 ;; 7451 *) 7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453 for as_dir in $PATH 7454 do 7455 IFS=$as_save_IFS 7456 test -z "$as_dir" && as_dir=. 7457 for ac_exec_ext in '' $ac_executable_extensions; do 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 break 2 7462 fi 7463 done 7464 done 7465 IFS=$as_save_IFS 7466 7467 ;; 7468 esac 7469 fi 7470 ECHO=$ac_cv_path_ECHO 7471 if test -n "$ECHO"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7473 $as_echo "$ECHO" >&6; } 7474 else 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7476 $as_echo "no" >&6; } 7477 fi 7478 7479 7480 test -n "$ECHO" && break 7481 done 7482 7483 else 7484 # The variable is set, but is it from the command line or the environment? 7485 7486 # Try to remove the string !ECHO! from our list. 7487 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7488 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7489 # If it failed, the variable was not from the command line. Ignore it, 7490 # but warn the user (except for BASH, which is always set by the calling BASH). 7491 if test "xECHO" != xBASH; then 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7493 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7494 fi 7495 # Try to locate tool using the code snippet 7496 for ac_prog in echo 7497 do 7498 # Extract the first word of "$ac_prog", so it can be a program name with args. 7499 set dummy $ac_prog; ac_word=$2 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7501 $as_echo_n "checking for $ac_word... " >&6; } 7502 if ${ac_cv_path_ECHO+:} false; then : 7503 $as_echo_n "(cached) " >&6 7504 else 7505 case $ECHO in 7506 [\\/]* | ?:[\\/]*) 7507 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7508 ;; 7509 *) 7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7511 for as_dir in $PATH 7512 do 7513 IFS=$as_save_IFS 7514 test -z "$as_dir" && as_dir=. 7515 for ac_exec_ext in '' $ac_executable_extensions; do 7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7517 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7519 break 2 7520 fi 7521 done 7522 done 7523 IFS=$as_save_IFS 7524 7525 ;; 7526 esac 7527 fi 7528 ECHO=$ac_cv_path_ECHO 7529 if test -n "$ECHO"; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7531 $as_echo "$ECHO" >&6; } 7532 else 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7534 $as_echo "no" >&6; } 7535 fi 7536 7537 7538 test -n "$ECHO" && break 7539 done 7540 7541 else 7542 # If it succeeded, then it was overridden by the user. We will use it 7543 # for the tool. 7544 7545 # First remove it from the list of overridden variables, so we can test 7546 # for unknown variables in the end. 7547 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7548 7549 # Check if we try to supply an empty value 7550 if test "x$ECHO" = x; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7552 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7554 $as_echo_n "checking for ECHO... " >&6; } 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7556 $as_echo "disabled" >&6; } 7557 else 7558 # Check if the provided tool contains a complete path. 7559 tool_specified="$ECHO" 7560 tool_basename="${tool_specified##*/}" 7561 if test "x$tool_basename" = "x$tool_specified"; then 7562 # A command without a complete path is provided, search $PATH. 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7564 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7565 # Extract the first word of "$tool_basename", so it can be a program name with args. 7566 set dummy $tool_basename; ac_word=$2 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7568 $as_echo_n "checking for $ac_word... " >&6; } 7569 if ${ac_cv_path_ECHO+:} false; then : 7570 $as_echo_n "(cached) " >&6 7571 else 7572 case $ECHO in 7573 [\\/]* | ?:[\\/]*) 7574 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7575 ;; 7576 *) 7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7578 for as_dir in $PATH 7579 do 7580 IFS=$as_save_IFS 7581 test -z "$as_dir" && as_dir=. 7582 for ac_exec_ext in '' $ac_executable_extensions; do 7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7584 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7586 break 2 7587 fi 7588 done 7589 done 7590 IFS=$as_save_IFS 7591 7592 ;; 7593 esac 7594 fi 7595 ECHO=$ac_cv_path_ECHO 7596 if test -n "$ECHO"; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7598 $as_echo "$ECHO" >&6; } 7599 else 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7601 $as_echo "no" >&6; } 7602 fi 7603 7604 7605 if test "x$ECHO" = x; then 7606 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7607 fi 7608 else 7609 # Otherwise we believe it is a complete path. Use it as it is. 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7611 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7613 $as_echo_n "checking for ECHO... " >&6; } 7614 if test ! -x "$tool_specified"; then 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7616 $as_echo "not found" >&6; } 7617 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7618 fi 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7620 $as_echo "$tool_specified" >&6; } 7621 fi 7622 fi 7623 fi 7624 7625 fi 7626 7627 7628 7629 if test "x$ECHO" = x; then 7630 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7631 fi 7632 7633 7634 7635 7636 7637 # Publish this variable in the help. 7638 7639 7640 if [ -z "${EXPR+x}" ]; then 7641 # The variable is not set by user, try to locate tool using the code snippet 7642 for ac_prog in expr 7643 do 7644 # Extract the first word of "$ac_prog", so it can be a program name with args. 7645 set dummy $ac_prog; ac_word=$2 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7647 $as_echo_n "checking for $ac_word... " >&6; } 7648 if ${ac_cv_path_EXPR+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650 else 7651 case $EXPR in 7652 [\\/]* | ?:[\\/]*) 7653 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7654 ;; 7655 *) 7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657 for as_dir in $PATH 7658 do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_exec_ext in '' $ac_executable_extensions; do 7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7663 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7665 break 2 7666 fi 7667 done 7668 done 7669 IFS=$as_save_IFS 7670 7671 ;; 7672 esac 7673 fi 7674 EXPR=$ac_cv_path_EXPR 7675 if test -n "$EXPR"; then 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7677 $as_echo "$EXPR" >&6; } 7678 else 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7680 $as_echo "no" >&6; } 7681 fi 7682 7683 7684 test -n "$EXPR" && break 7685 done 7686 7687 else 7688 # The variable is set, but is it from the command line or the environment? 7689 7690 # Try to remove the string !EXPR! from our list. 7691 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7692 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7693 # If it failed, the variable was not from the command line. Ignore it, 7694 # but warn the user (except for BASH, which is always set by the calling BASH). 7695 if test "xEXPR" != xBASH; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7697 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7698 fi 7699 # Try to locate tool using the code snippet 7700 for ac_prog in expr 7701 do 7702 # Extract the first word of "$ac_prog", so it can be a program name with args. 7703 set dummy $ac_prog; ac_word=$2 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7705 $as_echo_n "checking for $ac_word... " >&6; } 7706 if ${ac_cv_path_EXPR+:} false; then : 7707 $as_echo_n "(cached) " >&6 7708 else 7709 case $EXPR in 7710 [\\/]* | ?:[\\/]*) 7711 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7712 ;; 7713 *) 7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7715 for as_dir in $PATH 7716 do 7717 IFS=$as_save_IFS 7718 test -z "$as_dir" && as_dir=. 7719 for ac_exec_ext in '' $ac_executable_extensions; do 7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7721 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7723 break 2 7724 fi 7725 done 7726 done 7727 IFS=$as_save_IFS 7728 7729 ;; 7730 esac 7731 fi 7732 EXPR=$ac_cv_path_EXPR 7733 if test -n "$EXPR"; then 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7735 $as_echo "$EXPR" >&6; } 7736 else 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7738 $as_echo "no" >&6; } 7739 fi 7740 7741 7742 test -n "$EXPR" && break 7743 done 7744 7745 else 7746 # If it succeeded, then it was overridden by the user. We will use it 7747 # for the tool. 7748 7749 # First remove it from the list of overridden variables, so we can test 7750 # for unknown variables in the end. 7751 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7752 7753 # Check if we try to supply an empty value 7754 if test "x$EXPR" = x; then 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7756 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7758 $as_echo_n "checking for EXPR... " >&6; } 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7760 $as_echo "disabled" >&6; } 7761 else 7762 # Check if the provided tool contains a complete path. 7763 tool_specified="$EXPR" 7764 tool_basename="${tool_specified##*/}" 7765 if test "x$tool_basename" = "x$tool_specified"; then 7766 # A command without a complete path is provided, search $PATH. 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7768 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7769 # Extract the first word of "$tool_basename", so it can be a program name with args. 7770 set dummy $tool_basename; ac_word=$2 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7772 $as_echo_n "checking for $ac_word... " >&6; } 7773 if ${ac_cv_path_EXPR+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775 else 7776 case $EXPR in 7777 [\\/]* | ?:[\\/]*) 7778 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7779 ;; 7780 *) 7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782 for as_dir in $PATH 7783 do 7784 IFS=$as_save_IFS 7785 test -z "$as_dir" && as_dir=. 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7788 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792 done 7793 done 7794 IFS=$as_save_IFS 7795 7796 ;; 7797 esac 7798 fi 7799 EXPR=$ac_cv_path_EXPR 7800 if test -n "$EXPR"; then 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7802 $as_echo "$EXPR" >&6; } 7803 else 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7805 $as_echo "no" >&6; } 7806 fi 7807 7808 7809 if test "x$EXPR" = x; then 7810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7811 fi 7812 else 7813 # Otherwise we believe it is a complete path. Use it as it is. 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7815 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7817 $as_echo_n "checking for EXPR... " >&6; } 7818 if test ! -x "$tool_specified"; then 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7820 $as_echo "not found" >&6; } 7821 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7822 fi 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7824 $as_echo "$tool_specified" >&6; } 7825 fi 7826 fi 7827 fi 7828 7829 fi 7830 7831 7832 7833 if test "x$EXPR" = x; then 7834 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7835 fi 7836 7837 7838 7839 7840 7841 # Publish this variable in the help. 7842 7843 7844 if [ -z "${FILE+x}" ]; then 7845 # The variable is not set by user, try to locate tool using the code snippet 7846 for ac_prog in file 7847 do 7848 # Extract the first word of "$ac_prog", so it can be a program name with args. 7849 set dummy $ac_prog; ac_word=$2 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7851 $as_echo_n "checking for $ac_word... " >&6; } 7852 if ${ac_cv_path_FILE+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854 else 7855 case $FILE in 7856 [\\/]* | ?:[\\/]*) 7857 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7858 ;; 7859 *) 7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7861 for as_dir in $PATH 7862 do 7863 IFS=$as_save_IFS 7864 test -z "$as_dir" && as_dir=. 7865 for ac_exec_ext in '' $ac_executable_extensions; do 7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7867 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7869 break 2 7870 fi 7871 done 7872 done 7873 IFS=$as_save_IFS 7874 7875 ;; 7876 esac 7877 fi 7878 FILE=$ac_cv_path_FILE 7879 if test -n "$FILE"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7881 $as_echo "$FILE" >&6; } 7882 else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884 $as_echo "no" >&6; } 7885 fi 7886 7887 7888 test -n "$FILE" && break 7889 done 7890 7891 else 7892 # The variable is set, but is it from the command line or the environment? 7893 7894 # Try to remove the string !FILE! from our list. 7895 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7896 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7897 # If it failed, the variable was not from the command line. Ignore it, 7898 # but warn the user (except for BASH, which is always set by the calling BASH). 7899 if test "xFILE" != xBASH; then 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7901 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7902 fi 7903 # Try to locate tool using the code snippet 7904 for ac_prog in file 7905 do 7906 # Extract the first word of "$ac_prog", so it can be a program name with args. 7907 set dummy $ac_prog; ac_word=$2 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7909 $as_echo_n "checking for $ac_word... " >&6; } 7910 if ${ac_cv_path_FILE+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912 else 7913 case $FILE in 7914 [\\/]* | ?:[\\/]*) 7915 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7916 ;; 7917 *) 7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7919 for as_dir in $PATH 7920 do 7921 IFS=$as_save_IFS 7922 test -z "$as_dir" && as_dir=. 7923 for ac_exec_ext in '' $ac_executable_extensions; do 7924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7925 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7927 break 2 7928 fi 7929 done 7930 done 7931 IFS=$as_save_IFS 7932 7933 ;; 7934 esac 7935 fi 7936 FILE=$ac_cv_path_FILE 7937 if test -n "$FILE"; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7939 $as_echo "$FILE" >&6; } 7940 else 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942 $as_echo "no" >&6; } 7943 fi 7944 7945 7946 test -n "$FILE" && break 7947 done 7948 7949 else 7950 # If it succeeded, then it was overridden by the user. We will use it 7951 # for the tool. 7952 7953 # First remove it from the list of overridden variables, so we can test 7954 # for unknown variables in the end. 7955 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7956 7957 # Check if we try to supply an empty value 7958 if test "x$FILE" = x; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7960 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7962 $as_echo_n "checking for FILE... " >&6; } 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7964 $as_echo "disabled" >&6; } 7965 else 7966 # Check if the provided tool contains a complete path. 7967 tool_specified="$FILE" 7968 tool_basename="${tool_specified##*/}" 7969 if test "x$tool_basename" = "x$tool_specified"; then 7970 # A command without a complete path is provided, search $PATH. 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7972 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7973 # Extract the first word of "$tool_basename", so it can be a program name with args. 7974 set dummy $tool_basename; ac_word=$2 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7976 $as_echo_n "checking for $ac_word... " >&6; } 7977 if ${ac_cv_path_FILE+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979 else 7980 case $FILE in 7981 [\\/]* | ?:[\\/]*) 7982 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7983 ;; 7984 *) 7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7986 for as_dir in $PATH 7987 do 7988 IFS=$as_save_IFS 7989 test -z "$as_dir" && as_dir=. 7990 for ac_exec_ext in '' $ac_executable_extensions; do 7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7992 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7994 break 2 7995 fi 7996 done 7997 done 7998 IFS=$as_save_IFS 7999 8000 ;; 8001 esac 8002 fi 8003 FILE=$ac_cv_path_FILE 8004 if test -n "$FILE"; then 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8006 $as_echo "$FILE" >&6; } 8007 else 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8009 $as_echo "no" >&6; } 8010 fi 8011 8012 8013 if test "x$FILE" = x; then 8014 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8015 fi 8016 else 8017 # Otherwise we believe it is a complete path. Use it as it is. 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8019 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8021 $as_echo_n "checking for FILE... " >&6; } 8022 if test ! -x "$tool_specified"; then 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8024 $as_echo "not found" >&6; } 8025 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8026 fi 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8028 $as_echo "$tool_specified" >&6; } 8029 fi 8030 fi 8031 fi 8032 8033 fi 8034 8035 8036 8037 if test "x$FILE" = x; then 8038 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8039 fi 8040 8041 8042 8043 8044 8045 # Publish this variable in the help. 8046 8047 8048 if [ -z "${FIND+x}" ]; then 8049 # The variable is not set by user, try to locate tool using the code snippet 8050 for ac_prog in find 8051 do 8052 # Extract the first word of "$ac_prog", so it can be a program name with args. 8053 set dummy $ac_prog; ac_word=$2 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8055 $as_echo_n "checking for $ac_word... " >&6; } 8056 if ${ac_cv_path_FIND+:} false; then : 8057 $as_echo_n "(cached) " >&6 8058 else 8059 case $FIND in 8060 [\\/]* | ?:[\\/]*) 8061 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8062 ;; 8063 *) 8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8065 for as_dir in $PATH 8066 do 8067 IFS=$as_save_IFS 8068 test -z "$as_dir" && as_dir=. 8069 for ac_exec_ext in '' $ac_executable_extensions; do 8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8071 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8073 break 2 8074 fi 8075 done 8076 done 8077 IFS=$as_save_IFS 8078 8079 ;; 8080 esac 8081 fi 8082 FIND=$ac_cv_path_FIND 8083 if test -n "$FIND"; then 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8085 $as_echo "$FIND" >&6; } 8086 else 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8088 $as_echo "no" >&6; } 8089 fi 8090 8091 8092 test -n "$FIND" && break 8093 done 8094 8095 else 8096 # The variable is set, but is it from the command line or the environment? 8097 8098 # Try to remove the string !FIND! from our list. 8099 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8100 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8101 # If it failed, the variable was not from the command line. Ignore it, 8102 # but warn the user (except for BASH, which is always set by the calling BASH). 8103 if test "xFIND" != xBASH; then 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8105 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8106 fi 8107 # Try to locate tool using the code snippet 8108 for ac_prog in find 8109 do 8110 # Extract the first word of "$ac_prog", so it can be a program name with args. 8111 set dummy $ac_prog; ac_word=$2 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8113 $as_echo_n "checking for $ac_word... " >&6; } 8114 if ${ac_cv_path_FIND+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116 else 8117 case $FIND in 8118 [\\/]* | ?:[\\/]*) 8119 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8120 ;; 8121 *) 8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8123 for as_dir in $PATH 8124 do 8125 IFS=$as_save_IFS 8126 test -z "$as_dir" && as_dir=. 8127 for ac_exec_ext in '' $ac_executable_extensions; do 8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8129 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8131 break 2 8132 fi 8133 done 8134 done 8135 IFS=$as_save_IFS 8136 8137 ;; 8138 esac 8139 fi 8140 FIND=$ac_cv_path_FIND 8141 if test -n "$FIND"; then 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8143 $as_echo "$FIND" >&6; } 8144 else 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8146 $as_echo "no" >&6; } 8147 fi 8148 8149 8150 test -n "$FIND" && break 8151 done 8152 8153 else 8154 # If it succeeded, then it was overridden by the user. We will use it 8155 # for the tool. 8156 8157 # First remove it from the list of overridden variables, so we can test 8158 # for unknown variables in the end. 8159 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8160 8161 # Check if we try to supply an empty value 8162 if test "x$FIND" = x; then 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8164 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8166 $as_echo_n "checking for FIND... " >&6; } 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8168 $as_echo "disabled" >&6; } 8169 else 8170 # Check if the provided tool contains a complete path. 8171 tool_specified="$FIND" 8172 tool_basename="${tool_specified##*/}" 8173 if test "x$tool_basename" = "x$tool_specified"; then 8174 # A command without a complete path is provided, search $PATH. 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8176 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8177 # Extract the first word of "$tool_basename", so it can be a program name with args. 8178 set dummy $tool_basename; ac_word=$2 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8180 $as_echo_n "checking for $ac_word... " >&6; } 8181 if ${ac_cv_path_FIND+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183 else 8184 case $FIND in 8185 [\\/]* | ?:[\\/]*) 8186 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8187 ;; 8188 *) 8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190 for as_dir in $PATH 8191 do 8192 IFS=$as_save_IFS 8193 test -z "$as_dir" && as_dir=. 8194 for ac_exec_ext in '' $ac_executable_extensions; do 8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8196 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8198 break 2 8199 fi 8200 done 8201 done 8202 IFS=$as_save_IFS 8203 8204 ;; 8205 esac 8206 fi 8207 FIND=$ac_cv_path_FIND 8208 if test -n "$FIND"; then 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8210 $as_echo "$FIND" >&6; } 8211 else 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8213 $as_echo "no" >&6; } 8214 fi 8215 8216 8217 if test "x$FIND" = x; then 8218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8219 fi 8220 else 8221 # Otherwise we believe it is a complete path. Use it as it is. 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8223 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8225 $as_echo_n "checking for FIND... " >&6; } 8226 if test ! -x "$tool_specified"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8228 $as_echo "not found" >&6; } 8229 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8230 fi 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8232 $as_echo "$tool_specified" >&6; } 8233 fi 8234 fi 8235 fi 8236 8237 fi 8238 8239 8240 8241 if test "x$FIND" = x; then 8242 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8243 fi 8244 8245 8246 8247 8248 8249 # Publish this variable in the help. 8250 8251 8252 if [ -z "${HEAD+x}" ]; then 8253 # The variable is not set by user, try to locate tool using the code snippet 8254 for ac_prog in head 8255 do 8256 # Extract the first word of "$ac_prog", so it can be a program name with args. 8257 set dummy $ac_prog; ac_word=$2 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8259 $as_echo_n "checking for $ac_word... " >&6; } 8260 if ${ac_cv_path_HEAD+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262 else 8263 case $HEAD in 8264 [\\/]* | ?:[\\/]*) 8265 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8266 ;; 8267 *) 8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8269 for as_dir in $PATH 8270 do 8271 IFS=$as_save_IFS 8272 test -z "$as_dir" && as_dir=. 8273 for ac_exec_ext in '' $ac_executable_extensions; do 8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8275 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8277 break 2 8278 fi 8279 done 8280 done 8281 IFS=$as_save_IFS 8282 8283 ;; 8284 esac 8285 fi 8286 HEAD=$ac_cv_path_HEAD 8287 if test -n "$HEAD"; then 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8289 $as_echo "$HEAD" >&6; } 8290 else 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8292 $as_echo "no" >&6; } 8293 fi 8294 8295 8296 test -n "$HEAD" && break 8297 done 8298 8299 else 8300 # The variable is set, but is it from the command line or the environment? 8301 8302 # Try to remove the string !HEAD! from our list. 8303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8305 # If it failed, the variable was not from the command line. Ignore it, 8306 # but warn the user (except for BASH, which is always set by the calling BASH). 8307 if test "xHEAD" != xBASH; then 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8309 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8310 fi 8311 # Try to locate tool using the code snippet 8312 for ac_prog in head 8313 do 8314 # Extract the first word of "$ac_prog", so it can be a program name with args. 8315 set dummy $ac_prog; ac_word=$2 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8317 $as_echo_n "checking for $ac_word... " >&6; } 8318 if ${ac_cv_path_HEAD+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320 else 8321 case $HEAD in 8322 [\\/]* | ?:[\\/]*) 8323 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8324 ;; 8325 *) 8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8327 for as_dir in $PATH 8328 do 8329 IFS=$as_save_IFS 8330 test -z "$as_dir" && as_dir=. 8331 for ac_exec_ext in '' $ac_executable_extensions; do 8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8333 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8335 break 2 8336 fi 8337 done 8338 done 8339 IFS=$as_save_IFS 8340 8341 ;; 8342 esac 8343 fi 8344 HEAD=$ac_cv_path_HEAD 8345 if test -n "$HEAD"; then 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8347 $as_echo "$HEAD" >&6; } 8348 else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8350 $as_echo "no" >&6; } 8351 fi 8352 8353 8354 test -n "$HEAD" && break 8355 done 8356 8357 else 8358 # If it succeeded, then it was overridden by the user. We will use it 8359 # for the tool. 8360 8361 # First remove it from the list of overridden variables, so we can test 8362 # for unknown variables in the end. 8363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8364 8365 # Check if we try to supply an empty value 8366 if test "x$HEAD" = x; then 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8368 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8370 $as_echo_n "checking for HEAD... " >&6; } 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8372 $as_echo "disabled" >&6; } 8373 else 8374 # Check if the provided tool contains a complete path. 8375 tool_specified="$HEAD" 8376 tool_basename="${tool_specified##*/}" 8377 if test "x$tool_basename" = "x$tool_specified"; then 8378 # A command without a complete path is provided, search $PATH. 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8380 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8381 # Extract the first word of "$tool_basename", so it can be a program name with args. 8382 set dummy $tool_basename; ac_word=$2 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8384 $as_echo_n "checking for $ac_word... " >&6; } 8385 if ${ac_cv_path_HEAD+:} false; then : 8386 $as_echo_n "(cached) " >&6 8387 else 8388 case $HEAD in 8389 [\\/]* | ?:[\\/]*) 8390 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8391 ;; 8392 *) 8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8394 for as_dir in $PATH 8395 do 8396 IFS=$as_save_IFS 8397 test -z "$as_dir" && as_dir=. 8398 for ac_exec_ext in '' $ac_executable_extensions; do 8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8400 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8402 break 2 8403 fi 8404 done 8405 done 8406 IFS=$as_save_IFS 8407 8408 ;; 8409 esac 8410 fi 8411 HEAD=$ac_cv_path_HEAD 8412 if test -n "$HEAD"; then 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8414 $as_echo "$HEAD" >&6; } 8415 else 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8417 $as_echo "no" >&6; } 8418 fi 8419 8420 8421 if test "x$HEAD" = x; then 8422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8423 fi 8424 else 8425 # Otherwise we believe it is a complete path. Use it as it is. 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8427 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8429 $as_echo_n "checking for HEAD... " >&6; } 8430 if test ! -x "$tool_specified"; then 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8432 $as_echo "not found" >&6; } 8433 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8434 fi 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8436 $as_echo "$tool_specified" >&6; } 8437 fi 8438 fi 8439 fi 8440 8441 fi 8442 8443 8444 8445 if test "x$HEAD" = x; then 8446 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8447 fi 8448 8449 8450 8451 8452 8453 # Publish this variable in the help. 8454 8455 8456 if [ -z "${GUNZIP+x}" ]; then 8457 # The variable is not set by user, try to locate tool using the code snippet 8458 for ac_prog in gunzip 8459 do 8460 # Extract the first word of "$ac_prog", so it can be a program name with args. 8461 set dummy $ac_prog; ac_word=$2 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8463 $as_echo_n "checking for $ac_word... " >&6; } 8464 if ${ac_cv_path_GUNZIP+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466 else 8467 case $GUNZIP in 8468 [\\/]* | ?:[\\/]*) 8469 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8470 ;; 8471 *) 8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8473 for as_dir in $PATH 8474 do 8475 IFS=$as_save_IFS 8476 test -z "$as_dir" && as_dir=. 8477 for ac_exec_ext in '' $ac_executable_extensions; do 8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8479 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8481 break 2 8482 fi 8483 done 8484 done 8485 IFS=$as_save_IFS 8486 8487 ;; 8488 esac 8489 fi 8490 GUNZIP=$ac_cv_path_GUNZIP 8491 if test -n "$GUNZIP"; then 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8493 $as_echo "$GUNZIP" >&6; } 8494 else 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8496 $as_echo "no" >&6; } 8497 fi 8498 8499 8500 test -n "$GUNZIP" && break 8501 done 8502 8503 else 8504 # The variable is set, but is it from the command line or the environment? 8505 8506 # Try to remove the string !GUNZIP! from our list. 8507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8509 # If it failed, the variable was not from the command line. Ignore it, 8510 # but warn the user (except for BASH, which is always set by the calling BASH). 8511 if test "xGUNZIP" != xBASH; then 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8513 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8514 fi 8515 # Try to locate tool using the code snippet 8516 for ac_prog in gunzip 8517 do 8518 # Extract the first word of "$ac_prog", so it can be a program name with args. 8519 set dummy $ac_prog; ac_word=$2 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8521 $as_echo_n "checking for $ac_word... " >&6; } 8522 if ${ac_cv_path_GUNZIP+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524 else 8525 case $GUNZIP in 8526 [\\/]* | ?:[\\/]*) 8527 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8528 ;; 8529 *) 8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8531 for as_dir in $PATH 8532 do 8533 IFS=$as_save_IFS 8534 test -z "$as_dir" && as_dir=. 8535 for ac_exec_ext in '' $ac_executable_extensions; do 8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8537 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8539 break 2 8540 fi 8541 done 8542 done 8543 IFS=$as_save_IFS 8544 8545 ;; 8546 esac 8547 fi 8548 GUNZIP=$ac_cv_path_GUNZIP 8549 if test -n "$GUNZIP"; then 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8551 $as_echo "$GUNZIP" >&6; } 8552 else 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8554 $as_echo "no" >&6; } 8555 fi 8556 8557 8558 test -n "$GUNZIP" && break 8559 done 8560 8561 else 8562 # If it succeeded, then it was overridden by the user. We will use it 8563 # for the tool. 8564 8565 # First remove it from the list of overridden variables, so we can test 8566 # for unknown variables in the end. 8567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8568 8569 # Check if we try to supply an empty value 8570 if test "x$GUNZIP" = x; then 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8572 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8574 $as_echo_n "checking for GUNZIP... " >&6; } 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8576 $as_echo "disabled" >&6; } 8577 else 8578 # Check if the provided tool contains a complete path. 8579 tool_specified="$GUNZIP" 8580 tool_basename="${tool_specified##*/}" 8581 if test "x$tool_basename" = "x$tool_specified"; then 8582 # A command without a complete path is provided, search $PATH. 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8584 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8585 # Extract the first word of "$tool_basename", so it can be a program name with args. 8586 set dummy $tool_basename; ac_word=$2 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8588 $as_echo_n "checking for $ac_word... " >&6; } 8589 if ${ac_cv_path_GUNZIP+:} false; then : 8590 $as_echo_n "(cached) " >&6 8591 else 8592 case $GUNZIP in 8593 [\\/]* | ?:[\\/]*) 8594 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8595 ;; 8596 *) 8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8598 for as_dir in $PATH 8599 do 8600 IFS=$as_save_IFS 8601 test -z "$as_dir" && as_dir=. 8602 for ac_exec_ext in '' $ac_executable_extensions; do 8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8604 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8606 break 2 8607 fi 8608 done 8609 done 8610 IFS=$as_save_IFS 8611 8612 ;; 8613 esac 8614 fi 8615 GUNZIP=$ac_cv_path_GUNZIP 8616 if test -n "$GUNZIP"; then 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8618 $as_echo "$GUNZIP" >&6; } 8619 else 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8621 $as_echo "no" >&6; } 8622 fi 8623 8624 8625 if test "x$GUNZIP" = x; then 8626 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8627 fi 8628 else 8629 # Otherwise we believe it is a complete path. Use it as it is. 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8631 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8633 $as_echo_n "checking for GUNZIP... " >&6; } 8634 if test ! -x "$tool_specified"; then 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8636 $as_echo "not found" >&6; } 8637 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8638 fi 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8640 $as_echo "$tool_specified" >&6; } 8641 fi 8642 fi 8643 fi 8644 8645 fi 8646 8647 8648 8649 if test "x$GUNZIP" = x; then 8650 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8651 fi 8652 8653 8654 8655 8656 8657 # Publish this variable in the help. 8658 8659 8660 if [ -z "${GZIP+x}" ]; then 8661 # The variable is not set by user, try to locate tool using the code snippet 8662 for ac_prog in pigz gzip 8663 do 8664 # Extract the first word of "$ac_prog", so it can be a program name with args. 8665 set dummy $ac_prog; ac_word=$2 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8667 $as_echo_n "checking for $ac_word... " >&6; } 8668 if ${ac_cv_path_GZIP+:} false; then : 8669 $as_echo_n "(cached) " >&6 8670 else 8671 case $GZIP in 8672 [\\/]* | ?:[\\/]*) 8673 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8674 ;; 8675 *) 8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8677 for as_dir in $PATH 8678 do 8679 IFS=$as_save_IFS 8680 test -z "$as_dir" && as_dir=. 8681 for ac_exec_ext in '' $ac_executable_extensions; do 8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8683 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8685 break 2 8686 fi 8687 done 8688 done 8689 IFS=$as_save_IFS 8690 8691 ;; 8692 esac 8693 fi 8694 GZIP=$ac_cv_path_GZIP 8695 if test -n "$GZIP"; then 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8697 $as_echo "$GZIP" >&6; } 8698 else 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8700 $as_echo "no" >&6; } 8701 fi 8702 8703 8704 test -n "$GZIP" && break 8705 done 8706 8707 else 8708 # The variable is set, but is it from the command line or the environment? 8709 8710 # Try to remove the string !GZIP! from our list. 8711 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8712 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8713 # If it failed, the variable was not from the command line. Ignore it, 8714 # but warn the user (except for BASH, which is always set by the calling BASH). 8715 if test "xGZIP" != xBASH; then 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8717 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8718 fi 8719 # Try to locate tool using the code snippet 8720 for ac_prog in pigz gzip 8721 do 8722 # Extract the first word of "$ac_prog", so it can be a program name with args. 8723 set dummy $ac_prog; ac_word=$2 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8725 $as_echo_n "checking for $ac_word... " >&6; } 8726 if ${ac_cv_path_GZIP+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728 else 8729 case $GZIP in 8730 [\\/]* | ?:[\\/]*) 8731 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8732 ;; 8733 *) 8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8735 for as_dir in $PATH 8736 do 8737 IFS=$as_save_IFS 8738 test -z "$as_dir" && as_dir=. 8739 for ac_exec_ext in '' $ac_executable_extensions; do 8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8741 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8743 break 2 8744 fi 8745 done 8746 done 8747 IFS=$as_save_IFS 8748 8749 ;; 8750 esac 8751 fi 8752 GZIP=$ac_cv_path_GZIP 8753 if test -n "$GZIP"; then 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8755 $as_echo "$GZIP" >&6; } 8756 else 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8758 $as_echo "no" >&6; } 8759 fi 8760 8761 8762 test -n "$GZIP" && break 8763 done 8764 8765 else 8766 # If it succeeded, then it was overridden by the user. We will use it 8767 # for the tool. 8768 8769 # First remove it from the list of overridden variables, so we can test 8770 # for unknown variables in the end. 8771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8772 8773 # Check if we try to supply an empty value 8774 if test "x$GZIP" = x; then 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8776 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8778 $as_echo_n "checking for GZIP... " >&6; } 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8780 $as_echo "disabled" >&6; } 8781 else 8782 # Check if the provided tool contains a complete path. 8783 tool_specified="$GZIP" 8784 tool_basename="${tool_specified##*/}" 8785 if test "x$tool_basename" = "x$tool_specified"; then 8786 # A command without a complete path is provided, search $PATH. 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8788 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8789 # Extract the first word of "$tool_basename", so it can be a program name with args. 8790 set dummy $tool_basename; ac_word=$2 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8792 $as_echo_n "checking for $ac_word... " >&6; } 8793 if ${ac_cv_path_GZIP+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795 else 8796 case $GZIP in 8797 [\\/]* | ?:[\\/]*) 8798 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8799 ;; 8800 *) 8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8802 for as_dir in $PATH 8803 do 8804 IFS=$as_save_IFS 8805 test -z "$as_dir" && as_dir=. 8806 for ac_exec_ext in '' $ac_executable_extensions; do 8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8808 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8810 break 2 8811 fi 8812 done 8813 done 8814 IFS=$as_save_IFS 8815 8816 ;; 8817 esac 8818 fi 8819 GZIP=$ac_cv_path_GZIP 8820 if test -n "$GZIP"; then 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8822 $as_echo "$GZIP" >&6; } 8823 else 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8825 $as_echo "no" >&6; } 8826 fi 8827 8828 8829 if test "x$GZIP" = x; then 8830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8831 fi 8832 else 8833 # Otherwise we believe it is a complete path. Use it as it is. 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8835 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8837 $as_echo_n "checking for GZIP... " >&6; } 8838 if test ! -x "$tool_specified"; then 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8840 $as_echo "not found" >&6; } 8841 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8842 fi 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8844 $as_echo "$tool_specified" >&6; } 8845 fi 8846 fi 8847 fi 8848 8849 fi 8850 8851 8852 8853 if test "x$GZIP" = x; then 8854 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8855 fi 8856 8857 8858 8859 8860 8861 # Publish this variable in the help. 8862 8863 8864 if [ -z "${LN+x}" ]; then 8865 # The variable is not set by user, try to locate tool using the code snippet 8866 for ac_prog in ln 8867 do 8868 # Extract the first word of "$ac_prog", so it can be a program name with args. 8869 set dummy $ac_prog; ac_word=$2 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8871 $as_echo_n "checking for $ac_word... " >&6; } 8872 if ${ac_cv_path_LN+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874 else 8875 case $LN in 8876 [\\/]* | ?:[\\/]*) 8877 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8878 ;; 8879 *) 8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8881 for as_dir in $PATH 8882 do 8883 IFS=$as_save_IFS 8884 test -z "$as_dir" && as_dir=. 8885 for ac_exec_ext in '' $ac_executable_extensions; do 8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8887 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8889 break 2 8890 fi 8891 done 8892 done 8893 IFS=$as_save_IFS 8894 8895 ;; 8896 esac 8897 fi 8898 LN=$ac_cv_path_LN 8899 if test -n "$LN"; then 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8901 $as_echo "$LN" >&6; } 8902 else 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8904 $as_echo "no" >&6; } 8905 fi 8906 8907 8908 test -n "$LN" && break 8909 done 8910 8911 else 8912 # The variable is set, but is it from the command line or the environment? 8913 8914 # Try to remove the string !LN! from our list. 8915 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8916 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8917 # If it failed, the variable was not from the command line. Ignore it, 8918 # but warn the user (except for BASH, which is always set by the calling BASH). 8919 if test "xLN" != xBASH; then 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8921 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8922 fi 8923 # Try to locate tool using the code snippet 8924 for ac_prog in ln 8925 do 8926 # Extract the first word of "$ac_prog", so it can be a program name with args. 8927 set dummy $ac_prog; ac_word=$2 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8929 $as_echo_n "checking for $ac_word... " >&6; } 8930 if ${ac_cv_path_LN+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932 else 8933 case $LN in 8934 [\\/]* | ?:[\\/]*) 8935 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8936 ;; 8937 *) 8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8939 for as_dir in $PATH 8940 do 8941 IFS=$as_save_IFS 8942 test -z "$as_dir" && as_dir=. 8943 for ac_exec_ext in '' $ac_executable_extensions; do 8944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8945 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8947 break 2 8948 fi 8949 done 8950 done 8951 IFS=$as_save_IFS 8952 8953 ;; 8954 esac 8955 fi 8956 LN=$ac_cv_path_LN 8957 if test -n "$LN"; then 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8959 $as_echo "$LN" >&6; } 8960 else 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8962 $as_echo "no" >&6; } 8963 fi 8964 8965 8966 test -n "$LN" && break 8967 done 8968 8969 else 8970 # If it succeeded, then it was overridden by the user. We will use it 8971 # for the tool. 8972 8973 # First remove it from the list of overridden variables, so we can test 8974 # for unknown variables in the end. 8975 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8976 8977 # Check if we try to supply an empty value 8978 if test "x$LN" = x; then 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8980 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8982 $as_echo_n "checking for LN... " >&6; } 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8984 $as_echo "disabled" >&6; } 8985 else 8986 # Check if the provided tool contains a complete path. 8987 tool_specified="$LN" 8988 tool_basename="${tool_specified##*/}" 8989 if test "x$tool_basename" = "x$tool_specified"; then 8990 # A command without a complete path is provided, search $PATH. 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8992 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8993 # Extract the first word of "$tool_basename", so it can be a program name with args. 8994 set dummy $tool_basename; ac_word=$2 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8996 $as_echo_n "checking for $ac_word... " >&6; } 8997 if ${ac_cv_path_LN+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999 else 9000 case $LN in 9001 [\\/]* | ?:[\\/]*) 9002 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9003 ;; 9004 *) 9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006 for as_dir in $PATH 9007 do 9008 IFS=$as_save_IFS 9009 test -z "$as_dir" && as_dir=. 9010 for ac_exec_ext in '' $ac_executable_extensions; do 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9012 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9014 break 2 9015 fi 9016 done 9017 done 9018 IFS=$as_save_IFS 9019 9020 ;; 9021 esac 9022 fi 9023 LN=$ac_cv_path_LN 9024 if test -n "$LN"; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9026 $as_echo "$LN" >&6; } 9027 else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9029 $as_echo "no" >&6; } 9030 fi 9031 9032 9033 if test "x$LN" = x; then 9034 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9035 fi 9036 else 9037 # Otherwise we believe it is a complete path. Use it as it is. 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9039 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9041 $as_echo_n "checking for LN... " >&6; } 9042 if test ! -x "$tool_specified"; then 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9044 $as_echo "not found" >&6; } 9045 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9046 fi 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9048 $as_echo "$tool_specified" >&6; } 9049 fi 9050 fi 9051 fi 9052 9053 fi 9054 9055 9056 9057 if test "x$LN" = x; then 9058 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9059 fi 9060 9061 9062 9063 9064 9065 # Publish this variable in the help. 9066 9067 9068 if [ -z "${LS+x}" ]; then 9069 # The variable is not set by user, try to locate tool using the code snippet 9070 for ac_prog in ls 9071 do 9072 # Extract the first word of "$ac_prog", so it can be a program name with args. 9073 set dummy $ac_prog; ac_word=$2 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9075 $as_echo_n "checking for $ac_word... " >&6; } 9076 if ${ac_cv_path_LS+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078 else 9079 case $LS in 9080 [\\/]* | ?:[\\/]*) 9081 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9082 ;; 9083 *) 9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9085 for as_dir in $PATH 9086 do 9087 IFS=$as_save_IFS 9088 test -z "$as_dir" && as_dir=. 9089 for ac_exec_ext in '' $ac_executable_extensions; do 9090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9091 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9093 break 2 9094 fi 9095 done 9096 done 9097 IFS=$as_save_IFS 9098 9099 ;; 9100 esac 9101 fi 9102 LS=$ac_cv_path_LS 9103 if test -n "$LS"; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9105 $as_echo "$LS" >&6; } 9106 else 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108 $as_echo "no" >&6; } 9109 fi 9110 9111 9112 test -n "$LS" && break 9113 done 9114 9115 else 9116 # The variable is set, but is it from the command line or the environment? 9117 9118 # Try to remove the string !LS! from our list. 9119 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9120 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9121 # If it failed, the variable was not from the command line. Ignore it, 9122 # but warn the user (except for BASH, which is always set by the calling BASH). 9123 if test "xLS" != xBASH; then 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9125 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9126 fi 9127 # Try to locate tool using the code snippet 9128 for ac_prog in ls 9129 do 9130 # Extract the first word of "$ac_prog", so it can be a program name with args. 9131 set dummy $ac_prog; ac_word=$2 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9133 $as_echo_n "checking for $ac_word... " >&6; } 9134 if ${ac_cv_path_LS+:} false; then : 9135 $as_echo_n "(cached) " >&6 9136 else 9137 case $LS in 9138 [\\/]* | ?:[\\/]*) 9139 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9140 ;; 9141 *) 9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9143 for as_dir in $PATH 9144 do 9145 IFS=$as_save_IFS 9146 test -z "$as_dir" && as_dir=. 9147 for ac_exec_ext in '' $ac_executable_extensions; do 9148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9149 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9151 break 2 9152 fi 9153 done 9154 done 9155 IFS=$as_save_IFS 9156 9157 ;; 9158 esac 9159 fi 9160 LS=$ac_cv_path_LS 9161 if test -n "$LS"; then 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9163 $as_echo "$LS" >&6; } 9164 else 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9166 $as_echo "no" >&6; } 9167 fi 9168 9169 9170 test -n "$LS" && break 9171 done 9172 9173 else 9174 # If it succeeded, then it was overridden by the user. We will use it 9175 # for the tool. 9176 9177 # First remove it from the list of overridden variables, so we can test 9178 # for unknown variables in the end. 9179 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9180 9181 # Check if we try to supply an empty value 9182 if test "x$LS" = x; then 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9184 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9186 $as_echo_n "checking for LS... " >&6; } 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9188 $as_echo "disabled" >&6; } 9189 else 9190 # Check if the provided tool contains a complete path. 9191 tool_specified="$LS" 9192 tool_basename="${tool_specified##*/}" 9193 if test "x$tool_basename" = "x$tool_specified"; then 9194 # A command without a complete path is provided, search $PATH. 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9196 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9197 # Extract the first word of "$tool_basename", so it can be a program name with args. 9198 set dummy $tool_basename; ac_word=$2 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9200 $as_echo_n "checking for $ac_word... " >&6; } 9201 if ${ac_cv_path_LS+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203 else 9204 case $LS in 9205 [\\/]* | ?:[\\/]*) 9206 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9207 ;; 9208 *) 9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9210 for as_dir in $PATH 9211 do 9212 IFS=$as_save_IFS 9213 test -z "$as_dir" && as_dir=. 9214 for ac_exec_ext in '' $ac_executable_extensions; do 9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9216 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9218 break 2 9219 fi 9220 done 9221 done 9222 IFS=$as_save_IFS 9223 9224 ;; 9225 esac 9226 fi 9227 LS=$ac_cv_path_LS 9228 if test -n "$LS"; then 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9230 $as_echo "$LS" >&6; } 9231 else 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9233 $as_echo "no" >&6; } 9234 fi 9235 9236 9237 if test "x$LS" = x; then 9238 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9239 fi 9240 else 9241 # Otherwise we believe it is a complete path. Use it as it is. 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9243 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9245 $as_echo_n "checking for LS... " >&6; } 9246 if test ! -x "$tool_specified"; then 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9248 $as_echo "not found" >&6; } 9249 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9250 fi 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9252 $as_echo "$tool_specified" >&6; } 9253 fi 9254 fi 9255 fi 9256 9257 fi 9258 9259 9260 9261 if test "x$LS" = x; then 9262 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9263 fi 9264 9265 9266 9267 9268 9269 # Publish this variable in the help. 9270 9271 9272 if [ -z "${MKDIR+x}" ]; then 9273 # The variable is not set by user, try to locate tool using the code snippet 9274 for ac_prog in mkdir 9275 do 9276 # Extract the first word of "$ac_prog", so it can be a program name with args. 9277 set dummy $ac_prog; ac_word=$2 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9279 $as_echo_n "checking for $ac_word... " >&6; } 9280 if ${ac_cv_path_MKDIR+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282 else 9283 case $MKDIR in 9284 [\\/]* | ?:[\\/]*) 9285 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9286 ;; 9287 *) 9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9289 for as_dir in $PATH 9290 do 9291 IFS=$as_save_IFS 9292 test -z "$as_dir" && as_dir=. 9293 for ac_exec_ext in '' $ac_executable_extensions; do 9294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9295 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9297 break 2 9298 fi 9299 done 9300 done 9301 IFS=$as_save_IFS 9302 9303 ;; 9304 esac 9305 fi 9306 MKDIR=$ac_cv_path_MKDIR 9307 if test -n "$MKDIR"; then 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9309 $as_echo "$MKDIR" >&6; } 9310 else 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9312 $as_echo "no" >&6; } 9313 fi 9314 9315 9316 test -n "$MKDIR" && break 9317 done 9318 9319 else 9320 # The variable is set, but is it from the command line or the environment? 9321 9322 # Try to remove the string !MKDIR! from our list. 9323 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9324 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9325 # If it failed, the variable was not from the command line. Ignore it, 9326 # but warn the user (except for BASH, which is always set by the calling BASH). 9327 if test "xMKDIR" != xBASH; then 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9329 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9330 fi 9331 # Try to locate tool using the code snippet 9332 for ac_prog in mkdir 9333 do 9334 # Extract the first word of "$ac_prog", so it can be a program name with args. 9335 set dummy $ac_prog; ac_word=$2 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9337 $as_echo_n "checking for $ac_word... " >&6; } 9338 if ${ac_cv_path_MKDIR+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340 else 9341 case $MKDIR in 9342 [\\/]* | ?:[\\/]*) 9343 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9344 ;; 9345 *) 9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9347 for as_dir in $PATH 9348 do 9349 IFS=$as_save_IFS 9350 test -z "$as_dir" && as_dir=. 9351 for ac_exec_ext in '' $ac_executable_extensions; do 9352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9353 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9355 break 2 9356 fi 9357 done 9358 done 9359 IFS=$as_save_IFS 9360 9361 ;; 9362 esac 9363 fi 9364 MKDIR=$ac_cv_path_MKDIR 9365 if test -n "$MKDIR"; then 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9367 $as_echo "$MKDIR" >&6; } 9368 else 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9370 $as_echo "no" >&6; } 9371 fi 9372 9373 9374 test -n "$MKDIR" && break 9375 done 9376 9377 else 9378 # If it succeeded, then it was overridden by the user. We will use it 9379 # for the tool. 9380 9381 # First remove it from the list of overridden variables, so we can test 9382 # for unknown variables in the end. 9383 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9384 9385 # Check if we try to supply an empty value 9386 if test "x$MKDIR" = x; then 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9388 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9390 $as_echo_n "checking for MKDIR... " >&6; } 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9392 $as_echo "disabled" >&6; } 9393 else 9394 # Check if the provided tool contains a complete path. 9395 tool_specified="$MKDIR" 9396 tool_basename="${tool_specified##*/}" 9397 if test "x$tool_basename" = "x$tool_specified"; then 9398 # A command without a complete path is provided, search $PATH. 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9400 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9401 # Extract the first word of "$tool_basename", so it can be a program name with args. 9402 set dummy $tool_basename; ac_word=$2 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9404 $as_echo_n "checking for $ac_word... " >&6; } 9405 if ${ac_cv_path_MKDIR+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407 else 9408 case $MKDIR in 9409 [\\/]* | ?:[\\/]*) 9410 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9411 ;; 9412 *) 9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9414 for as_dir in $PATH 9415 do 9416 IFS=$as_save_IFS 9417 test -z "$as_dir" && as_dir=. 9418 for ac_exec_ext in '' $ac_executable_extensions; do 9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9420 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9422 break 2 9423 fi 9424 done 9425 done 9426 IFS=$as_save_IFS 9427 9428 ;; 9429 esac 9430 fi 9431 MKDIR=$ac_cv_path_MKDIR 9432 if test -n "$MKDIR"; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9434 $as_echo "$MKDIR" >&6; } 9435 else 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9437 $as_echo "no" >&6; } 9438 fi 9439 9440 9441 if test "x$MKDIR" = x; then 9442 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9443 fi 9444 else 9445 # Otherwise we believe it is a complete path. Use it as it is. 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9447 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9449 $as_echo_n "checking for MKDIR... " >&6; } 9450 if test ! -x "$tool_specified"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9452 $as_echo "not found" >&6; } 9453 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9454 fi 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9456 $as_echo "$tool_specified" >&6; } 9457 fi 9458 fi 9459 fi 9460 9461 fi 9462 9463 9464 9465 if test "x$MKDIR" = x; then 9466 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9467 fi 9468 9469 9470 9471 9472 9473 # Publish this variable in the help. 9474 9475 9476 if [ -z "${MKTEMP+x}" ]; then 9477 # The variable is not set by user, try to locate tool using the code snippet 9478 for ac_prog in mktemp 9479 do 9480 # Extract the first word of "$ac_prog", so it can be a program name with args. 9481 set dummy $ac_prog; ac_word=$2 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9483 $as_echo_n "checking for $ac_word... " >&6; } 9484 if ${ac_cv_path_MKTEMP+:} false; then : 9485 $as_echo_n "(cached) " >&6 9486 else 9487 case $MKTEMP in 9488 [\\/]* | ?:[\\/]*) 9489 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9490 ;; 9491 *) 9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9493 for as_dir in $PATH 9494 do 9495 IFS=$as_save_IFS 9496 test -z "$as_dir" && as_dir=. 9497 for ac_exec_ext in '' $ac_executable_extensions; do 9498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9499 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9501 break 2 9502 fi 9503 done 9504 done 9505 IFS=$as_save_IFS 9506 9507 ;; 9508 esac 9509 fi 9510 MKTEMP=$ac_cv_path_MKTEMP 9511 if test -n "$MKTEMP"; then 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9513 $as_echo "$MKTEMP" >&6; } 9514 else 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9516 $as_echo "no" >&6; } 9517 fi 9518 9519 9520 test -n "$MKTEMP" && break 9521 done 9522 9523 else 9524 # The variable is set, but is it from the command line or the environment? 9525 9526 # Try to remove the string !MKTEMP! from our list. 9527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9529 # If it failed, the variable was not from the command line. Ignore it, 9530 # but warn the user (except for BASH, which is always set by the calling BASH). 9531 if test "xMKTEMP" != xBASH; then 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9533 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9534 fi 9535 # Try to locate tool using the code snippet 9536 for ac_prog in mktemp 9537 do 9538 # Extract the first word of "$ac_prog", so it can be a program name with args. 9539 set dummy $ac_prog; ac_word=$2 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9541 $as_echo_n "checking for $ac_word... " >&6; } 9542 if ${ac_cv_path_MKTEMP+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544 else 9545 case $MKTEMP in 9546 [\\/]* | ?:[\\/]*) 9547 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9548 ;; 9549 *) 9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9551 for as_dir in $PATH 9552 do 9553 IFS=$as_save_IFS 9554 test -z "$as_dir" && as_dir=. 9555 for ac_exec_ext in '' $ac_executable_extensions; do 9556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9557 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9559 break 2 9560 fi 9561 done 9562 done 9563 IFS=$as_save_IFS 9564 9565 ;; 9566 esac 9567 fi 9568 MKTEMP=$ac_cv_path_MKTEMP 9569 if test -n "$MKTEMP"; then 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9571 $as_echo "$MKTEMP" >&6; } 9572 else 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9574 $as_echo "no" >&6; } 9575 fi 9576 9577 9578 test -n "$MKTEMP" && break 9579 done 9580 9581 else 9582 # If it succeeded, then it was overridden by the user. We will use it 9583 # for the tool. 9584 9585 # First remove it from the list of overridden variables, so we can test 9586 # for unknown variables in the end. 9587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9588 9589 # Check if we try to supply an empty value 9590 if test "x$MKTEMP" = x; then 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9592 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9594 $as_echo_n "checking for MKTEMP... " >&6; } 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9596 $as_echo "disabled" >&6; } 9597 else 9598 # Check if the provided tool contains a complete path. 9599 tool_specified="$MKTEMP" 9600 tool_basename="${tool_specified##*/}" 9601 if test "x$tool_basename" = "x$tool_specified"; then 9602 # A command without a complete path is provided, search $PATH. 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9604 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9605 # Extract the first word of "$tool_basename", so it can be a program name with args. 9606 set dummy $tool_basename; ac_word=$2 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9608 $as_echo_n "checking for $ac_word... " >&6; } 9609 if ${ac_cv_path_MKTEMP+:} false; then : 9610 $as_echo_n "(cached) " >&6 9611 else 9612 case $MKTEMP in 9613 [\\/]* | ?:[\\/]*) 9614 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9615 ;; 9616 *) 9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9618 for as_dir in $PATH 9619 do 9620 IFS=$as_save_IFS 9621 test -z "$as_dir" && as_dir=. 9622 for ac_exec_ext in '' $ac_executable_extensions; do 9623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9624 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9626 break 2 9627 fi 9628 done 9629 done 9630 IFS=$as_save_IFS 9631 9632 ;; 9633 esac 9634 fi 9635 MKTEMP=$ac_cv_path_MKTEMP 9636 if test -n "$MKTEMP"; then 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9638 $as_echo "$MKTEMP" >&6; } 9639 else 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9641 $as_echo "no" >&6; } 9642 fi 9643 9644 9645 if test "x$MKTEMP" = x; then 9646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9647 fi 9648 else 9649 # Otherwise we believe it is a complete path. Use it as it is. 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9651 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9653 $as_echo_n "checking for MKTEMP... " >&6; } 9654 if test ! -x "$tool_specified"; then 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9656 $as_echo "not found" >&6; } 9657 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9658 fi 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9660 $as_echo "$tool_specified" >&6; } 9661 fi 9662 fi 9663 fi 9664 9665 fi 9666 9667 9668 9669 if test "x$MKTEMP" = x; then 9670 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9671 fi 9672 9673 9674 9675 9676 9677 # Publish this variable in the help. 9678 9679 9680 if [ -z "${MV+x}" ]; then 9681 # The variable is not set by user, try to locate tool using the code snippet 9682 for ac_prog in mv 9683 do 9684 # Extract the first word of "$ac_prog", so it can be a program name with args. 9685 set dummy $ac_prog; ac_word=$2 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9687 $as_echo_n "checking for $ac_word... " >&6; } 9688 if ${ac_cv_path_MV+:} false; then : 9689 $as_echo_n "(cached) " >&6 9690 else 9691 case $MV in 9692 [\\/]* | ?:[\\/]*) 9693 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9694 ;; 9695 *) 9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9697 for as_dir in $PATH 9698 do 9699 IFS=$as_save_IFS 9700 test -z "$as_dir" && as_dir=. 9701 for ac_exec_ext in '' $ac_executable_extensions; do 9702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9703 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9705 break 2 9706 fi 9707 done 9708 done 9709 IFS=$as_save_IFS 9710 9711 ;; 9712 esac 9713 fi 9714 MV=$ac_cv_path_MV 9715 if test -n "$MV"; then 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9717 $as_echo "$MV" >&6; } 9718 else 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9720 $as_echo "no" >&6; } 9721 fi 9722 9723 9724 test -n "$MV" && break 9725 done 9726 9727 else 9728 # The variable is set, but is it from the command line or the environment? 9729 9730 # Try to remove the string !MV! from our list. 9731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9733 # If it failed, the variable was not from the command line. Ignore it, 9734 # but warn the user (except for BASH, which is always set by the calling BASH). 9735 if test "xMV" != xBASH; then 9736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9737 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9738 fi 9739 # Try to locate tool using the code snippet 9740 for ac_prog in mv 9741 do 9742 # Extract the first word of "$ac_prog", so it can be a program name with args. 9743 set dummy $ac_prog; ac_word=$2 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9745 $as_echo_n "checking for $ac_word... " >&6; } 9746 if ${ac_cv_path_MV+:} false; then : 9747 $as_echo_n "(cached) " >&6 9748 else 9749 case $MV in 9750 [\\/]* | ?:[\\/]*) 9751 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9752 ;; 9753 *) 9754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9755 for as_dir in $PATH 9756 do 9757 IFS=$as_save_IFS 9758 test -z "$as_dir" && as_dir=. 9759 for ac_exec_ext in '' $ac_executable_extensions; do 9760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9761 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9763 break 2 9764 fi 9765 done 9766 done 9767 IFS=$as_save_IFS 9768 9769 ;; 9770 esac 9771 fi 9772 MV=$ac_cv_path_MV 9773 if test -n "$MV"; then 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9775 $as_echo "$MV" >&6; } 9776 else 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9778 $as_echo "no" >&6; } 9779 fi 9780 9781 9782 test -n "$MV" && break 9783 done 9784 9785 else 9786 # If it succeeded, then it was overridden by the user. We will use it 9787 # for the tool. 9788 9789 # First remove it from the list of overridden variables, so we can test 9790 # for unknown variables in the end. 9791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9792 9793 # Check if we try to supply an empty value 9794 if test "x$MV" = x; then 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9796 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9798 $as_echo_n "checking for MV... " >&6; } 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9800 $as_echo "disabled" >&6; } 9801 else 9802 # Check if the provided tool contains a complete path. 9803 tool_specified="$MV" 9804 tool_basename="${tool_specified##*/}" 9805 if test "x$tool_basename" = "x$tool_specified"; then 9806 # A command without a complete path is provided, search $PATH. 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9808 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9809 # Extract the first word of "$tool_basename", so it can be a program name with args. 9810 set dummy $tool_basename; ac_word=$2 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9812 $as_echo_n "checking for $ac_word... " >&6; } 9813 if ${ac_cv_path_MV+:} false; then : 9814 $as_echo_n "(cached) " >&6 9815 else 9816 case $MV in 9817 [\\/]* | ?:[\\/]*) 9818 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9819 ;; 9820 *) 9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9822 for as_dir in $PATH 9823 do 9824 IFS=$as_save_IFS 9825 test -z "$as_dir" && as_dir=. 9826 for ac_exec_ext in '' $ac_executable_extensions; do 9827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9828 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9830 break 2 9831 fi 9832 done 9833 done 9834 IFS=$as_save_IFS 9835 9836 ;; 9837 esac 9838 fi 9839 MV=$ac_cv_path_MV 9840 if test -n "$MV"; then 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9842 $as_echo "$MV" >&6; } 9843 else 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9845 $as_echo "no" >&6; } 9846 fi 9847 9848 9849 if test "x$MV" = x; then 9850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9851 fi 9852 else 9853 # Otherwise we believe it is a complete path. Use it as it is. 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9855 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9857 $as_echo_n "checking for MV... " >&6; } 9858 if test ! -x "$tool_specified"; then 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9860 $as_echo "not found" >&6; } 9861 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9862 fi 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9864 $as_echo "$tool_specified" >&6; } 9865 fi 9866 fi 9867 fi 9868 9869 fi 9870 9871 9872 9873 if test "x$MV" = x; then 9874 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9875 fi 9876 9877 9878 9879 9880 9881 # Publish this variable in the help. 9882 9883 9884 if [ -z "${NAWK+x}" ]; then 9885 # The variable is not set by user, try to locate tool using the code snippet 9886 for ac_prog in nawk gawk awk 9887 do 9888 # Extract the first word of "$ac_prog", so it can be a program name with args. 9889 set dummy $ac_prog; ac_word=$2 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9891 $as_echo_n "checking for $ac_word... " >&6; } 9892 if ${ac_cv_path_NAWK+:} false; then : 9893 $as_echo_n "(cached) " >&6 9894 else 9895 case $NAWK in 9896 [\\/]* | ?:[\\/]*) 9897 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9898 ;; 9899 *) 9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9901 for as_dir in $PATH 9902 do 9903 IFS=$as_save_IFS 9904 test -z "$as_dir" && as_dir=. 9905 for ac_exec_ext in '' $ac_executable_extensions; do 9906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9907 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9909 break 2 9910 fi 9911 done 9912 done 9913 IFS=$as_save_IFS 9914 9915 ;; 9916 esac 9917 fi 9918 NAWK=$ac_cv_path_NAWK 9919 if test -n "$NAWK"; then 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9921 $as_echo "$NAWK" >&6; } 9922 else 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9924 $as_echo "no" >&6; } 9925 fi 9926 9927 9928 test -n "$NAWK" && break 9929 done 9930 9931 else 9932 # The variable is set, but is it from the command line or the environment? 9933 9934 # Try to remove the string !NAWK! from our list. 9935 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9936 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9937 # If it failed, the variable was not from the command line. Ignore it, 9938 # but warn the user (except for BASH, which is always set by the calling BASH). 9939 if test "xNAWK" != xBASH; then 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9941 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9942 fi 9943 # Try to locate tool using the code snippet 9944 for ac_prog in nawk gawk awk 9945 do 9946 # Extract the first word of "$ac_prog", so it can be a program name with args. 9947 set dummy $ac_prog; ac_word=$2 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9949 $as_echo_n "checking for $ac_word... " >&6; } 9950 if ${ac_cv_path_NAWK+:} false; then : 9951 $as_echo_n "(cached) " >&6 9952 else 9953 case $NAWK in 9954 [\\/]* | ?:[\\/]*) 9955 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9956 ;; 9957 *) 9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9959 for as_dir in $PATH 9960 do 9961 IFS=$as_save_IFS 9962 test -z "$as_dir" && as_dir=. 9963 for ac_exec_ext in '' $ac_executable_extensions; do 9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9965 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9967 break 2 9968 fi 9969 done 9970 done 9971 IFS=$as_save_IFS 9972 9973 ;; 9974 esac 9975 fi 9976 NAWK=$ac_cv_path_NAWK 9977 if test -n "$NAWK"; then 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9979 $as_echo "$NAWK" >&6; } 9980 else 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9982 $as_echo "no" >&6; } 9983 fi 9984 9985 9986 test -n "$NAWK" && break 9987 done 9988 9989 else 9990 # If it succeeded, then it was overridden by the user. We will use it 9991 # for the tool. 9992 9993 # First remove it from the list of overridden variables, so we can test 9994 # for unknown variables in the end. 9995 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9996 9997 # Check if we try to supply an empty value 9998 if test "x$NAWK" = x; then 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10000 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10002 $as_echo_n "checking for NAWK... " >&6; } 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10004 $as_echo "disabled" >&6; } 10005 else 10006 # Check if the provided tool contains a complete path. 10007 tool_specified="$NAWK" 10008 tool_basename="${tool_specified##*/}" 10009 if test "x$tool_basename" = "x$tool_specified"; then 10010 # A command without a complete path is provided, search $PATH. 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10012 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10013 # Extract the first word of "$tool_basename", so it can be a program name with args. 10014 set dummy $tool_basename; ac_word=$2 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10016 $as_echo_n "checking for $ac_word... " >&6; } 10017 if ${ac_cv_path_NAWK+:} false; then : 10018 $as_echo_n "(cached) " >&6 10019 else 10020 case $NAWK in 10021 [\\/]* | ?:[\\/]*) 10022 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10023 ;; 10024 *) 10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10026 for as_dir in $PATH 10027 do 10028 IFS=$as_save_IFS 10029 test -z "$as_dir" && as_dir=. 10030 for ac_exec_ext in '' $ac_executable_extensions; do 10031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10032 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10034 break 2 10035 fi 10036 done 10037 done 10038 IFS=$as_save_IFS 10039 10040 ;; 10041 esac 10042 fi 10043 NAWK=$ac_cv_path_NAWK 10044 if test -n "$NAWK"; then 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10046 $as_echo "$NAWK" >&6; } 10047 else 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10049 $as_echo "no" >&6; } 10050 fi 10051 10052 10053 if test "x$NAWK" = x; then 10054 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10055 fi 10056 else 10057 # Otherwise we believe it is a complete path. Use it as it is. 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10059 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10061 $as_echo_n "checking for NAWK... " >&6; } 10062 if test ! -x "$tool_specified"; then 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10064 $as_echo "not found" >&6; } 10065 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10066 fi 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10068 $as_echo "$tool_specified" >&6; } 10069 fi 10070 fi 10071 fi 10072 10073 fi 10074 10075 10076 10077 if test "x$NAWK" = x; then 10078 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10079 fi 10080 10081 10082 10083 10084 10085 # Publish this variable in the help. 10086 10087 10088 if [ -z "${PRINTF+x}" ]; then 10089 # The variable is not set by user, try to locate tool using the code snippet 10090 for ac_prog in printf 10091 do 10092 # Extract the first word of "$ac_prog", so it can be a program name with args. 10093 set dummy $ac_prog; ac_word=$2 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10095 $as_echo_n "checking for $ac_word... " >&6; } 10096 if ${ac_cv_path_PRINTF+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098 else 10099 case $PRINTF in 10100 [\\/]* | ?:[\\/]*) 10101 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10102 ;; 10103 *) 10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10105 for as_dir in $PATH 10106 do 10107 IFS=$as_save_IFS 10108 test -z "$as_dir" && as_dir=. 10109 for ac_exec_ext in '' $ac_executable_extensions; do 10110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10111 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10113 break 2 10114 fi 10115 done 10116 done 10117 IFS=$as_save_IFS 10118 10119 ;; 10120 esac 10121 fi 10122 PRINTF=$ac_cv_path_PRINTF 10123 if test -n "$PRINTF"; then 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10125 $as_echo "$PRINTF" >&6; } 10126 else 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10128 $as_echo "no" >&6; } 10129 fi 10130 10131 10132 test -n "$PRINTF" && break 10133 done 10134 10135 else 10136 # The variable is set, but is it from the command line or the environment? 10137 10138 # Try to remove the string !PRINTF! from our list. 10139 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10140 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10141 # If it failed, the variable was not from the command line. Ignore it, 10142 # but warn the user (except for BASH, which is always set by the calling BASH). 10143 if test "xPRINTF" != xBASH; then 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10145 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10146 fi 10147 # Try to locate tool using the code snippet 10148 for ac_prog in printf 10149 do 10150 # Extract the first word of "$ac_prog", so it can be a program name with args. 10151 set dummy $ac_prog; ac_word=$2 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10153 $as_echo_n "checking for $ac_word... " >&6; } 10154 if ${ac_cv_path_PRINTF+:} false; then : 10155 $as_echo_n "(cached) " >&6 10156 else 10157 case $PRINTF in 10158 [\\/]* | ?:[\\/]*) 10159 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10160 ;; 10161 *) 10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10163 for as_dir in $PATH 10164 do 10165 IFS=$as_save_IFS 10166 test -z "$as_dir" && as_dir=. 10167 for ac_exec_ext in '' $ac_executable_extensions; do 10168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10169 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10171 break 2 10172 fi 10173 done 10174 done 10175 IFS=$as_save_IFS 10176 10177 ;; 10178 esac 10179 fi 10180 PRINTF=$ac_cv_path_PRINTF 10181 if test -n "$PRINTF"; then 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10183 $as_echo "$PRINTF" >&6; } 10184 else 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10186 $as_echo "no" >&6; } 10187 fi 10188 10189 10190 test -n "$PRINTF" && break 10191 done 10192 10193 else 10194 # If it succeeded, then it was overridden by the user. We will use it 10195 # for the tool. 10196 10197 # First remove it from the list of overridden variables, so we can test 10198 # for unknown variables in the end. 10199 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10200 10201 # Check if we try to supply an empty value 10202 if test "x$PRINTF" = x; then 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10204 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10206 $as_echo_n "checking for PRINTF... " >&6; } 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10208 $as_echo "disabled" >&6; } 10209 else 10210 # Check if the provided tool contains a complete path. 10211 tool_specified="$PRINTF" 10212 tool_basename="${tool_specified##*/}" 10213 if test "x$tool_basename" = "x$tool_specified"; then 10214 # A command without a complete path is provided, search $PATH. 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10216 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10217 # Extract the first word of "$tool_basename", so it can be a program name with args. 10218 set dummy $tool_basename; ac_word=$2 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10220 $as_echo_n "checking for $ac_word... " >&6; } 10221 if ${ac_cv_path_PRINTF+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223 else 10224 case $PRINTF in 10225 [\\/]* | ?:[\\/]*) 10226 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10227 ;; 10228 *) 10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10230 for as_dir in $PATH 10231 do 10232 IFS=$as_save_IFS 10233 test -z "$as_dir" && as_dir=. 10234 for ac_exec_ext in '' $ac_executable_extensions; do 10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10236 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10238 break 2 10239 fi 10240 done 10241 done 10242 IFS=$as_save_IFS 10243 10244 ;; 10245 esac 10246 fi 10247 PRINTF=$ac_cv_path_PRINTF 10248 if test -n "$PRINTF"; then 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10250 $as_echo "$PRINTF" >&6; } 10251 else 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10253 $as_echo "no" >&6; } 10254 fi 10255 10256 10257 if test "x$PRINTF" = x; then 10258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10259 fi 10260 else 10261 # Otherwise we believe it is a complete path. Use it as it is. 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10263 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10265 $as_echo_n "checking for PRINTF... " >&6; } 10266 if test ! -x "$tool_specified"; then 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10268 $as_echo "not found" >&6; } 10269 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10270 fi 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10272 $as_echo "$tool_specified" >&6; } 10273 fi 10274 fi 10275 fi 10276 10277 fi 10278 10279 10280 10281 if test "x$PRINTF" = x; then 10282 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10283 fi 10284 10285 10286 10287 10288 10289 # Publish this variable in the help. 10290 10291 10292 if [ -z "${RM+x}" ]; then 10293 # The variable is not set by user, try to locate tool using the code snippet 10294 for ac_prog in rm 10295 do 10296 # Extract the first word of "$ac_prog", so it can be a program name with args. 10297 set dummy $ac_prog; ac_word=$2 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10299 $as_echo_n "checking for $ac_word... " >&6; } 10300 if ${ac_cv_path_RM+:} false; then : 10301 $as_echo_n "(cached) " >&6 10302 else 10303 case $RM in 10304 [\\/]* | ?:[\\/]*) 10305 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10306 ;; 10307 *) 10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10309 for as_dir in $PATH 10310 do 10311 IFS=$as_save_IFS 10312 test -z "$as_dir" && as_dir=. 10313 for ac_exec_ext in '' $ac_executable_extensions; do 10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10315 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10317 break 2 10318 fi 10319 done 10320 done 10321 IFS=$as_save_IFS 10322 10323 ;; 10324 esac 10325 fi 10326 RM=$ac_cv_path_RM 10327 if test -n "$RM"; then 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10329 $as_echo "$RM" >&6; } 10330 else 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10332 $as_echo "no" >&6; } 10333 fi 10334 10335 10336 test -n "$RM" && break 10337 done 10338 10339 else 10340 # The variable is set, but is it from the command line or the environment? 10341 10342 # Try to remove the string !RM! from our list. 10343 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10344 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10345 # If it failed, the variable was not from the command line. Ignore it, 10346 # but warn the user (except for BASH, which is always set by the calling BASH). 10347 if test "xRM" != xBASH; then 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10349 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10350 fi 10351 # Try to locate tool using the code snippet 10352 for ac_prog in rm 10353 do 10354 # Extract the first word of "$ac_prog", so it can be a program name with args. 10355 set dummy $ac_prog; ac_word=$2 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10357 $as_echo_n "checking for $ac_word... " >&6; } 10358 if ${ac_cv_path_RM+:} false; then : 10359 $as_echo_n "(cached) " >&6 10360 else 10361 case $RM in 10362 [\\/]* | ?:[\\/]*) 10363 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10364 ;; 10365 *) 10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10367 for as_dir in $PATH 10368 do 10369 IFS=$as_save_IFS 10370 test -z "$as_dir" && as_dir=. 10371 for ac_exec_ext in '' $ac_executable_extensions; do 10372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10373 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10375 break 2 10376 fi 10377 done 10378 done 10379 IFS=$as_save_IFS 10380 10381 ;; 10382 esac 10383 fi 10384 RM=$ac_cv_path_RM 10385 if test -n "$RM"; then 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10387 $as_echo "$RM" >&6; } 10388 else 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10390 $as_echo "no" >&6; } 10391 fi 10392 10393 10394 test -n "$RM" && break 10395 done 10396 10397 else 10398 # If it succeeded, then it was overridden by the user. We will use it 10399 # for the tool. 10400 10401 # First remove it from the list of overridden variables, so we can test 10402 # for unknown variables in the end. 10403 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10404 10405 # Check if we try to supply an empty value 10406 if test "x$RM" = x; then 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10408 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10410 $as_echo_n "checking for RM... " >&6; } 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10412 $as_echo "disabled" >&6; } 10413 else 10414 # Check if the provided tool contains a complete path. 10415 tool_specified="$RM" 10416 tool_basename="${tool_specified##*/}" 10417 if test "x$tool_basename" = "x$tool_specified"; then 10418 # A command without a complete path is provided, search $PATH. 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10420 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10421 # Extract the first word of "$tool_basename", so it can be a program name with args. 10422 set dummy $tool_basename; ac_word=$2 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10424 $as_echo_n "checking for $ac_word... " >&6; } 10425 if ${ac_cv_path_RM+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427 else 10428 case $RM in 10429 [\\/]* | ?:[\\/]*) 10430 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10431 ;; 10432 *) 10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10434 for as_dir in $PATH 10435 do 10436 IFS=$as_save_IFS 10437 test -z "$as_dir" && as_dir=. 10438 for ac_exec_ext in '' $ac_executable_extensions; do 10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10440 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10442 break 2 10443 fi 10444 done 10445 done 10446 IFS=$as_save_IFS 10447 10448 ;; 10449 esac 10450 fi 10451 RM=$ac_cv_path_RM 10452 if test -n "$RM"; then 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10454 $as_echo "$RM" >&6; } 10455 else 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10457 $as_echo "no" >&6; } 10458 fi 10459 10460 10461 if test "x$RM" = x; then 10462 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10463 fi 10464 else 10465 # Otherwise we believe it is a complete path. Use it as it is. 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10467 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10469 $as_echo_n "checking for RM... " >&6; } 10470 if test ! -x "$tool_specified"; then 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10472 $as_echo "not found" >&6; } 10473 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10474 fi 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10476 $as_echo "$tool_specified" >&6; } 10477 fi 10478 fi 10479 fi 10480 10481 fi 10482 10483 10484 10485 if test "x$RM" = x; then 10486 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10487 fi 10488 10489 10490 10491 10492 10493 # Publish this variable in the help. 10494 10495 10496 if [ -z "${RMDIR+x}" ]; then 10497 # The variable is not set by user, try to locate tool using the code snippet 10498 for ac_prog in rmdir 10499 do 10500 # Extract the first word of "$ac_prog", so it can be a program name with args. 10501 set dummy $ac_prog; ac_word=$2 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10503 $as_echo_n "checking for $ac_word... " >&6; } 10504 if ${ac_cv_path_RMDIR+:} false; then : 10505 $as_echo_n "(cached) " >&6 10506 else 10507 case $RMDIR in 10508 [\\/]* | ?:[\\/]*) 10509 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10510 ;; 10511 *) 10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10513 for as_dir in $PATH 10514 do 10515 IFS=$as_save_IFS 10516 test -z "$as_dir" && as_dir=. 10517 for ac_exec_ext in '' $ac_executable_extensions; do 10518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10519 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10521 break 2 10522 fi 10523 done 10524 done 10525 IFS=$as_save_IFS 10526 10527 ;; 10528 esac 10529 fi 10530 RMDIR=$ac_cv_path_RMDIR 10531 if test -n "$RMDIR"; then 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10533 $as_echo "$RMDIR" >&6; } 10534 else 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10536 $as_echo "no" >&6; } 10537 fi 10538 10539 10540 test -n "$RMDIR" && break 10541 done 10542 10543 else 10544 # The variable is set, but is it from the command line or the environment? 10545 10546 # Try to remove the string !RMDIR! from our list. 10547 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10548 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10549 # If it failed, the variable was not from the command line. Ignore it, 10550 # but warn the user (except for BASH, which is always set by the calling BASH). 10551 if test "xRMDIR" != xBASH; then 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10553 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10554 fi 10555 # Try to locate tool using the code snippet 10556 for ac_prog in rmdir 10557 do 10558 # Extract the first word of "$ac_prog", so it can be a program name with args. 10559 set dummy $ac_prog; ac_word=$2 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10561 $as_echo_n "checking for $ac_word... " >&6; } 10562 if ${ac_cv_path_RMDIR+:} false; then : 10563 $as_echo_n "(cached) " >&6 10564 else 10565 case $RMDIR in 10566 [\\/]* | ?:[\\/]*) 10567 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10568 ;; 10569 *) 10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10571 for as_dir in $PATH 10572 do 10573 IFS=$as_save_IFS 10574 test -z "$as_dir" && as_dir=. 10575 for ac_exec_ext in '' $ac_executable_extensions; do 10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10577 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10579 break 2 10580 fi 10581 done 10582 done 10583 IFS=$as_save_IFS 10584 10585 ;; 10586 esac 10587 fi 10588 RMDIR=$ac_cv_path_RMDIR 10589 if test -n "$RMDIR"; then 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10591 $as_echo "$RMDIR" >&6; } 10592 else 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10594 $as_echo "no" >&6; } 10595 fi 10596 10597 10598 test -n "$RMDIR" && break 10599 done 10600 10601 else 10602 # If it succeeded, then it was overridden by the user. We will use it 10603 # for the tool. 10604 10605 # First remove it from the list of overridden variables, so we can test 10606 # for unknown variables in the end. 10607 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10608 10609 # Check if we try to supply an empty value 10610 if test "x$RMDIR" = x; then 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10612 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10614 $as_echo_n "checking for RMDIR... " >&6; } 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10616 $as_echo "disabled" >&6; } 10617 else 10618 # Check if the provided tool contains a complete path. 10619 tool_specified="$RMDIR" 10620 tool_basename="${tool_specified##*/}" 10621 if test "x$tool_basename" = "x$tool_specified"; then 10622 # A command without a complete path is provided, search $PATH. 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10624 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10625 # Extract the first word of "$tool_basename", so it can be a program name with args. 10626 set dummy $tool_basename; ac_word=$2 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10628 $as_echo_n "checking for $ac_word... " >&6; } 10629 if ${ac_cv_path_RMDIR+:} false; then : 10630 $as_echo_n "(cached) " >&6 10631 else 10632 case $RMDIR in 10633 [\\/]* | ?:[\\/]*) 10634 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10635 ;; 10636 *) 10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10638 for as_dir in $PATH 10639 do 10640 IFS=$as_save_IFS 10641 test -z "$as_dir" && as_dir=. 10642 for ac_exec_ext in '' $ac_executable_extensions; do 10643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10644 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10646 break 2 10647 fi 10648 done 10649 done 10650 IFS=$as_save_IFS 10651 10652 ;; 10653 esac 10654 fi 10655 RMDIR=$ac_cv_path_RMDIR 10656 if test -n "$RMDIR"; then 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10658 $as_echo "$RMDIR" >&6; } 10659 else 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10661 $as_echo "no" >&6; } 10662 fi 10663 10664 10665 if test "x$RMDIR" = x; then 10666 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10667 fi 10668 else 10669 # Otherwise we believe it is a complete path. Use it as it is. 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10671 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10673 $as_echo_n "checking for RMDIR... " >&6; } 10674 if test ! -x "$tool_specified"; then 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10676 $as_echo "not found" >&6; } 10677 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10678 fi 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10680 $as_echo "$tool_specified" >&6; } 10681 fi 10682 fi 10683 fi 10684 10685 fi 10686 10687 10688 10689 if test "x$RMDIR" = x; then 10690 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10691 fi 10692 10693 10694 10695 10696 10697 # Publish this variable in the help. 10698 10699 10700 if [ -z "${SH+x}" ]; then 10701 # The variable is not set by user, try to locate tool using the code snippet 10702 for ac_prog in sh 10703 do 10704 # Extract the first word of "$ac_prog", so it can be a program name with args. 10705 set dummy $ac_prog; ac_word=$2 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10707 $as_echo_n "checking for $ac_word... " >&6; } 10708 if ${ac_cv_path_SH+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710 else 10711 case $SH in 10712 [\\/]* | ?:[\\/]*) 10713 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10714 ;; 10715 *) 10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10717 for as_dir in $PATH 10718 do 10719 IFS=$as_save_IFS 10720 test -z "$as_dir" && as_dir=. 10721 for ac_exec_ext in '' $ac_executable_extensions; do 10722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10723 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10725 break 2 10726 fi 10727 done 10728 done 10729 IFS=$as_save_IFS 10730 10731 ;; 10732 esac 10733 fi 10734 SH=$ac_cv_path_SH 10735 if test -n "$SH"; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10737 $as_echo "$SH" >&6; } 10738 else 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10740 $as_echo "no" >&6; } 10741 fi 10742 10743 10744 test -n "$SH" && break 10745 done 10746 10747 else 10748 # The variable is set, but is it from the command line or the environment? 10749 10750 # Try to remove the string !SH! from our list. 10751 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10752 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10753 # If it failed, the variable was not from the command line. Ignore it, 10754 # but warn the user (except for BASH, which is always set by the calling BASH). 10755 if test "xSH" != xBASH; then 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10757 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10758 fi 10759 # Try to locate tool using the code snippet 10760 for ac_prog in sh 10761 do 10762 # Extract the first word of "$ac_prog", so it can be a program name with args. 10763 set dummy $ac_prog; ac_word=$2 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10765 $as_echo_n "checking for $ac_word... " >&6; } 10766 if ${ac_cv_path_SH+:} false; then : 10767 $as_echo_n "(cached) " >&6 10768 else 10769 case $SH in 10770 [\\/]* | ?:[\\/]*) 10771 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10772 ;; 10773 *) 10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10775 for as_dir in $PATH 10776 do 10777 IFS=$as_save_IFS 10778 test -z "$as_dir" && as_dir=. 10779 for ac_exec_ext in '' $ac_executable_extensions; do 10780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10781 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10783 break 2 10784 fi 10785 done 10786 done 10787 IFS=$as_save_IFS 10788 10789 ;; 10790 esac 10791 fi 10792 SH=$ac_cv_path_SH 10793 if test -n "$SH"; then 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10795 $as_echo "$SH" >&6; } 10796 else 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10798 $as_echo "no" >&6; } 10799 fi 10800 10801 10802 test -n "$SH" && break 10803 done 10804 10805 else 10806 # If it succeeded, then it was overridden by the user. We will use it 10807 # for the tool. 10808 10809 # First remove it from the list of overridden variables, so we can test 10810 # for unknown variables in the end. 10811 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10812 10813 # Check if we try to supply an empty value 10814 if test "x$SH" = x; then 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10816 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10818 $as_echo_n "checking for SH... " >&6; } 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10820 $as_echo "disabled" >&6; } 10821 else 10822 # Check if the provided tool contains a complete path. 10823 tool_specified="$SH" 10824 tool_basename="${tool_specified##*/}" 10825 if test "x$tool_basename" = "x$tool_specified"; then 10826 # A command without a complete path is provided, search $PATH. 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10828 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10829 # Extract the first word of "$tool_basename", so it can be a program name with args. 10830 set dummy $tool_basename; ac_word=$2 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10832 $as_echo_n "checking for $ac_word... " >&6; } 10833 if ${ac_cv_path_SH+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835 else 10836 case $SH in 10837 [\\/]* | ?:[\\/]*) 10838 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10839 ;; 10840 *) 10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10842 for as_dir in $PATH 10843 do 10844 IFS=$as_save_IFS 10845 test -z "$as_dir" && as_dir=. 10846 for ac_exec_ext in '' $ac_executable_extensions; do 10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10848 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10850 break 2 10851 fi 10852 done 10853 done 10854 IFS=$as_save_IFS 10855 10856 ;; 10857 esac 10858 fi 10859 SH=$ac_cv_path_SH 10860 if test -n "$SH"; then 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10862 $as_echo "$SH" >&6; } 10863 else 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10865 $as_echo "no" >&6; } 10866 fi 10867 10868 10869 if test "x$SH" = x; then 10870 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10871 fi 10872 else 10873 # Otherwise we believe it is a complete path. Use it as it is. 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10875 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10877 $as_echo_n "checking for SH... " >&6; } 10878 if test ! -x "$tool_specified"; then 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10880 $as_echo "not found" >&6; } 10881 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10882 fi 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10884 $as_echo "$tool_specified" >&6; } 10885 fi 10886 fi 10887 fi 10888 10889 fi 10890 10891 10892 10893 if test "x$SH" = x; then 10894 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10895 fi 10896 10897 10898 10899 10900 10901 # Publish this variable in the help. 10902 10903 10904 if [ -z "${SORT+x}" ]; then 10905 # The variable is not set by user, try to locate tool using the code snippet 10906 for ac_prog in sort 10907 do 10908 # Extract the first word of "$ac_prog", so it can be a program name with args. 10909 set dummy $ac_prog; ac_word=$2 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10911 $as_echo_n "checking for $ac_word... " >&6; } 10912 if ${ac_cv_path_SORT+:} false; then : 10913 $as_echo_n "(cached) " >&6 10914 else 10915 case $SORT in 10916 [\\/]* | ?:[\\/]*) 10917 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10918 ;; 10919 *) 10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10921 for as_dir in $PATH 10922 do 10923 IFS=$as_save_IFS 10924 test -z "$as_dir" && as_dir=. 10925 for ac_exec_ext in '' $ac_executable_extensions; do 10926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10927 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10929 break 2 10930 fi 10931 done 10932 done 10933 IFS=$as_save_IFS 10934 10935 ;; 10936 esac 10937 fi 10938 SORT=$ac_cv_path_SORT 10939 if test -n "$SORT"; then 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10941 $as_echo "$SORT" >&6; } 10942 else 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10944 $as_echo "no" >&6; } 10945 fi 10946 10947 10948 test -n "$SORT" && break 10949 done 10950 10951 else 10952 # The variable is set, but is it from the command line or the environment? 10953 10954 # Try to remove the string !SORT! from our list. 10955 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10956 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10957 # If it failed, the variable was not from the command line. Ignore it, 10958 # but warn the user (except for BASH, which is always set by the calling BASH). 10959 if test "xSORT" != xBASH; then 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10961 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10962 fi 10963 # Try to locate tool using the code snippet 10964 for ac_prog in sort 10965 do 10966 # Extract the first word of "$ac_prog", so it can be a program name with args. 10967 set dummy $ac_prog; ac_word=$2 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10969 $as_echo_n "checking for $ac_word... " >&6; } 10970 if ${ac_cv_path_SORT+:} false; then : 10971 $as_echo_n "(cached) " >&6 10972 else 10973 case $SORT in 10974 [\\/]* | ?:[\\/]*) 10975 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10976 ;; 10977 *) 10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10979 for as_dir in $PATH 10980 do 10981 IFS=$as_save_IFS 10982 test -z "$as_dir" && as_dir=. 10983 for ac_exec_ext in '' $ac_executable_extensions; do 10984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10985 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10987 break 2 10988 fi 10989 done 10990 done 10991 IFS=$as_save_IFS 10992 10993 ;; 10994 esac 10995 fi 10996 SORT=$ac_cv_path_SORT 10997 if test -n "$SORT"; then 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10999 $as_echo "$SORT" >&6; } 11000 else 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11002 $as_echo "no" >&6; } 11003 fi 11004 11005 11006 test -n "$SORT" && break 11007 done 11008 11009 else 11010 # If it succeeded, then it was overridden by the user. We will use it 11011 # for the tool. 11012 11013 # First remove it from the list of overridden variables, so we can test 11014 # for unknown variables in the end. 11015 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11016 11017 # Check if we try to supply an empty value 11018 if test "x$SORT" = x; then 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11020 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11022 $as_echo_n "checking for SORT... " >&6; } 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11024 $as_echo "disabled" >&6; } 11025 else 11026 # Check if the provided tool contains a complete path. 11027 tool_specified="$SORT" 11028 tool_basename="${tool_specified##*/}" 11029 if test "x$tool_basename" = "x$tool_specified"; then 11030 # A command without a complete path is provided, search $PATH. 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11032 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11033 # Extract the first word of "$tool_basename", so it can be a program name with args. 11034 set dummy $tool_basename; ac_word=$2 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11036 $as_echo_n "checking for $ac_word... " >&6; } 11037 if ${ac_cv_path_SORT+:} false; then : 11038 $as_echo_n "(cached) " >&6 11039 else 11040 case $SORT in 11041 [\\/]* | ?:[\\/]*) 11042 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11043 ;; 11044 *) 11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11046 for as_dir in $PATH 11047 do 11048 IFS=$as_save_IFS 11049 test -z "$as_dir" && as_dir=. 11050 for ac_exec_ext in '' $ac_executable_extensions; do 11051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11052 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11054 break 2 11055 fi 11056 done 11057 done 11058 IFS=$as_save_IFS 11059 11060 ;; 11061 esac 11062 fi 11063 SORT=$ac_cv_path_SORT 11064 if test -n "$SORT"; then 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11066 $as_echo "$SORT" >&6; } 11067 else 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11069 $as_echo "no" >&6; } 11070 fi 11071 11072 11073 if test "x$SORT" = x; then 11074 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11075 fi 11076 else 11077 # Otherwise we believe it is a complete path. Use it as it is. 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11079 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11081 $as_echo_n "checking for SORT... " >&6; } 11082 if test ! -x "$tool_specified"; then 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11084 $as_echo "not found" >&6; } 11085 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11086 fi 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11088 $as_echo "$tool_specified" >&6; } 11089 fi 11090 fi 11091 fi 11092 11093 fi 11094 11095 11096 11097 if test "x$SORT" = x; then 11098 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11099 fi 11100 11101 11102 11103 11104 11105 # Publish this variable in the help. 11106 11107 11108 if [ -z "${TAIL+x}" ]; then 11109 # The variable is not set by user, try to locate tool using the code snippet 11110 for ac_prog in tail 11111 do 11112 # Extract the first word of "$ac_prog", so it can be a program name with args. 11113 set dummy $ac_prog; ac_word=$2 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11115 $as_echo_n "checking for $ac_word... " >&6; } 11116 if ${ac_cv_path_TAIL+:} false; then : 11117 $as_echo_n "(cached) " >&6 11118 else 11119 case $TAIL in 11120 [\\/]* | ?:[\\/]*) 11121 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11122 ;; 11123 *) 11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11125 for as_dir in $PATH 11126 do 11127 IFS=$as_save_IFS 11128 test -z "$as_dir" && as_dir=. 11129 for ac_exec_ext in '' $ac_executable_extensions; do 11130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11131 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11133 break 2 11134 fi 11135 done 11136 done 11137 IFS=$as_save_IFS 11138 11139 ;; 11140 esac 11141 fi 11142 TAIL=$ac_cv_path_TAIL 11143 if test -n "$TAIL"; then 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11145 $as_echo "$TAIL" >&6; } 11146 else 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11148 $as_echo "no" >&6; } 11149 fi 11150 11151 11152 test -n "$TAIL" && break 11153 done 11154 11155 else 11156 # The variable is set, but is it from the command line or the environment? 11157 11158 # Try to remove the string !TAIL! from our list. 11159 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11160 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11161 # If it failed, the variable was not from the command line. Ignore it, 11162 # but warn the user (except for BASH, which is always set by the calling BASH). 11163 if test "xTAIL" != xBASH; then 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11165 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11166 fi 11167 # Try to locate tool using the code snippet 11168 for ac_prog in tail 11169 do 11170 # Extract the first word of "$ac_prog", so it can be a program name with args. 11171 set dummy $ac_prog; ac_word=$2 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11173 $as_echo_n "checking for $ac_word... " >&6; } 11174 if ${ac_cv_path_TAIL+:} false; then : 11175 $as_echo_n "(cached) " >&6 11176 else 11177 case $TAIL in 11178 [\\/]* | ?:[\\/]*) 11179 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11180 ;; 11181 *) 11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11183 for as_dir in $PATH 11184 do 11185 IFS=$as_save_IFS 11186 test -z "$as_dir" && as_dir=. 11187 for ac_exec_ext in '' $ac_executable_extensions; do 11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11189 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11191 break 2 11192 fi 11193 done 11194 done 11195 IFS=$as_save_IFS 11196 11197 ;; 11198 esac 11199 fi 11200 TAIL=$ac_cv_path_TAIL 11201 if test -n "$TAIL"; then 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11203 $as_echo "$TAIL" >&6; } 11204 else 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11206 $as_echo "no" >&6; } 11207 fi 11208 11209 11210 test -n "$TAIL" && break 11211 done 11212 11213 else 11214 # If it succeeded, then it was overridden by the user. We will use it 11215 # for the tool. 11216 11217 # First remove it from the list of overridden variables, so we can test 11218 # for unknown variables in the end. 11219 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11220 11221 # Check if we try to supply an empty value 11222 if test "x$TAIL" = x; then 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11224 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11226 $as_echo_n "checking for TAIL... " >&6; } 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11228 $as_echo "disabled" >&6; } 11229 else 11230 # Check if the provided tool contains a complete path. 11231 tool_specified="$TAIL" 11232 tool_basename="${tool_specified##*/}" 11233 if test "x$tool_basename" = "x$tool_specified"; then 11234 # A command without a complete path is provided, search $PATH. 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11236 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11237 # Extract the first word of "$tool_basename", so it can be a program name with args. 11238 set dummy $tool_basename; ac_word=$2 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11240 $as_echo_n "checking for $ac_word... " >&6; } 11241 if ${ac_cv_path_TAIL+:} false; then : 11242 $as_echo_n "(cached) " >&6 11243 else 11244 case $TAIL in 11245 [\\/]* | ?:[\\/]*) 11246 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11247 ;; 11248 *) 11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11250 for as_dir in $PATH 11251 do 11252 IFS=$as_save_IFS 11253 test -z "$as_dir" && as_dir=. 11254 for ac_exec_ext in '' $ac_executable_extensions; do 11255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11256 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11258 break 2 11259 fi 11260 done 11261 done 11262 IFS=$as_save_IFS 11263 11264 ;; 11265 esac 11266 fi 11267 TAIL=$ac_cv_path_TAIL 11268 if test -n "$TAIL"; then 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11270 $as_echo "$TAIL" >&6; } 11271 else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11273 $as_echo "no" >&6; } 11274 fi 11275 11276 11277 if test "x$TAIL" = x; then 11278 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11279 fi 11280 else 11281 # Otherwise we believe it is a complete path. Use it as it is. 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11283 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11285 $as_echo_n "checking for TAIL... " >&6; } 11286 if test ! -x "$tool_specified"; then 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11288 $as_echo "not found" >&6; } 11289 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11290 fi 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11292 $as_echo "$tool_specified" >&6; } 11293 fi 11294 fi 11295 fi 11296 11297 fi 11298 11299 11300 11301 if test "x$TAIL" = x; then 11302 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11303 fi 11304 11305 11306 11307 11308 11309 # Publish this variable in the help. 11310 11311 11312 if [ -z "${TAR+x}" ]; then 11313 # The variable is not set by user, try to locate tool using the code snippet 11314 for ac_prog in gtar tar 11315 do 11316 # Extract the first word of "$ac_prog", so it can be a program name with args. 11317 set dummy $ac_prog; ac_word=$2 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11319 $as_echo_n "checking for $ac_word... " >&6; } 11320 if ${ac_cv_path_TAR+:} false; then : 11321 $as_echo_n "(cached) " >&6 11322 else 11323 case $TAR in 11324 [\\/]* | ?:[\\/]*) 11325 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11326 ;; 11327 *) 11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11329 for as_dir in $PATH 11330 do 11331 IFS=$as_save_IFS 11332 test -z "$as_dir" && as_dir=. 11333 for ac_exec_ext in '' $ac_executable_extensions; do 11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11335 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11337 break 2 11338 fi 11339 done 11340 done 11341 IFS=$as_save_IFS 11342 11343 ;; 11344 esac 11345 fi 11346 TAR=$ac_cv_path_TAR 11347 if test -n "$TAR"; then 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11349 $as_echo "$TAR" >&6; } 11350 else 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11352 $as_echo "no" >&6; } 11353 fi 11354 11355 11356 test -n "$TAR" && break 11357 done 11358 11359 else 11360 # The variable is set, but is it from the command line or the environment? 11361 11362 # Try to remove the string !TAR! from our list. 11363 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11364 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11365 # If it failed, the variable was not from the command line. Ignore it, 11366 # but warn the user (except for BASH, which is always set by the calling BASH). 11367 if test "xTAR" != xBASH; then 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11369 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11370 fi 11371 # Try to locate tool using the code snippet 11372 for ac_prog in gtar tar 11373 do 11374 # Extract the first word of "$ac_prog", so it can be a program name with args. 11375 set dummy $ac_prog; ac_word=$2 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11377 $as_echo_n "checking for $ac_word... " >&6; } 11378 if ${ac_cv_path_TAR+:} false; then : 11379 $as_echo_n "(cached) " >&6 11380 else 11381 case $TAR in 11382 [\\/]* | ?:[\\/]*) 11383 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11384 ;; 11385 *) 11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11387 for as_dir in $PATH 11388 do 11389 IFS=$as_save_IFS 11390 test -z "$as_dir" && as_dir=. 11391 for ac_exec_ext in '' $ac_executable_extensions; do 11392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11393 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11395 break 2 11396 fi 11397 done 11398 done 11399 IFS=$as_save_IFS 11400 11401 ;; 11402 esac 11403 fi 11404 TAR=$ac_cv_path_TAR 11405 if test -n "$TAR"; then 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11407 $as_echo "$TAR" >&6; } 11408 else 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11410 $as_echo "no" >&6; } 11411 fi 11412 11413 11414 test -n "$TAR" && break 11415 done 11416 11417 else 11418 # If it succeeded, then it was overridden by the user. We will use it 11419 # for the tool. 11420 11421 # First remove it from the list of overridden variables, so we can test 11422 # for unknown variables in the end. 11423 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11424 11425 # Check if we try to supply an empty value 11426 if test "x$TAR" = x; then 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11428 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11430 $as_echo_n "checking for TAR... " >&6; } 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11432 $as_echo "disabled" >&6; } 11433 else 11434 # Check if the provided tool contains a complete path. 11435 tool_specified="$TAR" 11436 tool_basename="${tool_specified##*/}" 11437 if test "x$tool_basename" = "x$tool_specified"; then 11438 # A command without a complete path is provided, search $PATH. 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11440 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11441 # Extract the first word of "$tool_basename", so it can be a program name with args. 11442 set dummy $tool_basename; ac_word=$2 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11444 $as_echo_n "checking for $ac_word... " >&6; } 11445 if ${ac_cv_path_TAR+:} false; then : 11446 $as_echo_n "(cached) " >&6 11447 else 11448 case $TAR in 11449 [\\/]* | ?:[\\/]*) 11450 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11451 ;; 11452 *) 11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11454 for as_dir in $PATH 11455 do 11456 IFS=$as_save_IFS 11457 test -z "$as_dir" && as_dir=. 11458 for ac_exec_ext in '' $ac_executable_extensions; do 11459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11460 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11462 break 2 11463 fi 11464 done 11465 done 11466 IFS=$as_save_IFS 11467 11468 ;; 11469 esac 11470 fi 11471 TAR=$ac_cv_path_TAR 11472 if test -n "$TAR"; then 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11474 $as_echo "$TAR" >&6; } 11475 else 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11477 $as_echo "no" >&6; } 11478 fi 11479 11480 11481 if test "x$TAR" = x; then 11482 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11483 fi 11484 else 11485 # Otherwise we believe it is a complete path. Use it as it is. 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11487 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11489 $as_echo_n "checking for TAR... " >&6; } 11490 if test ! -x "$tool_specified"; then 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11492 $as_echo "not found" >&6; } 11493 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11494 fi 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11496 $as_echo "$tool_specified" >&6; } 11497 fi 11498 fi 11499 fi 11500 11501 fi 11502 11503 11504 11505 if test "x$TAR" = x; then 11506 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11507 fi 11508 11509 11510 11511 11512 11513 # Publish this variable in the help. 11514 11515 11516 if [ -z "${TEE+x}" ]; then 11517 # The variable is not set by user, try to locate tool using the code snippet 11518 for ac_prog in tee 11519 do 11520 # Extract the first word of "$ac_prog", so it can be a program name with args. 11521 set dummy $ac_prog; ac_word=$2 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11523 $as_echo_n "checking for $ac_word... " >&6; } 11524 if ${ac_cv_path_TEE+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526 else 11527 case $TEE in 11528 [\\/]* | ?:[\\/]*) 11529 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11530 ;; 11531 *) 11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11533 for as_dir in $PATH 11534 do 11535 IFS=$as_save_IFS 11536 test -z "$as_dir" && as_dir=. 11537 for ac_exec_ext in '' $ac_executable_extensions; do 11538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11539 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11541 break 2 11542 fi 11543 done 11544 done 11545 IFS=$as_save_IFS 11546 11547 ;; 11548 esac 11549 fi 11550 TEE=$ac_cv_path_TEE 11551 if test -n "$TEE"; then 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11553 $as_echo "$TEE" >&6; } 11554 else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11556 $as_echo "no" >&6; } 11557 fi 11558 11559 11560 test -n "$TEE" && break 11561 done 11562 11563 else 11564 # The variable is set, but is it from the command line or the environment? 11565 11566 # Try to remove the string !TEE! from our list. 11567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11569 # If it failed, the variable was not from the command line. Ignore it, 11570 # but warn the user (except for BASH, which is always set by the calling BASH). 11571 if test "xTEE" != xBASH; then 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11573 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11574 fi 11575 # Try to locate tool using the code snippet 11576 for ac_prog in tee 11577 do 11578 # Extract the first word of "$ac_prog", so it can be a program name with args. 11579 set dummy $ac_prog; ac_word=$2 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11581 $as_echo_n "checking for $ac_word... " >&6; } 11582 if ${ac_cv_path_TEE+:} false; then : 11583 $as_echo_n "(cached) " >&6 11584 else 11585 case $TEE in 11586 [\\/]* | ?:[\\/]*) 11587 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11588 ;; 11589 *) 11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11591 for as_dir in $PATH 11592 do 11593 IFS=$as_save_IFS 11594 test -z "$as_dir" && as_dir=. 11595 for ac_exec_ext in '' $ac_executable_extensions; do 11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11597 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11599 break 2 11600 fi 11601 done 11602 done 11603 IFS=$as_save_IFS 11604 11605 ;; 11606 esac 11607 fi 11608 TEE=$ac_cv_path_TEE 11609 if test -n "$TEE"; then 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11611 $as_echo "$TEE" >&6; } 11612 else 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11614 $as_echo "no" >&6; } 11615 fi 11616 11617 11618 test -n "$TEE" && break 11619 done 11620 11621 else 11622 # If it succeeded, then it was overridden by the user. We will use it 11623 # for the tool. 11624 11625 # First remove it from the list of overridden variables, so we can test 11626 # for unknown variables in the end. 11627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11628 11629 # Check if we try to supply an empty value 11630 if test "x$TEE" = x; then 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11632 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11634 $as_echo_n "checking for TEE... " >&6; } 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11636 $as_echo "disabled" >&6; } 11637 else 11638 # Check if the provided tool contains a complete path. 11639 tool_specified="$TEE" 11640 tool_basename="${tool_specified##*/}" 11641 if test "x$tool_basename" = "x$tool_specified"; then 11642 # A command without a complete path is provided, search $PATH. 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11644 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11645 # Extract the first word of "$tool_basename", so it can be a program name with args. 11646 set dummy $tool_basename; ac_word=$2 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11648 $as_echo_n "checking for $ac_word... " >&6; } 11649 if ${ac_cv_path_TEE+:} false; then : 11650 $as_echo_n "(cached) " >&6 11651 else 11652 case $TEE in 11653 [\\/]* | ?:[\\/]*) 11654 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11655 ;; 11656 *) 11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11658 for as_dir in $PATH 11659 do 11660 IFS=$as_save_IFS 11661 test -z "$as_dir" && as_dir=. 11662 for ac_exec_ext in '' $ac_executable_extensions; do 11663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11664 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11666 break 2 11667 fi 11668 done 11669 done 11670 IFS=$as_save_IFS 11671 11672 ;; 11673 esac 11674 fi 11675 TEE=$ac_cv_path_TEE 11676 if test -n "$TEE"; then 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11678 $as_echo "$TEE" >&6; } 11679 else 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11681 $as_echo "no" >&6; } 11682 fi 11683 11684 11685 if test "x$TEE" = x; then 11686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11687 fi 11688 else 11689 # Otherwise we believe it is a complete path. Use it as it is. 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11691 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11693 $as_echo_n "checking for TEE... " >&6; } 11694 if test ! -x "$tool_specified"; then 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11696 $as_echo "not found" >&6; } 11697 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11698 fi 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11700 $as_echo "$tool_specified" >&6; } 11701 fi 11702 fi 11703 fi 11704 11705 fi 11706 11707 11708 11709 if test "x$TEE" = x; then 11710 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11711 fi 11712 11713 11714 11715 11716 11717 # Publish this variable in the help. 11718 11719 11720 if [ -z "${TOUCH+x}" ]; then 11721 # The variable is not set by user, try to locate tool using the code snippet 11722 for ac_prog in touch 11723 do 11724 # Extract the first word of "$ac_prog", so it can be a program name with args. 11725 set dummy $ac_prog; ac_word=$2 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11727 $as_echo_n "checking for $ac_word... " >&6; } 11728 if ${ac_cv_path_TOUCH+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730 else 11731 case $TOUCH in 11732 [\\/]* | ?:[\\/]*) 11733 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11734 ;; 11735 *) 11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11737 for as_dir in $PATH 11738 do 11739 IFS=$as_save_IFS 11740 test -z "$as_dir" && as_dir=. 11741 for ac_exec_ext in '' $ac_executable_extensions; do 11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11743 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11745 break 2 11746 fi 11747 done 11748 done 11749 IFS=$as_save_IFS 11750 11751 ;; 11752 esac 11753 fi 11754 TOUCH=$ac_cv_path_TOUCH 11755 if test -n "$TOUCH"; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11757 $as_echo "$TOUCH" >&6; } 11758 else 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11760 $as_echo "no" >&6; } 11761 fi 11762 11763 11764 test -n "$TOUCH" && break 11765 done 11766 11767 else 11768 # The variable is set, but is it from the command line or the environment? 11769 11770 # Try to remove the string !TOUCH! from our list. 11771 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11772 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11773 # If it failed, the variable was not from the command line. Ignore it, 11774 # but warn the user (except for BASH, which is always set by the calling BASH). 11775 if test "xTOUCH" != xBASH; then 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11777 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11778 fi 11779 # Try to locate tool using the code snippet 11780 for ac_prog in touch 11781 do 11782 # Extract the first word of "$ac_prog", so it can be a program name with args. 11783 set dummy $ac_prog; ac_word=$2 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785 $as_echo_n "checking for $ac_word... " >&6; } 11786 if ${ac_cv_path_TOUCH+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788 else 11789 case $TOUCH in 11790 [\\/]* | ?:[\\/]*) 11791 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11792 ;; 11793 *) 11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11795 for as_dir in $PATH 11796 do 11797 IFS=$as_save_IFS 11798 test -z "$as_dir" && as_dir=. 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11801 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11803 break 2 11804 fi 11805 done 11806 done 11807 IFS=$as_save_IFS 11808 11809 ;; 11810 esac 11811 fi 11812 TOUCH=$ac_cv_path_TOUCH 11813 if test -n "$TOUCH"; then 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11815 $as_echo "$TOUCH" >&6; } 11816 else 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11818 $as_echo "no" >&6; } 11819 fi 11820 11821 11822 test -n "$TOUCH" && break 11823 done 11824 11825 else 11826 # If it succeeded, then it was overridden by the user. We will use it 11827 # for the tool. 11828 11829 # First remove it from the list of overridden variables, so we can test 11830 # for unknown variables in the end. 11831 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11832 11833 # Check if we try to supply an empty value 11834 if test "x$TOUCH" = x; then 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11836 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11838 $as_echo_n "checking for TOUCH... " >&6; } 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11840 $as_echo "disabled" >&6; } 11841 else 11842 # Check if the provided tool contains a complete path. 11843 tool_specified="$TOUCH" 11844 tool_basename="${tool_specified##*/}" 11845 if test "x$tool_basename" = "x$tool_specified"; then 11846 # A command without a complete path is provided, search $PATH. 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11848 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11849 # Extract the first word of "$tool_basename", so it can be a program name with args. 11850 set dummy $tool_basename; ac_word=$2 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11852 $as_echo_n "checking for $ac_word... " >&6; } 11853 if ${ac_cv_path_TOUCH+:} false; then : 11854 $as_echo_n "(cached) " >&6 11855 else 11856 case $TOUCH in 11857 [\\/]* | ?:[\\/]*) 11858 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11859 ;; 11860 *) 11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11862 for as_dir in $PATH 11863 do 11864 IFS=$as_save_IFS 11865 test -z "$as_dir" && as_dir=. 11866 for ac_exec_ext in '' $ac_executable_extensions; do 11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11868 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11870 break 2 11871 fi 11872 done 11873 done 11874 IFS=$as_save_IFS 11875 11876 ;; 11877 esac 11878 fi 11879 TOUCH=$ac_cv_path_TOUCH 11880 if test -n "$TOUCH"; then 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11882 $as_echo "$TOUCH" >&6; } 11883 else 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11885 $as_echo "no" >&6; } 11886 fi 11887 11888 11889 if test "x$TOUCH" = x; then 11890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11891 fi 11892 else 11893 # Otherwise we believe it is a complete path. Use it as it is. 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11895 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11897 $as_echo_n "checking for TOUCH... " >&6; } 11898 if test ! -x "$tool_specified"; then 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11900 $as_echo "not found" >&6; } 11901 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11902 fi 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11904 $as_echo "$tool_specified" >&6; } 11905 fi 11906 fi 11907 fi 11908 11909 fi 11910 11911 11912 11913 if test "x$TOUCH" = x; then 11914 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11915 fi 11916 11917 11918 11919 11920 11921 # Publish this variable in the help. 11922 11923 11924 if [ -z "${TR+x}" ]; then 11925 # The variable is not set by user, try to locate tool using the code snippet 11926 for ac_prog in tr 11927 do 11928 # Extract the first word of "$ac_prog", so it can be a program name with args. 11929 set dummy $ac_prog; ac_word=$2 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11931 $as_echo_n "checking for $ac_word... " >&6; } 11932 if ${ac_cv_path_TR+:} false; then : 11933 $as_echo_n "(cached) " >&6 11934 else 11935 case $TR in 11936 [\\/]* | ?:[\\/]*) 11937 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11938 ;; 11939 *) 11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11941 for as_dir in $PATH 11942 do 11943 IFS=$as_save_IFS 11944 test -z "$as_dir" && as_dir=. 11945 for ac_exec_ext in '' $ac_executable_extensions; do 11946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11947 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11949 break 2 11950 fi 11951 done 11952 done 11953 IFS=$as_save_IFS 11954 11955 ;; 11956 esac 11957 fi 11958 TR=$ac_cv_path_TR 11959 if test -n "$TR"; then 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11961 $as_echo "$TR" >&6; } 11962 else 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11964 $as_echo "no" >&6; } 11965 fi 11966 11967 11968 test -n "$TR" && break 11969 done 11970 11971 else 11972 # The variable is set, but is it from the command line or the environment? 11973 11974 # Try to remove the string !TR! from our list. 11975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11977 # If it failed, the variable was not from the command line. Ignore it, 11978 # but warn the user (except for BASH, which is always set by the calling BASH). 11979 if test "xTR" != xBASH; then 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11981 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11982 fi 11983 # Try to locate tool using the code snippet 11984 for ac_prog in tr 11985 do 11986 # Extract the first word of "$ac_prog", so it can be a program name with args. 11987 set dummy $ac_prog; ac_word=$2 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11989 $as_echo_n "checking for $ac_word... " >&6; } 11990 if ${ac_cv_path_TR+:} false; then : 11991 $as_echo_n "(cached) " >&6 11992 else 11993 case $TR in 11994 [\\/]* | ?:[\\/]*) 11995 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11996 ;; 11997 *) 11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11999 for as_dir in $PATH 12000 do 12001 IFS=$as_save_IFS 12002 test -z "$as_dir" && as_dir=. 12003 for ac_exec_ext in '' $ac_executable_extensions; do 12004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12005 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12007 break 2 12008 fi 12009 done 12010 done 12011 IFS=$as_save_IFS 12012 12013 ;; 12014 esac 12015 fi 12016 TR=$ac_cv_path_TR 12017 if test -n "$TR"; then 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12019 $as_echo "$TR" >&6; } 12020 else 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12022 $as_echo "no" >&6; } 12023 fi 12024 12025 12026 test -n "$TR" && break 12027 done 12028 12029 else 12030 # If it succeeded, then it was overridden by the user. We will use it 12031 # for the tool. 12032 12033 # First remove it from the list of overridden variables, so we can test 12034 # for unknown variables in the end. 12035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12036 12037 # Check if we try to supply an empty value 12038 if test "x$TR" = x; then 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12040 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12042 $as_echo_n "checking for TR... " >&6; } 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12044 $as_echo "disabled" >&6; } 12045 else 12046 # Check if the provided tool contains a complete path. 12047 tool_specified="$TR" 12048 tool_basename="${tool_specified##*/}" 12049 if test "x$tool_basename" = "x$tool_specified"; then 12050 # A command without a complete path is provided, search $PATH. 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12052 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12053 # Extract the first word of "$tool_basename", so it can be a program name with args. 12054 set dummy $tool_basename; ac_word=$2 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12056 $as_echo_n "checking for $ac_word... " >&6; } 12057 if ${ac_cv_path_TR+:} false; then : 12058 $as_echo_n "(cached) " >&6 12059 else 12060 case $TR in 12061 [\\/]* | ?:[\\/]*) 12062 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12063 ;; 12064 *) 12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12066 for as_dir in $PATH 12067 do 12068 IFS=$as_save_IFS 12069 test -z "$as_dir" && as_dir=. 12070 for ac_exec_ext in '' $ac_executable_extensions; do 12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12072 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12074 break 2 12075 fi 12076 done 12077 done 12078 IFS=$as_save_IFS 12079 12080 ;; 12081 esac 12082 fi 12083 TR=$ac_cv_path_TR 12084 if test -n "$TR"; then 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12086 $as_echo "$TR" >&6; } 12087 else 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12089 $as_echo "no" >&6; } 12090 fi 12091 12092 12093 if test "x$TR" = x; then 12094 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12095 fi 12096 else 12097 # Otherwise we believe it is a complete path. Use it as it is. 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12099 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12101 $as_echo_n "checking for TR... " >&6; } 12102 if test ! -x "$tool_specified"; then 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12104 $as_echo "not found" >&6; } 12105 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12106 fi 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12108 $as_echo "$tool_specified" >&6; } 12109 fi 12110 fi 12111 fi 12112 12113 fi 12114 12115 12116 12117 if test "x$TR" = x; then 12118 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12119 fi 12120 12121 12122 12123 12124 12125 # Publish this variable in the help. 12126 12127 12128 if [ -z "${UNAME+x}" ]; then 12129 # The variable is not set by user, try to locate tool using the code snippet 12130 for ac_prog in uname 12131 do 12132 # Extract the first word of "$ac_prog", so it can be a program name with args. 12133 set dummy $ac_prog; ac_word=$2 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12135 $as_echo_n "checking for $ac_word... " >&6; } 12136 if ${ac_cv_path_UNAME+:} false; then : 12137 $as_echo_n "(cached) " >&6 12138 else 12139 case $UNAME in 12140 [\\/]* | ?:[\\/]*) 12141 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12142 ;; 12143 *) 12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12145 for as_dir in $PATH 12146 do 12147 IFS=$as_save_IFS 12148 test -z "$as_dir" && as_dir=. 12149 for ac_exec_ext in '' $ac_executable_extensions; do 12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12151 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12153 break 2 12154 fi 12155 done 12156 done 12157 IFS=$as_save_IFS 12158 12159 ;; 12160 esac 12161 fi 12162 UNAME=$ac_cv_path_UNAME 12163 if test -n "$UNAME"; then 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12165 $as_echo "$UNAME" >&6; } 12166 else 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12168 $as_echo "no" >&6; } 12169 fi 12170 12171 12172 test -n "$UNAME" && break 12173 done 12174 12175 else 12176 # The variable is set, but is it from the command line or the environment? 12177 12178 # Try to remove the string !UNAME! from our list. 12179 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12180 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12181 # If it failed, the variable was not from the command line. Ignore it, 12182 # but warn the user (except for BASH, which is always set by the calling BASH). 12183 if test "xUNAME" != xBASH; then 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12185 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12186 fi 12187 # Try to locate tool using the code snippet 12188 for ac_prog in uname 12189 do 12190 # Extract the first word of "$ac_prog", so it can be a program name with args. 12191 set dummy $ac_prog; ac_word=$2 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12193 $as_echo_n "checking for $ac_word... " >&6; } 12194 if ${ac_cv_path_UNAME+:} false; then : 12195 $as_echo_n "(cached) " >&6 12196 else 12197 case $UNAME in 12198 [\\/]* | ?:[\\/]*) 12199 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12200 ;; 12201 *) 12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12203 for as_dir in $PATH 12204 do 12205 IFS=$as_save_IFS 12206 test -z "$as_dir" && as_dir=. 12207 for ac_exec_ext in '' $ac_executable_extensions; do 12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12209 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12211 break 2 12212 fi 12213 done 12214 done 12215 IFS=$as_save_IFS 12216 12217 ;; 12218 esac 12219 fi 12220 UNAME=$ac_cv_path_UNAME 12221 if test -n "$UNAME"; then 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12223 $as_echo "$UNAME" >&6; } 12224 else 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12226 $as_echo "no" >&6; } 12227 fi 12228 12229 12230 test -n "$UNAME" && break 12231 done 12232 12233 else 12234 # If it succeeded, then it was overridden by the user. We will use it 12235 # for the tool. 12236 12237 # First remove it from the list of overridden variables, so we can test 12238 # for unknown variables in the end. 12239 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12240 12241 # Check if we try to supply an empty value 12242 if test "x$UNAME" = x; then 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12244 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12246 $as_echo_n "checking for UNAME... " >&6; } 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12248 $as_echo "disabled" >&6; } 12249 else 12250 # Check if the provided tool contains a complete path. 12251 tool_specified="$UNAME" 12252 tool_basename="${tool_specified##*/}" 12253 if test "x$tool_basename" = "x$tool_specified"; then 12254 # A command without a complete path is provided, search $PATH. 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12256 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12257 # Extract the first word of "$tool_basename", so it can be a program name with args. 12258 set dummy $tool_basename; ac_word=$2 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12260 $as_echo_n "checking for $ac_word... " >&6; } 12261 if ${ac_cv_path_UNAME+:} false; then : 12262 $as_echo_n "(cached) " >&6 12263 else 12264 case $UNAME in 12265 [\\/]* | ?:[\\/]*) 12266 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12267 ;; 12268 *) 12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12270 for as_dir in $PATH 12271 do 12272 IFS=$as_save_IFS 12273 test -z "$as_dir" && as_dir=. 12274 for ac_exec_ext in '' $ac_executable_extensions; do 12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12276 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12278 break 2 12279 fi 12280 done 12281 done 12282 IFS=$as_save_IFS 12283 12284 ;; 12285 esac 12286 fi 12287 UNAME=$ac_cv_path_UNAME 12288 if test -n "$UNAME"; then 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12290 $as_echo "$UNAME" >&6; } 12291 else 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12293 $as_echo "no" >&6; } 12294 fi 12295 12296 12297 if test "x$UNAME" = x; then 12298 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12299 fi 12300 else 12301 # Otherwise we believe it is a complete path. Use it as it is. 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12303 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12305 $as_echo_n "checking for UNAME... " >&6; } 12306 if test ! -x "$tool_specified"; then 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12308 $as_echo "not found" >&6; } 12309 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12310 fi 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12312 $as_echo "$tool_specified" >&6; } 12313 fi 12314 fi 12315 fi 12316 12317 fi 12318 12319 12320 12321 if test "x$UNAME" = x; then 12322 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12323 fi 12324 12325 12326 12327 12328 12329 # Publish this variable in the help. 12330 12331 12332 if [ -z "${UNIQ+x}" ]; then 12333 # The variable is not set by user, try to locate tool using the code snippet 12334 for ac_prog in uniq 12335 do 12336 # Extract the first word of "$ac_prog", so it can be a program name with args. 12337 set dummy $ac_prog; ac_word=$2 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12339 $as_echo_n "checking for $ac_word... " >&6; } 12340 if ${ac_cv_path_UNIQ+:} false; then : 12341 $as_echo_n "(cached) " >&6 12342 else 12343 case $UNIQ in 12344 [\\/]* | ?:[\\/]*) 12345 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12346 ;; 12347 *) 12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12349 for as_dir in $PATH 12350 do 12351 IFS=$as_save_IFS 12352 test -z "$as_dir" && as_dir=. 12353 for ac_exec_ext in '' $ac_executable_extensions; do 12354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12355 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12357 break 2 12358 fi 12359 done 12360 done 12361 IFS=$as_save_IFS 12362 12363 ;; 12364 esac 12365 fi 12366 UNIQ=$ac_cv_path_UNIQ 12367 if test -n "$UNIQ"; then 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12369 $as_echo "$UNIQ" >&6; } 12370 else 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12372 $as_echo "no" >&6; } 12373 fi 12374 12375 12376 test -n "$UNIQ" && break 12377 done 12378 12379 else 12380 # The variable is set, but is it from the command line or the environment? 12381 12382 # Try to remove the string !UNIQ! from our list. 12383 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12384 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12385 # If it failed, the variable was not from the command line. Ignore it, 12386 # but warn the user (except for BASH, which is always set by the calling BASH). 12387 if test "xUNIQ" != xBASH; then 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12389 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12390 fi 12391 # Try to locate tool using the code snippet 12392 for ac_prog in uniq 12393 do 12394 # Extract the first word of "$ac_prog", so it can be a program name with args. 12395 set dummy $ac_prog; ac_word=$2 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12397 $as_echo_n "checking for $ac_word... " >&6; } 12398 if ${ac_cv_path_UNIQ+:} false; then : 12399 $as_echo_n "(cached) " >&6 12400 else 12401 case $UNIQ in 12402 [\\/]* | ?:[\\/]*) 12403 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12404 ;; 12405 *) 12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12407 for as_dir in $PATH 12408 do 12409 IFS=$as_save_IFS 12410 test -z "$as_dir" && as_dir=. 12411 for ac_exec_ext in '' $ac_executable_extensions; do 12412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12413 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12415 break 2 12416 fi 12417 done 12418 done 12419 IFS=$as_save_IFS 12420 12421 ;; 12422 esac 12423 fi 12424 UNIQ=$ac_cv_path_UNIQ 12425 if test -n "$UNIQ"; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12427 $as_echo "$UNIQ" >&6; } 12428 else 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12430 $as_echo "no" >&6; } 12431 fi 12432 12433 12434 test -n "$UNIQ" && break 12435 done 12436 12437 else 12438 # If it succeeded, then it was overridden by the user. We will use it 12439 # for the tool. 12440 12441 # First remove it from the list of overridden variables, so we can test 12442 # for unknown variables in the end. 12443 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12444 12445 # Check if we try to supply an empty value 12446 if test "x$UNIQ" = x; then 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12448 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12450 $as_echo_n "checking for UNIQ... " >&6; } 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12452 $as_echo "disabled" >&6; } 12453 else 12454 # Check if the provided tool contains a complete path. 12455 tool_specified="$UNIQ" 12456 tool_basename="${tool_specified##*/}" 12457 if test "x$tool_basename" = "x$tool_specified"; then 12458 # A command without a complete path is provided, search $PATH. 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12460 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12461 # Extract the first word of "$tool_basename", so it can be a program name with args. 12462 set dummy $tool_basename; ac_word=$2 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12464 $as_echo_n "checking for $ac_word... " >&6; } 12465 if ${ac_cv_path_UNIQ+:} false; then : 12466 $as_echo_n "(cached) " >&6 12467 else 12468 case $UNIQ in 12469 [\\/]* | ?:[\\/]*) 12470 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12471 ;; 12472 *) 12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12474 for as_dir in $PATH 12475 do 12476 IFS=$as_save_IFS 12477 test -z "$as_dir" && as_dir=. 12478 for ac_exec_ext in '' $ac_executable_extensions; do 12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12480 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12482 break 2 12483 fi 12484 done 12485 done 12486 IFS=$as_save_IFS 12487 12488 ;; 12489 esac 12490 fi 12491 UNIQ=$ac_cv_path_UNIQ 12492 if test -n "$UNIQ"; then 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12494 $as_echo "$UNIQ" >&6; } 12495 else 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12497 $as_echo "no" >&6; } 12498 fi 12499 12500 12501 if test "x$UNIQ" = x; then 12502 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12503 fi 12504 else 12505 # Otherwise we believe it is a complete path. Use it as it is. 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12507 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12509 $as_echo_n "checking for UNIQ... " >&6; } 12510 if test ! -x "$tool_specified"; then 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12512 $as_echo "not found" >&6; } 12513 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12514 fi 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12516 $as_echo "$tool_specified" >&6; } 12517 fi 12518 fi 12519 fi 12520 12521 fi 12522 12523 12524 12525 if test "x$UNIQ" = x; then 12526 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12527 fi 12528 12529 12530 12531 12532 12533 # Publish this variable in the help. 12534 12535 12536 if [ -z "${WC+x}" ]; then 12537 # The variable is not set by user, try to locate tool using the code snippet 12538 for ac_prog in wc 12539 do 12540 # Extract the first word of "$ac_prog", so it can be a program name with args. 12541 set dummy $ac_prog; ac_word=$2 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12543 $as_echo_n "checking for $ac_word... " >&6; } 12544 if ${ac_cv_path_WC+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546 else 12547 case $WC in 12548 [\\/]* | ?:[\\/]*) 12549 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12550 ;; 12551 *) 12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12553 for as_dir in $PATH 12554 do 12555 IFS=$as_save_IFS 12556 test -z "$as_dir" && as_dir=. 12557 for ac_exec_ext in '' $ac_executable_extensions; do 12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12559 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12561 break 2 12562 fi 12563 done 12564 done 12565 IFS=$as_save_IFS 12566 12567 ;; 12568 esac 12569 fi 12570 WC=$ac_cv_path_WC 12571 if test -n "$WC"; then 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12573 $as_echo "$WC" >&6; } 12574 else 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12576 $as_echo "no" >&6; } 12577 fi 12578 12579 12580 test -n "$WC" && break 12581 done 12582 12583 else 12584 # The variable is set, but is it from the command line or the environment? 12585 12586 # Try to remove the string !WC! from our list. 12587 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12588 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12589 # If it failed, the variable was not from the command line. Ignore it, 12590 # but warn the user (except for BASH, which is always set by the calling BASH). 12591 if test "xWC" != xBASH; then 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12593 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12594 fi 12595 # Try to locate tool using the code snippet 12596 for ac_prog in wc 12597 do 12598 # Extract the first word of "$ac_prog", so it can be a program name with args. 12599 set dummy $ac_prog; ac_word=$2 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12601 $as_echo_n "checking for $ac_word... " >&6; } 12602 if ${ac_cv_path_WC+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604 else 12605 case $WC in 12606 [\\/]* | ?:[\\/]*) 12607 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12608 ;; 12609 *) 12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12611 for as_dir in $PATH 12612 do 12613 IFS=$as_save_IFS 12614 test -z "$as_dir" && as_dir=. 12615 for ac_exec_ext in '' $ac_executable_extensions; do 12616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12617 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12619 break 2 12620 fi 12621 done 12622 done 12623 IFS=$as_save_IFS 12624 12625 ;; 12626 esac 12627 fi 12628 WC=$ac_cv_path_WC 12629 if test -n "$WC"; then 12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12631 $as_echo "$WC" >&6; } 12632 else 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12634 $as_echo "no" >&6; } 12635 fi 12636 12637 12638 test -n "$WC" && break 12639 done 12640 12641 else 12642 # If it succeeded, then it was overridden by the user. We will use it 12643 # for the tool. 12644 12645 # First remove it from the list of overridden variables, so we can test 12646 # for unknown variables in the end. 12647 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12648 12649 # Check if we try to supply an empty value 12650 if test "x$WC" = x; then 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12652 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12654 $as_echo_n "checking for WC... " >&6; } 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12656 $as_echo "disabled" >&6; } 12657 else 12658 # Check if the provided tool contains a complete path. 12659 tool_specified="$WC" 12660 tool_basename="${tool_specified##*/}" 12661 if test "x$tool_basename" = "x$tool_specified"; then 12662 # A command without a complete path is provided, search $PATH. 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12664 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12665 # Extract the first word of "$tool_basename", so it can be a program name with args. 12666 set dummy $tool_basename; ac_word=$2 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12668 $as_echo_n "checking for $ac_word... " >&6; } 12669 if ${ac_cv_path_WC+:} false; then : 12670 $as_echo_n "(cached) " >&6 12671 else 12672 case $WC in 12673 [\\/]* | ?:[\\/]*) 12674 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12675 ;; 12676 *) 12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12678 for as_dir in $PATH 12679 do 12680 IFS=$as_save_IFS 12681 test -z "$as_dir" && as_dir=. 12682 for ac_exec_ext in '' $ac_executable_extensions; do 12683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12684 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12686 break 2 12687 fi 12688 done 12689 done 12690 IFS=$as_save_IFS 12691 12692 ;; 12693 esac 12694 fi 12695 WC=$ac_cv_path_WC 12696 if test -n "$WC"; then 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12698 $as_echo "$WC" >&6; } 12699 else 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12701 $as_echo "no" >&6; } 12702 fi 12703 12704 12705 if test "x$WC" = x; then 12706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12707 fi 12708 else 12709 # Otherwise we believe it is a complete path. Use it as it is. 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12711 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12713 $as_echo_n "checking for WC... " >&6; } 12714 if test ! -x "$tool_specified"; then 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12716 $as_echo "not found" >&6; } 12717 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12718 fi 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12720 $as_echo "$tool_specified" >&6; } 12721 fi 12722 fi 12723 fi 12724 12725 fi 12726 12727 12728 12729 if test "x$WC" = x; then 12730 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12731 fi 12732 12733 12734 12735 12736 12737 # Publish this variable in the help. 12738 12739 12740 if [ -z "${WHICH+x}" ]; then 12741 # The variable is not set by user, try to locate tool using the code snippet 12742 for ac_prog in which 12743 do 12744 # Extract the first word of "$ac_prog", so it can be a program name with args. 12745 set dummy $ac_prog; ac_word=$2 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12747 $as_echo_n "checking for $ac_word... " >&6; } 12748 if ${ac_cv_path_WHICH+:} false; then : 12749 $as_echo_n "(cached) " >&6 12750 else 12751 case $WHICH in 12752 [\\/]* | ?:[\\/]*) 12753 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12754 ;; 12755 *) 12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12757 for as_dir in $PATH 12758 do 12759 IFS=$as_save_IFS 12760 test -z "$as_dir" && as_dir=. 12761 for ac_exec_ext in '' $ac_executable_extensions; do 12762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12763 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12765 break 2 12766 fi 12767 done 12768 done 12769 IFS=$as_save_IFS 12770 12771 ;; 12772 esac 12773 fi 12774 WHICH=$ac_cv_path_WHICH 12775 if test -n "$WHICH"; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12777 $as_echo "$WHICH" >&6; } 12778 else 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12780 $as_echo "no" >&6; } 12781 fi 12782 12783 12784 test -n "$WHICH" && break 12785 done 12786 12787 else 12788 # The variable is set, but is it from the command line or the environment? 12789 12790 # Try to remove the string !WHICH! from our list. 12791 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12792 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12793 # If it failed, the variable was not from the command line. Ignore it, 12794 # but warn the user (except for BASH, which is always set by the calling BASH). 12795 if test "xWHICH" != xBASH; then 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12797 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12798 fi 12799 # Try to locate tool using the code snippet 12800 for ac_prog in which 12801 do 12802 # Extract the first word of "$ac_prog", so it can be a program name with args. 12803 set dummy $ac_prog; ac_word=$2 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12805 $as_echo_n "checking for $ac_word... " >&6; } 12806 if ${ac_cv_path_WHICH+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808 else 12809 case $WHICH in 12810 [\\/]* | ?:[\\/]*) 12811 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12812 ;; 12813 *) 12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12815 for as_dir in $PATH 12816 do 12817 IFS=$as_save_IFS 12818 test -z "$as_dir" && as_dir=. 12819 for ac_exec_ext in '' $ac_executable_extensions; do 12820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12821 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12823 break 2 12824 fi 12825 done 12826 done 12827 IFS=$as_save_IFS 12828 12829 ;; 12830 esac 12831 fi 12832 WHICH=$ac_cv_path_WHICH 12833 if test -n "$WHICH"; then 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12835 $as_echo "$WHICH" >&6; } 12836 else 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12838 $as_echo "no" >&6; } 12839 fi 12840 12841 12842 test -n "$WHICH" && break 12843 done 12844 12845 else 12846 # If it succeeded, then it was overridden by the user. We will use it 12847 # for the tool. 12848 12849 # First remove it from the list of overridden variables, so we can test 12850 # for unknown variables in the end. 12851 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12852 12853 # Check if we try to supply an empty value 12854 if test "x$WHICH" = x; then 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12856 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12858 $as_echo_n "checking for WHICH... " >&6; } 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12860 $as_echo "disabled" >&6; } 12861 else 12862 # Check if the provided tool contains a complete path. 12863 tool_specified="$WHICH" 12864 tool_basename="${tool_specified##*/}" 12865 if test "x$tool_basename" = "x$tool_specified"; then 12866 # A command without a complete path is provided, search $PATH. 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12868 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12869 # Extract the first word of "$tool_basename", so it can be a program name with args. 12870 set dummy $tool_basename; ac_word=$2 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12872 $as_echo_n "checking for $ac_word... " >&6; } 12873 if ${ac_cv_path_WHICH+:} false; then : 12874 $as_echo_n "(cached) " >&6 12875 else 12876 case $WHICH in 12877 [\\/]* | ?:[\\/]*) 12878 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12879 ;; 12880 *) 12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12882 for as_dir in $PATH 12883 do 12884 IFS=$as_save_IFS 12885 test -z "$as_dir" && as_dir=. 12886 for ac_exec_ext in '' $ac_executable_extensions; do 12887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12888 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12890 break 2 12891 fi 12892 done 12893 done 12894 IFS=$as_save_IFS 12895 12896 ;; 12897 esac 12898 fi 12899 WHICH=$ac_cv_path_WHICH 12900 if test -n "$WHICH"; then 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12902 $as_echo "$WHICH" >&6; } 12903 else 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12905 $as_echo "no" >&6; } 12906 fi 12907 12908 12909 if test "x$WHICH" = x; then 12910 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12911 fi 12912 else 12913 # Otherwise we believe it is a complete path. Use it as it is. 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12915 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12917 $as_echo_n "checking for WHICH... " >&6; } 12918 if test ! -x "$tool_specified"; then 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12920 $as_echo "not found" >&6; } 12921 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12922 fi 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12924 $as_echo "$tool_specified" >&6; } 12925 fi 12926 fi 12927 fi 12928 12929 fi 12930 12931 12932 12933 if test "x$WHICH" = x; then 12934 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12935 fi 12936 12937 12938 12939 12940 12941 # Publish this variable in the help. 12942 12943 12944 if [ -z "${XARGS+x}" ]; then 12945 # The variable is not set by user, try to locate tool using the code snippet 12946 for ac_prog in xargs 12947 do 12948 # Extract the first word of "$ac_prog", so it can be a program name with args. 12949 set dummy $ac_prog; ac_word=$2 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12951 $as_echo_n "checking for $ac_word... " >&6; } 12952 if ${ac_cv_path_XARGS+:} false; then : 12953 $as_echo_n "(cached) " >&6 12954 else 12955 case $XARGS in 12956 [\\/]* | ?:[\\/]*) 12957 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12958 ;; 12959 *) 12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12961 for as_dir in $PATH 12962 do 12963 IFS=$as_save_IFS 12964 test -z "$as_dir" && as_dir=. 12965 for ac_exec_ext in '' $ac_executable_extensions; do 12966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12967 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12969 break 2 12970 fi 12971 done 12972 done 12973 IFS=$as_save_IFS 12974 12975 ;; 12976 esac 12977 fi 12978 XARGS=$ac_cv_path_XARGS 12979 if test -n "$XARGS"; then 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12981 $as_echo "$XARGS" >&6; } 12982 else 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12984 $as_echo "no" >&6; } 12985 fi 12986 12987 12988 test -n "$XARGS" && break 12989 done 12990 12991 else 12992 # The variable is set, but is it from the command line or the environment? 12993 12994 # Try to remove the string !XARGS! from our list. 12995 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12996 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12997 # If it failed, the variable was not from the command line. Ignore it, 12998 # but warn the user (except for BASH, which is always set by the calling BASH). 12999 if test "xXARGS" != xBASH; then 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13001 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13002 fi 13003 # Try to locate tool using the code snippet 13004 for ac_prog in xargs 13005 do 13006 # Extract the first word of "$ac_prog", so it can be a program name with args. 13007 set dummy $ac_prog; ac_word=$2 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13009 $as_echo_n "checking for $ac_word... " >&6; } 13010 if ${ac_cv_path_XARGS+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012 else 13013 case $XARGS in 13014 [\\/]* | ?:[\\/]*) 13015 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13016 ;; 13017 *) 13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13019 for as_dir in $PATH 13020 do 13021 IFS=$as_save_IFS 13022 test -z "$as_dir" && as_dir=. 13023 for ac_exec_ext in '' $ac_executable_extensions; do 13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13025 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13027 break 2 13028 fi 13029 done 13030 done 13031 IFS=$as_save_IFS 13032 13033 ;; 13034 esac 13035 fi 13036 XARGS=$ac_cv_path_XARGS 13037 if test -n "$XARGS"; then 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13039 $as_echo "$XARGS" >&6; } 13040 else 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13042 $as_echo "no" >&6; } 13043 fi 13044 13045 13046 test -n "$XARGS" && break 13047 done 13048 13049 else 13050 # If it succeeded, then it was overridden by the user. We will use it 13051 # for the tool. 13052 13053 # First remove it from the list of overridden variables, so we can test 13054 # for unknown variables in the end. 13055 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13056 13057 # Check if we try to supply an empty value 13058 if test "x$XARGS" = x; then 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13060 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13062 $as_echo_n "checking for XARGS... " >&6; } 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13064 $as_echo "disabled" >&6; } 13065 else 13066 # Check if the provided tool contains a complete path. 13067 tool_specified="$XARGS" 13068 tool_basename="${tool_specified##*/}" 13069 if test "x$tool_basename" = "x$tool_specified"; then 13070 # A command without a complete path is provided, search $PATH. 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13072 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13073 # Extract the first word of "$tool_basename", so it can be a program name with args. 13074 set dummy $tool_basename; ac_word=$2 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13076 $as_echo_n "checking for $ac_word... " >&6; } 13077 if ${ac_cv_path_XARGS+:} false; then : 13078 $as_echo_n "(cached) " >&6 13079 else 13080 case $XARGS in 13081 [\\/]* | ?:[\\/]*) 13082 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13083 ;; 13084 *) 13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13086 for as_dir in $PATH 13087 do 13088 IFS=$as_save_IFS 13089 test -z "$as_dir" && as_dir=. 13090 for ac_exec_ext in '' $ac_executable_extensions; do 13091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13092 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13094 break 2 13095 fi 13096 done 13097 done 13098 IFS=$as_save_IFS 13099 13100 ;; 13101 esac 13102 fi 13103 XARGS=$ac_cv_path_XARGS 13104 if test -n "$XARGS"; then 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13106 $as_echo "$XARGS" >&6; } 13107 else 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13109 $as_echo "no" >&6; } 13110 fi 13111 13112 13113 if test "x$XARGS" = x; then 13114 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13115 fi 13116 else 13117 # Otherwise we believe it is a complete path. Use it as it is. 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13119 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13121 $as_echo_n "checking for XARGS... " >&6; } 13122 if test ! -x "$tool_specified"; then 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13124 $as_echo "not found" >&6; } 13125 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13126 fi 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13128 $as_echo "$tool_specified" >&6; } 13129 fi 13130 fi 13131 fi 13132 13133 fi 13134 13135 13136 13137 if test "x$XARGS" = x; then 13138 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13139 fi 13140 13141 13142 13143 # Then required tools that require some special treatment. 13144 13145 13146 # Publish this variable in the help. 13147 13148 13149 if [ -z "${AWK+x}" ]; then 13150 # The variable is not set by user, try to locate tool using the code snippet 13151 for ac_prog in gawk mawk nawk awk 13152 do 13153 # Extract the first word of "$ac_prog", so it can be a program name with args. 13154 set dummy $ac_prog; ac_word=$2 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13156 $as_echo_n "checking for $ac_word... " >&6; } 13157 if ${ac_cv_prog_AWK+:} false; then : 13158 $as_echo_n "(cached) " >&6 13159 else 13160 if test -n "$AWK"; then 13161 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13162 else 13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13164 for as_dir in $PATH 13165 do 13166 IFS=$as_save_IFS 13167 test -z "$as_dir" && as_dir=. 13168 for ac_exec_ext in '' $ac_executable_extensions; do 13169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13170 ac_cv_prog_AWK="$ac_prog" 13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13172 break 2 13173 fi 13174 done 13175 done 13176 IFS=$as_save_IFS 13177 13178 fi 13179 fi 13180 AWK=$ac_cv_prog_AWK 13181 if test -n "$AWK"; then 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13183 $as_echo "$AWK" >&6; } 13184 else 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13186 $as_echo "no" >&6; } 13187 fi 13188 13189 13190 test -n "$AWK" && break 13191 done 13192 13193 else 13194 # The variable is set, but is it from the command line or the environment? 13195 13196 # Try to remove the string !AWK! from our list. 13197 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13198 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13199 # If it failed, the variable was not from the command line. Ignore it, 13200 # but warn the user (except for BASH, which is always set by the calling BASH). 13201 if test "xAWK" != xBASH; then 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13203 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13204 fi 13205 # Try to locate tool using the code snippet 13206 for ac_prog in gawk mawk nawk awk 13207 do 13208 # Extract the first word of "$ac_prog", so it can be a program name with args. 13209 set dummy $ac_prog; ac_word=$2 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13211 $as_echo_n "checking for $ac_word... " >&6; } 13212 if ${ac_cv_prog_AWK+:} false; then : 13213 $as_echo_n "(cached) " >&6 13214 else 13215 if test -n "$AWK"; then 13216 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13217 else 13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13219 for as_dir in $PATH 13220 do 13221 IFS=$as_save_IFS 13222 test -z "$as_dir" && as_dir=. 13223 for ac_exec_ext in '' $ac_executable_extensions; do 13224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13225 ac_cv_prog_AWK="$ac_prog" 13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13227 break 2 13228 fi 13229 done 13230 done 13231 IFS=$as_save_IFS 13232 13233 fi 13234 fi 13235 AWK=$ac_cv_prog_AWK 13236 if test -n "$AWK"; then 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13238 $as_echo "$AWK" >&6; } 13239 else 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13241 $as_echo "no" >&6; } 13242 fi 13243 13244 13245 test -n "$AWK" && break 13246 done 13247 13248 else 13249 # If it succeeded, then it was overridden by the user. We will use it 13250 # for the tool. 13251 13252 # First remove it from the list of overridden variables, so we can test 13253 # for unknown variables in the end. 13254 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13255 13256 # Check if we try to supply an empty value 13257 if test "x$AWK" = x; then 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13259 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13261 $as_echo_n "checking for AWK... " >&6; } 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13263 $as_echo "disabled" >&6; } 13264 else 13265 # Check if the provided tool contains a complete path. 13266 tool_specified="$AWK" 13267 tool_basename="${tool_specified##*/}" 13268 if test "x$tool_basename" = "x$tool_specified"; then 13269 # A command without a complete path is provided, search $PATH. 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13271 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13272 # Extract the first word of "$tool_basename", so it can be a program name with args. 13273 set dummy $tool_basename; ac_word=$2 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13275 $as_echo_n "checking for $ac_word... " >&6; } 13276 if ${ac_cv_path_AWK+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278 else 13279 case $AWK in 13280 [\\/]* | ?:[\\/]*) 13281 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13282 ;; 13283 *) 13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13285 for as_dir in $PATH 13286 do 13287 IFS=$as_save_IFS 13288 test -z "$as_dir" && as_dir=. 13289 for ac_exec_ext in '' $ac_executable_extensions; do 13290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13291 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13293 break 2 13294 fi 13295 done 13296 done 13297 IFS=$as_save_IFS 13298 13299 ;; 13300 esac 13301 fi 13302 AWK=$ac_cv_path_AWK 13303 if test -n "$AWK"; then 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13305 $as_echo "$AWK" >&6; } 13306 else 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13308 $as_echo "no" >&6; } 13309 fi 13310 13311 13312 if test "x$AWK" = x; then 13313 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13314 fi 13315 else 13316 # Otherwise we believe it is a complete path. Use it as it is. 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13318 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13320 $as_echo_n "checking for AWK... " >&6; } 13321 if test ! -x "$tool_specified"; then 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13323 $as_echo "not found" >&6; } 13324 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13325 fi 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13327 $as_echo "$tool_specified" >&6; } 13328 fi 13329 fi 13330 fi 13331 13332 fi 13333 13334 13335 if test "x$AWK" = x; then 13336 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13337 fi 13338 13339 13340 13341 13342 # Publish this variable in the help. 13343 13344 13345 if [ -z "${GREP+x}" ]; then 13346 # The variable is not set by user, try to locate tool using the code snippet 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13348 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13349 if ${ac_cv_path_GREP+:} false; then : 13350 $as_echo_n "(cached) " >&6 13351 else 13352 if test -z "$GREP"; then 13353 ac_path_GREP_found=false 13354 # Loop through the user's path and test for each of PROGNAME-LIST 13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13357 do 13358 IFS=$as_save_IFS 13359 test -z "$as_dir" && as_dir=. 13360 for ac_prog in grep ggrep; do 13361 for ac_exec_ext in '' $ac_executable_extensions; do 13362 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13363 as_fn_executable_p "$ac_path_GREP" || continue 13364 # Check for GNU ac_path_GREP and select it if it is found. 13365 # Check for GNU $ac_path_GREP 13366 case `"$ac_path_GREP" --version 2>&1` in 13367 *GNU*) 13368 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13369 *) 13370 ac_count=0 13371 $as_echo_n 0123456789 >"conftest.in" 13372 while : 13373 do 13374 cat "conftest.in" "conftest.in" >"conftest.tmp" 13375 mv "conftest.tmp" "conftest.in" 13376 cp "conftest.in" "conftest.nl" 13377 $as_echo 'GREP' >> "conftest.nl" 13378 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13380 as_fn_arith $ac_count + 1 && ac_count=$as_val 13381 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13382 # Best one so far, save it but keep looking for a better one 13383 ac_cv_path_GREP="$ac_path_GREP" 13384 ac_path_GREP_max=$ac_count 13385 fi 13386 # 10*(2^10) chars as input seems more than enough 13387 test $ac_count -gt 10 && break 13388 done 13389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13390 esac 13391 13392 $ac_path_GREP_found && break 3 13393 done 13394 done 13395 done 13396 IFS=$as_save_IFS 13397 if test -z "$ac_cv_path_GREP"; then 13398 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13399 fi 13400 else 13401 ac_cv_path_GREP=$GREP 13402 fi 13403 13404 fi 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13406 $as_echo "$ac_cv_path_GREP" >&6; } 13407 GREP="$ac_cv_path_GREP" 13408 13409 13410 else 13411 # The variable is set, but is it from the command line or the environment? 13412 13413 # Try to remove the string !GREP! from our list. 13414 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13415 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13416 # If it failed, the variable was not from the command line. Ignore it, 13417 # but warn the user (except for BASH, which is always set by the calling BASH). 13418 if test "xGREP" != xBASH; then 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13420 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13421 fi 13422 # Try to locate tool using the code snippet 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13424 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13425 if ${ac_cv_path_GREP+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427 else 13428 if test -z "$GREP"; then 13429 ac_path_GREP_found=false 13430 # Loop through the user's path and test for each of PROGNAME-LIST 13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13433 do 13434 IFS=$as_save_IFS 13435 test -z "$as_dir" && as_dir=. 13436 for ac_prog in grep ggrep; do 13437 for ac_exec_ext in '' $ac_executable_extensions; do 13438 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13439 as_fn_executable_p "$ac_path_GREP" || continue 13440 # Check for GNU ac_path_GREP and select it if it is found. 13441 # Check for GNU $ac_path_GREP 13442 case `"$ac_path_GREP" --version 2>&1` in 13443 *GNU*) 13444 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13445 *) 13446 ac_count=0 13447 $as_echo_n 0123456789 >"conftest.in" 13448 while : 13449 do 13450 cat "conftest.in" "conftest.in" >"conftest.tmp" 13451 mv "conftest.tmp" "conftest.in" 13452 cp "conftest.in" "conftest.nl" 13453 $as_echo 'GREP' >> "conftest.nl" 13454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13456 as_fn_arith $ac_count + 1 && ac_count=$as_val 13457 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13458 # Best one so far, save it but keep looking for a better one 13459 ac_cv_path_GREP="$ac_path_GREP" 13460 ac_path_GREP_max=$ac_count 13461 fi 13462 # 10*(2^10) chars as input seems more than enough 13463 test $ac_count -gt 10 && break 13464 done 13465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13466 esac 13467 13468 $ac_path_GREP_found && break 3 13469 done 13470 done 13471 done 13472 IFS=$as_save_IFS 13473 if test -z "$ac_cv_path_GREP"; then 13474 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13475 fi 13476 else 13477 ac_cv_path_GREP=$GREP 13478 fi 13479 13480 fi 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13482 $as_echo "$ac_cv_path_GREP" >&6; } 13483 GREP="$ac_cv_path_GREP" 13484 13485 13486 else 13487 # If it succeeded, then it was overridden by the user. We will use it 13488 # for the tool. 13489 13490 # First remove it from the list of overridden variables, so we can test 13491 # for unknown variables in the end. 13492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13493 13494 # Check if we try to supply an empty value 13495 if test "x$GREP" = x; then 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13497 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13499 $as_echo_n "checking for GREP... " >&6; } 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13501 $as_echo "disabled" >&6; } 13502 else 13503 # Check if the provided tool contains a complete path. 13504 tool_specified="$GREP" 13505 tool_basename="${tool_specified##*/}" 13506 if test "x$tool_basename" = "x$tool_specified"; then 13507 # A command without a complete path is provided, search $PATH. 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13509 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13510 # Extract the first word of "$tool_basename", so it can be a program name with args. 13511 set dummy $tool_basename; ac_word=$2 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13513 $as_echo_n "checking for $ac_word... " >&6; } 13514 if ${ac_cv_path_GREP+:} false; then : 13515 $as_echo_n "(cached) " >&6 13516 else 13517 case $GREP in 13518 [\\/]* | ?:[\\/]*) 13519 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13520 ;; 13521 *) 13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13523 for as_dir in $PATH 13524 do 13525 IFS=$as_save_IFS 13526 test -z "$as_dir" && as_dir=. 13527 for ac_exec_ext in '' $ac_executable_extensions; do 13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13529 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13531 break 2 13532 fi 13533 done 13534 done 13535 IFS=$as_save_IFS 13536 13537 ;; 13538 esac 13539 fi 13540 GREP=$ac_cv_path_GREP 13541 if test -n "$GREP"; then 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13543 $as_echo "$GREP" >&6; } 13544 else 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13546 $as_echo "no" >&6; } 13547 fi 13548 13549 13550 if test "x$GREP" = x; then 13551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13552 fi 13553 else 13554 # Otherwise we believe it is a complete path. Use it as it is. 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13556 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13558 $as_echo_n "checking for GREP... " >&6; } 13559 if test ! -x "$tool_specified"; then 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13561 $as_echo "not found" >&6; } 13562 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13563 fi 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13565 $as_echo "$tool_specified" >&6; } 13566 fi 13567 fi 13568 fi 13569 13570 fi 13571 13572 13573 if test "x$GREP" = x; then 13574 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13575 fi 13576 13577 13578 13579 13580 # Publish this variable in the help. 13581 13582 13583 if [ -z "${EGREP+x}" ]; then 13584 # The variable is not set by user, try to locate tool using the code snippet 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13586 $as_echo_n "checking for egrep... " >&6; } 13587 if ${ac_cv_path_EGREP+:} false; then : 13588 $as_echo_n "(cached) " >&6 13589 else 13590 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13591 then ac_cv_path_EGREP="$GREP -E" 13592 else 13593 if test -z "$EGREP"; then 13594 ac_path_EGREP_found=false 13595 # Loop through the user's path and test for each of PROGNAME-LIST 13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13598 do 13599 IFS=$as_save_IFS 13600 test -z "$as_dir" && as_dir=. 13601 for ac_prog in egrep; do 13602 for ac_exec_ext in '' $ac_executable_extensions; do 13603 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13604 as_fn_executable_p "$ac_path_EGREP" || continue 13605 # Check for GNU ac_path_EGREP and select it if it is found. 13606 # Check for GNU $ac_path_EGREP 13607 case `"$ac_path_EGREP" --version 2>&1` in 13608 *GNU*) 13609 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13610 *) 13611 ac_count=0 13612 $as_echo_n 0123456789 >"conftest.in" 13613 while : 13614 do 13615 cat "conftest.in" "conftest.in" >"conftest.tmp" 13616 mv "conftest.tmp" "conftest.in" 13617 cp "conftest.in" "conftest.nl" 13618 $as_echo 'EGREP' >> "conftest.nl" 13619 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13621 as_fn_arith $ac_count + 1 && ac_count=$as_val 13622 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13623 # Best one so far, save it but keep looking for a better one 13624 ac_cv_path_EGREP="$ac_path_EGREP" 13625 ac_path_EGREP_max=$ac_count 13626 fi 13627 # 10*(2^10) chars as input seems more than enough 13628 test $ac_count -gt 10 && break 13629 done 13630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13631 esac 13632 13633 $ac_path_EGREP_found && break 3 13634 done 13635 done 13636 done 13637 IFS=$as_save_IFS 13638 if test -z "$ac_cv_path_EGREP"; then 13639 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13640 fi 13641 else 13642 ac_cv_path_EGREP=$EGREP 13643 fi 13644 13645 fi 13646 fi 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13648 $as_echo "$ac_cv_path_EGREP" >&6; } 13649 EGREP="$ac_cv_path_EGREP" 13650 13651 13652 else 13653 # The variable is set, but is it from the command line or the environment? 13654 13655 # Try to remove the string !EGREP! from our list. 13656 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13657 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13658 # If it failed, the variable was not from the command line. Ignore it, 13659 # but warn the user (except for BASH, which is always set by the calling BASH). 13660 if test "xEGREP" != xBASH; then 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13662 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13663 fi 13664 # Try to locate tool using the code snippet 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13666 $as_echo_n "checking for egrep... " >&6; } 13667 if ${ac_cv_path_EGREP+:} false; then : 13668 $as_echo_n "(cached) " >&6 13669 else 13670 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13671 then ac_cv_path_EGREP="$GREP -E" 13672 else 13673 if test -z "$EGREP"; then 13674 ac_path_EGREP_found=false 13675 # Loop through the user's path and test for each of PROGNAME-LIST 13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13678 do 13679 IFS=$as_save_IFS 13680 test -z "$as_dir" && as_dir=. 13681 for ac_prog in egrep; do 13682 for ac_exec_ext in '' $ac_executable_extensions; do 13683 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13684 as_fn_executable_p "$ac_path_EGREP" || continue 13685 # Check for GNU ac_path_EGREP and select it if it is found. 13686 # Check for GNU $ac_path_EGREP 13687 case `"$ac_path_EGREP" --version 2>&1` in 13688 *GNU*) 13689 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13690 *) 13691 ac_count=0 13692 $as_echo_n 0123456789 >"conftest.in" 13693 while : 13694 do 13695 cat "conftest.in" "conftest.in" >"conftest.tmp" 13696 mv "conftest.tmp" "conftest.in" 13697 cp "conftest.in" "conftest.nl" 13698 $as_echo 'EGREP' >> "conftest.nl" 13699 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13701 as_fn_arith $ac_count + 1 && ac_count=$as_val 13702 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13703 # Best one so far, save it but keep looking for a better one 13704 ac_cv_path_EGREP="$ac_path_EGREP" 13705 ac_path_EGREP_max=$ac_count 13706 fi 13707 # 10*(2^10) chars as input seems more than enough 13708 test $ac_count -gt 10 && break 13709 done 13710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13711 esac 13712 13713 $ac_path_EGREP_found && break 3 13714 done 13715 done 13716 done 13717 IFS=$as_save_IFS 13718 if test -z "$ac_cv_path_EGREP"; then 13719 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13720 fi 13721 else 13722 ac_cv_path_EGREP=$EGREP 13723 fi 13724 13725 fi 13726 fi 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13728 $as_echo "$ac_cv_path_EGREP" >&6; } 13729 EGREP="$ac_cv_path_EGREP" 13730 13731 13732 else 13733 # If it succeeded, then it was overridden by the user. We will use it 13734 # for the tool. 13735 13736 # First remove it from the list of overridden variables, so we can test 13737 # for unknown variables in the end. 13738 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13739 13740 # Check if we try to supply an empty value 13741 if test "x$EGREP" = x; then 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13743 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13745 $as_echo_n "checking for EGREP... " >&6; } 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13747 $as_echo "disabled" >&6; } 13748 else 13749 # Check if the provided tool contains a complete path. 13750 tool_specified="$EGREP" 13751 tool_basename="${tool_specified##*/}" 13752 if test "x$tool_basename" = "x$tool_specified"; then 13753 # A command without a complete path is provided, search $PATH. 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13755 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13756 # Extract the first word of "$tool_basename", so it can be a program name with args. 13757 set dummy $tool_basename; ac_word=$2 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13759 $as_echo_n "checking for $ac_word... " >&6; } 13760 if ${ac_cv_path_EGREP+:} false; then : 13761 $as_echo_n "(cached) " >&6 13762 else 13763 case $EGREP in 13764 [\\/]* | ?:[\\/]*) 13765 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13766 ;; 13767 *) 13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13769 for as_dir in $PATH 13770 do 13771 IFS=$as_save_IFS 13772 test -z "$as_dir" && as_dir=. 13773 for ac_exec_ext in '' $ac_executable_extensions; do 13774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13775 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13777 break 2 13778 fi 13779 done 13780 done 13781 IFS=$as_save_IFS 13782 13783 ;; 13784 esac 13785 fi 13786 EGREP=$ac_cv_path_EGREP 13787 if test -n "$EGREP"; then 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13789 $as_echo "$EGREP" >&6; } 13790 else 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13792 $as_echo "no" >&6; } 13793 fi 13794 13795 13796 if test "x$EGREP" = x; then 13797 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13798 fi 13799 else 13800 # Otherwise we believe it is a complete path. Use it as it is. 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13802 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13804 $as_echo_n "checking for EGREP... " >&6; } 13805 if test ! -x "$tool_specified"; then 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13807 $as_echo "not found" >&6; } 13808 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13809 fi 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13811 $as_echo "$tool_specified" >&6; } 13812 fi 13813 fi 13814 fi 13815 13816 fi 13817 13818 13819 if test "x$EGREP" = x; then 13820 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13821 fi 13822 13823 13824 13825 13826 # Publish this variable in the help. 13827 13828 13829 if [ -z "${FGREP+x}" ]; then 13830 # The variable is not set by user, try to locate tool using the code snippet 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13832 $as_echo_n "checking for fgrep... " >&6; } 13833 if ${ac_cv_path_FGREP+:} false; then : 13834 $as_echo_n "(cached) " >&6 13835 else 13836 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13837 then ac_cv_path_FGREP="$GREP -F" 13838 else 13839 if test -z "$FGREP"; then 13840 ac_path_FGREP_found=false 13841 # Loop through the user's path and test for each of PROGNAME-LIST 13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13844 do 13845 IFS=$as_save_IFS 13846 test -z "$as_dir" && as_dir=. 13847 for ac_prog in fgrep; do 13848 for ac_exec_ext in '' $ac_executable_extensions; do 13849 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13850 as_fn_executable_p "$ac_path_FGREP" || continue 13851 # Check for GNU ac_path_FGREP and select it if it is found. 13852 # Check for GNU $ac_path_FGREP 13853 case `"$ac_path_FGREP" --version 2>&1` in 13854 *GNU*) 13855 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13856 *) 13857 ac_count=0 13858 $as_echo_n 0123456789 >"conftest.in" 13859 while : 13860 do 13861 cat "conftest.in" "conftest.in" >"conftest.tmp" 13862 mv "conftest.tmp" "conftest.in" 13863 cp "conftest.in" "conftest.nl" 13864 $as_echo 'FGREP' >> "conftest.nl" 13865 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13867 as_fn_arith $ac_count + 1 && ac_count=$as_val 13868 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13869 # Best one so far, save it but keep looking for a better one 13870 ac_cv_path_FGREP="$ac_path_FGREP" 13871 ac_path_FGREP_max=$ac_count 13872 fi 13873 # 10*(2^10) chars as input seems more than enough 13874 test $ac_count -gt 10 && break 13875 done 13876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13877 esac 13878 13879 $ac_path_FGREP_found && break 3 13880 done 13881 done 13882 done 13883 IFS=$as_save_IFS 13884 if test -z "$ac_cv_path_FGREP"; then 13885 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13886 fi 13887 else 13888 ac_cv_path_FGREP=$FGREP 13889 fi 13890 13891 fi 13892 fi 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13894 $as_echo "$ac_cv_path_FGREP" >&6; } 13895 FGREP="$ac_cv_path_FGREP" 13896 13897 13898 else 13899 # The variable is set, but is it from the command line or the environment? 13900 13901 # Try to remove the string !FGREP! from our list. 13902 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13903 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13904 # If it failed, the variable was not from the command line. Ignore it, 13905 # but warn the user (except for BASH, which is always set by the calling BASH). 13906 if test "xFGREP" != xBASH; then 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13908 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13909 fi 13910 # Try to locate tool using the code snippet 13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13912 $as_echo_n "checking for fgrep... " >&6; } 13913 if ${ac_cv_path_FGREP+:} false; then : 13914 $as_echo_n "(cached) " >&6 13915 else 13916 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13917 then ac_cv_path_FGREP="$GREP -F" 13918 else 13919 if test -z "$FGREP"; then 13920 ac_path_FGREP_found=false 13921 # Loop through the user's path and test for each of PROGNAME-LIST 13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13924 do 13925 IFS=$as_save_IFS 13926 test -z "$as_dir" && as_dir=. 13927 for ac_prog in fgrep; do 13928 for ac_exec_ext in '' $ac_executable_extensions; do 13929 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13930 as_fn_executable_p "$ac_path_FGREP" || continue 13931 # Check for GNU ac_path_FGREP and select it if it is found. 13932 # Check for GNU $ac_path_FGREP 13933 case `"$ac_path_FGREP" --version 2>&1` in 13934 *GNU*) 13935 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13936 *) 13937 ac_count=0 13938 $as_echo_n 0123456789 >"conftest.in" 13939 while : 13940 do 13941 cat "conftest.in" "conftest.in" >"conftest.tmp" 13942 mv "conftest.tmp" "conftest.in" 13943 cp "conftest.in" "conftest.nl" 13944 $as_echo 'FGREP' >> "conftest.nl" 13945 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13947 as_fn_arith $ac_count + 1 && ac_count=$as_val 13948 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13949 # Best one so far, save it but keep looking for a better one 13950 ac_cv_path_FGREP="$ac_path_FGREP" 13951 ac_path_FGREP_max=$ac_count 13952 fi 13953 # 10*(2^10) chars as input seems more than enough 13954 test $ac_count -gt 10 && break 13955 done 13956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13957 esac 13958 13959 $ac_path_FGREP_found && break 3 13960 done 13961 done 13962 done 13963 IFS=$as_save_IFS 13964 if test -z "$ac_cv_path_FGREP"; then 13965 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13966 fi 13967 else 13968 ac_cv_path_FGREP=$FGREP 13969 fi 13970 13971 fi 13972 fi 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13974 $as_echo "$ac_cv_path_FGREP" >&6; } 13975 FGREP="$ac_cv_path_FGREP" 13976 13977 13978 else 13979 # If it succeeded, then it was overridden by the user. We will use it 13980 # for the tool. 13981 13982 # First remove it from the list of overridden variables, so we can test 13983 # for unknown variables in the end. 13984 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13985 13986 # Check if we try to supply an empty value 13987 if test "x$FGREP" = x; then 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13989 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13991 $as_echo_n "checking for FGREP... " >&6; } 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13993 $as_echo "disabled" >&6; } 13994 else 13995 # Check if the provided tool contains a complete path. 13996 tool_specified="$FGREP" 13997 tool_basename="${tool_specified##*/}" 13998 if test "x$tool_basename" = "x$tool_specified"; then 13999 # A command without a complete path is provided, search $PATH. 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14001 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14002 # Extract the first word of "$tool_basename", so it can be a program name with args. 14003 set dummy $tool_basename; ac_word=$2 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14005 $as_echo_n "checking for $ac_word... " >&6; } 14006 if ${ac_cv_path_FGREP+:} false; then : 14007 $as_echo_n "(cached) " >&6 14008 else 14009 case $FGREP in 14010 [\\/]* | ?:[\\/]*) 14011 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14012 ;; 14013 *) 14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14015 for as_dir in $PATH 14016 do 14017 IFS=$as_save_IFS 14018 test -z "$as_dir" && as_dir=. 14019 for ac_exec_ext in '' $ac_executable_extensions; do 14020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14021 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14023 break 2 14024 fi 14025 done 14026 done 14027 IFS=$as_save_IFS 14028 14029 ;; 14030 esac 14031 fi 14032 FGREP=$ac_cv_path_FGREP 14033 if test -n "$FGREP"; then 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14035 $as_echo "$FGREP" >&6; } 14036 else 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14038 $as_echo "no" >&6; } 14039 fi 14040 14041 14042 if test "x$FGREP" = x; then 14043 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14044 fi 14045 else 14046 # Otherwise we believe it is a complete path. Use it as it is. 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14048 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14050 $as_echo_n "checking for FGREP... " >&6; } 14051 if test ! -x "$tool_specified"; then 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14053 $as_echo "not found" >&6; } 14054 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14055 fi 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14057 $as_echo "$tool_specified" >&6; } 14058 fi 14059 fi 14060 fi 14061 14062 fi 14063 14064 14065 if test "x$FGREP" = x; then 14066 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14067 fi 14068 14069 14070 14071 14072 # Publish this variable in the help. 14073 14074 14075 if [ -z "${SED+x}" ]; then 14076 # The variable is not set by user, try to locate tool using the code snippet 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14078 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14079 if ${ac_cv_path_SED+:} false; then : 14080 $as_echo_n "(cached) " >&6 14081 else 14082 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14083 for ac_i in 1 2 3 4 5 6 7; do 14084 ac_script="$ac_script$as_nl$ac_script" 14085 done 14086 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14087 { ac_script=; unset ac_script;} 14088 if test -z "$SED"; then 14089 ac_path_SED_found=false 14090 # Loop through the user's path and test for each of PROGNAME-LIST 14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14092 for as_dir in $PATH 14093 do 14094 IFS=$as_save_IFS 14095 test -z "$as_dir" && as_dir=. 14096 for ac_prog in sed gsed; do 14097 for ac_exec_ext in '' $ac_executable_extensions; do 14098 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14099 as_fn_executable_p "$ac_path_SED" || continue 14100 # Check for GNU ac_path_SED and select it if it is found. 14101 # Check for GNU $ac_path_SED 14102 case `"$ac_path_SED" --version 2>&1` in 14103 *GNU*) 14104 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14105 *) 14106 ac_count=0 14107 $as_echo_n 0123456789 >"conftest.in" 14108 while : 14109 do 14110 cat "conftest.in" "conftest.in" >"conftest.tmp" 14111 mv "conftest.tmp" "conftest.in" 14112 cp "conftest.in" "conftest.nl" 14113 $as_echo '' >> "conftest.nl" 14114 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14116 as_fn_arith $ac_count + 1 && ac_count=$as_val 14117 if test $ac_count -gt ${ac_path_SED_max-0}; then 14118 # Best one so far, save it but keep looking for a better one 14119 ac_cv_path_SED="$ac_path_SED" 14120 ac_path_SED_max=$ac_count 14121 fi 14122 # 10*(2^10) chars as input seems more than enough 14123 test $ac_count -gt 10 && break 14124 done 14125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14126 esac 14127 14128 $ac_path_SED_found && break 3 14129 done 14130 done 14131 done 14132 IFS=$as_save_IFS 14133 if test -z "$ac_cv_path_SED"; then 14134 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14135 fi 14136 else 14137 ac_cv_path_SED=$SED 14138 fi 14139 14140 fi 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14142 $as_echo "$ac_cv_path_SED" >&6; } 14143 SED="$ac_cv_path_SED" 14144 rm -f conftest.sed 14145 14146 else 14147 # The variable is set, but is it from the command line or the environment? 14148 14149 # Try to remove the string !SED! from our list. 14150 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14151 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14152 # If it failed, the variable was not from the command line. Ignore it, 14153 # but warn the user (except for BASH, which is always set by the calling BASH). 14154 if test "xSED" != xBASH; then 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14156 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14157 fi 14158 # Try to locate tool using the code snippet 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14160 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14161 if ${ac_cv_path_SED+:} false; then : 14162 $as_echo_n "(cached) " >&6 14163 else 14164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14165 for ac_i in 1 2 3 4 5 6 7; do 14166 ac_script="$ac_script$as_nl$ac_script" 14167 done 14168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14169 { ac_script=; unset ac_script;} 14170 if test -z "$SED"; then 14171 ac_path_SED_found=false 14172 # Loop through the user's path and test for each of PROGNAME-LIST 14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14174 for as_dir in $PATH 14175 do 14176 IFS=$as_save_IFS 14177 test -z "$as_dir" && as_dir=. 14178 for ac_prog in sed gsed; do 14179 for ac_exec_ext in '' $ac_executable_extensions; do 14180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14181 as_fn_executable_p "$ac_path_SED" || continue 14182 # Check for GNU ac_path_SED and select it if it is found. 14183 # Check for GNU $ac_path_SED 14184 case `"$ac_path_SED" --version 2>&1` in 14185 *GNU*) 14186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14187 *) 14188 ac_count=0 14189 $as_echo_n 0123456789 >"conftest.in" 14190 while : 14191 do 14192 cat "conftest.in" "conftest.in" >"conftest.tmp" 14193 mv "conftest.tmp" "conftest.in" 14194 cp "conftest.in" "conftest.nl" 14195 $as_echo '' >> "conftest.nl" 14196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14198 as_fn_arith $ac_count + 1 && ac_count=$as_val 14199 if test $ac_count -gt ${ac_path_SED_max-0}; then 14200 # Best one so far, save it but keep looking for a better one 14201 ac_cv_path_SED="$ac_path_SED" 14202 ac_path_SED_max=$ac_count 14203 fi 14204 # 10*(2^10) chars as input seems more than enough 14205 test $ac_count -gt 10 && break 14206 done 14207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14208 esac 14209 14210 $ac_path_SED_found && break 3 14211 done 14212 done 14213 done 14214 IFS=$as_save_IFS 14215 if test -z "$ac_cv_path_SED"; then 14216 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14217 fi 14218 else 14219 ac_cv_path_SED=$SED 14220 fi 14221 14222 fi 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14224 $as_echo "$ac_cv_path_SED" >&6; } 14225 SED="$ac_cv_path_SED" 14226 rm -f conftest.sed 14227 14228 else 14229 # If it succeeded, then it was overridden by the user. We will use it 14230 # for the tool. 14231 14232 # First remove it from the list of overridden variables, so we can test 14233 # for unknown variables in the end. 14234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14235 14236 # Check if we try to supply an empty value 14237 if test "x$SED" = x; then 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14239 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14241 $as_echo_n "checking for SED... " >&6; } 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14243 $as_echo "disabled" >&6; } 14244 else 14245 # Check if the provided tool contains a complete path. 14246 tool_specified="$SED" 14247 tool_basename="${tool_specified##*/}" 14248 if test "x$tool_basename" = "x$tool_specified"; then 14249 # A command without a complete path is provided, search $PATH. 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14251 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14252 # Extract the first word of "$tool_basename", so it can be a program name with args. 14253 set dummy $tool_basename; ac_word=$2 14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14255 $as_echo_n "checking for $ac_word... " >&6; } 14256 if ${ac_cv_path_SED+:} false; then : 14257 $as_echo_n "(cached) " >&6 14258 else 14259 case $SED in 14260 [\\/]* | ?:[\\/]*) 14261 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14262 ;; 14263 *) 14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14265 for as_dir in $PATH 14266 do 14267 IFS=$as_save_IFS 14268 test -z "$as_dir" && as_dir=. 14269 for ac_exec_ext in '' $ac_executable_extensions; do 14270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14271 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14273 break 2 14274 fi 14275 done 14276 done 14277 IFS=$as_save_IFS 14278 14279 ;; 14280 esac 14281 fi 14282 SED=$ac_cv_path_SED 14283 if test -n "$SED"; then 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14285 $as_echo "$SED" >&6; } 14286 else 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14288 $as_echo "no" >&6; } 14289 fi 14290 14291 14292 if test "x$SED" = x; then 14293 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14294 fi 14295 else 14296 # Otherwise we believe it is a complete path. Use it as it is. 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14298 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14300 $as_echo_n "checking for SED... " >&6; } 14301 if test ! -x "$tool_specified"; then 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14303 $as_echo "not found" >&6; } 14304 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14305 fi 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14307 $as_echo "$tool_specified" >&6; } 14308 fi 14309 fi 14310 fi 14311 14312 fi 14313 14314 14315 if test "x$SED" = x; then 14316 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14317 fi 14318 14319 14320 14321 # Always force rm. 14322 RM="$RM -f" 14323 14324 # pwd behaves differently on various platforms and some don't support the -L flag. 14325 # Always use the bash builtin pwd to get uniform behavior. 14326 THEPWDCMD=pwd 14327 14328 # These are not required on all platforms 14329 14330 14331 # Publish this variable in the help. 14332 14333 14334 if [ -z "${CYGPATH+x}" ]; then 14335 # The variable is not set by user, try to locate tool using the code snippet 14336 for ac_prog in cygpath 14337 do 14338 # Extract the first word of "$ac_prog", so it can be a program name with args. 14339 set dummy $ac_prog; ac_word=$2 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14341 $as_echo_n "checking for $ac_word... " >&6; } 14342 if ${ac_cv_path_CYGPATH+:} false; then : 14343 $as_echo_n "(cached) " >&6 14344 else 14345 case $CYGPATH in 14346 [\\/]* | ?:[\\/]*) 14347 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14348 ;; 14349 *) 14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14351 for as_dir in $PATH 14352 do 14353 IFS=$as_save_IFS 14354 test -z "$as_dir" && as_dir=. 14355 for ac_exec_ext in '' $ac_executable_extensions; do 14356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14357 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14359 break 2 14360 fi 14361 done 14362 done 14363 IFS=$as_save_IFS 14364 14365 ;; 14366 esac 14367 fi 14368 CYGPATH=$ac_cv_path_CYGPATH 14369 if test -n "$CYGPATH"; then 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14371 $as_echo "$CYGPATH" >&6; } 14372 else 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14374 $as_echo "no" >&6; } 14375 fi 14376 14377 14378 test -n "$CYGPATH" && break 14379 done 14380 14381 else 14382 # The variable is set, but is it from the command line or the environment? 14383 14384 # Try to remove the string !CYGPATH! from our list. 14385 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14386 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14387 # If it failed, the variable was not from the command line. Ignore it, 14388 # but warn the user (except for BASH, which is always set by the calling BASH). 14389 if test "xCYGPATH" != xBASH; then 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14391 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14392 fi 14393 # Try to locate tool using the code snippet 14394 for ac_prog in cygpath 14395 do 14396 # Extract the first word of "$ac_prog", so it can be a program name with args. 14397 set dummy $ac_prog; ac_word=$2 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14399 $as_echo_n "checking for $ac_word... " >&6; } 14400 if ${ac_cv_path_CYGPATH+:} false; then : 14401 $as_echo_n "(cached) " >&6 14402 else 14403 case $CYGPATH in 14404 [\\/]* | ?:[\\/]*) 14405 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14406 ;; 14407 *) 14408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14409 for as_dir in $PATH 14410 do 14411 IFS=$as_save_IFS 14412 test -z "$as_dir" && as_dir=. 14413 for ac_exec_ext in '' $ac_executable_extensions; do 14414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14415 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14417 break 2 14418 fi 14419 done 14420 done 14421 IFS=$as_save_IFS 14422 14423 ;; 14424 esac 14425 fi 14426 CYGPATH=$ac_cv_path_CYGPATH 14427 if test -n "$CYGPATH"; then 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14429 $as_echo "$CYGPATH" >&6; } 14430 else 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14432 $as_echo "no" >&6; } 14433 fi 14434 14435 14436 test -n "$CYGPATH" && break 14437 done 14438 14439 else 14440 # If it succeeded, then it was overridden by the user. We will use it 14441 # for the tool. 14442 14443 # First remove it from the list of overridden variables, so we can test 14444 # for unknown variables in the end. 14445 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14446 14447 # Check if we try to supply an empty value 14448 if test "x$CYGPATH" = x; then 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14450 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14452 $as_echo_n "checking for CYGPATH... " >&6; } 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14454 $as_echo "disabled" >&6; } 14455 else 14456 # Check if the provided tool contains a complete path. 14457 tool_specified="$CYGPATH" 14458 tool_basename="${tool_specified##*/}" 14459 if test "x$tool_basename" = "x$tool_specified"; then 14460 # A command without a complete path is provided, search $PATH. 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14462 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14463 # Extract the first word of "$tool_basename", so it can be a program name with args. 14464 set dummy $tool_basename; ac_word=$2 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14466 $as_echo_n "checking for $ac_word... " >&6; } 14467 if ${ac_cv_path_CYGPATH+:} false; then : 14468 $as_echo_n "(cached) " >&6 14469 else 14470 case $CYGPATH in 14471 [\\/]* | ?:[\\/]*) 14472 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14473 ;; 14474 *) 14475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14476 for as_dir in $PATH 14477 do 14478 IFS=$as_save_IFS 14479 test -z "$as_dir" && as_dir=. 14480 for ac_exec_ext in '' $ac_executable_extensions; do 14481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14482 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14484 break 2 14485 fi 14486 done 14487 done 14488 IFS=$as_save_IFS 14489 14490 ;; 14491 esac 14492 fi 14493 CYGPATH=$ac_cv_path_CYGPATH 14494 if test -n "$CYGPATH"; then 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14496 $as_echo "$CYGPATH" >&6; } 14497 else 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14499 $as_echo "no" >&6; } 14500 fi 14501 14502 14503 if test "x$CYGPATH" = x; then 14504 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14505 fi 14506 else 14507 # Otherwise we believe it is a complete path. Use it as it is. 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14509 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14511 $as_echo_n "checking for CYGPATH... " >&6; } 14512 if test ! -x "$tool_specified"; then 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14514 $as_echo "not found" >&6; } 14515 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14516 fi 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14518 $as_echo "$tool_specified" >&6; } 14519 fi 14520 fi 14521 fi 14522 14523 fi 14524 14525 14526 14527 14528 # Publish this variable in the help. 14529 14530 14531 if [ -z "${READLINK+x}" ]; then 14532 # The variable is not set by user, try to locate tool using the code snippet 14533 for ac_prog in greadlink readlink 14534 do 14535 # Extract the first word of "$ac_prog", so it can be a program name with args. 14536 set dummy $ac_prog; ac_word=$2 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14538 $as_echo_n "checking for $ac_word... " >&6; } 14539 if ${ac_cv_path_READLINK+:} false; then : 14540 $as_echo_n "(cached) " >&6 14541 else 14542 case $READLINK in 14543 [\\/]* | ?:[\\/]*) 14544 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14545 ;; 14546 *) 14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14548 for as_dir in $PATH 14549 do 14550 IFS=$as_save_IFS 14551 test -z "$as_dir" && as_dir=. 14552 for ac_exec_ext in '' $ac_executable_extensions; do 14553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14554 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14556 break 2 14557 fi 14558 done 14559 done 14560 IFS=$as_save_IFS 14561 14562 ;; 14563 esac 14564 fi 14565 READLINK=$ac_cv_path_READLINK 14566 if test -n "$READLINK"; then 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14568 $as_echo "$READLINK" >&6; } 14569 else 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14571 $as_echo "no" >&6; } 14572 fi 14573 14574 14575 test -n "$READLINK" && break 14576 done 14577 14578 else 14579 # The variable is set, but is it from the command line or the environment? 14580 14581 # Try to remove the string !READLINK! from our list. 14582 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14583 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14584 # If it failed, the variable was not from the command line. Ignore it, 14585 # but warn the user (except for BASH, which is always set by the calling BASH). 14586 if test "xREADLINK" != xBASH; then 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14588 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14589 fi 14590 # Try to locate tool using the code snippet 14591 for ac_prog in greadlink readlink 14592 do 14593 # Extract the first word of "$ac_prog", so it can be a program name with args. 14594 set dummy $ac_prog; ac_word=$2 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14596 $as_echo_n "checking for $ac_word... " >&6; } 14597 if ${ac_cv_path_READLINK+:} false; then : 14598 $as_echo_n "(cached) " >&6 14599 else 14600 case $READLINK in 14601 [\\/]* | ?:[\\/]*) 14602 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14603 ;; 14604 *) 14605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14606 for as_dir in $PATH 14607 do 14608 IFS=$as_save_IFS 14609 test -z "$as_dir" && as_dir=. 14610 for ac_exec_ext in '' $ac_executable_extensions; do 14611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14612 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14614 break 2 14615 fi 14616 done 14617 done 14618 IFS=$as_save_IFS 14619 14620 ;; 14621 esac 14622 fi 14623 READLINK=$ac_cv_path_READLINK 14624 if test -n "$READLINK"; then 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14626 $as_echo "$READLINK" >&6; } 14627 else 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14629 $as_echo "no" >&6; } 14630 fi 14631 14632 14633 test -n "$READLINK" && break 14634 done 14635 14636 else 14637 # If it succeeded, then it was overridden by the user. We will use it 14638 # for the tool. 14639 14640 # First remove it from the list of overridden variables, so we can test 14641 # for unknown variables in the end. 14642 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14643 14644 # Check if we try to supply an empty value 14645 if test "x$READLINK" = x; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14647 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14649 $as_echo_n "checking for READLINK... " >&6; } 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14651 $as_echo "disabled" >&6; } 14652 else 14653 # Check if the provided tool contains a complete path. 14654 tool_specified="$READLINK" 14655 tool_basename="${tool_specified##*/}" 14656 if test "x$tool_basename" = "x$tool_specified"; then 14657 # A command without a complete path is provided, search $PATH. 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14659 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14660 # Extract the first word of "$tool_basename", so it can be a program name with args. 14661 set dummy $tool_basename; ac_word=$2 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14663 $as_echo_n "checking for $ac_word... " >&6; } 14664 if ${ac_cv_path_READLINK+:} false; then : 14665 $as_echo_n "(cached) " >&6 14666 else 14667 case $READLINK in 14668 [\\/]* | ?:[\\/]*) 14669 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14670 ;; 14671 *) 14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14673 for as_dir in $PATH 14674 do 14675 IFS=$as_save_IFS 14676 test -z "$as_dir" && as_dir=. 14677 for ac_exec_ext in '' $ac_executable_extensions; do 14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14679 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14681 break 2 14682 fi 14683 done 14684 done 14685 IFS=$as_save_IFS 14686 14687 ;; 14688 esac 14689 fi 14690 READLINK=$ac_cv_path_READLINK 14691 if test -n "$READLINK"; then 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14693 $as_echo "$READLINK" >&6; } 14694 else 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14696 $as_echo "no" >&6; } 14697 fi 14698 14699 14700 if test "x$READLINK" = x; then 14701 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14702 fi 14703 else 14704 # Otherwise we believe it is a complete path. Use it as it is. 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14706 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14708 $as_echo_n "checking for READLINK... " >&6; } 14709 if test ! -x "$tool_specified"; then 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14711 $as_echo "not found" >&6; } 14712 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14713 fi 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14715 $as_echo "$tool_specified" >&6; } 14716 fi 14717 fi 14718 fi 14719 14720 fi 14721 14722 14723 14724 14725 # Publish this variable in the help. 14726 14727 14728 if [ -z "${DF+x}" ]; then 14729 # The variable is not set by user, try to locate tool using the code snippet 14730 for ac_prog in df 14731 do 14732 # Extract the first word of "$ac_prog", so it can be a program name with args. 14733 set dummy $ac_prog; ac_word=$2 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14735 $as_echo_n "checking for $ac_word... " >&6; } 14736 if ${ac_cv_path_DF+:} false; then : 14737 $as_echo_n "(cached) " >&6 14738 else 14739 case $DF in 14740 [\\/]* | ?:[\\/]*) 14741 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14742 ;; 14743 *) 14744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14745 for as_dir in $PATH 14746 do 14747 IFS=$as_save_IFS 14748 test -z "$as_dir" && as_dir=. 14749 for ac_exec_ext in '' $ac_executable_extensions; do 14750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14751 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14753 break 2 14754 fi 14755 done 14756 done 14757 IFS=$as_save_IFS 14758 14759 ;; 14760 esac 14761 fi 14762 DF=$ac_cv_path_DF 14763 if test -n "$DF"; then 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14765 $as_echo "$DF" >&6; } 14766 else 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14768 $as_echo "no" >&6; } 14769 fi 14770 14771 14772 test -n "$DF" && break 14773 done 14774 14775 else 14776 # The variable is set, but is it from the command line or the environment? 14777 14778 # Try to remove the string !DF! from our list. 14779 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14780 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14781 # If it failed, the variable was not from the command line. Ignore it, 14782 # but warn the user (except for BASH, which is always set by the calling BASH). 14783 if test "xDF" != xBASH; then 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14785 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14786 fi 14787 # Try to locate tool using the code snippet 14788 for ac_prog in df 14789 do 14790 # Extract the first word of "$ac_prog", so it can be a program name with args. 14791 set dummy $ac_prog; ac_word=$2 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14793 $as_echo_n "checking for $ac_word... " >&6; } 14794 if ${ac_cv_path_DF+:} false; then : 14795 $as_echo_n "(cached) " >&6 14796 else 14797 case $DF in 14798 [\\/]* | ?:[\\/]*) 14799 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14800 ;; 14801 *) 14802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14803 for as_dir in $PATH 14804 do 14805 IFS=$as_save_IFS 14806 test -z "$as_dir" && as_dir=. 14807 for ac_exec_ext in '' $ac_executable_extensions; do 14808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14809 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14811 break 2 14812 fi 14813 done 14814 done 14815 IFS=$as_save_IFS 14816 14817 ;; 14818 esac 14819 fi 14820 DF=$ac_cv_path_DF 14821 if test -n "$DF"; then 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14823 $as_echo "$DF" >&6; } 14824 else 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14826 $as_echo "no" >&6; } 14827 fi 14828 14829 14830 test -n "$DF" && break 14831 done 14832 14833 else 14834 # If it succeeded, then it was overridden by the user. We will use it 14835 # for the tool. 14836 14837 # First remove it from the list of overridden variables, so we can test 14838 # for unknown variables in the end. 14839 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14840 14841 # Check if we try to supply an empty value 14842 if test "x$DF" = x; then 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14844 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14846 $as_echo_n "checking for DF... " >&6; } 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14848 $as_echo "disabled" >&6; } 14849 else 14850 # Check if the provided tool contains a complete path. 14851 tool_specified="$DF" 14852 tool_basename="${tool_specified##*/}" 14853 if test "x$tool_basename" = "x$tool_specified"; then 14854 # A command without a complete path is provided, search $PATH. 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14856 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14857 # Extract the first word of "$tool_basename", so it can be a program name with args. 14858 set dummy $tool_basename; ac_word=$2 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14860 $as_echo_n "checking for $ac_word... " >&6; } 14861 if ${ac_cv_path_DF+:} false; then : 14862 $as_echo_n "(cached) " >&6 14863 else 14864 case $DF in 14865 [\\/]* | ?:[\\/]*) 14866 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14867 ;; 14868 *) 14869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14870 for as_dir in $PATH 14871 do 14872 IFS=$as_save_IFS 14873 test -z "$as_dir" && as_dir=. 14874 for ac_exec_ext in '' $ac_executable_extensions; do 14875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14876 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14878 break 2 14879 fi 14880 done 14881 done 14882 IFS=$as_save_IFS 14883 14884 ;; 14885 esac 14886 fi 14887 DF=$ac_cv_path_DF 14888 if test -n "$DF"; then 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14890 $as_echo "$DF" >&6; } 14891 else 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14893 $as_echo "no" >&6; } 14894 fi 14895 14896 14897 if test "x$DF" = x; then 14898 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14899 fi 14900 else 14901 # Otherwise we believe it is a complete path. Use it as it is. 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14903 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14905 $as_echo_n "checking for DF... " >&6; } 14906 if test ! -x "$tool_specified"; then 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14908 $as_echo "not found" >&6; } 14909 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14910 fi 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14912 $as_echo "$tool_specified" >&6; } 14913 fi 14914 fi 14915 fi 14916 14917 fi 14918 14919 14920 14921 14922 # Publish this variable in the help. 14923 14924 14925 if [ -z "${CPIO+x}" ]; then 14926 # The variable is not set by user, try to locate tool using the code snippet 14927 for ac_prog in cpio bsdcpio 14928 do 14929 # Extract the first word of "$ac_prog", so it can be a program name with args. 14930 set dummy $ac_prog; ac_word=$2 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14932 $as_echo_n "checking for $ac_word... " >&6; } 14933 if ${ac_cv_path_CPIO+:} false; then : 14934 $as_echo_n "(cached) " >&6 14935 else 14936 case $CPIO in 14937 [\\/]* | ?:[\\/]*) 14938 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14939 ;; 14940 *) 14941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14942 for as_dir in $PATH 14943 do 14944 IFS=$as_save_IFS 14945 test -z "$as_dir" && as_dir=. 14946 for ac_exec_ext in '' $ac_executable_extensions; do 14947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14948 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14950 break 2 14951 fi 14952 done 14953 done 14954 IFS=$as_save_IFS 14955 14956 ;; 14957 esac 14958 fi 14959 CPIO=$ac_cv_path_CPIO 14960 if test -n "$CPIO"; then 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14962 $as_echo "$CPIO" >&6; } 14963 else 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14965 $as_echo "no" >&6; } 14966 fi 14967 14968 14969 test -n "$CPIO" && break 14970 done 14971 14972 else 14973 # The variable is set, but is it from the command line or the environment? 14974 14975 # Try to remove the string !CPIO! from our list. 14976 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14977 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14978 # If it failed, the variable was not from the command line. Ignore it, 14979 # but warn the user (except for BASH, which is always set by the calling BASH). 14980 if test "xCPIO" != xBASH; then 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14982 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14983 fi 14984 # Try to locate tool using the code snippet 14985 for ac_prog in cpio bsdcpio 14986 do 14987 # Extract the first word of "$ac_prog", so it can be a program name with args. 14988 set dummy $ac_prog; ac_word=$2 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14990 $as_echo_n "checking for $ac_word... " >&6; } 14991 if ${ac_cv_path_CPIO+:} false; then : 14992 $as_echo_n "(cached) " >&6 14993 else 14994 case $CPIO in 14995 [\\/]* | ?:[\\/]*) 14996 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14997 ;; 14998 *) 14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15000 for as_dir in $PATH 15001 do 15002 IFS=$as_save_IFS 15003 test -z "$as_dir" && as_dir=. 15004 for ac_exec_ext in '' $ac_executable_extensions; do 15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15006 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15008 break 2 15009 fi 15010 done 15011 done 15012 IFS=$as_save_IFS 15013 15014 ;; 15015 esac 15016 fi 15017 CPIO=$ac_cv_path_CPIO 15018 if test -n "$CPIO"; then 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15020 $as_echo "$CPIO" >&6; } 15021 else 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15023 $as_echo "no" >&6; } 15024 fi 15025 15026 15027 test -n "$CPIO" && break 15028 done 15029 15030 else 15031 # If it succeeded, then it was overridden by the user. We will use it 15032 # for the tool. 15033 15034 # First remove it from the list of overridden variables, so we can test 15035 # for unknown variables in the end. 15036 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15037 15038 # Check if we try to supply an empty value 15039 if test "x$CPIO" = x; then 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15041 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15043 $as_echo_n "checking for CPIO... " >&6; } 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15045 $as_echo "disabled" >&6; } 15046 else 15047 # Check if the provided tool contains a complete path. 15048 tool_specified="$CPIO" 15049 tool_basename="${tool_specified##*/}" 15050 if test "x$tool_basename" = "x$tool_specified"; then 15051 # A command without a complete path is provided, search $PATH. 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15053 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15054 # Extract the first word of "$tool_basename", so it can be a program name with args. 15055 set dummy $tool_basename; ac_word=$2 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15057 $as_echo_n "checking for $ac_word... " >&6; } 15058 if ${ac_cv_path_CPIO+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060 else 15061 case $CPIO in 15062 [\\/]* | ?:[\\/]*) 15063 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15064 ;; 15065 *) 15066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15067 for as_dir in $PATH 15068 do 15069 IFS=$as_save_IFS 15070 test -z "$as_dir" && as_dir=. 15071 for ac_exec_ext in '' $ac_executable_extensions; do 15072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15073 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15075 break 2 15076 fi 15077 done 15078 done 15079 IFS=$as_save_IFS 15080 15081 ;; 15082 esac 15083 fi 15084 CPIO=$ac_cv_path_CPIO 15085 if test -n "$CPIO"; then 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15087 $as_echo "$CPIO" >&6; } 15088 else 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15090 $as_echo "no" >&6; } 15091 fi 15092 15093 15094 if test "x$CPIO" = x; then 15095 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15096 fi 15097 else 15098 # Otherwise we believe it is a complete path. Use it as it is. 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15100 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15102 $as_echo_n "checking for CPIO... " >&6; } 15103 if test ! -x "$tool_specified"; then 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15105 $as_echo "not found" >&6; } 15106 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15107 fi 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15109 $as_echo "$tool_specified" >&6; } 15110 fi 15111 fi 15112 fi 15113 15114 fi 15115 15116 15117 15118 15119 # Publish this variable in the help. 15120 15121 15122 if [ -z "${NICE+x}" ]; then 15123 # The variable is not set by user, try to locate tool using the code snippet 15124 for ac_prog in nice 15125 do 15126 # Extract the first word of "$ac_prog", so it can be a program name with args. 15127 set dummy $ac_prog; ac_word=$2 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15129 $as_echo_n "checking for $ac_word... " >&6; } 15130 if ${ac_cv_path_NICE+:} false; then : 15131 $as_echo_n "(cached) " >&6 15132 else 15133 case $NICE in 15134 [\\/]* | ?:[\\/]*) 15135 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15136 ;; 15137 *) 15138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15139 for as_dir in $PATH 15140 do 15141 IFS=$as_save_IFS 15142 test -z "$as_dir" && as_dir=. 15143 for ac_exec_ext in '' $ac_executable_extensions; do 15144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15145 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15147 break 2 15148 fi 15149 done 15150 done 15151 IFS=$as_save_IFS 15152 15153 ;; 15154 esac 15155 fi 15156 NICE=$ac_cv_path_NICE 15157 if test -n "$NICE"; then 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15159 $as_echo "$NICE" >&6; } 15160 else 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15162 $as_echo "no" >&6; } 15163 fi 15164 15165 15166 test -n "$NICE" && break 15167 done 15168 15169 else 15170 # The variable is set, but is it from the command line or the environment? 15171 15172 # Try to remove the string !NICE! from our list. 15173 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15174 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15175 # If it failed, the variable was not from the command line. Ignore it, 15176 # but warn the user (except for BASH, which is always set by the calling BASH). 15177 if test "xNICE" != xBASH; then 15178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15179 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15180 fi 15181 # Try to locate tool using the code snippet 15182 for ac_prog in nice 15183 do 15184 # Extract the first word of "$ac_prog", so it can be a program name with args. 15185 set dummy $ac_prog; ac_word=$2 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15187 $as_echo_n "checking for $ac_word... " >&6; } 15188 if ${ac_cv_path_NICE+:} false; then : 15189 $as_echo_n "(cached) " >&6 15190 else 15191 case $NICE in 15192 [\\/]* | ?:[\\/]*) 15193 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15194 ;; 15195 *) 15196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15197 for as_dir in $PATH 15198 do 15199 IFS=$as_save_IFS 15200 test -z "$as_dir" && as_dir=. 15201 for ac_exec_ext in '' $ac_executable_extensions; do 15202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15203 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15205 break 2 15206 fi 15207 done 15208 done 15209 IFS=$as_save_IFS 15210 15211 ;; 15212 esac 15213 fi 15214 NICE=$ac_cv_path_NICE 15215 if test -n "$NICE"; then 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15217 $as_echo "$NICE" >&6; } 15218 else 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15220 $as_echo "no" >&6; } 15221 fi 15222 15223 15224 test -n "$NICE" && break 15225 done 15226 15227 else 15228 # If it succeeded, then it was overridden by the user. We will use it 15229 # for the tool. 15230 15231 # First remove it from the list of overridden variables, so we can test 15232 # for unknown variables in the end. 15233 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15234 15235 # Check if we try to supply an empty value 15236 if test "x$NICE" = x; then 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15238 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15240 $as_echo_n "checking for NICE... " >&6; } 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15242 $as_echo "disabled" >&6; } 15243 else 15244 # Check if the provided tool contains a complete path. 15245 tool_specified="$NICE" 15246 tool_basename="${tool_specified##*/}" 15247 if test "x$tool_basename" = "x$tool_specified"; then 15248 # A command without a complete path is provided, search $PATH. 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15250 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15251 # Extract the first word of "$tool_basename", so it can be a program name with args. 15252 set dummy $tool_basename; ac_word=$2 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15254 $as_echo_n "checking for $ac_word... " >&6; } 15255 if ${ac_cv_path_NICE+:} false; then : 15256 $as_echo_n "(cached) " >&6 15257 else 15258 case $NICE in 15259 [\\/]* | ?:[\\/]*) 15260 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15261 ;; 15262 *) 15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15264 for as_dir in $PATH 15265 do 15266 IFS=$as_save_IFS 15267 test -z "$as_dir" && as_dir=. 15268 for ac_exec_ext in '' $ac_executable_extensions; do 15269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15270 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15272 break 2 15273 fi 15274 done 15275 done 15276 IFS=$as_save_IFS 15277 15278 ;; 15279 esac 15280 fi 15281 NICE=$ac_cv_path_NICE 15282 if test -n "$NICE"; then 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15284 $as_echo "$NICE" >&6; } 15285 else 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15287 $as_echo "no" >&6; } 15288 fi 15289 15290 15291 if test "x$NICE" = x; then 15292 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15293 fi 15294 else 15295 # Otherwise we believe it is a complete path. Use it as it is. 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15297 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15299 $as_echo_n "checking for NICE... " >&6; } 15300 if test ! -x "$tool_specified"; then 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15302 $as_echo "not found" >&6; } 15303 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15304 fi 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15306 $as_echo "$tool_specified" >&6; } 15307 fi 15308 fi 15309 fi 15310 15311 fi 15312 15313 15314 15315 15316 # Publish this variable in the help. 15317 15318 15319 if [ -z "${PANDOC+x}" ]; then 15320 # The variable is not set by user, try to locate tool using the code snippet 15321 for ac_prog in pandoc 15322 do 15323 # Extract the first word of "$ac_prog", so it can be a program name with args. 15324 set dummy $ac_prog; ac_word=$2 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15326 $as_echo_n "checking for $ac_word... " >&6; } 15327 if ${ac_cv_path_PANDOC+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329 else 15330 case $PANDOC in 15331 [\\/]* | ?:[\\/]*) 15332 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15333 ;; 15334 *) 15335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15336 for as_dir in $PATH 15337 do 15338 IFS=$as_save_IFS 15339 test -z "$as_dir" && as_dir=. 15340 for ac_exec_ext in '' $ac_executable_extensions; do 15341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15342 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15344 break 2 15345 fi 15346 done 15347 done 15348 IFS=$as_save_IFS 15349 15350 ;; 15351 esac 15352 fi 15353 PANDOC=$ac_cv_path_PANDOC 15354 if test -n "$PANDOC"; then 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15356 $as_echo "$PANDOC" >&6; } 15357 else 15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15359 $as_echo "no" >&6; } 15360 fi 15361 15362 15363 test -n "$PANDOC" && break 15364 done 15365 15366 else 15367 # The variable is set, but is it from the command line or the environment? 15368 15369 # Try to remove the string !PANDOC! from our list. 15370 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15371 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15372 # If it failed, the variable was not from the command line. Ignore it, 15373 # but warn the user (except for BASH, which is always set by the calling BASH). 15374 if test "xPANDOC" != xBASH; then 15375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15376 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15377 fi 15378 # Try to locate tool using the code snippet 15379 for ac_prog in pandoc 15380 do 15381 # Extract the first word of "$ac_prog", so it can be a program name with args. 15382 set dummy $ac_prog; ac_word=$2 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15384 $as_echo_n "checking for $ac_word... " >&6; } 15385 if ${ac_cv_path_PANDOC+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387 else 15388 case $PANDOC in 15389 [\\/]* | ?:[\\/]*) 15390 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15391 ;; 15392 *) 15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15394 for as_dir in $PATH 15395 do 15396 IFS=$as_save_IFS 15397 test -z "$as_dir" && as_dir=. 15398 for ac_exec_ext in '' $ac_executable_extensions; do 15399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15400 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15402 break 2 15403 fi 15404 done 15405 done 15406 IFS=$as_save_IFS 15407 15408 ;; 15409 esac 15410 fi 15411 PANDOC=$ac_cv_path_PANDOC 15412 if test -n "$PANDOC"; then 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15414 $as_echo "$PANDOC" >&6; } 15415 else 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15417 $as_echo "no" >&6; } 15418 fi 15419 15420 15421 test -n "$PANDOC" && break 15422 done 15423 15424 else 15425 # If it succeeded, then it was overridden by the user. We will use it 15426 # for the tool. 15427 15428 # First remove it from the list of overridden variables, so we can test 15429 # for unknown variables in the end. 15430 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15431 15432 # Check if we try to supply an empty value 15433 if test "x$PANDOC" = x; then 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15435 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15437 $as_echo_n "checking for PANDOC... " >&6; } 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15439 $as_echo "disabled" >&6; } 15440 else 15441 # Check if the provided tool contains a complete path. 15442 tool_specified="$PANDOC" 15443 tool_basename="${tool_specified##*/}" 15444 if test "x$tool_basename" = "x$tool_specified"; then 15445 # A command without a complete path is provided, search $PATH. 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15447 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15448 # Extract the first word of "$tool_basename", so it can be a program name with args. 15449 set dummy $tool_basename; ac_word=$2 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15451 $as_echo_n "checking for $ac_word... " >&6; } 15452 if ${ac_cv_path_PANDOC+:} false; then : 15453 $as_echo_n "(cached) " >&6 15454 else 15455 case $PANDOC in 15456 [\\/]* | ?:[\\/]*) 15457 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15458 ;; 15459 *) 15460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15461 for as_dir in $PATH 15462 do 15463 IFS=$as_save_IFS 15464 test -z "$as_dir" && as_dir=. 15465 for ac_exec_ext in '' $ac_executable_extensions; do 15466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15467 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15469 break 2 15470 fi 15471 done 15472 done 15473 IFS=$as_save_IFS 15474 15475 ;; 15476 esac 15477 fi 15478 PANDOC=$ac_cv_path_PANDOC 15479 if test -n "$PANDOC"; then 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15481 $as_echo "$PANDOC" >&6; } 15482 else 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15484 $as_echo "no" >&6; } 15485 fi 15486 15487 15488 if test "x$PANDOC" = x; then 15489 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15490 fi 15491 else 15492 # Otherwise we believe it is a complete path. Use it as it is. 15493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15494 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15496 $as_echo_n "checking for PANDOC... " >&6; } 15497 if test ! -x "$tool_specified"; then 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15499 $as_echo "not found" >&6; } 15500 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15501 fi 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15503 $as_echo "$tool_specified" >&6; } 15504 fi 15505 fi 15506 fi 15507 15508 fi 15509 15510 15511 15512 15513 # Now we can determine OpenJDK build and target platforms. This is required to 15514 # have early on. 15515 # Make sure we can run config.sub. 15516 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15517 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15518 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15520 $as_echo_n "checking build system type... " >&6; } 15521 if ${ac_cv_build+:} false; then : 15522 $as_echo_n "(cached) " >&6 15523 else 15524 ac_build_alias=$build_alias 15525 test "x$ac_build_alias" = x && 15526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15527 test "x$ac_build_alias" = x && 15528 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15529 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15531 15532 fi 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15534 $as_echo "$ac_cv_build" >&6; } 15535 case $ac_cv_build in 15536 *-*-*) ;; 15537 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15538 esac 15539 build=$ac_cv_build 15540 ac_save_IFS=$IFS; IFS='-' 15541 set x $ac_cv_build 15542 shift 15543 build_cpu=$1 15544 build_vendor=$2 15545 shift; shift 15546 # Remember, the first character of IFS is used to create $*, 15547 # except with old shells: 15548 build_os=$* 15549 IFS=$ac_save_IFS 15550 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15551 15552 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15554 $as_echo_n "checking host system type... " >&6; } 15555 if ${ac_cv_host+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557 else 15558 if test "x$host_alias" = x; then 15559 ac_cv_host=$ac_cv_build 15560 else 15561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15563 fi 15564 15565 fi 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15567 $as_echo "$ac_cv_host" >&6; } 15568 case $ac_cv_host in 15569 *-*-*) ;; 15570 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15571 esac 15572 host=$ac_cv_host 15573 ac_save_IFS=$IFS; IFS='-' 15574 set x $ac_cv_host 15575 shift 15576 host_cpu=$1 15577 host_vendor=$2 15578 shift; shift 15579 # Remember, the first character of IFS is used to create $*, 15580 # except with old shells: 15581 host_os=$* 15582 IFS=$ac_save_IFS 15583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15584 15585 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15587 $as_echo_n "checking target system type... " >&6; } 15588 if ${ac_cv_target+:} false; then : 15589 $as_echo_n "(cached) " >&6 15590 else 15591 if test "x$target_alias" = x; then 15592 ac_cv_target=$ac_cv_host 15593 else 15594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15596 fi 15597 15598 fi 15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15600 $as_echo "$ac_cv_target" >&6; } 15601 case $ac_cv_target in 15602 *-*-*) ;; 15603 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15604 esac 15605 target=$ac_cv_target 15606 ac_save_IFS=$IFS; IFS='-' 15607 set x $ac_cv_target 15608 shift 15609 target_cpu=$1 15610 target_vendor=$2 15611 shift; shift 15612 # Remember, the first character of IFS is used to create $*, 15613 # except with old shells: 15614 target_os=$* 15615 IFS=$ac_save_IFS 15616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15617 15618 15619 # The aliases save the names the user supplied, while $host etc. 15620 # will get canonicalized. 15621 test -n "$target_alias" && 15622 test "$program_prefix$program_suffix$program_transform_name" = \ 15623 NONENONEs,x,x, && 15624 program_prefix=${target_alias}- 15625 15626 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15627 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15628 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15629 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15630 # to use the configure naming style. 15631 15632 15633 15634 15635 15636 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15637 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15638 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15639 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15640 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15641 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15642 15643 15644 15645 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15646 15647 case "$build_os" in 15648 *linux*) 15649 VAR_OS=linux 15650 VAR_OS_TYPE=unix 15651 ;; 15652 *solaris*) 15653 VAR_OS=solaris 15654 VAR_OS_TYPE=unix 15655 ;; 15656 *darwin*) 15657 VAR_OS=macosx 15658 VAR_OS_TYPE=unix 15659 ;; 15660 *bsd*) 15661 VAR_OS=bsd 15662 VAR_OS_TYPE=unix 15663 ;; 15664 *cygwin*) 15665 VAR_OS=windows 15666 VAR_OS_ENV=windows.cygwin 15667 ;; 15668 *mingw*) 15669 VAR_OS=windows 15670 VAR_OS_ENV=windows.msys 15671 ;; 15672 *aix*) 15673 VAR_OS=aix 15674 VAR_OS_TYPE=unix 15675 ;; 15676 *) 15677 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15678 ;; 15679 esac 15680 15681 15682 # First argument is the cpu name from the trip/quad 15683 case "$build_cpu" in 15684 x86_64) 15685 VAR_CPU=x86_64 15686 VAR_CPU_ARCH=x86 15687 VAR_CPU_BITS=64 15688 VAR_CPU_ENDIAN=little 15689 ;; 15690 i?86) 15691 VAR_CPU=x86 15692 VAR_CPU_ARCH=x86 15693 VAR_CPU_BITS=32 15694 VAR_CPU_ENDIAN=little 15695 ;; 15696 alpha*) 15697 VAR_CPU=alpha 15698 VAR_CPU_ARCH=alpha 15699 VAR_CPU_BITS=64 15700 VAR_CPU_ENDIAN=little 15701 ;; 15702 arm*) 15703 VAR_CPU=arm 15704 VAR_CPU_ARCH=arm 15705 VAR_CPU_BITS=32 15706 VAR_CPU_ENDIAN=little 15707 ;; 15708 aarch64) 15709 VAR_CPU=aarch64 15710 VAR_CPU_ARCH=aarch64 15711 VAR_CPU_BITS=64 15712 VAR_CPU_ENDIAN=little 15713 ;; 15714 m68k) 15715 VAR_CPU=m68k 15716 VAR_CPU_ARCH=m68k 15717 VAR_CPU_BITS=32 15718 VAR_CPU_ENDIAN=big 15719 ;; 15720 mips) 15721 VAR_CPU=mips 15722 VAR_CPU_ARCH=mips 15723 VAR_CPU_BITS=32 15724 VAR_CPU_ENDIAN=big 15725 ;; 15726 mipsel) 15727 VAR_CPU=mipsel 15728 VAR_CPU_ARCH=mipsel 15729 VAR_CPU_BITS=32 15730 VAR_CPU_ENDIAN=little 15731 ;; 15732 mips64) 15733 VAR_CPU=mips64 15734 VAR_CPU_ARCH=mips64 15735 VAR_CPU_BITS=64 15736 VAR_CPU_ENDIAN=big 15737 ;; 15738 mips64el) 15739 VAR_CPU=mips64el 15740 VAR_CPU_ARCH=mips64el 15741 VAR_CPU_BITS=64 15742 VAR_CPU_ENDIAN=little 15743 ;; 15744 powerpc) 15745 VAR_CPU=ppc 15746 VAR_CPU_ARCH=ppc 15747 VAR_CPU_BITS=32 15748 VAR_CPU_ENDIAN=big 15749 ;; 15750 powerpc64) 15751 VAR_CPU=ppc64 15752 VAR_CPU_ARCH=ppc 15753 VAR_CPU_BITS=64 15754 VAR_CPU_ENDIAN=big 15755 ;; 15756 powerpc64le) 15757 VAR_CPU=ppc64le 15758 VAR_CPU_ARCH=ppc 15759 VAR_CPU_BITS=64 15760 VAR_CPU_ENDIAN=little 15761 ;; 15762 s390) 15763 VAR_CPU=s390 15764 VAR_CPU_ARCH=s390 15765 VAR_CPU_BITS=32 15766 VAR_CPU_ENDIAN=big 15767 ;; 15768 s390x) 15769 VAR_CPU=s390x 15770 VAR_CPU_ARCH=s390 15771 VAR_CPU_BITS=64 15772 VAR_CPU_ENDIAN=big 15773 ;; 15774 sh*eb) 15775 VAR_CPU=sh 15776 VAR_CPU_ARCH=sh 15777 VAR_CPU_BITS=32 15778 VAR_CPU_ENDIAN=big 15779 ;; 15780 sh*) 15781 VAR_CPU=sh 15782 VAR_CPU_ARCH=sh 15783 VAR_CPU_BITS=32 15784 VAR_CPU_ENDIAN=little 15785 ;; 15786 sparc) 15787 VAR_CPU=sparc 15788 VAR_CPU_ARCH=sparc 15789 VAR_CPU_BITS=32 15790 VAR_CPU_ENDIAN=big 15791 ;; 15792 sparcv9|sparc64) 15793 VAR_CPU=sparcv9 15794 VAR_CPU_ARCH=sparc 15795 VAR_CPU_BITS=64 15796 VAR_CPU_ENDIAN=big 15797 ;; 15798 *) 15799 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15800 ;; 15801 esac 15802 15803 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15804 OPENJDK_BUILD_OS="$VAR_OS" 15805 if test "x$VAR_OS_TYPE" != x; then 15806 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15807 else 15808 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15809 fi 15810 if test "x$VAR_OS_ENV" != x; then 15811 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15812 else 15813 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15814 fi 15815 OPENJDK_BUILD_CPU="$VAR_CPU" 15816 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15817 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15818 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15819 15820 15821 15822 15823 15824 15825 15826 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15828 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15830 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15831 15832 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15833 15834 case "$host_os" in 15835 *linux*) 15836 VAR_OS=linux 15837 VAR_OS_TYPE=unix 15838 ;; 15839 *solaris*) 15840 VAR_OS=solaris 15841 VAR_OS_TYPE=unix 15842 ;; 15843 *darwin*) 15844 VAR_OS=macosx 15845 VAR_OS_TYPE=unix 15846 ;; 15847 *bsd*) 15848 VAR_OS=bsd 15849 VAR_OS_TYPE=unix 15850 ;; 15851 *cygwin*) 15852 VAR_OS=windows 15853 VAR_OS_ENV=windows.cygwin 15854 ;; 15855 *mingw*) 15856 VAR_OS=windows 15857 VAR_OS_ENV=windows.msys 15858 ;; 15859 *aix*) 15860 VAR_OS=aix 15861 VAR_OS_TYPE=unix 15862 ;; 15863 *) 15864 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15865 ;; 15866 esac 15867 15868 15869 # First argument is the cpu name from the trip/quad 15870 case "$host_cpu" in 15871 x86_64) 15872 VAR_CPU=x86_64 15873 VAR_CPU_ARCH=x86 15874 VAR_CPU_BITS=64 15875 VAR_CPU_ENDIAN=little 15876 ;; 15877 i?86) 15878 VAR_CPU=x86 15879 VAR_CPU_ARCH=x86 15880 VAR_CPU_BITS=32 15881 VAR_CPU_ENDIAN=little 15882 ;; 15883 alpha*) 15884 VAR_CPU=alpha 15885 VAR_CPU_ARCH=alpha 15886 VAR_CPU_BITS=64 15887 VAR_CPU_ENDIAN=little 15888 ;; 15889 arm*) 15890 VAR_CPU=arm 15891 VAR_CPU_ARCH=arm 15892 VAR_CPU_BITS=32 15893 VAR_CPU_ENDIAN=little 15894 ;; 15895 aarch64) 15896 VAR_CPU=aarch64 15897 VAR_CPU_ARCH=aarch64 15898 VAR_CPU_BITS=64 15899 VAR_CPU_ENDIAN=little 15900 ;; 15901 m68k) 15902 VAR_CPU=m68k 15903 VAR_CPU_ARCH=m68k 15904 VAR_CPU_BITS=32 15905 VAR_CPU_ENDIAN=big 15906 ;; 15907 mips) 15908 VAR_CPU=mips 15909 VAR_CPU_ARCH=mips 15910 VAR_CPU_BITS=32 15911 VAR_CPU_ENDIAN=big 15912 ;; 15913 mipsel) 15914 VAR_CPU=mipsel 15915 VAR_CPU_ARCH=mipsel 15916 VAR_CPU_BITS=32 15917 VAR_CPU_ENDIAN=little 15918 ;; 15919 mips64) 15920 VAR_CPU=mips64 15921 VAR_CPU_ARCH=mips64 15922 VAR_CPU_BITS=64 15923 VAR_CPU_ENDIAN=big 15924 ;; 15925 mips64el) 15926 VAR_CPU=mips64el 15927 VAR_CPU_ARCH=mips64el 15928 VAR_CPU_BITS=64 15929 VAR_CPU_ENDIAN=little 15930 ;; 15931 powerpc) 15932 VAR_CPU=ppc 15933 VAR_CPU_ARCH=ppc 15934 VAR_CPU_BITS=32 15935 VAR_CPU_ENDIAN=big 15936 ;; 15937 powerpc64) 15938 VAR_CPU=ppc64 15939 VAR_CPU_ARCH=ppc 15940 VAR_CPU_BITS=64 15941 VAR_CPU_ENDIAN=big 15942 ;; 15943 powerpc64le) 15944 VAR_CPU=ppc64le 15945 VAR_CPU_ARCH=ppc 15946 VAR_CPU_BITS=64 15947 VAR_CPU_ENDIAN=little 15948 ;; 15949 s390) 15950 VAR_CPU=s390 15951 VAR_CPU_ARCH=s390 15952 VAR_CPU_BITS=32 15953 VAR_CPU_ENDIAN=big 15954 ;; 15955 s390x) 15956 VAR_CPU=s390x 15957 VAR_CPU_ARCH=s390 15958 VAR_CPU_BITS=64 15959 VAR_CPU_ENDIAN=big 15960 ;; 15961 sh*eb) 15962 VAR_CPU=sh 15963 VAR_CPU_ARCH=sh 15964 VAR_CPU_BITS=32 15965 VAR_CPU_ENDIAN=big 15966 ;; 15967 sh*) 15968 VAR_CPU=sh 15969 VAR_CPU_ARCH=sh 15970 VAR_CPU_BITS=32 15971 VAR_CPU_ENDIAN=little 15972 ;; 15973 sparc) 15974 VAR_CPU=sparc 15975 VAR_CPU_ARCH=sparc 15976 VAR_CPU_BITS=32 15977 VAR_CPU_ENDIAN=big 15978 ;; 15979 sparcv9|sparc64) 15980 VAR_CPU=sparcv9 15981 VAR_CPU_ARCH=sparc 15982 VAR_CPU_BITS=64 15983 VAR_CPU_ENDIAN=big 15984 ;; 15985 *) 15986 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15987 ;; 15988 esac 15989 15990 # ... and setup our own variables. (Do this explicitly to facilitate searching) 15991 OPENJDK_TARGET_OS="$VAR_OS" 15992 if test "x$VAR_OS_TYPE" != x; then 15993 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15994 else 15995 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15996 fi 15997 if test "x$VAR_OS_ENV" != x; then 15998 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15999 else 16000 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16001 fi 16002 OPENJDK_TARGET_CPU="$VAR_CPU" 16003 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16004 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16005 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16006 16007 16008 16009 16010 16011 16012 16013 16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16015 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16017 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16018 16019 16020 16021 # Check whether --with-target-bits was given. 16022 if test "${with_target_bits+set}" = set; then : 16023 withval=$with_target_bits; 16024 fi 16025 16026 16027 # We have three types of compiles: 16028 # native == normal compilation, target system == build system 16029 # cross == traditional cross compilation, target system != build system; special toolchain needed 16030 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16031 # 16032 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16033 # We're doing a proper cross-compilation 16034 COMPILE_TYPE="cross" 16035 else 16036 COMPILE_TYPE="native" 16037 fi 16038 16039 if test "x$with_target_bits" != x; then 16040 if test "x$COMPILE_TYPE" = "xcross"; then 16041 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16042 fi 16043 16044 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16045 # A reduced build is requested 16046 COMPILE_TYPE="reduced" 16047 OPENJDK_TARGET_CPU_BITS=32 16048 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16049 OPENJDK_TARGET_CPU=x86 16050 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16051 OPENJDK_TARGET_CPU=sparc 16052 else 16053 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16054 fi 16055 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16056 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 16057 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16059 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16060 else 16061 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16062 fi 16063 fi 16064 16065 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16067 $as_echo_n "checking compilation type... " >&6; } 16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16069 $as_echo "$COMPILE_TYPE" >&6; } 16070 16071 16072 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16073 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16074 else 16075 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16076 fi 16077 16078 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16079 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16080 else 16081 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16082 fi 16083 16084 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16085 16086 16087 16088 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16089 RELEASE_FILE_OS_NAME=SunOS 16090 fi 16091 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16092 RELEASE_FILE_OS_NAME=Linux 16093 fi 16094 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16095 RELEASE_FILE_OS_NAME=Windows 16096 fi 16097 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16098 RELEASE_FILE_OS_NAME="Darwin" 16099 fi 16100 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16101 RELEASE_FILE_OS_NAME="AIX" 16102 fi 16103 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16104 16105 16106 16107 16108 16109 16110 # Also store the legacy naming of the cpu. 16111 # Ie i586 and amd64 instead of x86 and x86_64 16112 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16113 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16114 OPENJDK_TARGET_CPU_LEGACY="i586" 16115 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16116 # On all platforms except MacOSX replace x86_64 with amd64. 16117 OPENJDK_TARGET_CPU_LEGACY="amd64" 16118 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16119 # Avoid name collisions with variables named alpha 16120 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16121 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16122 # Avoid name collisions with variables named sh 16123 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16124 fi 16125 16126 16127 # And the second legacy naming of the cpu. 16128 # Ie i386 and amd64 instead of x86 and x86_64. 16129 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16130 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16131 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16132 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16133 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16134 fi 16135 16136 16137 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16138 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16139 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16140 OPENJDK_TARGET_CPU_ISADIR="" 16141 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16142 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16143 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16144 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16145 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16146 fi 16147 fi 16148 16149 16150 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16151 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16152 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16153 # On linux only, we replace x86 with i386. 16154 OPENJDK_TARGET_CPU_OSARCH="i386" 16155 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16156 # On all platforms except macosx, we replace x86_64 with amd64. 16157 OPENJDK_TARGET_CPU_OSARCH="amd64" 16158 fi 16159 16160 16161 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16162 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16163 OPENJDK_TARGET_CPU_JLI="i386" 16164 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16165 # On all platforms except macosx, we replace x86_64 with amd64. 16166 OPENJDK_TARGET_CPU_JLI="amd64" 16167 fi 16168 16169 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16170 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 16171 else 16172 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 16173 fi 16174 16175 16176 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16177 # Macosx is osx and x86_64 is x64 16178 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16179 OPENJDK_TARGET_OS_BUNDLE="osx" 16180 else 16181 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16182 fi 16183 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16184 OPENJDK_TARGET_CPU_BUNDLE="x64" 16185 else 16186 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16187 fi 16188 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16189 16190 16191 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16192 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16193 # unpack200.exe. This variable is used in 16194 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16195 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16196 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16197 fi 16198 fi 16199 16200 if test "x$COMPILE_TYPE" = "xcross"; then 16201 # FIXME: ... or should this include reduced builds..? 16202 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16203 else 16204 DEFINE_CROSS_COMPILE_ARCH="" 16205 fi 16206 16207 16208 # Convert openjdk platform names to hotspot names 16209 16210 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16211 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16212 HOTSPOT_TARGET_OS=bsd 16213 fi 16214 16215 16216 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16217 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16218 HOTSPOT_TARGET_OS_TYPE=posix 16219 fi 16220 16221 16222 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16223 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16224 HOTSPOT_TARGET_CPU=x86_32 16225 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16226 HOTSPOT_TARGET_CPU=sparc 16227 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16228 HOTSPOT_TARGET_CPU=ppc_64 16229 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16230 HOTSPOT_TARGET_CPU=ppc_64 16231 fi 16232 16233 16234 # This is identical with OPENJDK_*, but define anyway for consistency. 16235 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16236 16237 16238 # Setup HOTSPOT_TARGET_CPU_DEFINE 16239 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16240 HOTSPOT_TARGET_CPU_DEFINE=IA32 16241 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16242 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16243 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16244 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16245 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16246 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16247 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16248 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16249 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16250 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16251 16252 # The cpu defines below are for zero, we don't support them directly. 16253 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16254 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16255 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16256 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16257 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16258 HOTSPOT_TARGET_CPU_DEFINE=S390 16259 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16260 HOTSPOT_TARGET_CPU_DEFINE=S390 16261 elif test "x$OPENJDK_TARGET_CPU" != x; then 16262 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16263 fi 16264 16265 16266 16267 16268 # Also store the legacy naming of the cpu. 16269 # Ie i586 and amd64 instead of x86 and x86_64 16270 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16271 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16272 OPENJDK_BUILD_CPU_LEGACY="i586" 16273 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16274 # On all platforms except MacOSX replace x86_64 with amd64. 16275 OPENJDK_BUILD_CPU_LEGACY="amd64" 16276 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16277 # Avoid name collisions with variables named alpha 16278 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16279 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16280 # Avoid name collisions with variables named sh 16281 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16282 fi 16283 16284 16285 # And the second legacy naming of the cpu. 16286 # Ie i386 and amd64 instead of x86 and x86_64. 16287 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16288 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16289 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16290 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16291 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16292 fi 16293 16294 16295 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16296 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16297 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16298 OPENJDK_BUILD_CPU_ISADIR="" 16299 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16300 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16301 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16302 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16303 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16304 fi 16305 fi 16306 16307 16308 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16309 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16310 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16311 # On linux only, we replace x86 with i386. 16312 OPENJDK_BUILD_CPU_OSARCH="i386" 16313 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16314 # On all platforms except macosx, we replace x86_64 with amd64. 16315 OPENJDK_BUILD_CPU_OSARCH="amd64" 16316 fi 16317 16318 16319 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16320 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16321 OPENJDK_BUILD_CPU_JLI="i386" 16322 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16323 # On all platforms except macosx, we replace x86_64 with amd64. 16324 OPENJDK_BUILD_CPU_JLI="amd64" 16325 fi 16326 16327 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16328 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16329 else 16330 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16331 fi 16332 16333 16334 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16335 # Macosx is osx and x86_64 is x64 16336 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16337 OPENJDK_BUILD_OS_BUNDLE="osx" 16338 else 16339 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16340 fi 16341 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16342 OPENJDK_BUILD_CPU_BUNDLE="x64" 16343 else 16344 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16345 fi 16346 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16347 16348 16349 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16350 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16351 # unpack200.exe. This variable is used in 16352 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16353 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16354 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16355 fi 16356 fi 16357 16358 if test "x$COMPILE_TYPE" = "xcross"; then 16359 # FIXME: ... or should this include reduced builds..? 16360 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16361 else 16362 DEFINE_CROSS_COMPILE_ARCH="" 16363 fi 16364 16365 16366 # Convert openjdk platform names to hotspot names 16367 16368 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16369 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16370 HOTSPOT_BUILD_OS=bsd 16371 fi 16372 16373 16374 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16375 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16376 HOTSPOT_BUILD_OS_TYPE=posix 16377 fi 16378 16379 16380 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16381 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16382 HOTSPOT_BUILD_CPU=x86_32 16383 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16384 HOTSPOT_BUILD_CPU=sparc 16385 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16386 HOTSPOT_BUILD_CPU=ppc_64 16387 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16388 HOTSPOT_BUILD_CPU=ppc_64 16389 fi 16390 16391 16392 # This is identical with OPENJDK_*, but define anyway for consistency. 16393 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16394 16395 16396 # Setup HOTSPOT_BUILD_CPU_DEFINE 16397 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16398 HOTSPOT_BUILD_CPU_DEFINE=IA32 16399 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16400 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16401 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16402 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16403 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16404 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16405 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16406 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16407 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16408 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16409 16410 # The cpu defines below are for zero, we don't support them directly. 16411 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16412 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16413 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16414 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16415 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16416 HOTSPOT_BUILD_CPU_DEFINE=S390 16417 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16418 HOTSPOT_BUILD_CPU_DEFINE=S390 16419 elif test "x$OPENJDK_BUILD_CPU" != x; then 16420 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16421 fi 16422 16423 16424 16425 16426 16427 16428 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16429 16430 # Save the current directory this script was started from 16431 CURDIR="$PWD" 16432 16433 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16434 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16435 # was not available at that time. 16436 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16437 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16438 ORIGINAL_PATH="$REWRITTEN_PATH" 16439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16440 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16441 fi 16442 16443 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16444 PATH_SEP=";" 16445 16446 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16447 if test $SRC_ROOT_LENGTH -gt 100; then 16448 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16449 fi 16450 16451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16453 $as_echo_n "checking cygwin release... " >&6; } 16454 CYGWIN_VERSION=`$UNAME -r` 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16456 $as_echo "$CYGWIN_VERSION" >&6; } 16457 WINDOWS_ENV_VENDOR='cygwin' 16458 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16459 16460 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16461 if test "x$CYGWIN_VERSION_OLD" != x; then 16462 { $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 16463 $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;} 16464 as_fn_error $? "Cannot continue" "$LINENO" 5 16465 fi 16466 if test "x$CYGPATH" = x; then 16467 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16468 fi 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16470 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16471 # The cmd output ends with Windows line endings (CR/LF) 16472 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16473 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16474 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16476 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16477 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16478 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16479 if test "x$test_cygdrive_prefix" = x; then 16480 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16481 fi 16482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16484 $as_echo_n "checking msys release... " >&6; } 16485 MSYS_VERSION=`$UNAME -r` 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16487 $as_echo "$MSYS_VERSION" >&6; } 16488 16489 WINDOWS_ENV_VENDOR='msys' 16490 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16491 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16493 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16494 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16495 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16496 16497 windows_path="$MSYS_ROOT_PATH" 16498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16499 unix_path=`$CYGPATH -u "$windows_path"` 16500 MSYS_ROOT_PATH="$unix_path" 16501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16503 MSYS_ROOT_PATH="$unix_path" 16504 fi 16505 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16507 $as_echo "$MSYS_ROOT_PATH" >&6; } 16508 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16509 else 16510 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16511 fi 16512 16513 # Test if windows or unix (cygwin/msys) find is first in path. 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16515 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16516 FIND_BINARY_OUTPUT=`find --version 2>&1` 16517 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16519 $as_echo "unix style" >&6; } 16520 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16522 $as_echo "Windows" >&6; } 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16524 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16525 { $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 16526 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16527 as_fn_error $? "Cannot continue" "$LINENO" 5 16528 else 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16530 $as_echo "unknown" >&6; } 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16532 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16533 fi 16534 16535 else 16536 PATH_SEP=":" 16537 fi 16538 16539 16540 # We get the top-level directory from the supporting wrappers. 16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16542 $as_echo_n "checking for top-level directory... " >&6; } 16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16544 $as_echo "$TOPDIR" >&6; } 16545 16546 16547 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16548 16549 # Only process if variable expands to non-empty 16550 16551 if test "x$CURDIR" != x; then 16552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16553 16554 # Input might be given as Windows format, start by converting to 16555 # unix format. 16556 path="$CURDIR" 16557 new_path=`$CYGPATH -u "$path"` 16558 16559 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16560 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16561 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16562 # "foo.exe" is OK but "foo" is an error. 16563 # 16564 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16565 # It is also a way to make sure we got the proper file name for the real test later on. 16566 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16567 if test "x$test_shortpath" = x; then 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16569 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16570 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16571 fi 16572 16573 # Call helper function which possibly converts this using DOS-style short mode. 16574 # If so, the updated path is stored in $new_path. 16575 16576 input_path="$new_path" 16577 # Check if we need to convert this using DOS-style short mode. If the path 16578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16579 # take no chances and rewrite it. 16580 # Note: m4 eats our [], so we need to use [ and ] instead. 16581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16582 if test "x$has_forbidden_chars" != x; then 16583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16584 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16585 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16586 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16587 # Going to short mode and back again did indeed matter. Since short mode is 16588 # case insensitive, let's make it lowercase to improve readability. 16589 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16590 # Now convert it back to Unix-style (cygpath) 16591 input_path=`$CYGPATH -u "$shortmode_path"` 16592 new_path="$input_path" 16593 fi 16594 fi 16595 16596 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16597 if test "x$test_cygdrive_prefix" = x; then 16598 # As a simple fix, exclude /usr/bin since it's not a real path. 16599 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16600 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16601 # a path prefixed by /cygdrive for fixpath to work. 16602 new_path="$CYGWIN_ROOT_PATH$input_path" 16603 fi 16604 fi 16605 16606 16607 if test "x$path" != "x$new_path"; then 16608 CURDIR="$new_path" 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16610 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16611 fi 16612 16613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16614 16615 path="$CURDIR" 16616 has_colon=`$ECHO $path | $GREP ^.:` 16617 new_path="$path" 16618 if test "x$has_colon" = x; then 16619 # Not in mixed or Windows style, start by that. 16620 new_path=`cmd //c echo $path` 16621 fi 16622 16623 16624 input_path="$new_path" 16625 # Check if we need to convert this using DOS-style short mode. If the path 16626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16627 # take no chances and rewrite it. 16628 # Note: m4 eats our [], so we need to use [ and ] instead. 16629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16630 if test "x$has_forbidden_chars" != x; then 16631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16632 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16633 fi 16634 16635 16636 windows_path="$new_path" 16637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16638 unix_path=`$CYGPATH -u "$windows_path"` 16639 new_path="$unix_path" 16640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16642 new_path="$unix_path" 16643 fi 16644 16645 if test "x$path" != "x$new_path"; then 16646 CURDIR="$new_path" 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16648 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16649 fi 16650 16651 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16652 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16653 16654 else 16655 # We're on a unix platform. Hooray! :) 16656 path="$CURDIR" 16657 has_space=`$ECHO "$path" | $GREP " "` 16658 if test "x$has_space" != x; then 16659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16660 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16661 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16662 fi 16663 16664 # Use eval to expand a potential ~ 16665 eval path="$path" 16666 if test ! -f "$path" && test ! -d "$path"; then 16667 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16668 fi 16669 16670 if test -d "$path"; then 16671 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16672 else 16673 dir="`$DIRNAME "$path"`" 16674 base="`$BASENAME "$path"`" 16675 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16676 fi 16677 fi 16678 fi 16679 16680 16681 # Only process if variable expands to non-empty 16682 16683 if test "x$TOPDIR" != x; then 16684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16685 16686 # Input might be given as Windows format, start by converting to 16687 # unix format. 16688 path="$TOPDIR" 16689 new_path=`$CYGPATH -u "$path"` 16690 16691 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16692 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16693 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16694 # "foo.exe" is OK but "foo" is an error. 16695 # 16696 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16697 # It is also a way to make sure we got the proper file name for the real test later on. 16698 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16699 if test "x$test_shortpath" = x; then 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16701 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16702 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16703 fi 16704 16705 # Call helper function which possibly converts this using DOS-style short mode. 16706 # If so, the updated path is stored in $new_path. 16707 16708 input_path="$new_path" 16709 # Check if we need to convert this using DOS-style short mode. If the path 16710 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16711 # take no chances and rewrite it. 16712 # Note: m4 eats our [], so we need to use [ and ] instead. 16713 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16714 if test "x$has_forbidden_chars" != x; then 16715 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16716 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16717 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16718 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16719 # Going to short mode and back again did indeed matter. Since short mode is 16720 # case insensitive, let's make it lowercase to improve readability. 16721 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16722 # Now convert it back to Unix-style (cygpath) 16723 input_path=`$CYGPATH -u "$shortmode_path"` 16724 new_path="$input_path" 16725 fi 16726 fi 16727 16728 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16729 if test "x$test_cygdrive_prefix" = x; then 16730 # As a simple fix, exclude /usr/bin since it's not a real path. 16731 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16732 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16733 # a path prefixed by /cygdrive for fixpath to work. 16734 new_path="$CYGWIN_ROOT_PATH$input_path" 16735 fi 16736 fi 16737 16738 16739 if test "x$path" != "x$new_path"; then 16740 TOPDIR="$new_path" 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16742 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16743 fi 16744 16745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16746 16747 path="$TOPDIR" 16748 has_colon=`$ECHO $path | $GREP ^.:` 16749 new_path="$path" 16750 if test "x$has_colon" = x; then 16751 # Not in mixed or Windows style, start by that. 16752 new_path=`cmd //c echo $path` 16753 fi 16754 16755 16756 input_path="$new_path" 16757 # Check if we need to convert this using DOS-style short mode. If the path 16758 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16759 # take no chances and rewrite it. 16760 # Note: m4 eats our [], so we need to use [ and ] instead. 16761 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16762 if test "x$has_forbidden_chars" != x; then 16763 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16764 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16765 fi 16766 16767 16768 windows_path="$new_path" 16769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16770 unix_path=`$CYGPATH -u "$windows_path"` 16771 new_path="$unix_path" 16772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16773 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16774 new_path="$unix_path" 16775 fi 16776 16777 if test "x$path" != "x$new_path"; then 16778 TOPDIR="$new_path" 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16780 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16781 fi 16782 16783 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16784 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16785 16786 else 16787 # We're on a unix platform. Hooray! :) 16788 path="$TOPDIR" 16789 has_space=`$ECHO "$path" | $GREP " "` 16790 if test "x$has_space" != x; then 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16792 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16793 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16794 fi 16795 16796 # Use eval to expand a potential ~ 16797 eval path="$path" 16798 if test ! -f "$path" && test ! -d "$path"; then 16799 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16800 fi 16801 16802 if test -d "$path"; then 16803 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16804 else 16805 dir="`$DIRNAME "$path"`" 16806 base="`$BASENAME "$path"`" 16807 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16808 fi 16809 fi 16810 fi 16811 16812 16813 # Locate the directory of this script. 16814 AUTOCONF_DIR=$TOPDIR/make/autoconf 16815 16816 # Setup username (for use in adhoc version strings etc) 16817 # Outer [ ] to quote m4. 16818 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16819 16820 16821 16822 # Check if it's a pure open build or if custom sources are to be used. 16823 16824 # Check whether --enable-openjdk-only was given. 16825 if test "${enable_openjdk_only+set}" = set; then : 16826 enableval=$enable_openjdk_only; 16827 else 16828 enable_openjdk_only="no" 16829 fi 16830 16831 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16833 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16835 $as_echo "$enable_openjdk_only" >&6; } 16836 if test "x$enable_openjdk_only" = "xyes"; then 16837 SUPPRESS_CUSTOM_EXTENSIONS="true" 16838 elif test "x$enable_openjdk_only" = "xno"; then 16839 SUPPRESS_CUSTOM_EXTENSIONS="false" 16840 else 16841 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16842 fi 16843 16844 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16845 # the IncludeCustomExtension macro. 16846 16847 16848 # Check whether --with-custom-make-dir was given. 16849 if test "${with_custom_make_dir+set}" = set; then : 16850 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 16851 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16852 fi 16853 16854 16855 16856 16857 # These are needed to be able to create a configuration name (and thus the output directory) 16858 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16860 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16861 16862 # Check whether --with-jdk-variant was given. 16863 if test "${with_jdk_variant+set}" = set; then : 16864 withval=$with_jdk_variant; 16865 fi 16866 16867 16868 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16869 JDK_VARIANT="normal" 16870 else 16871 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16872 fi 16873 16874 16875 16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16877 $as_echo "$JDK_VARIANT" >&6; } 16878 16879 16880 DEBUG_LEVEL="release" 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16882 $as_echo_n "checking which debug level to use... " >&6; } 16883 # Check whether --enable-debug was given. 16884 if test "${enable_debug+set}" = set; then : 16885 enableval=$enable_debug; 16886 ENABLE_DEBUG="${enableval}" 16887 DEBUG_LEVEL="fastdebug" 16888 16889 else 16890 ENABLE_DEBUG="no" 16891 fi 16892 16893 16894 16895 # Check whether --with-debug-level was given. 16896 if test "${with_debug_level+set}" = set; then : 16897 withval=$with_debug_level; 16898 DEBUG_LEVEL="${withval}" 16899 if test "x$ENABLE_DEBUG" = xyes; then 16900 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16901 fi 16902 16903 fi 16904 16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16906 $as_echo "$DEBUG_LEVEL" >&6; } 16907 16908 if test "x$DEBUG_LEVEL" != xrelease && \ 16909 test "x$DEBUG_LEVEL" != xoptimized && \ 16910 test "x$DEBUG_LEVEL" != xfastdebug && \ 16911 test "x$DEBUG_LEVEL" != xslowdebug; then 16912 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16913 fi 16914 16915 # Translate DEBUG_LEVEL to debug level used by Hotspot 16916 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16917 if test "x$DEBUG_LEVEL" = xrelease; then 16918 HOTSPOT_DEBUG_LEVEL="product" 16919 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16920 HOTSPOT_DEBUG_LEVEL="debug" 16921 fi 16922 16923 if test "x$DEBUG_LEVEL" = xoptimized; then 16924 # The debug level 'optimized' is a little special because it is currently only 16925 # applicable to the HotSpot build where it means to build a completely 16926 # optimized version of the VM without any debugging code (like for the 16927 # 'release' debug level which is called 'product' in the HotSpot build) but 16928 # with the exception that it can contain additional code which is otherwise 16929 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16930 # test new and/or experimental features which are not intended for customer 16931 # shipment. Because these new features need to be tested and benchmarked in 16932 # real world scenarios, we want to build the containing JDK at the 'release' 16933 # debug level. 16934 DEBUG_LEVEL="release" 16935 fi 16936 16937 16938 16939 16940 16941 16942 # Check whether --with-jvm-variants was given. 16943 if test "${with_jvm_variants+set}" = set; then : 16944 withval=$with_jvm_variants; 16945 fi 16946 16947 16948 16949 16950 # Check whether --with-cpu-port was given. 16951 if test "${with_cpu_port+set}" = set; then : 16952 withval=$with_cpu_port; 16953 fi 16954 16955 16956 if test "x$with_cpu_port" != x; then 16957 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 16958 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 16959 fi 16960 if test "x$with_cpu_port" != xarm64 && \ 16961 test "x$with_cpu_port" != xaarch64; then 16962 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 16963 fi 16964 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 16965 fi 16966 16967 16968 if test "x$with_jvm_variants" = x; then 16969 with_jvm_variants="server" 16970 fi 16971 JVM_VARIANTS_OPT="$with_jvm_variants" 16972 16973 # Has the user listed more than one variant? 16974 # Additional [] needed to keep m4 from mangling shell constructs. 16975 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16976 BUILDING_MULTIPLE_JVM_VARIANTS=true 16977 else 16978 BUILDING_MULTIPLE_JVM_VARIANTS=false 16979 fi 16980 # Replace the commas with AND for use in the build directory name. 16981 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16982 16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16984 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16985 # JVM_VARIANTS is a space-separated list. 16986 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16987 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16989 $as_echo "$JVM_VARIANTS" >&6; } 16990 16991 # Check that the selected variants are valid 16992 16993 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16994 # Notice that the original variant failes on SLES 10 and 11 16995 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16996 STACK=${JVM_VARIANTS// /$'\n'} 16997 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16998 if test "x$INVALID_VARIANTS" != x; then 16999 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17000 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17001 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17002 fi 17003 17004 # All "special" variants share the same output directory ("server") 17005 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17006 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17007 STACK=${JVM_VARIANTS// /$'\n'} 17008 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17009 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17010 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17011 fi 17012 17013 # The "main" variant is the one used by other libs to link against during the 17014 # build. 17015 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17016 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17017 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17018 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17019 JVM_VARIANT_MAIN="$variant" 17020 break 17021 fi 17022 done 17023 else 17024 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17025 fi 17026 17027 17028 17029 17030 17031 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 17032 # zero behaves as a platform and rewrites these values. This is really weird. :( 17033 # We are guaranteed that we do not build any other variants when building zero. 17034 HOTSPOT_TARGET_CPU=zero 17035 HOTSPOT_TARGET_CPU_ARCH=zero 17036 fi 17037 17038 17039 # With basic setup done, call the custom early hook. 17040 17041 17042 # Check if we have devkits, extra paths or sysroot set. 17043 17044 17045 # Check whether --with-devkit was given. 17046 if test "${with_devkit+set}" = set; then : 17047 withval=$with_devkit; 17048 17049 # Only process if variable expands to non-empty 17050 17051 if test "x$with_devkit" != x; then 17052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17053 17054 # Input might be given as Windows format, start by converting to 17055 # unix format. 17056 path="$with_devkit" 17057 new_path=`$CYGPATH -u "$path"` 17058 17059 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17060 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17061 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17062 # "foo.exe" is OK but "foo" is an error. 17063 # 17064 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17065 # It is also a way to make sure we got the proper file name for the real test later on. 17066 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17067 if test "x$test_shortpath" = x; then 17068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17069 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17070 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17071 fi 17072 17073 # Call helper function which possibly converts this using DOS-style short mode. 17074 # If so, the updated path is stored in $new_path. 17075 17076 input_path="$new_path" 17077 # Check if we need to convert this using DOS-style short mode. If the path 17078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17079 # take no chances and rewrite it. 17080 # Note: m4 eats our [], so we need to use [ and ] instead. 17081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17082 if test "x$has_forbidden_chars" != x; then 17083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17084 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17085 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17086 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17087 # Going to short mode and back again did indeed matter. Since short mode is 17088 # case insensitive, let's make it lowercase to improve readability. 17089 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17090 # Now convert it back to Unix-style (cygpath) 17091 input_path=`$CYGPATH -u "$shortmode_path"` 17092 new_path="$input_path" 17093 fi 17094 fi 17095 17096 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17097 if test "x$test_cygdrive_prefix" = x; then 17098 # As a simple fix, exclude /usr/bin since it's not a real path. 17099 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17100 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17101 # a path prefixed by /cygdrive for fixpath to work. 17102 new_path="$CYGWIN_ROOT_PATH$input_path" 17103 fi 17104 fi 17105 17106 17107 if test "x$path" != "x$new_path"; then 17108 with_devkit="$new_path" 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17110 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17111 fi 17112 17113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17114 17115 path="$with_devkit" 17116 has_colon=`$ECHO $path | $GREP ^.:` 17117 new_path="$path" 17118 if test "x$has_colon" = x; then 17119 # Not in mixed or Windows style, start by that. 17120 new_path=`cmd //c echo $path` 17121 fi 17122 17123 17124 input_path="$new_path" 17125 # Check if we need to convert this using DOS-style short mode. If the path 17126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17127 # take no chances and rewrite it. 17128 # Note: m4 eats our [], so we need to use [ and ] instead. 17129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17130 if test "x$has_forbidden_chars" != x; then 17131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17132 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17133 fi 17134 17135 17136 windows_path="$new_path" 17137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17138 unix_path=`$CYGPATH -u "$windows_path"` 17139 new_path="$unix_path" 17140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17142 new_path="$unix_path" 17143 fi 17144 17145 if test "x$path" != "x$new_path"; then 17146 with_devkit="$new_path" 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17148 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17149 fi 17150 17151 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17152 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17153 17154 else 17155 # We're on a unix platform. Hooray! :) 17156 path="$with_devkit" 17157 has_space=`$ECHO "$path" | $GREP " "` 17158 if test "x$has_space" != x; then 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17160 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17161 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17162 fi 17163 17164 # Use eval to expand a potential ~ 17165 eval path="$path" 17166 if test ! -f "$path" && test ! -d "$path"; then 17167 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17168 fi 17169 17170 if test -d "$path"; then 17171 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17172 else 17173 dir="`$DIRNAME "$path"`" 17174 base="`$BASENAME "$path"`" 17175 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17176 fi 17177 fi 17178 fi 17179 17180 DEVKIT_ROOT="$with_devkit" 17181 # Check for a meta data info file in the root of the devkit 17182 if test -f "$DEVKIT_ROOT/devkit.info"; then 17183 . $DEVKIT_ROOT/devkit.info 17184 # This potentially sets the following: 17185 # A descriptive name of the devkit 17186 17187 if test "x$DEVKIT_NAME" = x; then 17188 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17189 fi 17190 17191 # Corresponds to --with-extra-path 17192 17193 if test "x$DEVKIT_EXTRA_PATH" = x; then 17194 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17195 fi 17196 17197 # Corresponds to --with-toolchain-path 17198 17199 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17200 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17201 fi 17202 17203 # Corresponds to --with-sysroot 17204 17205 if test "x$DEVKIT_SYSROOT" = x; then 17206 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17207 fi 17208 17209 17210 # Identifies the Visual Studio version in the devkit 17211 17212 if test "x$DEVKIT_VS_VERSION" = x; then 17213 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17214 fi 17215 17216 # The Visual Studio include environment variable 17217 17218 if test "x$DEVKIT_VS_INCLUDE" = x; then 17219 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17220 fi 17221 17222 # The Visual Studio lib environment variable 17223 17224 if test "x$DEVKIT_VS_LIB" = x; then 17225 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17226 fi 17227 17228 # Corresponds to --with-msvcr-dll 17229 17230 if test "x$DEVKIT_MSVCR_DLL" = x; then 17231 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17232 fi 17233 17234 # Corresponds to --with-msvcp-dll 17235 17236 if test "x$DEVKIT_MSVCP_DLL" = x; then 17237 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17238 fi 17239 17240 fi 17241 17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17243 $as_echo_n "checking for devkit... " >&6; } 17244 if test "x$DEVKIT_NAME" != x; then 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17246 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17247 else 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17249 $as_echo "$DEVKIT_ROOT" >&6; } 17250 fi 17251 17252 17253 if test "x$DEVKIT_EXTRA_PATH" != x; then 17254 if test "x$EXTRA_PATH" = x; then 17255 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17256 else 17257 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17258 fi 17259 fi 17260 17261 17262 # Fallback default of just /bin if DEVKIT_PATH is not defined 17263 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17264 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17265 fi 17266 17267 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17268 if test "x$TOOLCHAIN_PATH" = x; then 17269 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17270 else 17271 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17272 fi 17273 fi 17274 17275 17276 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17277 # places for backwards compatiblity. 17278 if test "x$DEVKIT_SYSROOT" != x; then 17279 SYSROOT="$DEVKIT_SYSROOT" 17280 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17281 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17282 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17283 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17284 fi 17285 17286 if test "x$DEVKIT_ROOT" != x; then 17287 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 17288 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 17289 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 17290 fi 17291 17292 fi 17293 17294 17295 fi 17296 17297 17298 # You can force the sysroot if the sysroot encoded into the compiler tools 17299 # is not correct. 17300 17301 # Check whether --with-sys-root was given. 17302 if test "${with_sys_root+set}" = set; then : 17303 withval=$with_sys_root; SYSROOT=$with_sys_root 17304 17305 fi 17306 17307 17308 17309 # Check whether --with-sysroot was given. 17310 if test "${with_sysroot+set}" = set; then : 17311 withval=$with_sysroot; SYSROOT=$with_sysroot 17312 17313 fi 17314 17315 17316 17317 # Check whether --with-tools-dir was given. 17318 if test "${with_tools_dir+set}" = set; then : 17319 withval=$with_tools_dir; 17320 if test "x$with_tools_dir" != x; then 17321 if test "x$TOOLCHAIN_PATH" = x; then 17322 TOOLCHAIN_PATH="$with_tools_dir" 17323 else 17324 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17325 fi 17326 fi 17327 17328 17329 fi 17330 17331 17332 17333 # Check whether --with-toolchain-path was given. 17334 if test "${with_toolchain_path+set}" = set; then : 17335 withval=$with_toolchain_path; 17336 if test "x$with_toolchain_path" != x; then 17337 if test "x$TOOLCHAIN_PATH" = x; then 17338 TOOLCHAIN_PATH="$with_toolchain_path" 17339 else 17340 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17341 fi 17342 fi 17343 17344 17345 fi 17346 17347 17348 17349 # Check whether --with-extra-path was given. 17350 if test "${with_extra_path+set}" = set; then : 17351 withval=$with_extra_path; 17352 if test "x$with_extra_path" != x; then 17353 if test "x$EXTRA_PATH" = x; then 17354 EXTRA_PATH="$with_extra_path" 17355 else 17356 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17357 fi 17358 fi 17359 17360 17361 fi 17362 17363 17364 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17365 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17366 # If not, detect if Xcode is installed by running xcodebuild -version 17367 # if no Xcode installed, xcodebuild exits with 1 17368 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17369 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17370 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17371 # fall back on the stub binary in /usr/bin/xcodebuild 17372 # Extract the first word of "xcodebuild", so it can be a program name with args. 17373 set dummy xcodebuild; ac_word=$2 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17375 $as_echo_n "checking for $ac_word... " >&6; } 17376 if ${ac_cv_path_XCODEBUILD+:} false; then : 17377 $as_echo_n "(cached) " >&6 17378 else 17379 case $XCODEBUILD in 17380 [\\/]* | ?:[\\/]*) 17381 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17382 ;; 17383 *) 17384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17385 for as_dir in $TOOLCHAIN_PATH 17386 do 17387 IFS=$as_save_IFS 17388 test -z "$as_dir" && as_dir=. 17389 for ac_exec_ext in '' $ac_executable_extensions; do 17390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17391 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17393 break 2 17394 fi 17395 done 17396 done 17397 IFS=$as_save_IFS 17398 17399 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17400 ;; 17401 esac 17402 fi 17403 XCODEBUILD=$ac_cv_path_XCODEBUILD 17404 if test -n "$XCODEBUILD"; then 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17406 $as_echo "$XCODEBUILD" >&6; } 17407 else 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17409 $as_echo "no" >&6; } 17410 fi 17411 17412 17413 else 17414 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17415 # when only the command line tools are installed there are no SDKs, so headers 17416 # are copied into the system frameworks 17417 XCODEBUILD= 17418 17419 fi 17420 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17422 $as_echo_n "checking for sdk name... " >&6; } 17423 17424 # Check whether --with-sdk-name was given. 17425 if test "${with_sdk_name+set}" = set; then : 17426 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17427 17428 fi 17429 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17431 $as_echo "$SDKNAME" >&6; } 17432 17433 # if toolchain path is specified then don't rely on system headers, they may not compile 17434 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17435 test -z "$TOOLCHAIN_PATH" && \ 17436 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17437 17438 if test -z "$SYSROOT"; then 17439 if test -n "$XCODEBUILD"; then 17440 # if we don't have system headers, use default SDK name (last resort) 17441 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17442 SDKNAME=${SDKNAME:-macosx} 17443 fi 17444 17445 if test -n "$SDKNAME"; then 17446 # Call xcodebuild to determine SYSROOT 17447 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17448 fi 17449 else 17450 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17451 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 17452 fi 17453 fi 17454 else 17455 # warn user if --with-sdk-name was also set 17456 if test -n "$with_sdk_name"; then 17457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17458 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17459 fi 17460 fi 17461 17462 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17463 # If no system framework headers, then SYSROOT must be set, or we won't build 17464 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 17465 fi 17466 17467 # Perform a basic sanity test 17468 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17469 if test -z "$SYSROOT"; then 17470 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 17471 else 17472 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17473 fi 17474 fi 17475 17476 # set SDKROOT too, Xcode tools will pick it up 17477 SDKROOT="$SYSROOT" 17478 17479 fi 17480 17481 # Prepend the extra path to the global path 17482 17483 if test "x$EXTRA_PATH" != x; then 17484 if test "x$PATH" = x; then 17485 PATH="$EXTRA_PATH" 17486 else 17487 PATH="$EXTRA_PATH:$PATH" 17488 fi 17489 fi 17490 17491 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17493 $as_echo_n "checking for sysroot... " >&6; } 17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17495 $as_echo "$SYSROOT" >&6; } 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17497 $as_echo_n "checking for toolchain path... " >&6; } 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17499 $as_echo "$TOOLCHAIN_PATH" >&6; } 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17501 $as_echo_n "checking for extra path... " >&6; } 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17503 $as_echo "$EXTRA_PATH" >&6; } 17504 17505 17506 # To properly create a configuration name, we need to have the OpenJDK target 17507 # and options (variants and debug level) parsed. 17508 17509 17510 17511 # Check whether --with-conf-name was given. 17512 if test "${with_conf_name+set}" = set; then : 17513 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17514 fi 17515 17516 17517 # Test from where we are running configure, in or outside of src root. 17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17519 $as_echo_n "checking where to store configuration... " >&6; } 17520 if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \ 17521 || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \ 17522 || test "x$CURDIR" = "x$TOPDIR/make" ; then 17523 # We are running configure from the src root. 17524 # Create a default ./build/target-variant-debuglevel output root. 17525 if test "x${CONF_NAME}" = x; then 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17527 $as_echo "in default location" >&6; } 17528 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17529 else 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17531 $as_echo "in build directory with custom name" >&6; } 17532 fi 17533 17534 if test "x$CUSTOM_ROOT" != x; then 17535 OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}" 17536 else 17537 OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}" 17538 fi 17539 $MKDIR -p "$OUTPUTDIR" 17540 if test ! -d "$OUTPUTDIR"; then 17541 as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5 17542 fi 17543 else 17544 # We are running configure from outside of the src dir. 17545 # Then use the current directory as output dir! 17546 # If configuration is situated in normal build directory, just use the build 17547 # directory name as configuration name, otherwise use the complete path. 17548 if test "x${CONF_NAME}" = x; then 17549 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"` 17550 fi 17551 OUTPUTDIR="$CURDIR" 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17553 $as_echo "in current directory" >&6; } 17554 17555 # WARNING: This might be a bad thing to do. You need to be sure you want to 17556 # have a configuration in this directory. Do some sanity checks! 17557 17558 if test ! -e "$OUTPUTDIR/spec.gmk"; then 17559 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17560 # other files 17561 files_present=`$LS $OUTPUTDIR` 17562 # Configure has already touched config.log and confdefs.h in the current dir when this check 17563 # is performed. 17564 filtered_files=`$ECHO "$files_present" \ 17565 | $SED -e 's/config.log//g' \ 17566 -e 's/configure.log//g' \ 17567 -e 's/confdefs.h//g' \ 17568 -e 's/ //g' \ 17569 | $TR -d '\n'` 17570 if test "x$filtered_files" != x; then 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17572 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17573 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17574 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17576 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17578 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17579 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17580 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5 17582 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;} 17583 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17584 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17585 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17586 fi 17587 fi 17588 fi 17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17590 $as_echo_n "checking what configuration name to use... " >&6; } 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17592 $as_echo "$CONF_NAME" >&6; } 17593 17594 17595 # Only process if variable expands to non-empty 17596 17597 if test "x$OUTPUTDIR" != x; then 17598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17599 17600 # Input might be given as Windows format, start by converting to 17601 # unix format. 17602 path="$OUTPUTDIR" 17603 new_path=`$CYGPATH -u "$path"` 17604 17605 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17606 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17607 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17608 # "foo.exe" is OK but "foo" is an error. 17609 # 17610 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17611 # It is also a way to make sure we got the proper file name for the real test later on. 17612 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17613 if test "x$test_shortpath" = x; then 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17615 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17616 as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5 17617 fi 17618 17619 # Call helper function which possibly converts this using DOS-style short mode. 17620 # If so, the updated path is stored in $new_path. 17621 17622 input_path="$new_path" 17623 # Check if we need to convert this using DOS-style short mode. If the path 17624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17625 # take no chances and rewrite it. 17626 # Note: m4 eats our [], so we need to use [ and ] instead. 17627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17628 if test "x$has_forbidden_chars" != x; then 17629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17630 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17631 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17632 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17633 # Going to short mode and back again did indeed matter. Since short mode is 17634 # case insensitive, let's make it lowercase to improve readability. 17635 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17636 # Now convert it back to Unix-style (cygpath) 17637 input_path=`$CYGPATH -u "$shortmode_path"` 17638 new_path="$input_path" 17639 fi 17640 fi 17641 17642 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17643 if test "x$test_cygdrive_prefix" = x; then 17644 # As a simple fix, exclude /usr/bin since it's not a real path. 17645 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17646 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17647 # a path prefixed by /cygdrive for fixpath to work. 17648 new_path="$CYGWIN_ROOT_PATH$input_path" 17649 fi 17650 fi 17651 17652 17653 if test "x$path" != "x$new_path"; then 17654 OUTPUTDIR="$new_path" 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17656 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17657 fi 17658 17659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17660 17661 path="$OUTPUTDIR" 17662 has_colon=`$ECHO $path | $GREP ^.:` 17663 new_path="$path" 17664 if test "x$has_colon" = x; then 17665 # Not in mixed or Windows style, start by that. 17666 new_path=`cmd //c echo $path` 17667 fi 17668 17669 17670 input_path="$new_path" 17671 # Check if we need to convert this using DOS-style short mode. If the path 17672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17673 # take no chances and rewrite it. 17674 # Note: m4 eats our [], so we need to use [ and ] instead. 17675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17676 if test "x$has_forbidden_chars" != x; then 17677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17678 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17679 fi 17680 17681 17682 windows_path="$new_path" 17683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17684 unix_path=`$CYGPATH -u "$windows_path"` 17685 new_path="$unix_path" 17686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17688 new_path="$unix_path" 17689 fi 17690 17691 if test "x$path" != "x$new_path"; then 17692 OUTPUTDIR="$new_path" 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17694 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17695 fi 17696 17697 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17698 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17699 17700 else 17701 # We're on a unix platform. Hooray! :) 17702 path="$OUTPUTDIR" 17703 has_space=`$ECHO "$path" | $GREP " "` 17704 if test "x$has_space" != x; then 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17706 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17707 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17708 fi 17709 17710 # Use eval to expand a potential ~ 17711 eval path="$path" 17712 if test ! -f "$path" && test ! -d "$path"; then 17713 as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5 17714 fi 17715 17716 if test -d "$path"; then 17717 OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`" 17718 else 17719 dir="`$DIRNAME "$path"`" 17720 base="`$BASENAME "$path"`" 17721 OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 17722 fi 17723 fi 17724 fi 17725 17726 17727 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support" 17728 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17729 17730 SPEC="$OUTPUTDIR/spec.gmk" 17731 17732 17733 17734 17735 17736 # The spec.gmk file contains all variables for the make system. 17737 ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17738 17739 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17740 ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17741 17742 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17743 ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17744 17745 # The compare.sh is used to compare the build output to other builds. 17746 ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17747 17748 # The generated Makefile knows where the spec.gmk is and where the source is. 17749 # You can run make from the OUTPUTDIR, or from the top-level Makefile 17750 # which will look for generated configurations 17751 ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" 17752 17753 17754 17755 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17756 17757 for ac_prog in apt-get yum brew port pkgutil pkgadd 17758 do 17759 # Extract the first word of "$ac_prog", so it can be a program name with args. 17760 set dummy $ac_prog; ac_word=$2 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17762 $as_echo_n "checking for $ac_word... " >&6; } 17763 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17764 $as_echo_n "(cached) " >&6 17765 else 17766 if test -n "$PKGHANDLER"; then 17767 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17768 else 17769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17770 for as_dir in $PATH 17771 do 17772 IFS=$as_save_IFS 17773 test -z "$as_dir" && as_dir=. 17774 for ac_exec_ext in '' $ac_executable_extensions; do 17775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17776 ac_cv_prog_PKGHANDLER="$ac_prog" 17777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17778 break 2 17779 fi 17780 done 17781 done 17782 IFS=$as_save_IFS 17783 17784 fi 17785 fi 17786 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17787 if test -n "$PKGHANDLER"; then 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17789 $as_echo "$PKGHANDLER" >&6; } 17790 else 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17792 $as_echo "no" >&6; } 17793 fi 17794 17795 17796 test -n "$PKGHANDLER" && break 17797 done 17798 17799 17800 17801 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17802 17803 17804 17805 # Publish this variable in the help. 17806 17807 17808 if [ -z "${MAKE+x}" ]; then 17809 # The variable is not set by user, try to locate tool using the code snippet 17810 17811 # Try our hardest to locate a correct version of GNU make 17812 for ac_prog in gmake 17813 do 17814 # Extract the first word of "$ac_prog", so it can be a program name with args. 17815 set dummy $ac_prog; ac_word=$2 17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17817 $as_echo_n "checking for $ac_word... " >&6; } 17818 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17819 $as_echo_n "(cached) " >&6 17820 else 17821 case $CHECK_GMAKE in 17822 [\\/]* | ?:[\\/]*) 17823 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17824 ;; 17825 *) 17826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17827 for as_dir in $PATH 17828 do 17829 IFS=$as_save_IFS 17830 test -z "$as_dir" && as_dir=. 17831 for ac_exec_ext in '' $ac_executable_extensions; do 17832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17833 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17835 break 2 17836 fi 17837 done 17838 done 17839 IFS=$as_save_IFS 17840 17841 ;; 17842 esac 17843 fi 17844 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17845 if test -n "$CHECK_GMAKE"; then 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17847 $as_echo "$CHECK_GMAKE" >&6; } 17848 else 17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17850 $as_echo "no" >&6; } 17851 fi 17852 17853 17854 test -n "$CHECK_GMAKE" && break 17855 done 17856 17857 17858 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17859 DESCRIPTION="gmake in PATH" 17860 17861 # On Cygwin, we require a newer version of make than on other platforms 17862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17863 MAKE_VERSION_EXPR="-e 4\." 17864 MAKE_REQUIRED_VERSION="4.0" 17865 else 17866 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17867 MAKE_REQUIRED_VERSION="3.81" 17868 fi 17869 17870 if test "x$MAKE_CANDIDATE" != x; then 17871 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17872 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17873 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17874 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17875 if test "x$IS_GNU_MAKE" = x; then 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17877 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17878 else 17879 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17880 if test "x$IS_MODERN_MAKE" = x; then 17881 { $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 17882 $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;} 17883 else 17884 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17886 MAKE_EXPECTED_ENV='cygwin' 17887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17888 MAKE_EXPECTED_ENV='msys' 17889 else 17890 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17891 fi 17892 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17893 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17894 else 17895 # Not relevant for non-Windows 17896 IS_MAKE_CORRECT_ENV=true 17897 fi 17898 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17899 { $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 17900 $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;} 17901 else 17902 FOUND_MAKE=$MAKE_CANDIDATE 17903 17904 # Only process if variable expands to non-empty 17905 17906 if test "x$FOUND_MAKE" != x; then 17907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17908 17909 # First separate the path from the arguments. This will split at the first 17910 # space. 17911 complete="$FOUND_MAKE" 17912 path="${complete%% *}" 17913 tmp="$complete EOL" 17914 arguments="${tmp#* }" 17915 17916 # Input might be given as Windows format, start by converting to 17917 # unix format. 17918 new_path=`$CYGPATH -u "$path"` 17919 17920 # Now try to locate executable using which 17921 new_path=`$WHICH "$new_path" 2> /dev/null` 17922 # bat and cmd files are not always considered executable in cygwin causing which 17923 # to not find them 17924 if test "x$new_path" = x \ 17925 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17926 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17927 new_path=`$CYGPATH -u "$path"` 17928 fi 17929 if test "x$new_path" = x; then 17930 # Oops. Which didn't find the executable. 17931 # The splitting of arguments from the executable at a space might have been incorrect, 17932 # since paths with space are more likely in Windows. Give it another try with the whole 17933 # argument. 17934 path="$complete" 17935 arguments="EOL" 17936 new_path=`$CYGPATH -u "$path"` 17937 new_path=`$WHICH "$new_path" 2> /dev/null` 17938 # bat and cmd files are not always considered executable in cygwin causing which 17939 # to not find them 17940 if test "x$new_path" = x \ 17941 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17942 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17943 new_path=`$CYGPATH -u "$path"` 17944 fi 17945 if test "x$new_path" = x; then 17946 # It's still not found. Now this is an unrecoverable error. 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17948 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17949 has_space=`$ECHO "$complete" | $GREP " "` 17950 if test "x$has_space" != x; then 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17952 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17953 fi 17954 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17955 fi 17956 fi 17957 17958 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17959 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17960 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17961 # "foo.exe" is OK but "foo" is an error. 17962 # 17963 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17964 # It is also a way to make sure we got the proper file name for the real test later on. 17965 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17966 if test "x$test_shortpath" = x; then 17967 # Short path failed, file does not exist as specified. 17968 # Try adding .exe or .cmd 17969 if test -f "${new_path}.exe"; then 17970 input_to_shortpath="${new_path}.exe" 17971 elif test -f "${new_path}.cmd"; then 17972 input_to_shortpath="${new_path}.cmd" 17973 else 17974 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17975 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17976 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17977 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17978 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17979 fi 17980 else 17981 input_to_shortpath="$new_path" 17982 fi 17983 17984 # Call helper function which possibly converts this using DOS-style short mode. 17985 # If so, the updated path is stored in $new_path. 17986 new_path="$input_to_shortpath" 17987 17988 input_path="$input_to_shortpath" 17989 # Check if we need to convert this using DOS-style short mode. If the path 17990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17991 # take no chances and rewrite it. 17992 # Note: m4 eats our [], so we need to use [ and ] instead. 17993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17994 if test "x$has_forbidden_chars" != x; then 17995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17996 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17997 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17998 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17999 # Going to short mode and back again did indeed matter. Since short mode is 18000 # case insensitive, let's make it lowercase to improve readability. 18001 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18002 # Now convert it back to Unix-style (cygpath) 18003 input_path=`$CYGPATH -u "$shortmode_path"` 18004 new_path="$input_path" 18005 fi 18006 fi 18007 18008 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18009 if test "x$test_cygdrive_prefix" = x; then 18010 # As a simple fix, exclude /usr/bin since it's not a real path. 18011 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18012 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18013 # a path prefixed by /cygdrive for fixpath to work. 18014 new_path="$CYGWIN_ROOT_PATH$input_path" 18015 fi 18016 fi 18017 18018 # remove trailing .exe if any 18019 new_path="${new_path/%.exe/}" 18020 18021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18022 18023 # First separate the path from the arguments. This will split at the first 18024 # space. 18025 complete="$FOUND_MAKE" 18026 path="${complete%% *}" 18027 tmp="$complete EOL" 18028 arguments="${tmp#* }" 18029 18030 # Input might be given as Windows format, start by converting to 18031 # unix format. 18032 new_path="$path" 18033 18034 windows_path="$new_path" 18035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18036 unix_path=`$CYGPATH -u "$windows_path"` 18037 new_path="$unix_path" 18038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18040 new_path="$unix_path" 18041 fi 18042 18043 18044 # Now try to locate executable using which 18045 new_path=`$WHICH "$new_path" 2> /dev/null` 18046 18047 if test "x$new_path" = x; then 18048 # Oops. Which didn't find the executable. 18049 # The splitting of arguments from the executable at a space might have been incorrect, 18050 # since paths with space are more likely in Windows. Give it another try with the whole 18051 # argument. 18052 path="$complete" 18053 arguments="EOL" 18054 new_path="$path" 18055 18056 windows_path="$new_path" 18057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18058 unix_path=`$CYGPATH -u "$windows_path"` 18059 new_path="$unix_path" 18060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18062 new_path="$unix_path" 18063 fi 18064 18065 18066 new_path=`$WHICH "$new_path" 2> /dev/null` 18067 # bat and cmd files are not always considered executable in MSYS causing which 18068 # to not find them 18069 if test "x$new_path" = x \ 18070 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18071 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18072 new_path="$path" 18073 18074 windows_path="$new_path" 18075 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18076 unix_path=`$CYGPATH -u "$windows_path"` 18077 new_path="$unix_path" 18078 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18079 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18080 new_path="$unix_path" 18081 fi 18082 18083 fi 18084 18085 if test "x$new_path" = x; then 18086 # It's still not found. Now this is an unrecoverable error. 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18088 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18089 has_space=`$ECHO "$complete" | $GREP " "` 18090 if test "x$has_space" != x; then 18091 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18092 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18093 fi 18094 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18095 fi 18096 fi 18097 18098 # Now new_path has a complete unix path to the binary 18099 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18100 # Keep paths in /bin as-is, but remove trailing .exe if any 18101 new_path="${new_path/%.exe/}" 18102 # Do not save /bin paths to all_fixpath_prefixes! 18103 else 18104 # Not in mixed or Windows style, start by that. 18105 new_path=`cmd //c echo $new_path` 18106 18107 input_path="$new_path" 18108 # Check if we need to convert this using DOS-style short mode. If the path 18109 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18110 # take no chances and rewrite it. 18111 # Note: m4 eats our [], so we need to use [ and ] instead. 18112 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18113 if test "x$has_forbidden_chars" != x; then 18114 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18115 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18116 fi 18117 18118 # Output is in $new_path 18119 18120 windows_path="$new_path" 18121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18122 unix_path=`$CYGPATH -u "$windows_path"` 18123 new_path="$unix_path" 18124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18126 new_path="$unix_path" 18127 fi 18128 18129 # remove trailing .exe if any 18130 new_path="${new_path/%.exe/}" 18131 18132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18134 fi 18135 18136 else 18137 # We're on a unix platform. Hooray! :) 18138 # First separate the path from the arguments. This will split at the first 18139 # space. 18140 complete="$FOUND_MAKE" 18141 path="${complete%% *}" 18142 tmp="$complete EOL" 18143 arguments="${tmp#* }" 18144 18145 # Cannot rely on the command "which" here since it doesn't always work. 18146 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18147 if test -z "$is_absolute_path"; then 18148 # Path to executable is not absolute. Find it. 18149 IFS_save="$IFS" 18150 IFS=: 18151 for p in $PATH; do 18152 if test -f "$p/$path" && test -x "$p/$path"; then 18153 new_path="$p/$path" 18154 break 18155 fi 18156 done 18157 IFS="$IFS_save" 18158 else 18159 # This is an absolute path, we can use it without further modifications. 18160 new_path="$path" 18161 fi 18162 18163 if test "x$new_path" = x; then 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18165 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18166 has_space=`$ECHO "$complete" | $GREP " "` 18167 if test "x$has_space" != x; then 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18169 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18170 fi 18171 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18172 fi 18173 fi 18174 18175 # Now join together the path and the arguments once again 18176 if test "x$arguments" != xEOL; then 18177 new_complete="$new_path ${arguments% *}" 18178 else 18179 new_complete="$new_path" 18180 fi 18181 18182 if test "x$complete" != "x$new_complete"; then 18183 FOUND_MAKE="$new_complete" 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18185 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18186 fi 18187 fi 18188 18189 fi 18190 fi 18191 fi 18192 fi 18193 18194 18195 if test "x$FOUND_MAKE" = x; then 18196 for ac_prog in make 18197 do 18198 # Extract the first word of "$ac_prog", so it can be a program name with args. 18199 set dummy $ac_prog; ac_word=$2 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18201 $as_echo_n "checking for $ac_word... " >&6; } 18202 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204 else 18205 case $CHECK_MAKE in 18206 [\\/]* | ?:[\\/]*) 18207 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18208 ;; 18209 *) 18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18211 for as_dir in $PATH 18212 do 18213 IFS=$as_save_IFS 18214 test -z "$as_dir" && as_dir=. 18215 for ac_exec_ext in '' $ac_executable_extensions; do 18216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18217 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18219 break 2 18220 fi 18221 done 18222 done 18223 IFS=$as_save_IFS 18224 18225 ;; 18226 esac 18227 fi 18228 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18229 if test -n "$CHECK_MAKE"; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18231 $as_echo "$CHECK_MAKE" >&6; } 18232 else 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18234 $as_echo "no" >&6; } 18235 fi 18236 18237 18238 test -n "$CHECK_MAKE" && break 18239 done 18240 18241 18242 MAKE_CANDIDATE=""$CHECK_MAKE"" 18243 DESCRIPTION="make in PATH" 18244 18245 # On Cygwin, we require a newer version of make than on other platforms 18246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18247 MAKE_VERSION_EXPR="-e 4\." 18248 MAKE_REQUIRED_VERSION="4.0" 18249 else 18250 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18251 MAKE_REQUIRED_VERSION="3.81" 18252 fi 18253 18254 if test "x$MAKE_CANDIDATE" != x; then 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18256 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18257 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18258 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18259 if test "x$IS_GNU_MAKE" = x; then 18260 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18261 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18262 else 18263 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18264 if test "x$IS_MODERN_MAKE" = x; then 18265 { $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 18266 $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;} 18267 else 18268 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18270 MAKE_EXPECTED_ENV='cygwin' 18271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18272 MAKE_EXPECTED_ENV='msys' 18273 else 18274 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18275 fi 18276 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18277 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18278 else 18279 # Not relevant for non-Windows 18280 IS_MAKE_CORRECT_ENV=true 18281 fi 18282 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18283 { $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 18284 $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;} 18285 else 18286 FOUND_MAKE=$MAKE_CANDIDATE 18287 18288 # Only process if variable expands to non-empty 18289 18290 if test "x$FOUND_MAKE" != x; then 18291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18292 18293 # First separate the path from the arguments. This will split at the first 18294 # space. 18295 complete="$FOUND_MAKE" 18296 path="${complete%% *}" 18297 tmp="$complete EOL" 18298 arguments="${tmp#* }" 18299 18300 # Input might be given as Windows format, start by converting to 18301 # unix format. 18302 new_path=`$CYGPATH -u "$path"` 18303 18304 # Now try to locate executable using which 18305 new_path=`$WHICH "$new_path" 2> /dev/null` 18306 # bat and cmd files are not always considered executable in cygwin causing which 18307 # to not find them 18308 if test "x$new_path" = x \ 18309 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18310 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18311 new_path=`$CYGPATH -u "$path"` 18312 fi 18313 if test "x$new_path" = x; then 18314 # Oops. Which didn't find the executable. 18315 # The splitting of arguments from the executable at a space might have been incorrect, 18316 # since paths with space are more likely in Windows. Give it another try with the whole 18317 # argument. 18318 path="$complete" 18319 arguments="EOL" 18320 new_path=`$CYGPATH -u "$path"` 18321 new_path=`$WHICH "$new_path" 2> /dev/null` 18322 # bat and cmd files are not always considered executable in cygwin causing which 18323 # to not find them 18324 if test "x$new_path" = x \ 18325 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18326 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18327 new_path=`$CYGPATH -u "$path"` 18328 fi 18329 if test "x$new_path" = x; then 18330 # It's still not found. Now this is an unrecoverable error. 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18332 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18333 has_space=`$ECHO "$complete" | $GREP " "` 18334 if test "x$has_space" != x; then 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18337 fi 18338 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18339 fi 18340 fi 18341 18342 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18343 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18344 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18345 # "foo.exe" is OK but "foo" is an error. 18346 # 18347 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18348 # It is also a way to make sure we got the proper file name for the real test later on. 18349 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18350 if test "x$test_shortpath" = x; then 18351 # Short path failed, file does not exist as specified. 18352 # Try adding .exe or .cmd 18353 if test -f "${new_path}.exe"; then 18354 input_to_shortpath="${new_path}.exe" 18355 elif test -f "${new_path}.cmd"; then 18356 input_to_shortpath="${new_path}.cmd" 18357 else 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18359 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18361 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18362 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18363 fi 18364 else 18365 input_to_shortpath="$new_path" 18366 fi 18367 18368 # Call helper function which possibly converts this using DOS-style short mode. 18369 # If so, the updated path is stored in $new_path. 18370 new_path="$input_to_shortpath" 18371 18372 input_path="$input_to_shortpath" 18373 # Check if we need to convert this using DOS-style short mode. If the path 18374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18375 # take no chances and rewrite it. 18376 # Note: m4 eats our [], so we need to use [ and ] instead. 18377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18378 if test "x$has_forbidden_chars" != x; then 18379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18380 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18381 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18382 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18383 # Going to short mode and back again did indeed matter. Since short mode is 18384 # case insensitive, let's make it lowercase to improve readability. 18385 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18386 # Now convert it back to Unix-style (cygpath) 18387 input_path=`$CYGPATH -u "$shortmode_path"` 18388 new_path="$input_path" 18389 fi 18390 fi 18391 18392 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18393 if test "x$test_cygdrive_prefix" = x; then 18394 # As a simple fix, exclude /usr/bin since it's not a real path. 18395 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18396 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18397 # a path prefixed by /cygdrive for fixpath to work. 18398 new_path="$CYGWIN_ROOT_PATH$input_path" 18399 fi 18400 fi 18401 18402 # remove trailing .exe if any 18403 new_path="${new_path/%.exe/}" 18404 18405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18406 18407 # First separate the path from the arguments. This will split at the first 18408 # space. 18409 complete="$FOUND_MAKE" 18410 path="${complete%% *}" 18411 tmp="$complete EOL" 18412 arguments="${tmp#* }" 18413 18414 # Input might be given as Windows format, start by converting to 18415 # unix format. 18416 new_path="$path" 18417 18418 windows_path="$new_path" 18419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18420 unix_path=`$CYGPATH -u "$windows_path"` 18421 new_path="$unix_path" 18422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18424 new_path="$unix_path" 18425 fi 18426 18427 18428 # Now try to locate executable using which 18429 new_path=`$WHICH "$new_path" 2> /dev/null` 18430 18431 if test "x$new_path" = x; then 18432 # Oops. Which didn't find the executable. 18433 # The splitting of arguments from the executable at a space might have been incorrect, 18434 # since paths with space are more likely in Windows. Give it another try with the whole 18435 # argument. 18436 path="$complete" 18437 arguments="EOL" 18438 new_path="$path" 18439 18440 windows_path="$new_path" 18441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18442 unix_path=`$CYGPATH -u "$windows_path"` 18443 new_path="$unix_path" 18444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18446 new_path="$unix_path" 18447 fi 18448 18449 18450 new_path=`$WHICH "$new_path" 2> /dev/null` 18451 # bat and cmd files are not always considered executable in MSYS causing which 18452 # to not find them 18453 if test "x$new_path" = x \ 18454 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18455 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18456 new_path="$path" 18457 18458 windows_path="$new_path" 18459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18460 unix_path=`$CYGPATH -u "$windows_path"` 18461 new_path="$unix_path" 18462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18464 new_path="$unix_path" 18465 fi 18466 18467 fi 18468 18469 if test "x$new_path" = x; then 18470 # It's still not found. Now this is an unrecoverable error. 18471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18472 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18473 has_space=`$ECHO "$complete" | $GREP " "` 18474 if test "x$has_space" != x; then 18475 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18476 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18477 fi 18478 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18479 fi 18480 fi 18481 18482 # Now new_path has a complete unix path to the binary 18483 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18484 # Keep paths in /bin as-is, but remove trailing .exe if any 18485 new_path="${new_path/%.exe/}" 18486 # Do not save /bin paths to all_fixpath_prefixes! 18487 else 18488 # Not in mixed or Windows style, start by that. 18489 new_path=`cmd //c echo $new_path` 18490 18491 input_path="$new_path" 18492 # Check if we need to convert this using DOS-style short mode. If the path 18493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18494 # take no chances and rewrite it. 18495 # Note: m4 eats our [], so we need to use [ and ] instead. 18496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18497 if test "x$has_forbidden_chars" != x; then 18498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18499 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18500 fi 18501 18502 # Output is in $new_path 18503 18504 windows_path="$new_path" 18505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18506 unix_path=`$CYGPATH -u "$windows_path"` 18507 new_path="$unix_path" 18508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18510 new_path="$unix_path" 18511 fi 18512 18513 # remove trailing .exe if any 18514 new_path="${new_path/%.exe/}" 18515 18516 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18517 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18518 fi 18519 18520 else 18521 # We're on a unix platform. Hooray! :) 18522 # First separate the path from the arguments. This will split at the first 18523 # space. 18524 complete="$FOUND_MAKE" 18525 path="${complete%% *}" 18526 tmp="$complete EOL" 18527 arguments="${tmp#* }" 18528 18529 # Cannot rely on the command "which" here since it doesn't always work. 18530 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18531 if test -z "$is_absolute_path"; then 18532 # Path to executable is not absolute. Find it. 18533 IFS_save="$IFS" 18534 IFS=: 18535 for p in $PATH; do 18536 if test -f "$p/$path" && test -x "$p/$path"; then 18537 new_path="$p/$path" 18538 break 18539 fi 18540 done 18541 IFS="$IFS_save" 18542 else 18543 # This is an absolute path, we can use it without further modifications. 18544 new_path="$path" 18545 fi 18546 18547 if test "x$new_path" = x; then 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18549 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18550 has_space=`$ECHO "$complete" | $GREP " "` 18551 if test "x$has_space" != x; then 18552 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18553 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18554 fi 18555 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18556 fi 18557 fi 18558 18559 # Now join together the path and the arguments once again 18560 if test "x$arguments" != xEOL; then 18561 new_complete="$new_path ${arguments% *}" 18562 else 18563 new_complete="$new_path" 18564 fi 18565 18566 if test "x$complete" != "x$new_complete"; then 18567 FOUND_MAKE="$new_complete" 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18569 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18570 fi 18571 fi 18572 18573 fi 18574 fi 18575 fi 18576 fi 18577 18578 fi 18579 18580 if test "x$FOUND_MAKE" = x; then 18581 if test "x$TOOLCHAIN_PATH" != x; then 18582 # We have a toolchain path, check that as well before giving up. 18583 OLD_PATH=$PATH 18584 PATH=$TOOLCHAIN_PATH:$PATH 18585 for ac_prog in gmake 18586 do 18587 # Extract the first word of "$ac_prog", so it can be a program name with args. 18588 set dummy $ac_prog; ac_word=$2 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18590 $as_echo_n "checking for $ac_word... " >&6; } 18591 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18592 $as_echo_n "(cached) " >&6 18593 else 18594 case $CHECK_TOOLSDIR_GMAKE in 18595 [\\/]* | ?:[\\/]*) 18596 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18597 ;; 18598 *) 18599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18600 for as_dir in $PATH 18601 do 18602 IFS=$as_save_IFS 18603 test -z "$as_dir" && as_dir=. 18604 for ac_exec_ext in '' $ac_executable_extensions; do 18605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18606 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18608 break 2 18609 fi 18610 done 18611 done 18612 IFS=$as_save_IFS 18613 18614 ;; 18615 esac 18616 fi 18617 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18618 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18620 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18621 else 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18623 $as_echo "no" >&6; } 18624 fi 18625 18626 18627 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18628 done 18629 18630 18631 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18632 DESCRIPTION="gmake in tools-dir" 18633 18634 # On Cygwin, we require a newer version of make than on other platforms 18635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18636 MAKE_VERSION_EXPR="-e 4\." 18637 MAKE_REQUIRED_VERSION="4.0" 18638 else 18639 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18640 MAKE_REQUIRED_VERSION="3.81" 18641 fi 18642 18643 if test "x$MAKE_CANDIDATE" != x; then 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18645 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18646 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18647 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18648 if test "x$IS_GNU_MAKE" = x; then 18649 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18650 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18651 else 18652 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18653 if test "x$IS_MODERN_MAKE" = x; then 18654 { $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 18655 $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;} 18656 else 18657 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18659 MAKE_EXPECTED_ENV='cygwin' 18660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18661 MAKE_EXPECTED_ENV='msys' 18662 else 18663 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18664 fi 18665 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18666 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18667 else 18668 # Not relevant for non-Windows 18669 IS_MAKE_CORRECT_ENV=true 18670 fi 18671 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18672 { $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 18673 $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;} 18674 else 18675 FOUND_MAKE=$MAKE_CANDIDATE 18676 18677 # Only process if variable expands to non-empty 18678 18679 if test "x$FOUND_MAKE" != x; then 18680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18681 18682 # First separate the path from the arguments. This will split at the first 18683 # space. 18684 complete="$FOUND_MAKE" 18685 path="${complete%% *}" 18686 tmp="$complete EOL" 18687 arguments="${tmp#* }" 18688 18689 # Input might be given as Windows format, start by converting to 18690 # unix format. 18691 new_path=`$CYGPATH -u "$path"` 18692 18693 # Now try to locate executable using which 18694 new_path=`$WHICH "$new_path" 2> /dev/null` 18695 # bat and cmd files are not always considered executable in cygwin causing which 18696 # to not find them 18697 if test "x$new_path" = x \ 18698 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18699 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18700 new_path=`$CYGPATH -u "$path"` 18701 fi 18702 if test "x$new_path" = x; then 18703 # Oops. Which didn't find the executable. 18704 # The splitting of arguments from the executable at a space might have been incorrect, 18705 # since paths with space are more likely in Windows. Give it another try with the whole 18706 # argument. 18707 path="$complete" 18708 arguments="EOL" 18709 new_path=`$CYGPATH -u "$path"` 18710 new_path=`$WHICH "$new_path" 2> /dev/null` 18711 # bat and cmd files are not always considered executable in cygwin causing which 18712 # to not find them 18713 if test "x$new_path" = x \ 18714 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18715 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18716 new_path=`$CYGPATH -u "$path"` 18717 fi 18718 if test "x$new_path" = x; then 18719 # It's still not found. Now this is an unrecoverable error. 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18721 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18722 has_space=`$ECHO "$complete" | $GREP " "` 18723 if test "x$has_space" != x; then 18724 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18725 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18726 fi 18727 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18728 fi 18729 fi 18730 18731 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18732 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18733 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18734 # "foo.exe" is OK but "foo" is an error. 18735 # 18736 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18737 # It is also a way to make sure we got the proper file name for the real test later on. 18738 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18739 if test "x$test_shortpath" = x; then 18740 # Short path failed, file does not exist as specified. 18741 # Try adding .exe or .cmd 18742 if test -f "${new_path}.exe"; then 18743 input_to_shortpath="${new_path}.exe" 18744 elif test -f "${new_path}.cmd"; then 18745 input_to_shortpath="${new_path}.cmd" 18746 else 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18748 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18750 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18751 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18752 fi 18753 else 18754 input_to_shortpath="$new_path" 18755 fi 18756 18757 # Call helper function which possibly converts this using DOS-style short mode. 18758 # If so, the updated path is stored in $new_path. 18759 new_path="$input_to_shortpath" 18760 18761 input_path="$input_to_shortpath" 18762 # Check if we need to convert this using DOS-style short mode. If the path 18763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18764 # take no chances and rewrite it. 18765 # Note: m4 eats our [], so we need to use [ and ] instead. 18766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18767 if test "x$has_forbidden_chars" != x; then 18768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18769 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18770 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18771 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18772 # Going to short mode and back again did indeed matter. Since short mode is 18773 # case insensitive, let's make it lowercase to improve readability. 18774 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18775 # Now convert it back to Unix-style (cygpath) 18776 input_path=`$CYGPATH -u "$shortmode_path"` 18777 new_path="$input_path" 18778 fi 18779 fi 18780 18781 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18782 if test "x$test_cygdrive_prefix" = x; then 18783 # As a simple fix, exclude /usr/bin since it's not a real path. 18784 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18785 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18786 # a path prefixed by /cygdrive for fixpath to work. 18787 new_path="$CYGWIN_ROOT_PATH$input_path" 18788 fi 18789 fi 18790 18791 # remove trailing .exe if any 18792 new_path="${new_path/%.exe/}" 18793 18794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18795 18796 # First separate the path from the arguments. This will split at the first 18797 # space. 18798 complete="$FOUND_MAKE" 18799 path="${complete%% *}" 18800 tmp="$complete EOL" 18801 arguments="${tmp#* }" 18802 18803 # Input might be given as Windows format, start by converting to 18804 # unix format. 18805 new_path="$path" 18806 18807 windows_path="$new_path" 18808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18809 unix_path=`$CYGPATH -u "$windows_path"` 18810 new_path="$unix_path" 18811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18813 new_path="$unix_path" 18814 fi 18815 18816 18817 # Now try to locate executable using which 18818 new_path=`$WHICH "$new_path" 2> /dev/null` 18819 18820 if test "x$new_path" = x; then 18821 # Oops. Which didn't find the executable. 18822 # The splitting of arguments from the executable at a space might have been incorrect, 18823 # since paths with space are more likely in Windows. Give it another try with the whole 18824 # argument. 18825 path="$complete" 18826 arguments="EOL" 18827 new_path="$path" 18828 18829 windows_path="$new_path" 18830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18831 unix_path=`$CYGPATH -u "$windows_path"` 18832 new_path="$unix_path" 18833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18835 new_path="$unix_path" 18836 fi 18837 18838 18839 new_path=`$WHICH "$new_path" 2> /dev/null` 18840 # bat and cmd files are not always considered executable in MSYS causing which 18841 # to not find them 18842 if test "x$new_path" = x \ 18843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18845 new_path="$path" 18846 18847 windows_path="$new_path" 18848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18849 unix_path=`$CYGPATH -u "$windows_path"` 18850 new_path="$unix_path" 18851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18853 new_path="$unix_path" 18854 fi 18855 18856 fi 18857 18858 if test "x$new_path" = x; then 18859 # It's still not found. Now this is an unrecoverable error. 18860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18861 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18862 has_space=`$ECHO "$complete" | $GREP " "` 18863 if test "x$has_space" != x; then 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18865 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18866 fi 18867 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18868 fi 18869 fi 18870 18871 # Now new_path has a complete unix path to the binary 18872 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18873 # Keep paths in /bin as-is, but remove trailing .exe if any 18874 new_path="${new_path/%.exe/}" 18875 # Do not save /bin paths to all_fixpath_prefixes! 18876 else 18877 # Not in mixed or Windows style, start by that. 18878 new_path=`cmd //c echo $new_path` 18879 18880 input_path="$new_path" 18881 # Check if we need to convert this using DOS-style short mode. If the path 18882 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18883 # take no chances and rewrite it. 18884 # Note: m4 eats our [], so we need to use [ and ] instead. 18885 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18886 if test "x$has_forbidden_chars" != x; then 18887 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18888 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18889 fi 18890 18891 # Output is in $new_path 18892 18893 windows_path="$new_path" 18894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18895 unix_path=`$CYGPATH -u "$windows_path"` 18896 new_path="$unix_path" 18897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18899 new_path="$unix_path" 18900 fi 18901 18902 # remove trailing .exe if any 18903 new_path="${new_path/%.exe/}" 18904 18905 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18906 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18907 fi 18908 18909 else 18910 # We're on a unix platform. Hooray! :) 18911 # First separate the path from the arguments. This will split at the first 18912 # space. 18913 complete="$FOUND_MAKE" 18914 path="${complete%% *}" 18915 tmp="$complete EOL" 18916 arguments="${tmp#* }" 18917 18918 # Cannot rely on the command "which" here since it doesn't always work. 18919 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18920 if test -z "$is_absolute_path"; then 18921 # Path to executable is not absolute. Find it. 18922 IFS_save="$IFS" 18923 IFS=: 18924 for p in $PATH; do 18925 if test -f "$p/$path" && test -x "$p/$path"; then 18926 new_path="$p/$path" 18927 break 18928 fi 18929 done 18930 IFS="$IFS_save" 18931 else 18932 # This is an absolute path, we can use it without further modifications. 18933 new_path="$path" 18934 fi 18935 18936 if test "x$new_path" = x; then 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18938 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18939 has_space=`$ECHO "$complete" | $GREP " "` 18940 if test "x$has_space" != x; then 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18942 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18943 fi 18944 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18945 fi 18946 fi 18947 18948 # Now join together the path and the arguments once again 18949 if test "x$arguments" != xEOL; then 18950 new_complete="$new_path ${arguments% *}" 18951 else 18952 new_complete="$new_path" 18953 fi 18954 18955 if test "x$complete" != "x$new_complete"; then 18956 FOUND_MAKE="$new_complete" 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18958 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18959 fi 18960 fi 18961 18962 fi 18963 fi 18964 fi 18965 fi 18966 18967 if test "x$FOUND_MAKE" = x; then 18968 for ac_prog in make 18969 do 18970 # Extract the first word of "$ac_prog", so it can be a program name with args. 18971 set dummy $ac_prog; ac_word=$2 18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18973 $as_echo_n "checking for $ac_word... " >&6; } 18974 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18975 $as_echo_n "(cached) " >&6 18976 else 18977 case $CHECK_TOOLSDIR_MAKE in 18978 [\\/]* | ?:[\\/]*) 18979 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18980 ;; 18981 *) 18982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18983 for as_dir in $PATH 18984 do 18985 IFS=$as_save_IFS 18986 test -z "$as_dir" && as_dir=. 18987 for ac_exec_ext in '' $ac_executable_extensions; do 18988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18989 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18991 break 2 18992 fi 18993 done 18994 done 18995 IFS=$as_save_IFS 18996 18997 ;; 18998 esac 18999 fi 19000 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19001 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19003 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19004 else 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19006 $as_echo "no" >&6; } 19007 fi 19008 19009 19010 test -n "$CHECK_TOOLSDIR_MAKE" && break 19011 done 19012 19013 19014 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19015 DESCRIPTION="make in tools-dir" 19016 19017 # On Cygwin, we require a newer version of make than on other platforms 19018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19019 MAKE_VERSION_EXPR="-e 4\." 19020 MAKE_REQUIRED_VERSION="4.0" 19021 else 19022 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19023 MAKE_REQUIRED_VERSION="3.81" 19024 fi 19025 19026 if test "x$MAKE_CANDIDATE" != x; then 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19028 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19029 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19030 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19031 if test "x$IS_GNU_MAKE" = x; then 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19033 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19034 else 19035 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19036 if test "x$IS_MODERN_MAKE" = x; then 19037 { $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 19038 $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;} 19039 else 19040 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19042 MAKE_EXPECTED_ENV='cygwin' 19043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19044 MAKE_EXPECTED_ENV='msys' 19045 else 19046 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19047 fi 19048 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19049 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19050 else 19051 # Not relevant for non-Windows 19052 IS_MAKE_CORRECT_ENV=true 19053 fi 19054 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19055 { $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 19056 $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;} 19057 else 19058 FOUND_MAKE=$MAKE_CANDIDATE 19059 19060 # Only process if variable expands to non-empty 19061 19062 if test "x$FOUND_MAKE" != x; then 19063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19064 19065 # First separate the path from the arguments. This will split at the first 19066 # space. 19067 complete="$FOUND_MAKE" 19068 path="${complete%% *}" 19069 tmp="$complete EOL" 19070 arguments="${tmp#* }" 19071 19072 # Input might be given as Windows format, start by converting to 19073 # unix format. 19074 new_path=`$CYGPATH -u "$path"` 19075 19076 # Now try to locate executable using which 19077 new_path=`$WHICH "$new_path" 2> /dev/null` 19078 # bat and cmd files are not always considered executable in cygwin causing which 19079 # to not find them 19080 if test "x$new_path" = x \ 19081 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19082 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19083 new_path=`$CYGPATH -u "$path"` 19084 fi 19085 if test "x$new_path" = x; then 19086 # Oops. Which didn't find the executable. 19087 # The splitting of arguments from the executable at a space might have been incorrect, 19088 # since paths with space are more likely in Windows. Give it another try with the whole 19089 # argument. 19090 path="$complete" 19091 arguments="EOL" 19092 new_path=`$CYGPATH -u "$path"` 19093 new_path=`$WHICH "$new_path" 2> /dev/null` 19094 # bat and cmd files are not always considered executable in cygwin causing which 19095 # to not find them 19096 if test "x$new_path" = x \ 19097 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19098 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19099 new_path=`$CYGPATH -u "$path"` 19100 fi 19101 if test "x$new_path" = x; then 19102 # It's still not found. Now this is an unrecoverable error. 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19104 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19105 has_space=`$ECHO "$complete" | $GREP " "` 19106 if test "x$has_space" != x; then 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19108 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19109 fi 19110 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19111 fi 19112 fi 19113 19114 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19115 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19116 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19117 # "foo.exe" is OK but "foo" is an error. 19118 # 19119 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19120 # It is also a way to make sure we got the proper file name for the real test later on. 19121 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19122 if test "x$test_shortpath" = x; then 19123 # Short path failed, file does not exist as specified. 19124 # Try adding .exe or .cmd 19125 if test -f "${new_path}.exe"; then 19126 input_to_shortpath="${new_path}.exe" 19127 elif test -f "${new_path}.cmd"; then 19128 input_to_shortpath="${new_path}.cmd" 19129 else 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19131 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19132 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19133 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19134 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19135 fi 19136 else 19137 input_to_shortpath="$new_path" 19138 fi 19139 19140 # Call helper function which possibly converts this using DOS-style short mode. 19141 # If so, the updated path is stored in $new_path. 19142 new_path="$input_to_shortpath" 19143 19144 input_path="$input_to_shortpath" 19145 # Check if we need to convert this using DOS-style short mode. If the path 19146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19147 # take no chances and rewrite it. 19148 # Note: m4 eats our [], so we need to use [ and ] instead. 19149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19150 if test "x$has_forbidden_chars" != x; then 19151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19152 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19153 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19154 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19155 # Going to short mode and back again did indeed matter. Since short mode is 19156 # case insensitive, let's make it lowercase to improve readability. 19157 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19158 # Now convert it back to Unix-style (cygpath) 19159 input_path=`$CYGPATH -u "$shortmode_path"` 19160 new_path="$input_path" 19161 fi 19162 fi 19163 19164 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19165 if test "x$test_cygdrive_prefix" = x; then 19166 # As a simple fix, exclude /usr/bin since it's not a real path. 19167 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19168 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19169 # a path prefixed by /cygdrive for fixpath to work. 19170 new_path="$CYGWIN_ROOT_PATH$input_path" 19171 fi 19172 fi 19173 19174 # remove trailing .exe if any 19175 new_path="${new_path/%.exe/}" 19176 19177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19178 19179 # First separate the path from the arguments. This will split at the first 19180 # space. 19181 complete="$FOUND_MAKE" 19182 path="${complete%% *}" 19183 tmp="$complete EOL" 19184 arguments="${tmp#* }" 19185 19186 # Input might be given as Windows format, start by converting to 19187 # unix format. 19188 new_path="$path" 19189 19190 windows_path="$new_path" 19191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19192 unix_path=`$CYGPATH -u "$windows_path"` 19193 new_path="$unix_path" 19194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19195 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19196 new_path="$unix_path" 19197 fi 19198 19199 19200 # Now try to locate executable using which 19201 new_path=`$WHICH "$new_path" 2> /dev/null` 19202 19203 if test "x$new_path" = x; then 19204 # Oops. Which didn't find the executable. 19205 # The splitting of arguments from the executable at a space might have been incorrect, 19206 # since paths with space are more likely in Windows. Give it another try with the whole 19207 # argument. 19208 path="$complete" 19209 arguments="EOL" 19210 new_path="$path" 19211 19212 windows_path="$new_path" 19213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19214 unix_path=`$CYGPATH -u "$windows_path"` 19215 new_path="$unix_path" 19216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19218 new_path="$unix_path" 19219 fi 19220 19221 19222 new_path=`$WHICH "$new_path" 2> /dev/null` 19223 # bat and cmd files are not always considered executable in MSYS causing which 19224 # to not find them 19225 if test "x$new_path" = x \ 19226 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19227 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19228 new_path="$path" 19229 19230 windows_path="$new_path" 19231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19232 unix_path=`$CYGPATH -u "$windows_path"` 19233 new_path="$unix_path" 19234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19236 new_path="$unix_path" 19237 fi 19238 19239 fi 19240 19241 if test "x$new_path" = x; then 19242 # It's still not found. Now this is an unrecoverable error. 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19244 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19245 has_space=`$ECHO "$complete" | $GREP " "` 19246 if test "x$has_space" != x; then 19247 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19248 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19249 fi 19250 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19251 fi 19252 fi 19253 19254 # Now new_path has a complete unix path to the binary 19255 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19256 # Keep paths in /bin as-is, but remove trailing .exe if any 19257 new_path="${new_path/%.exe/}" 19258 # Do not save /bin paths to all_fixpath_prefixes! 19259 else 19260 # Not in mixed or Windows style, start by that. 19261 new_path=`cmd //c echo $new_path` 19262 19263 input_path="$new_path" 19264 # Check if we need to convert this using DOS-style short mode. If the path 19265 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19266 # take no chances and rewrite it. 19267 # Note: m4 eats our [], so we need to use [ and ] instead. 19268 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19269 if test "x$has_forbidden_chars" != x; then 19270 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19271 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19272 fi 19273 19274 # Output is in $new_path 19275 19276 windows_path="$new_path" 19277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19278 unix_path=`$CYGPATH -u "$windows_path"` 19279 new_path="$unix_path" 19280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19282 new_path="$unix_path" 19283 fi 19284 19285 # remove trailing .exe if any 19286 new_path="${new_path/%.exe/}" 19287 19288 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19289 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19290 fi 19291 19292 else 19293 # We're on a unix platform. Hooray! :) 19294 # First separate the path from the arguments. This will split at the first 19295 # space. 19296 complete="$FOUND_MAKE" 19297 path="${complete%% *}" 19298 tmp="$complete EOL" 19299 arguments="${tmp#* }" 19300 19301 # Cannot rely on the command "which" here since it doesn't always work. 19302 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19303 if test -z "$is_absolute_path"; then 19304 # Path to executable is not absolute. Find it. 19305 IFS_save="$IFS" 19306 IFS=: 19307 for p in $PATH; do 19308 if test -f "$p/$path" && test -x "$p/$path"; then 19309 new_path="$p/$path" 19310 break 19311 fi 19312 done 19313 IFS="$IFS_save" 19314 else 19315 # This is an absolute path, we can use it without further modifications. 19316 new_path="$path" 19317 fi 19318 19319 if test "x$new_path" = x; then 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19321 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19322 has_space=`$ECHO "$complete" | $GREP " "` 19323 if test "x$has_space" != x; then 19324 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19325 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19326 fi 19327 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19328 fi 19329 fi 19330 19331 # Now join together the path and the arguments once again 19332 if test "x$arguments" != xEOL; then 19333 new_complete="$new_path ${arguments% *}" 19334 else 19335 new_complete="$new_path" 19336 fi 19337 19338 if test "x$complete" != "x$new_complete"; then 19339 FOUND_MAKE="$new_complete" 19340 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19341 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19342 fi 19343 fi 19344 19345 fi 19346 fi 19347 fi 19348 fi 19349 19350 fi 19351 PATH=$OLD_PATH 19352 fi 19353 fi 19354 19355 if test "x$FOUND_MAKE" = x; then 19356 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 19357 fi 19358 19359 else 19360 # The variable is set, but is it from the command line or the environment? 19361 19362 # Try to remove the string !MAKE! from our list. 19363 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19364 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19365 # If it failed, the variable was not from the command line. Ignore it, 19366 # but warn the user (except for BASH, which is always set by the calling BASH). 19367 if test "xMAKE" != xBASH; then 19368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19369 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19370 fi 19371 # Try to locate tool using the code snippet 19372 19373 # Try our hardest to locate a correct version of GNU make 19374 for ac_prog in gmake 19375 do 19376 # Extract the first word of "$ac_prog", so it can be a program name with args. 19377 set dummy $ac_prog; ac_word=$2 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19379 $as_echo_n "checking for $ac_word... " >&6; } 19380 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19381 $as_echo_n "(cached) " >&6 19382 else 19383 case $CHECK_GMAKE in 19384 [\\/]* | ?:[\\/]*) 19385 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19386 ;; 19387 *) 19388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19389 for as_dir in $PATH 19390 do 19391 IFS=$as_save_IFS 19392 test -z "$as_dir" && as_dir=. 19393 for ac_exec_ext in '' $ac_executable_extensions; do 19394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19395 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19397 break 2 19398 fi 19399 done 19400 done 19401 IFS=$as_save_IFS 19402 19403 ;; 19404 esac 19405 fi 19406 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19407 if test -n "$CHECK_GMAKE"; then 19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19409 $as_echo "$CHECK_GMAKE" >&6; } 19410 else 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19412 $as_echo "no" >&6; } 19413 fi 19414 19415 19416 test -n "$CHECK_GMAKE" && break 19417 done 19418 19419 19420 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19421 DESCRIPTION="gmake in PATH" 19422 19423 # On Cygwin, we require a newer version of make than on other platforms 19424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19425 MAKE_VERSION_EXPR="-e 4\." 19426 MAKE_REQUIRED_VERSION="4.0" 19427 else 19428 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19429 MAKE_REQUIRED_VERSION="3.81" 19430 fi 19431 19432 if test "x$MAKE_CANDIDATE" != x; then 19433 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19434 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19435 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19436 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19437 if test "x$IS_GNU_MAKE" = x; then 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19439 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19440 else 19441 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19442 if test "x$IS_MODERN_MAKE" = x; then 19443 { $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 19444 $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;} 19445 else 19446 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19448 MAKE_EXPECTED_ENV='cygwin' 19449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19450 MAKE_EXPECTED_ENV='msys' 19451 else 19452 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19453 fi 19454 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19455 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19456 else 19457 # Not relevant for non-Windows 19458 IS_MAKE_CORRECT_ENV=true 19459 fi 19460 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19461 { $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 19462 $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;} 19463 else 19464 FOUND_MAKE=$MAKE_CANDIDATE 19465 19466 # Only process if variable expands to non-empty 19467 19468 if test "x$FOUND_MAKE" != x; then 19469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19470 19471 # First separate the path from the arguments. This will split at the first 19472 # space. 19473 complete="$FOUND_MAKE" 19474 path="${complete%% *}" 19475 tmp="$complete EOL" 19476 arguments="${tmp#* }" 19477 19478 # Input might be given as Windows format, start by converting to 19479 # unix format. 19480 new_path=`$CYGPATH -u "$path"` 19481 19482 # Now try to locate executable using which 19483 new_path=`$WHICH "$new_path" 2> /dev/null` 19484 # bat and cmd files are not always considered executable in cygwin causing which 19485 # to not find them 19486 if test "x$new_path" = x \ 19487 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19488 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19489 new_path=`$CYGPATH -u "$path"` 19490 fi 19491 if test "x$new_path" = x; then 19492 # Oops. Which didn't find the executable. 19493 # The splitting of arguments from the executable at a space might have been incorrect, 19494 # since paths with space are more likely in Windows. Give it another try with the whole 19495 # argument. 19496 path="$complete" 19497 arguments="EOL" 19498 new_path=`$CYGPATH -u "$path"` 19499 new_path=`$WHICH "$new_path" 2> /dev/null` 19500 # bat and cmd files are not always considered executable in cygwin causing which 19501 # to not find them 19502 if test "x$new_path" = x \ 19503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19505 new_path=`$CYGPATH -u "$path"` 19506 fi 19507 if test "x$new_path" = x; then 19508 # It's still not found. Now this is an unrecoverable error. 19509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19510 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19511 has_space=`$ECHO "$complete" | $GREP " "` 19512 if test "x$has_space" != x; then 19513 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19514 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19515 fi 19516 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19517 fi 19518 fi 19519 19520 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19521 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19522 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19523 # "foo.exe" is OK but "foo" is an error. 19524 # 19525 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19526 # It is also a way to make sure we got the proper file name for the real test later on. 19527 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19528 if test "x$test_shortpath" = x; then 19529 # Short path failed, file does not exist as specified. 19530 # Try adding .exe or .cmd 19531 if test -f "${new_path}.exe"; then 19532 input_to_shortpath="${new_path}.exe" 19533 elif test -f "${new_path}.cmd"; then 19534 input_to_shortpath="${new_path}.cmd" 19535 else 19536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19537 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19539 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19540 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19541 fi 19542 else 19543 input_to_shortpath="$new_path" 19544 fi 19545 19546 # Call helper function which possibly converts this using DOS-style short mode. 19547 # If so, the updated path is stored in $new_path. 19548 new_path="$input_to_shortpath" 19549 19550 input_path="$input_to_shortpath" 19551 # Check if we need to convert this using DOS-style short mode. If the path 19552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19553 # take no chances and rewrite it. 19554 # Note: m4 eats our [], so we need to use [ and ] instead. 19555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19556 if test "x$has_forbidden_chars" != x; then 19557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19561 # Going to short mode and back again did indeed matter. Since short mode is 19562 # case insensitive, let's make it lowercase to improve readability. 19563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19564 # Now convert it back to Unix-style (cygpath) 19565 input_path=`$CYGPATH -u "$shortmode_path"` 19566 new_path="$input_path" 19567 fi 19568 fi 19569 19570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19571 if test "x$test_cygdrive_prefix" = x; then 19572 # As a simple fix, exclude /usr/bin since it's not a real path. 19573 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19575 # a path prefixed by /cygdrive for fixpath to work. 19576 new_path="$CYGWIN_ROOT_PATH$input_path" 19577 fi 19578 fi 19579 19580 # remove trailing .exe if any 19581 new_path="${new_path/%.exe/}" 19582 19583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19584 19585 # First separate the path from the arguments. This will split at the first 19586 # space. 19587 complete="$FOUND_MAKE" 19588 path="${complete%% *}" 19589 tmp="$complete EOL" 19590 arguments="${tmp#* }" 19591 19592 # Input might be given as Windows format, start by converting to 19593 # unix format. 19594 new_path="$path" 19595 19596 windows_path="$new_path" 19597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19598 unix_path=`$CYGPATH -u "$windows_path"` 19599 new_path="$unix_path" 19600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19602 new_path="$unix_path" 19603 fi 19604 19605 19606 # Now try to locate executable using which 19607 new_path=`$WHICH "$new_path" 2> /dev/null` 19608 19609 if test "x$new_path" = x; then 19610 # Oops. Which didn't find the executable. 19611 # The splitting of arguments from the executable at a space might have been incorrect, 19612 # since paths with space are more likely in Windows. Give it another try with the whole 19613 # argument. 19614 path="$complete" 19615 arguments="EOL" 19616 new_path="$path" 19617 19618 windows_path="$new_path" 19619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19620 unix_path=`$CYGPATH -u "$windows_path"` 19621 new_path="$unix_path" 19622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19624 new_path="$unix_path" 19625 fi 19626 19627 19628 new_path=`$WHICH "$new_path" 2> /dev/null` 19629 # bat and cmd files are not always considered executable in MSYS causing which 19630 # to not find them 19631 if test "x$new_path" = x \ 19632 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19633 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19634 new_path="$path" 19635 19636 windows_path="$new_path" 19637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19638 unix_path=`$CYGPATH -u "$windows_path"` 19639 new_path="$unix_path" 19640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19642 new_path="$unix_path" 19643 fi 19644 19645 fi 19646 19647 if test "x$new_path" = x; then 19648 # It's still not found. Now this is an unrecoverable error. 19649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19650 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19651 has_space=`$ECHO "$complete" | $GREP " "` 19652 if test "x$has_space" != x; then 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19654 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19655 fi 19656 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19657 fi 19658 fi 19659 19660 # Now new_path has a complete unix path to the binary 19661 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19662 # Keep paths in /bin as-is, but remove trailing .exe if any 19663 new_path="${new_path/%.exe/}" 19664 # Do not save /bin paths to all_fixpath_prefixes! 19665 else 19666 # Not in mixed or Windows style, start by that. 19667 new_path=`cmd //c echo $new_path` 19668 19669 input_path="$new_path" 19670 # Check if we need to convert this using DOS-style short mode. If the path 19671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19672 # take no chances and rewrite it. 19673 # Note: m4 eats our [], so we need to use [ and ] instead. 19674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19675 if test "x$has_forbidden_chars" != x; then 19676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19677 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19678 fi 19679 19680 # Output is in $new_path 19681 19682 windows_path="$new_path" 19683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19684 unix_path=`$CYGPATH -u "$windows_path"` 19685 new_path="$unix_path" 19686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19688 new_path="$unix_path" 19689 fi 19690 19691 # remove trailing .exe if any 19692 new_path="${new_path/%.exe/}" 19693 19694 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19695 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19696 fi 19697 19698 else 19699 # We're on a unix platform. Hooray! :) 19700 # First separate the path from the arguments. This will split at the first 19701 # space. 19702 complete="$FOUND_MAKE" 19703 path="${complete%% *}" 19704 tmp="$complete EOL" 19705 arguments="${tmp#* }" 19706 19707 # Cannot rely on the command "which" here since it doesn't always work. 19708 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19709 if test -z "$is_absolute_path"; then 19710 # Path to executable is not absolute. Find it. 19711 IFS_save="$IFS" 19712 IFS=: 19713 for p in $PATH; do 19714 if test -f "$p/$path" && test -x "$p/$path"; then 19715 new_path="$p/$path" 19716 break 19717 fi 19718 done 19719 IFS="$IFS_save" 19720 else 19721 # This is an absolute path, we can use it without further modifications. 19722 new_path="$path" 19723 fi 19724 19725 if test "x$new_path" = x; then 19726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19727 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19728 has_space=`$ECHO "$complete" | $GREP " "` 19729 if test "x$has_space" != x; then 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19731 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19732 fi 19733 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19734 fi 19735 fi 19736 19737 # Now join together the path and the arguments once again 19738 if test "x$arguments" != xEOL; then 19739 new_complete="$new_path ${arguments% *}" 19740 else 19741 new_complete="$new_path" 19742 fi 19743 19744 if test "x$complete" != "x$new_complete"; then 19745 FOUND_MAKE="$new_complete" 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19747 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19748 fi 19749 fi 19750 19751 fi 19752 fi 19753 fi 19754 fi 19755 19756 19757 if test "x$FOUND_MAKE" = x; then 19758 for ac_prog in make 19759 do 19760 # Extract the first word of "$ac_prog", so it can be a program name with args. 19761 set dummy $ac_prog; ac_word=$2 19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19763 $as_echo_n "checking for $ac_word... " >&6; } 19764 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19765 $as_echo_n "(cached) " >&6 19766 else 19767 case $CHECK_MAKE in 19768 [\\/]* | ?:[\\/]*) 19769 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19770 ;; 19771 *) 19772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19773 for as_dir in $PATH 19774 do 19775 IFS=$as_save_IFS 19776 test -z "$as_dir" && as_dir=. 19777 for ac_exec_ext in '' $ac_executable_extensions; do 19778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19779 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19781 break 2 19782 fi 19783 done 19784 done 19785 IFS=$as_save_IFS 19786 19787 ;; 19788 esac 19789 fi 19790 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19791 if test -n "$CHECK_MAKE"; then 19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19793 $as_echo "$CHECK_MAKE" >&6; } 19794 else 19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19796 $as_echo "no" >&6; } 19797 fi 19798 19799 19800 test -n "$CHECK_MAKE" && break 19801 done 19802 19803 19804 MAKE_CANDIDATE=""$CHECK_MAKE"" 19805 DESCRIPTION="make in PATH" 19806 19807 # On Cygwin, we require a newer version of make than on other platforms 19808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19809 MAKE_VERSION_EXPR="-e 4\." 19810 MAKE_REQUIRED_VERSION="4.0" 19811 else 19812 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19813 MAKE_REQUIRED_VERSION="3.81" 19814 fi 19815 19816 if test "x$MAKE_CANDIDATE" != x; then 19817 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19818 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19819 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19820 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19821 if test "x$IS_GNU_MAKE" = x; then 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19823 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19824 else 19825 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19826 if test "x$IS_MODERN_MAKE" = x; then 19827 { $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 19828 $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;} 19829 else 19830 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19832 MAKE_EXPECTED_ENV='cygwin' 19833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19834 MAKE_EXPECTED_ENV='msys' 19835 else 19836 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19837 fi 19838 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19839 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19840 else 19841 # Not relevant for non-Windows 19842 IS_MAKE_CORRECT_ENV=true 19843 fi 19844 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19845 { $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 19846 $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;} 19847 else 19848 FOUND_MAKE=$MAKE_CANDIDATE 19849 19850 # Only process if variable expands to non-empty 19851 19852 if test "x$FOUND_MAKE" != x; then 19853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19854 19855 # First separate the path from the arguments. This will split at the first 19856 # space. 19857 complete="$FOUND_MAKE" 19858 path="${complete%% *}" 19859 tmp="$complete EOL" 19860 arguments="${tmp#* }" 19861 19862 # Input might be given as Windows format, start by converting to 19863 # unix format. 19864 new_path=`$CYGPATH -u "$path"` 19865 19866 # Now try to locate executable using which 19867 new_path=`$WHICH "$new_path" 2> /dev/null` 19868 # bat and cmd files are not always considered executable in cygwin causing which 19869 # to not find them 19870 if test "x$new_path" = x \ 19871 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19872 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19873 new_path=`$CYGPATH -u "$path"` 19874 fi 19875 if test "x$new_path" = x; then 19876 # Oops. Which didn't find the executable. 19877 # The splitting of arguments from the executable at a space might have been incorrect, 19878 # since paths with space are more likely in Windows. Give it another try with the whole 19879 # argument. 19880 path="$complete" 19881 arguments="EOL" 19882 new_path=`$CYGPATH -u "$path"` 19883 new_path=`$WHICH "$new_path" 2> /dev/null` 19884 # bat and cmd files are not always considered executable in cygwin causing which 19885 # to not find them 19886 if test "x$new_path" = x \ 19887 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19888 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19889 new_path=`$CYGPATH -u "$path"` 19890 fi 19891 if test "x$new_path" = x; then 19892 # It's still not found. Now this is an unrecoverable error. 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19894 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19895 has_space=`$ECHO "$complete" | $GREP " "` 19896 if test "x$has_space" != x; then 19897 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19898 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19899 fi 19900 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19901 fi 19902 fi 19903 19904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19907 # "foo.exe" is OK but "foo" is an error. 19908 # 19909 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19910 # It is also a way to make sure we got the proper file name for the real test later on. 19911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19912 if test "x$test_shortpath" = x; then 19913 # Short path failed, file does not exist as specified. 19914 # Try adding .exe or .cmd 19915 if test -f "${new_path}.exe"; then 19916 input_to_shortpath="${new_path}.exe" 19917 elif test -f "${new_path}.cmd"; then 19918 input_to_shortpath="${new_path}.cmd" 19919 else 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19921 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19923 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19924 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19925 fi 19926 else 19927 input_to_shortpath="$new_path" 19928 fi 19929 19930 # Call helper function which possibly converts this using DOS-style short mode. 19931 # If so, the updated path is stored in $new_path. 19932 new_path="$input_to_shortpath" 19933 19934 input_path="$input_to_shortpath" 19935 # Check if we need to convert this using DOS-style short mode. If the path 19936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19937 # take no chances and rewrite it. 19938 # Note: m4 eats our [], so we need to use [ and ] instead. 19939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19940 if test "x$has_forbidden_chars" != x; then 19941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19942 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19943 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19944 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19945 # Going to short mode and back again did indeed matter. Since short mode is 19946 # case insensitive, let's make it lowercase to improve readability. 19947 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19948 # Now convert it back to Unix-style (cygpath) 19949 input_path=`$CYGPATH -u "$shortmode_path"` 19950 new_path="$input_path" 19951 fi 19952 fi 19953 19954 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19955 if test "x$test_cygdrive_prefix" = x; then 19956 # As a simple fix, exclude /usr/bin since it's not a real path. 19957 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19958 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19959 # a path prefixed by /cygdrive for fixpath to work. 19960 new_path="$CYGWIN_ROOT_PATH$input_path" 19961 fi 19962 fi 19963 19964 # remove trailing .exe if any 19965 new_path="${new_path/%.exe/}" 19966 19967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19968 19969 # First separate the path from the arguments. This will split at the first 19970 # space. 19971 complete="$FOUND_MAKE" 19972 path="${complete%% *}" 19973 tmp="$complete EOL" 19974 arguments="${tmp#* }" 19975 19976 # Input might be given as Windows format, start by converting to 19977 # unix format. 19978 new_path="$path" 19979 19980 windows_path="$new_path" 19981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19982 unix_path=`$CYGPATH -u "$windows_path"` 19983 new_path="$unix_path" 19984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19986 new_path="$unix_path" 19987 fi 19988 19989 19990 # Now try to locate executable using which 19991 new_path=`$WHICH "$new_path" 2> /dev/null` 19992 19993 if test "x$new_path" = x; then 19994 # Oops. Which didn't find the executable. 19995 # The splitting of arguments from the executable at a space might have been incorrect, 19996 # since paths with space are more likely in Windows. Give it another try with the whole 19997 # argument. 19998 path="$complete" 19999 arguments="EOL" 20000 new_path="$path" 20001 20002 windows_path="$new_path" 20003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20004 unix_path=`$CYGPATH -u "$windows_path"` 20005 new_path="$unix_path" 20006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20008 new_path="$unix_path" 20009 fi 20010 20011 20012 new_path=`$WHICH "$new_path" 2> /dev/null` 20013 # bat and cmd files are not always considered executable in MSYS causing which 20014 # to not find them 20015 if test "x$new_path" = x \ 20016 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20017 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20018 new_path="$path" 20019 20020 windows_path="$new_path" 20021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20022 unix_path=`$CYGPATH -u "$windows_path"` 20023 new_path="$unix_path" 20024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20026 new_path="$unix_path" 20027 fi 20028 20029 fi 20030 20031 if test "x$new_path" = x; then 20032 # It's still not found. Now this is an unrecoverable error. 20033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20034 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20035 has_space=`$ECHO "$complete" | $GREP " "` 20036 if test "x$has_space" != x; then 20037 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20038 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20039 fi 20040 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20041 fi 20042 fi 20043 20044 # Now new_path has a complete unix path to the binary 20045 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20046 # Keep paths in /bin as-is, but remove trailing .exe if any 20047 new_path="${new_path/%.exe/}" 20048 # Do not save /bin paths to all_fixpath_prefixes! 20049 else 20050 # Not in mixed or Windows style, start by that. 20051 new_path=`cmd //c echo $new_path` 20052 20053 input_path="$new_path" 20054 # Check if we need to convert this using DOS-style short mode. If the path 20055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20056 # take no chances and rewrite it. 20057 # Note: m4 eats our [], so we need to use [ and ] instead. 20058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20059 if test "x$has_forbidden_chars" != x; then 20060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20061 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20062 fi 20063 20064 # Output is in $new_path 20065 20066 windows_path="$new_path" 20067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20068 unix_path=`$CYGPATH -u "$windows_path"` 20069 new_path="$unix_path" 20070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20072 new_path="$unix_path" 20073 fi 20074 20075 # remove trailing .exe if any 20076 new_path="${new_path/%.exe/}" 20077 20078 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20079 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20080 fi 20081 20082 else 20083 # We're on a unix platform. Hooray! :) 20084 # First separate the path from the arguments. This will split at the first 20085 # space. 20086 complete="$FOUND_MAKE" 20087 path="${complete%% *}" 20088 tmp="$complete EOL" 20089 arguments="${tmp#* }" 20090 20091 # Cannot rely on the command "which" here since it doesn't always work. 20092 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20093 if test -z "$is_absolute_path"; then 20094 # Path to executable is not absolute. Find it. 20095 IFS_save="$IFS" 20096 IFS=: 20097 for p in $PATH; do 20098 if test -f "$p/$path" && test -x "$p/$path"; then 20099 new_path="$p/$path" 20100 break 20101 fi 20102 done 20103 IFS="$IFS_save" 20104 else 20105 # This is an absolute path, we can use it without further modifications. 20106 new_path="$path" 20107 fi 20108 20109 if test "x$new_path" = x; then 20110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20111 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20112 has_space=`$ECHO "$complete" | $GREP " "` 20113 if test "x$has_space" != x; then 20114 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20115 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20116 fi 20117 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20118 fi 20119 fi 20120 20121 # Now join together the path and the arguments once again 20122 if test "x$arguments" != xEOL; then 20123 new_complete="$new_path ${arguments% *}" 20124 else 20125 new_complete="$new_path" 20126 fi 20127 20128 if test "x$complete" != "x$new_complete"; then 20129 FOUND_MAKE="$new_complete" 20130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20131 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20132 fi 20133 fi 20134 20135 fi 20136 fi 20137 fi 20138 fi 20139 20140 fi 20141 20142 if test "x$FOUND_MAKE" = x; then 20143 if test "x$TOOLCHAIN_PATH" != x; then 20144 # We have a toolchain path, check that as well before giving up. 20145 OLD_PATH=$PATH 20146 PATH=$TOOLCHAIN_PATH:$PATH 20147 for ac_prog in gmake 20148 do 20149 # Extract the first word of "$ac_prog", so it can be a program name with args. 20150 set dummy $ac_prog; ac_word=$2 20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20152 $as_echo_n "checking for $ac_word... " >&6; } 20153 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20154 $as_echo_n "(cached) " >&6 20155 else 20156 case $CHECK_TOOLSDIR_GMAKE in 20157 [\\/]* | ?:[\\/]*) 20158 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20159 ;; 20160 *) 20161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20162 for as_dir in $PATH 20163 do 20164 IFS=$as_save_IFS 20165 test -z "$as_dir" && as_dir=. 20166 for ac_exec_ext in '' $ac_executable_extensions; do 20167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20168 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20170 break 2 20171 fi 20172 done 20173 done 20174 IFS=$as_save_IFS 20175 20176 ;; 20177 esac 20178 fi 20179 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20180 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20182 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20183 else 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20185 $as_echo "no" >&6; } 20186 fi 20187 20188 20189 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20190 done 20191 20192 20193 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20194 DESCRIPTION="gmake in tools-dir" 20195 20196 # On Cygwin, we require a newer version of make than on other platforms 20197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20198 MAKE_VERSION_EXPR="-e 4\." 20199 MAKE_REQUIRED_VERSION="4.0" 20200 else 20201 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20202 MAKE_REQUIRED_VERSION="3.81" 20203 fi 20204 20205 if test "x$MAKE_CANDIDATE" != x; then 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20207 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20208 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20209 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20210 if test "x$IS_GNU_MAKE" = x; then 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20212 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20213 else 20214 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20215 if test "x$IS_MODERN_MAKE" = x; then 20216 { $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 20217 $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;} 20218 else 20219 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20221 MAKE_EXPECTED_ENV='cygwin' 20222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20223 MAKE_EXPECTED_ENV='msys' 20224 else 20225 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20226 fi 20227 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20228 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20229 else 20230 # Not relevant for non-Windows 20231 IS_MAKE_CORRECT_ENV=true 20232 fi 20233 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20234 { $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 20235 $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;} 20236 else 20237 FOUND_MAKE=$MAKE_CANDIDATE 20238 20239 # Only process if variable expands to non-empty 20240 20241 if test "x$FOUND_MAKE" != x; then 20242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20243 20244 # First separate the path from the arguments. This will split at the first 20245 # space. 20246 complete="$FOUND_MAKE" 20247 path="${complete%% *}" 20248 tmp="$complete EOL" 20249 arguments="${tmp#* }" 20250 20251 # Input might be given as Windows format, start by converting to 20252 # unix format. 20253 new_path=`$CYGPATH -u "$path"` 20254 20255 # Now try to locate executable using which 20256 new_path=`$WHICH "$new_path" 2> /dev/null` 20257 # bat and cmd files are not always considered executable in cygwin causing which 20258 # to not find them 20259 if test "x$new_path" = x \ 20260 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20261 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20262 new_path=`$CYGPATH -u "$path"` 20263 fi 20264 if test "x$new_path" = x; then 20265 # Oops. Which didn't find the executable. 20266 # The splitting of arguments from the executable at a space might have been incorrect, 20267 # since paths with space are more likely in Windows. Give it another try with the whole 20268 # argument. 20269 path="$complete" 20270 arguments="EOL" 20271 new_path=`$CYGPATH -u "$path"` 20272 new_path=`$WHICH "$new_path" 2> /dev/null` 20273 # bat and cmd files are not always considered executable in cygwin causing which 20274 # to not find them 20275 if test "x$new_path" = x \ 20276 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20277 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20278 new_path=`$CYGPATH -u "$path"` 20279 fi 20280 if test "x$new_path" = x; then 20281 # It's still not found. Now this is an unrecoverable error. 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20284 has_space=`$ECHO "$complete" | $GREP " "` 20285 if test "x$has_space" != x; then 20286 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20287 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20288 fi 20289 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20290 fi 20291 fi 20292 20293 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20294 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20295 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20296 # "foo.exe" is OK but "foo" is an error. 20297 # 20298 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20299 # It is also a way to make sure we got the proper file name for the real test later on. 20300 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20301 if test "x$test_shortpath" = x; then 20302 # Short path failed, file does not exist as specified. 20303 # Try adding .exe or .cmd 20304 if test -f "${new_path}.exe"; then 20305 input_to_shortpath="${new_path}.exe" 20306 elif test -f "${new_path}.cmd"; then 20307 input_to_shortpath="${new_path}.cmd" 20308 else 20309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20310 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20311 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20312 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20313 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20314 fi 20315 else 20316 input_to_shortpath="$new_path" 20317 fi 20318 20319 # Call helper function which possibly converts this using DOS-style short mode. 20320 # If so, the updated path is stored in $new_path. 20321 new_path="$input_to_shortpath" 20322 20323 input_path="$input_to_shortpath" 20324 # Check if we need to convert this using DOS-style short mode. If the path 20325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20326 # take no chances and rewrite it. 20327 # Note: m4 eats our [], so we need to use [ and ] instead. 20328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20329 if test "x$has_forbidden_chars" != x; then 20330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20331 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20332 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20333 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20334 # Going to short mode and back again did indeed matter. Since short mode is 20335 # case insensitive, let's make it lowercase to improve readability. 20336 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20337 # Now convert it back to Unix-style (cygpath) 20338 input_path=`$CYGPATH -u "$shortmode_path"` 20339 new_path="$input_path" 20340 fi 20341 fi 20342 20343 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20344 if test "x$test_cygdrive_prefix" = x; then 20345 # As a simple fix, exclude /usr/bin since it's not a real path. 20346 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20347 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20348 # a path prefixed by /cygdrive for fixpath to work. 20349 new_path="$CYGWIN_ROOT_PATH$input_path" 20350 fi 20351 fi 20352 20353 # remove trailing .exe if any 20354 new_path="${new_path/%.exe/}" 20355 20356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20357 20358 # First separate the path from the arguments. This will split at the first 20359 # space. 20360 complete="$FOUND_MAKE" 20361 path="${complete%% *}" 20362 tmp="$complete EOL" 20363 arguments="${tmp#* }" 20364 20365 # Input might be given as Windows format, start by converting to 20366 # unix format. 20367 new_path="$path" 20368 20369 windows_path="$new_path" 20370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20371 unix_path=`$CYGPATH -u "$windows_path"` 20372 new_path="$unix_path" 20373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20374 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20375 new_path="$unix_path" 20376 fi 20377 20378 20379 # Now try to locate executable using which 20380 new_path=`$WHICH "$new_path" 2> /dev/null` 20381 20382 if test "x$new_path" = x; then 20383 # Oops. Which didn't find the executable. 20384 # The splitting of arguments from the executable at a space might have been incorrect, 20385 # since paths with space are more likely in Windows. Give it another try with the whole 20386 # argument. 20387 path="$complete" 20388 arguments="EOL" 20389 new_path="$path" 20390 20391 windows_path="$new_path" 20392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20393 unix_path=`$CYGPATH -u "$windows_path"` 20394 new_path="$unix_path" 20395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20397 new_path="$unix_path" 20398 fi 20399 20400 20401 new_path=`$WHICH "$new_path" 2> /dev/null` 20402 # bat and cmd files are not always considered executable in MSYS causing which 20403 # to not find them 20404 if test "x$new_path" = x \ 20405 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20406 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20407 new_path="$path" 20408 20409 windows_path="$new_path" 20410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20411 unix_path=`$CYGPATH -u "$windows_path"` 20412 new_path="$unix_path" 20413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20415 new_path="$unix_path" 20416 fi 20417 20418 fi 20419 20420 if test "x$new_path" = x; then 20421 # It's still not found. Now this is an unrecoverable error. 20422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20423 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20424 has_space=`$ECHO "$complete" | $GREP " "` 20425 if test "x$has_space" != x; then 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20427 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20428 fi 20429 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20430 fi 20431 fi 20432 20433 # Now new_path has a complete unix path to the binary 20434 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20435 # Keep paths in /bin as-is, but remove trailing .exe if any 20436 new_path="${new_path/%.exe/}" 20437 # Do not save /bin paths to all_fixpath_prefixes! 20438 else 20439 # Not in mixed or Windows style, start by that. 20440 new_path=`cmd //c echo $new_path` 20441 20442 input_path="$new_path" 20443 # Check if we need to convert this using DOS-style short mode. If the path 20444 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20445 # take no chances and rewrite it. 20446 # Note: m4 eats our [], so we need to use [ and ] instead. 20447 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20448 if test "x$has_forbidden_chars" != x; then 20449 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20450 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20451 fi 20452 20453 # Output is in $new_path 20454 20455 windows_path="$new_path" 20456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20457 unix_path=`$CYGPATH -u "$windows_path"` 20458 new_path="$unix_path" 20459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20461 new_path="$unix_path" 20462 fi 20463 20464 # remove trailing .exe if any 20465 new_path="${new_path/%.exe/}" 20466 20467 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20468 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20469 fi 20470 20471 else 20472 # We're on a unix platform. Hooray! :) 20473 # First separate the path from the arguments. This will split at the first 20474 # space. 20475 complete="$FOUND_MAKE" 20476 path="${complete%% *}" 20477 tmp="$complete EOL" 20478 arguments="${tmp#* }" 20479 20480 # Cannot rely on the command "which" here since it doesn't always work. 20481 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20482 if test -z "$is_absolute_path"; then 20483 # Path to executable is not absolute. Find it. 20484 IFS_save="$IFS" 20485 IFS=: 20486 for p in $PATH; do 20487 if test -f "$p/$path" && test -x "$p/$path"; then 20488 new_path="$p/$path" 20489 break 20490 fi 20491 done 20492 IFS="$IFS_save" 20493 else 20494 # This is an absolute path, we can use it without further modifications. 20495 new_path="$path" 20496 fi 20497 20498 if test "x$new_path" = x; then 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20500 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20501 has_space=`$ECHO "$complete" | $GREP " "` 20502 if test "x$has_space" != x; then 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20504 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20505 fi 20506 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20507 fi 20508 fi 20509 20510 # Now join together the path and the arguments once again 20511 if test "x$arguments" != xEOL; then 20512 new_complete="$new_path ${arguments% *}" 20513 else 20514 new_complete="$new_path" 20515 fi 20516 20517 if test "x$complete" != "x$new_complete"; then 20518 FOUND_MAKE="$new_complete" 20519 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20520 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20521 fi 20522 fi 20523 20524 fi 20525 fi 20526 fi 20527 fi 20528 20529 if test "x$FOUND_MAKE" = x; then 20530 for ac_prog in make 20531 do 20532 # Extract the first word of "$ac_prog", so it can be a program name with args. 20533 set dummy $ac_prog; ac_word=$2 20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20535 $as_echo_n "checking for $ac_word... " >&6; } 20536 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20537 $as_echo_n "(cached) " >&6 20538 else 20539 case $CHECK_TOOLSDIR_MAKE in 20540 [\\/]* | ?:[\\/]*) 20541 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20542 ;; 20543 *) 20544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20545 for as_dir in $PATH 20546 do 20547 IFS=$as_save_IFS 20548 test -z "$as_dir" && as_dir=. 20549 for ac_exec_ext in '' $ac_executable_extensions; do 20550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20551 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20553 break 2 20554 fi 20555 done 20556 done 20557 IFS=$as_save_IFS 20558 20559 ;; 20560 esac 20561 fi 20562 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20563 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20565 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20566 else 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20568 $as_echo "no" >&6; } 20569 fi 20570 20571 20572 test -n "$CHECK_TOOLSDIR_MAKE" && break 20573 done 20574 20575 20576 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20577 DESCRIPTION="make in tools-dir" 20578 20579 # On Cygwin, we require a newer version of make than on other platforms 20580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20581 MAKE_VERSION_EXPR="-e 4\." 20582 MAKE_REQUIRED_VERSION="4.0" 20583 else 20584 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20585 MAKE_REQUIRED_VERSION="3.81" 20586 fi 20587 20588 if test "x$MAKE_CANDIDATE" != x; then 20589 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20590 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20591 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20592 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20593 if test "x$IS_GNU_MAKE" = x; then 20594 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20595 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20596 else 20597 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20598 if test "x$IS_MODERN_MAKE" = x; then 20599 { $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 20600 $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;} 20601 else 20602 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20604 MAKE_EXPECTED_ENV='cygwin' 20605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20606 MAKE_EXPECTED_ENV='msys' 20607 else 20608 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20609 fi 20610 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20611 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20612 else 20613 # Not relevant for non-Windows 20614 IS_MAKE_CORRECT_ENV=true 20615 fi 20616 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20617 { $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 20618 $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;} 20619 else 20620 FOUND_MAKE=$MAKE_CANDIDATE 20621 20622 # Only process if variable expands to non-empty 20623 20624 if test "x$FOUND_MAKE" != x; then 20625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20626 20627 # First separate the path from the arguments. This will split at the first 20628 # space. 20629 complete="$FOUND_MAKE" 20630 path="${complete%% *}" 20631 tmp="$complete EOL" 20632 arguments="${tmp#* }" 20633 20634 # Input might be given as Windows format, start by converting to 20635 # unix format. 20636 new_path=`$CYGPATH -u "$path"` 20637 20638 # Now try to locate executable using which 20639 new_path=`$WHICH "$new_path" 2> /dev/null` 20640 # bat and cmd files are not always considered executable in cygwin causing which 20641 # to not find them 20642 if test "x$new_path" = x \ 20643 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20644 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20645 new_path=`$CYGPATH -u "$path"` 20646 fi 20647 if test "x$new_path" = x; then 20648 # Oops. Which didn't find the executable. 20649 # The splitting of arguments from the executable at a space might have been incorrect, 20650 # since paths with space are more likely in Windows. Give it another try with the whole 20651 # argument. 20652 path="$complete" 20653 arguments="EOL" 20654 new_path=`$CYGPATH -u "$path"` 20655 new_path=`$WHICH "$new_path" 2> /dev/null` 20656 # bat and cmd files are not always considered executable in cygwin causing which 20657 # to not find them 20658 if test "x$new_path" = x \ 20659 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20660 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20661 new_path=`$CYGPATH -u "$path"` 20662 fi 20663 if test "x$new_path" = x; then 20664 # It's still not found. Now this is an unrecoverable error. 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20666 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20667 has_space=`$ECHO "$complete" | $GREP " "` 20668 if test "x$has_space" != x; then 20669 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20670 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20671 fi 20672 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20673 fi 20674 fi 20675 20676 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20677 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20678 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20679 # "foo.exe" is OK but "foo" is an error. 20680 # 20681 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20682 # It is also a way to make sure we got the proper file name for the real test later on. 20683 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20684 if test "x$test_shortpath" = x; then 20685 # Short path failed, file does not exist as specified. 20686 # Try adding .exe or .cmd 20687 if test -f "${new_path}.exe"; then 20688 input_to_shortpath="${new_path}.exe" 20689 elif test -f "${new_path}.cmd"; then 20690 input_to_shortpath="${new_path}.cmd" 20691 else 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20693 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20694 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20695 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20696 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20697 fi 20698 else 20699 input_to_shortpath="$new_path" 20700 fi 20701 20702 # Call helper function which possibly converts this using DOS-style short mode. 20703 # If so, the updated path is stored in $new_path. 20704 new_path="$input_to_shortpath" 20705 20706 input_path="$input_to_shortpath" 20707 # Check if we need to convert this using DOS-style short mode. If the path 20708 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20709 # take no chances and rewrite it. 20710 # Note: m4 eats our [], so we need to use [ and ] instead. 20711 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20712 if test "x$has_forbidden_chars" != x; then 20713 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20714 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20715 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20716 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20717 # Going to short mode and back again did indeed matter. Since short mode is 20718 # case insensitive, let's make it lowercase to improve readability. 20719 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20720 # Now convert it back to Unix-style (cygpath) 20721 input_path=`$CYGPATH -u "$shortmode_path"` 20722 new_path="$input_path" 20723 fi 20724 fi 20725 20726 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20727 if test "x$test_cygdrive_prefix" = x; then 20728 # As a simple fix, exclude /usr/bin since it's not a real path. 20729 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20730 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20731 # a path prefixed by /cygdrive for fixpath to work. 20732 new_path="$CYGWIN_ROOT_PATH$input_path" 20733 fi 20734 fi 20735 20736 # remove trailing .exe if any 20737 new_path="${new_path/%.exe/}" 20738 20739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20740 20741 # First separate the path from the arguments. This will split at the first 20742 # space. 20743 complete="$FOUND_MAKE" 20744 path="${complete%% *}" 20745 tmp="$complete EOL" 20746 arguments="${tmp#* }" 20747 20748 # Input might be given as Windows format, start by converting to 20749 # unix format. 20750 new_path="$path" 20751 20752 windows_path="$new_path" 20753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20754 unix_path=`$CYGPATH -u "$windows_path"` 20755 new_path="$unix_path" 20756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20758 new_path="$unix_path" 20759 fi 20760 20761 20762 # Now try to locate executable using which 20763 new_path=`$WHICH "$new_path" 2> /dev/null` 20764 20765 if test "x$new_path" = x; then 20766 # Oops. Which didn't find the executable. 20767 # The splitting of arguments from the executable at a space might have been incorrect, 20768 # since paths with space are more likely in Windows. Give it another try with the whole 20769 # argument. 20770 path="$complete" 20771 arguments="EOL" 20772 new_path="$path" 20773 20774 windows_path="$new_path" 20775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20776 unix_path=`$CYGPATH -u "$windows_path"` 20777 new_path="$unix_path" 20778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20779 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20780 new_path="$unix_path" 20781 fi 20782 20783 20784 new_path=`$WHICH "$new_path" 2> /dev/null` 20785 # bat and cmd files are not always considered executable in MSYS causing which 20786 # to not find them 20787 if test "x$new_path" = x \ 20788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20790 new_path="$path" 20791 20792 windows_path="$new_path" 20793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20794 unix_path=`$CYGPATH -u "$windows_path"` 20795 new_path="$unix_path" 20796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20797 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20798 new_path="$unix_path" 20799 fi 20800 20801 fi 20802 20803 if test "x$new_path" = x; then 20804 # It's still not found. Now this is an unrecoverable error. 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20806 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20807 has_space=`$ECHO "$complete" | $GREP " "` 20808 if test "x$has_space" != x; then 20809 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20810 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20811 fi 20812 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20813 fi 20814 fi 20815 20816 # Now new_path has a complete unix path to the binary 20817 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20818 # Keep paths in /bin as-is, but remove trailing .exe if any 20819 new_path="${new_path/%.exe/}" 20820 # Do not save /bin paths to all_fixpath_prefixes! 20821 else 20822 # Not in mixed or Windows style, start by that. 20823 new_path=`cmd //c echo $new_path` 20824 20825 input_path="$new_path" 20826 # Check if we need to convert this using DOS-style short mode. If the path 20827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20828 # take no chances and rewrite it. 20829 # Note: m4 eats our [], so we need to use [ and ] instead. 20830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20831 if test "x$has_forbidden_chars" != x; then 20832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20834 fi 20835 20836 # Output is in $new_path 20837 20838 windows_path="$new_path" 20839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20840 unix_path=`$CYGPATH -u "$windows_path"` 20841 new_path="$unix_path" 20842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20844 new_path="$unix_path" 20845 fi 20846 20847 # remove trailing .exe if any 20848 new_path="${new_path/%.exe/}" 20849 20850 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20851 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20852 fi 20853 20854 else 20855 # We're on a unix platform. Hooray! :) 20856 # First separate the path from the arguments. This will split at the first 20857 # space. 20858 complete="$FOUND_MAKE" 20859 path="${complete%% *}" 20860 tmp="$complete EOL" 20861 arguments="${tmp#* }" 20862 20863 # Cannot rely on the command "which" here since it doesn't always work. 20864 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20865 if test -z "$is_absolute_path"; then 20866 # Path to executable is not absolute. Find it. 20867 IFS_save="$IFS" 20868 IFS=: 20869 for p in $PATH; do 20870 if test -f "$p/$path" && test -x "$p/$path"; then 20871 new_path="$p/$path" 20872 break 20873 fi 20874 done 20875 IFS="$IFS_save" 20876 else 20877 # This is an absolute path, we can use it without further modifications. 20878 new_path="$path" 20879 fi 20880 20881 if test "x$new_path" = x; then 20882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20883 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20884 has_space=`$ECHO "$complete" | $GREP " "` 20885 if test "x$has_space" != x; then 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20887 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20888 fi 20889 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20890 fi 20891 fi 20892 20893 # Now join together the path and the arguments once again 20894 if test "x$arguments" != xEOL; then 20895 new_complete="$new_path ${arguments% *}" 20896 else 20897 new_complete="$new_path" 20898 fi 20899 20900 if test "x$complete" != "x$new_complete"; then 20901 FOUND_MAKE="$new_complete" 20902 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20903 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20904 fi 20905 fi 20906 20907 fi 20908 fi 20909 fi 20910 fi 20911 20912 fi 20913 PATH=$OLD_PATH 20914 fi 20915 fi 20916 20917 if test "x$FOUND_MAKE" = x; then 20918 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 20919 fi 20920 20921 else 20922 # If it succeeded, then it was overridden by the user. We will use it 20923 # for the tool. 20924 20925 # First remove it from the list of overridden variables, so we can test 20926 # for unknown variables in the end. 20927 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20928 20929 # Check if we try to supply an empty value 20930 if test "x$MAKE" = x; then 20931 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20932 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20934 $as_echo_n "checking for MAKE... " >&6; } 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20936 $as_echo "disabled" >&6; } 20937 else 20938 # Check if the provided tool contains a complete path. 20939 tool_specified="$MAKE" 20940 tool_basename="${tool_specified##*/}" 20941 if test "x$tool_basename" = "x$tool_specified"; then 20942 # A command without a complete path is provided, search $PATH. 20943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20944 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20945 # Extract the first word of "$tool_basename", so it can be a program name with args. 20946 set dummy $tool_basename; ac_word=$2 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20948 $as_echo_n "checking for $ac_word... " >&6; } 20949 if ${ac_cv_path_MAKE+:} false; then : 20950 $as_echo_n "(cached) " >&6 20951 else 20952 case $MAKE in 20953 [\\/]* | ?:[\\/]*) 20954 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20955 ;; 20956 *) 20957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20958 for as_dir in $PATH 20959 do 20960 IFS=$as_save_IFS 20961 test -z "$as_dir" && as_dir=. 20962 for ac_exec_ext in '' $ac_executable_extensions; do 20963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20964 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20966 break 2 20967 fi 20968 done 20969 done 20970 IFS=$as_save_IFS 20971 20972 ;; 20973 esac 20974 fi 20975 MAKE=$ac_cv_path_MAKE 20976 if test -n "$MAKE"; then 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20978 $as_echo "$MAKE" >&6; } 20979 else 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20981 $as_echo "no" >&6; } 20982 fi 20983 20984 20985 if test "x$MAKE" = x; then 20986 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20987 fi 20988 else 20989 # Otherwise we believe it is a complete path. Use it as it is. 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20991 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20993 $as_echo_n "checking for MAKE... " >&6; } 20994 if test ! -x "$tool_specified"; then 20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20996 $as_echo "not found" >&6; } 20997 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20998 fi 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21000 $as_echo "$tool_specified" >&6; } 21001 fi 21002 fi 21003 fi 21004 21005 # If MAKE was set by user, verify the version 21006 21007 MAKE_CANDIDATE=""$MAKE"" 21008 DESCRIPTION="user supplied MAKE=$MAKE" 21009 21010 # On Cygwin, we require a newer version of make than on other platforms 21011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21012 MAKE_VERSION_EXPR="-e 4\." 21013 MAKE_REQUIRED_VERSION="4.0" 21014 else 21015 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21016 MAKE_REQUIRED_VERSION="3.81" 21017 fi 21018 21019 if test "x$MAKE_CANDIDATE" != x; then 21020 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21021 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21022 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21023 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21024 if test "x$IS_GNU_MAKE" = x; then 21025 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21026 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21027 else 21028 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21029 if test "x$IS_MODERN_MAKE" = x; then 21030 { $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 21031 $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;} 21032 else 21033 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21035 MAKE_EXPECTED_ENV='cygwin' 21036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21037 MAKE_EXPECTED_ENV='msys' 21038 else 21039 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21040 fi 21041 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21042 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21043 else 21044 # Not relevant for non-Windows 21045 IS_MAKE_CORRECT_ENV=true 21046 fi 21047 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21048 { $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 21049 $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;} 21050 else 21051 FOUND_MAKE=$MAKE_CANDIDATE 21052 21053 # Only process if variable expands to non-empty 21054 21055 if test "x$FOUND_MAKE" != x; then 21056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21057 21058 # First separate the path from the arguments. This will split at the first 21059 # space. 21060 complete="$FOUND_MAKE" 21061 path="${complete%% *}" 21062 tmp="$complete EOL" 21063 arguments="${tmp#* }" 21064 21065 # Input might be given as Windows format, start by converting to 21066 # unix format. 21067 new_path=`$CYGPATH -u "$path"` 21068 21069 # Now try to locate executable using which 21070 new_path=`$WHICH "$new_path" 2> /dev/null` 21071 # bat and cmd files are not always considered executable in cygwin causing which 21072 # to not find them 21073 if test "x$new_path" = x \ 21074 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21075 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21076 new_path=`$CYGPATH -u "$path"` 21077 fi 21078 if test "x$new_path" = x; then 21079 # Oops. Which didn't find the executable. 21080 # The splitting of arguments from the executable at a space might have been incorrect, 21081 # since paths with space are more likely in Windows. Give it another try with the whole 21082 # argument. 21083 path="$complete" 21084 arguments="EOL" 21085 new_path=`$CYGPATH -u "$path"` 21086 new_path=`$WHICH "$new_path" 2> /dev/null` 21087 # bat and cmd files are not always considered executable in cygwin causing which 21088 # to not find them 21089 if test "x$new_path" = x \ 21090 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21091 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21092 new_path=`$CYGPATH -u "$path"` 21093 fi 21094 if test "x$new_path" = x; then 21095 # It's still not found. Now this is an unrecoverable error. 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21097 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21098 has_space=`$ECHO "$complete" | $GREP " "` 21099 if test "x$has_space" != x; then 21100 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21101 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21102 fi 21103 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21104 fi 21105 fi 21106 21107 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21108 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21109 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21110 # "foo.exe" is OK but "foo" is an error. 21111 # 21112 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21113 # It is also a way to make sure we got the proper file name for the real test later on. 21114 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21115 if test "x$test_shortpath" = x; then 21116 # Short path failed, file does not exist as specified. 21117 # Try adding .exe or .cmd 21118 if test -f "${new_path}.exe"; then 21119 input_to_shortpath="${new_path}.exe" 21120 elif test -f "${new_path}.cmd"; then 21121 input_to_shortpath="${new_path}.cmd" 21122 else 21123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21124 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21126 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21127 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21128 fi 21129 else 21130 input_to_shortpath="$new_path" 21131 fi 21132 21133 # Call helper function which possibly converts this using DOS-style short mode. 21134 # If so, the updated path is stored in $new_path. 21135 new_path="$input_to_shortpath" 21136 21137 input_path="$input_to_shortpath" 21138 # Check if we need to convert this using DOS-style short mode. If the path 21139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21140 # take no chances and rewrite it. 21141 # Note: m4 eats our [], so we need to use [ and ] instead. 21142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21143 if test "x$has_forbidden_chars" != x; then 21144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21145 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21146 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21147 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21148 # Going to short mode and back again did indeed matter. Since short mode is 21149 # case insensitive, let's make it lowercase to improve readability. 21150 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21151 # Now convert it back to Unix-style (cygpath) 21152 input_path=`$CYGPATH -u "$shortmode_path"` 21153 new_path="$input_path" 21154 fi 21155 fi 21156 21157 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21158 if test "x$test_cygdrive_prefix" = x; then 21159 # As a simple fix, exclude /usr/bin since it's not a real path. 21160 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21161 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21162 # a path prefixed by /cygdrive for fixpath to work. 21163 new_path="$CYGWIN_ROOT_PATH$input_path" 21164 fi 21165 fi 21166 21167 # remove trailing .exe if any 21168 new_path="${new_path/%.exe/}" 21169 21170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21171 21172 # First separate the path from the arguments. This will split at the first 21173 # space. 21174 complete="$FOUND_MAKE" 21175 path="${complete%% *}" 21176 tmp="$complete EOL" 21177 arguments="${tmp#* }" 21178 21179 # Input might be given as Windows format, start by converting to 21180 # unix format. 21181 new_path="$path" 21182 21183 windows_path="$new_path" 21184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21185 unix_path=`$CYGPATH -u "$windows_path"` 21186 new_path="$unix_path" 21187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21189 new_path="$unix_path" 21190 fi 21191 21192 21193 # Now try to locate executable using which 21194 new_path=`$WHICH "$new_path" 2> /dev/null` 21195 21196 if test "x$new_path" = x; then 21197 # Oops. Which didn't find the executable. 21198 # The splitting of arguments from the executable at a space might have been incorrect, 21199 # since paths with space are more likely in Windows. Give it another try with the whole 21200 # argument. 21201 path="$complete" 21202 arguments="EOL" 21203 new_path="$path" 21204 21205 windows_path="$new_path" 21206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21207 unix_path=`$CYGPATH -u "$windows_path"` 21208 new_path="$unix_path" 21209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21210 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21211 new_path="$unix_path" 21212 fi 21213 21214 21215 new_path=`$WHICH "$new_path" 2> /dev/null` 21216 # bat and cmd files are not always considered executable in MSYS causing which 21217 # to not find them 21218 if test "x$new_path" = x \ 21219 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21220 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21221 new_path="$path" 21222 21223 windows_path="$new_path" 21224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21225 unix_path=`$CYGPATH -u "$windows_path"` 21226 new_path="$unix_path" 21227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21229 new_path="$unix_path" 21230 fi 21231 21232 fi 21233 21234 if test "x$new_path" = x; then 21235 # It's still not found. Now this is an unrecoverable error. 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21237 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21238 has_space=`$ECHO "$complete" | $GREP " "` 21239 if test "x$has_space" != x; then 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21241 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21242 fi 21243 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21244 fi 21245 fi 21246 21247 # Now new_path has a complete unix path to the binary 21248 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21249 # Keep paths in /bin as-is, but remove trailing .exe if any 21250 new_path="${new_path/%.exe/}" 21251 # Do not save /bin paths to all_fixpath_prefixes! 21252 else 21253 # Not in mixed or Windows style, start by that. 21254 new_path=`cmd //c echo $new_path` 21255 21256 input_path="$new_path" 21257 # Check if we need to convert this using DOS-style short mode. If the path 21258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21259 # take no chances and rewrite it. 21260 # Note: m4 eats our [], so we need to use [ and ] instead. 21261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21262 if test "x$has_forbidden_chars" != x; then 21263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21264 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21265 fi 21266 21267 # Output is in $new_path 21268 21269 windows_path="$new_path" 21270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21271 unix_path=`$CYGPATH -u "$windows_path"` 21272 new_path="$unix_path" 21273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21275 new_path="$unix_path" 21276 fi 21277 21278 # remove trailing .exe if any 21279 new_path="${new_path/%.exe/}" 21280 21281 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21282 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21283 fi 21284 21285 else 21286 # We're on a unix platform. Hooray! :) 21287 # First separate the path from the arguments. This will split at the first 21288 # space. 21289 complete="$FOUND_MAKE" 21290 path="${complete%% *}" 21291 tmp="$complete EOL" 21292 arguments="${tmp#* }" 21293 21294 # Cannot rely on the command "which" here since it doesn't always work. 21295 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21296 if test -z "$is_absolute_path"; then 21297 # Path to executable is not absolute. Find it. 21298 IFS_save="$IFS" 21299 IFS=: 21300 for p in $PATH; do 21301 if test -f "$p/$path" && test -x "$p/$path"; then 21302 new_path="$p/$path" 21303 break 21304 fi 21305 done 21306 IFS="$IFS_save" 21307 else 21308 # This is an absolute path, we can use it without further modifications. 21309 new_path="$path" 21310 fi 21311 21312 if test "x$new_path" = x; then 21313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21314 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21315 has_space=`$ECHO "$complete" | $GREP " "` 21316 if test "x$has_space" != x; then 21317 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21318 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21319 fi 21320 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21321 fi 21322 fi 21323 21324 # Now join together the path and the arguments once again 21325 if test "x$arguments" != xEOL; then 21326 new_complete="$new_path ${arguments% *}" 21327 else 21328 new_complete="$new_path" 21329 fi 21330 21331 if test "x$complete" != "x$new_complete"; then 21332 FOUND_MAKE="$new_complete" 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21334 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21335 fi 21336 fi 21337 21338 fi 21339 fi 21340 fi 21341 fi 21342 21343 if test "x$FOUND_MAKE" = x; then 21344 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21345 fi 21346 21347 fi 21348 21349 21350 MAKE=$FOUND_MAKE 21351 21352 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21353 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21354 21355 21356 # Check if make supports the output sync option and if so, setup using it. 21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21358 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21359 if $MAKE --version -O > /dev/null 2>&1; then 21360 OUTPUT_SYNC_SUPPORTED=true 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21362 $as_echo "yes" >&6; } 21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21364 $as_echo_n "checking for output-sync value... " >&6; } 21365 21366 # Check whether --with-output-sync was given. 21367 if test "${with_output_sync+set}" = set; then : 21368 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21369 fi 21370 21371 if test "x$OUTPUT_SYNC" = "x"; then 21372 OUTPUT_SYNC=none 21373 fi 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21375 $as_echo "$OUTPUT_SYNC" >&6; } 21376 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21377 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21378 fi 21379 else 21380 OUTPUT_SYNC_SUPPORTED=false 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21382 $as_echo "no" >&6; } 21383 fi 21384 21385 21386 21387 21388 21389 21390 # Test if find supports -delete 21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21392 $as_echo_n "checking if find supports -delete... " >&6; } 21393 FIND_DELETE="-delete" 21394 21395 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21396 21397 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21398 21399 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21400 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21401 # No, it does not. 21402 $RM $DELETEDIR/TestIfFindSupportsDelete 21403 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21404 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21405 FIND_DELETE="-print | $XARGS $RM" 21406 else 21407 FIND_DELETE="-exec $RM \{\} \+" 21408 fi 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21410 $as_echo "no" >&6; } 21411 else 21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21413 $as_echo "yes" >&6; } 21414 fi 21415 $RMDIR $DELETEDIR 21416 21417 21418 21419 # Test which kind of tar was found 21420 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21421 TAR_TYPE="gnu" 21422 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21423 TAR_TYPE="bsd" 21424 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21425 TAR_TYPE="bsd" 21426 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21427 TAR_TYPE="solaris" 21428 fi 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21430 $as_echo_n "checking what type of tar was found... " >&6; } 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21432 $as_echo "$TAR_TYPE" >&6; } 21433 21434 TAR_CREATE_FILE_PARAM="" 21435 21436 if test "x$TAR_TYPE" = "xgnu"; then 21437 TAR_INCLUDE_PARAM="T" 21438 TAR_SUPPORTS_TRANSFORM="true" 21439 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21440 # When using gnu tar for Solaris targets, need to use compatibility mode 21441 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21442 fi 21443 else 21444 TAR_INCLUDE_PARAM="I" 21445 TAR_SUPPORTS_TRANSFORM="false" 21446 fi 21447 21448 21449 21450 21451 21452 21453 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21454 # This is a problem for the grep resident on AIX. 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21456 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21457 # Multiple subsequent spaces.. 21458 STACK_SPACES='aaa bbb ccc' 21459 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21460 # patterns in it. 21461 STACK_LIST=${STACK_SPACES// /$'\n'} 21462 NEEDLE_SPACES='ccc bbb aaa' 21463 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21464 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21465 if test "x$RESULT" == "x"; then 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21467 $as_echo "yes" >&6; } 21468 else 21469 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21470 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21471 fi 21472 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21473 fi 21474 21475 21476 # These tools might not be installed by default, 21477 # need hint on how to install them. 21478 21479 21480 21481 # Publish this variable in the help. 21482 21483 21484 if [ -z "${UNZIP+x}" ]; then 21485 # The variable is not set by user, try to locate tool using the code snippet 21486 for ac_prog in unzip 21487 do 21488 # Extract the first word of "$ac_prog", so it can be a program name with args. 21489 set dummy $ac_prog; ac_word=$2 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21491 $as_echo_n "checking for $ac_word... " >&6; } 21492 if ${ac_cv_path_UNZIP+:} false; then : 21493 $as_echo_n "(cached) " >&6 21494 else 21495 case $UNZIP in 21496 [\\/]* | ?:[\\/]*) 21497 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21498 ;; 21499 *) 21500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21501 for as_dir in $PATH 21502 do 21503 IFS=$as_save_IFS 21504 test -z "$as_dir" && as_dir=. 21505 for ac_exec_ext in '' $ac_executable_extensions; do 21506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21507 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21509 break 2 21510 fi 21511 done 21512 done 21513 IFS=$as_save_IFS 21514 21515 ;; 21516 esac 21517 fi 21518 UNZIP=$ac_cv_path_UNZIP 21519 if test -n "$UNZIP"; then 21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21521 $as_echo "$UNZIP" >&6; } 21522 else 21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21524 $as_echo "no" >&6; } 21525 fi 21526 21527 21528 test -n "$UNZIP" && break 21529 done 21530 21531 else 21532 # The variable is set, but is it from the command line or the environment? 21533 21534 # Try to remove the string !UNZIP! from our list. 21535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21537 # If it failed, the variable was not from the command line. Ignore it, 21538 # but warn the user (except for BASH, which is always set by the calling BASH). 21539 if test "xUNZIP" != xBASH; then 21540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21541 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21542 fi 21543 # Try to locate tool using the code snippet 21544 for ac_prog in unzip 21545 do 21546 # Extract the first word of "$ac_prog", so it can be a program name with args. 21547 set dummy $ac_prog; ac_word=$2 21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21549 $as_echo_n "checking for $ac_word... " >&6; } 21550 if ${ac_cv_path_UNZIP+:} false; then : 21551 $as_echo_n "(cached) " >&6 21552 else 21553 case $UNZIP in 21554 [\\/]* | ?:[\\/]*) 21555 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21556 ;; 21557 *) 21558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21559 for as_dir in $PATH 21560 do 21561 IFS=$as_save_IFS 21562 test -z "$as_dir" && as_dir=. 21563 for ac_exec_ext in '' $ac_executable_extensions; do 21564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21565 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21567 break 2 21568 fi 21569 done 21570 done 21571 IFS=$as_save_IFS 21572 21573 ;; 21574 esac 21575 fi 21576 UNZIP=$ac_cv_path_UNZIP 21577 if test -n "$UNZIP"; then 21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21579 $as_echo "$UNZIP" >&6; } 21580 else 21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21582 $as_echo "no" >&6; } 21583 fi 21584 21585 21586 test -n "$UNZIP" && break 21587 done 21588 21589 else 21590 # If it succeeded, then it was overridden by the user. We will use it 21591 # for the tool. 21592 21593 # First remove it from the list of overridden variables, so we can test 21594 # for unknown variables in the end. 21595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21596 21597 # Check if we try to supply an empty value 21598 if test "x$UNZIP" = x; then 21599 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21600 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21602 $as_echo_n "checking for UNZIP... " >&6; } 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21604 $as_echo "disabled" >&6; } 21605 else 21606 # Check if the provided tool contains a complete path. 21607 tool_specified="$UNZIP" 21608 tool_basename="${tool_specified##*/}" 21609 if test "x$tool_basename" = "x$tool_specified"; then 21610 # A command without a complete path is provided, search $PATH. 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21612 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21613 # Extract the first word of "$tool_basename", so it can be a program name with args. 21614 set dummy $tool_basename; ac_word=$2 21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21616 $as_echo_n "checking for $ac_word... " >&6; } 21617 if ${ac_cv_path_UNZIP+:} false; then : 21618 $as_echo_n "(cached) " >&6 21619 else 21620 case $UNZIP in 21621 [\\/]* | ?:[\\/]*) 21622 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21623 ;; 21624 *) 21625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21626 for as_dir in $PATH 21627 do 21628 IFS=$as_save_IFS 21629 test -z "$as_dir" && as_dir=. 21630 for ac_exec_ext in '' $ac_executable_extensions; do 21631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21632 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21634 break 2 21635 fi 21636 done 21637 done 21638 IFS=$as_save_IFS 21639 21640 ;; 21641 esac 21642 fi 21643 UNZIP=$ac_cv_path_UNZIP 21644 if test -n "$UNZIP"; then 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21646 $as_echo "$UNZIP" >&6; } 21647 else 21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21649 $as_echo "no" >&6; } 21650 fi 21651 21652 21653 if test "x$UNZIP" = x; then 21654 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21655 fi 21656 else 21657 # Otherwise we believe it is a complete path. Use it as it is. 21658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21659 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21661 $as_echo_n "checking for UNZIP... " >&6; } 21662 if test ! -x "$tool_specified"; then 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21664 $as_echo "not found" >&6; } 21665 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21666 fi 21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21668 $as_echo "$tool_specified" >&6; } 21669 fi 21670 fi 21671 fi 21672 21673 fi 21674 21675 21676 21677 if test "x$UNZIP" = x; then 21678 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21679 fi 21680 21681 21682 # Since zip uses "ZIP" as a environment variable for passing options, we need 21683 # to name our variable differently, hence ZIPEXE. 21684 21685 21686 21687 # Publish this variable in the help. 21688 21689 21690 if [ -z "${ZIPEXE+x}" ]; then 21691 # The variable is not set by user, try to locate tool using the code snippet 21692 for ac_prog in zip 21693 do 21694 # Extract the first word of "$ac_prog", so it can be a program name with args. 21695 set dummy $ac_prog; ac_word=$2 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21697 $as_echo_n "checking for $ac_word... " >&6; } 21698 if ${ac_cv_path_ZIPEXE+:} false; then : 21699 $as_echo_n "(cached) " >&6 21700 else 21701 case $ZIPEXE in 21702 [\\/]* | ?:[\\/]*) 21703 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21704 ;; 21705 *) 21706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21707 for as_dir in $PATH 21708 do 21709 IFS=$as_save_IFS 21710 test -z "$as_dir" && as_dir=. 21711 for ac_exec_ext in '' $ac_executable_extensions; do 21712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21713 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21715 break 2 21716 fi 21717 done 21718 done 21719 IFS=$as_save_IFS 21720 21721 ;; 21722 esac 21723 fi 21724 ZIPEXE=$ac_cv_path_ZIPEXE 21725 if test -n "$ZIPEXE"; then 21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21727 $as_echo "$ZIPEXE" >&6; } 21728 else 21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21730 $as_echo "no" >&6; } 21731 fi 21732 21733 21734 test -n "$ZIPEXE" && break 21735 done 21736 21737 else 21738 # The variable is set, but is it from the command line or the environment? 21739 21740 # Try to remove the string !ZIPEXE! from our list. 21741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21743 # If it failed, the variable was not from the command line. Ignore it, 21744 # but warn the user (except for BASH, which is always set by the calling BASH). 21745 if test "xZIPEXE" != xBASH; then 21746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21747 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21748 fi 21749 # Try to locate tool using the code snippet 21750 for ac_prog in zip 21751 do 21752 # Extract the first word of "$ac_prog", so it can be a program name with args. 21753 set dummy $ac_prog; ac_word=$2 21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21755 $as_echo_n "checking for $ac_word... " >&6; } 21756 if ${ac_cv_path_ZIPEXE+:} false; then : 21757 $as_echo_n "(cached) " >&6 21758 else 21759 case $ZIPEXE in 21760 [\\/]* | ?:[\\/]*) 21761 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21762 ;; 21763 *) 21764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21765 for as_dir in $PATH 21766 do 21767 IFS=$as_save_IFS 21768 test -z "$as_dir" && as_dir=. 21769 for ac_exec_ext in '' $ac_executable_extensions; do 21770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21771 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21773 break 2 21774 fi 21775 done 21776 done 21777 IFS=$as_save_IFS 21778 21779 ;; 21780 esac 21781 fi 21782 ZIPEXE=$ac_cv_path_ZIPEXE 21783 if test -n "$ZIPEXE"; then 21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21785 $as_echo "$ZIPEXE" >&6; } 21786 else 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21788 $as_echo "no" >&6; } 21789 fi 21790 21791 21792 test -n "$ZIPEXE" && break 21793 done 21794 21795 else 21796 # If it succeeded, then it was overridden by the user. We will use it 21797 # for the tool. 21798 21799 # First remove it from the list of overridden variables, so we can test 21800 # for unknown variables in the end. 21801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21802 21803 # Check if we try to supply an empty value 21804 if test "x$ZIPEXE" = x; then 21805 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21806 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21808 $as_echo_n "checking for ZIPEXE... " >&6; } 21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21810 $as_echo "disabled" >&6; } 21811 else 21812 # Check if the provided tool contains a complete path. 21813 tool_specified="$ZIPEXE" 21814 tool_basename="${tool_specified##*/}" 21815 if test "x$tool_basename" = "x$tool_specified"; then 21816 # A command without a complete path is provided, search $PATH. 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21818 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21819 # Extract the first word of "$tool_basename", so it can be a program name with args. 21820 set dummy $tool_basename; ac_word=$2 21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21822 $as_echo_n "checking for $ac_word... " >&6; } 21823 if ${ac_cv_path_ZIPEXE+:} false; then : 21824 $as_echo_n "(cached) " >&6 21825 else 21826 case $ZIPEXE in 21827 [\\/]* | ?:[\\/]*) 21828 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21829 ;; 21830 *) 21831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21832 for as_dir in $PATH 21833 do 21834 IFS=$as_save_IFS 21835 test -z "$as_dir" && as_dir=. 21836 for ac_exec_ext in '' $ac_executable_extensions; do 21837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21838 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21840 break 2 21841 fi 21842 done 21843 done 21844 IFS=$as_save_IFS 21845 21846 ;; 21847 esac 21848 fi 21849 ZIPEXE=$ac_cv_path_ZIPEXE 21850 if test -n "$ZIPEXE"; then 21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21852 $as_echo "$ZIPEXE" >&6; } 21853 else 21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21855 $as_echo "no" >&6; } 21856 fi 21857 21858 21859 if test "x$ZIPEXE" = x; then 21860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21861 fi 21862 else 21863 # Otherwise we believe it is a complete path. Use it as it is. 21864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21865 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21867 $as_echo_n "checking for ZIPEXE... " >&6; } 21868 if test ! -x "$tool_specified"; then 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21870 $as_echo "not found" >&6; } 21871 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21872 fi 21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21874 $as_echo "$tool_specified" >&6; } 21875 fi 21876 fi 21877 fi 21878 21879 fi 21880 21881 21882 21883 if test "x$ZIPEXE" = x; then 21884 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21885 fi 21886 21887 21888 21889 # Non-required basic tools 21890 21891 21892 21893 # Publish this variable in the help. 21894 21895 21896 if [ -z "${LDD+x}" ]; then 21897 # The variable is not set by user, try to locate tool using the code snippet 21898 for ac_prog in ldd 21899 do 21900 # Extract the first word of "$ac_prog", so it can be a program name with args. 21901 set dummy $ac_prog; ac_word=$2 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21903 $as_echo_n "checking for $ac_word... " >&6; } 21904 if ${ac_cv_path_LDD+:} false; then : 21905 $as_echo_n "(cached) " >&6 21906 else 21907 case $LDD in 21908 [\\/]* | ?:[\\/]*) 21909 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21910 ;; 21911 *) 21912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21913 for as_dir in $PATH 21914 do 21915 IFS=$as_save_IFS 21916 test -z "$as_dir" && as_dir=. 21917 for ac_exec_ext in '' $ac_executable_extensions; do 21918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21919 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21921 break 2 21922 fi 21923 done 21924 done 21925 IFS=$as_save_IFS 21926 21927 ;; 21928 esac 21929 fi 21930 LDD=$ac_cv_path_LDD 21931 if test -n "$LDD"; then 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21933 $as_echo "$LDD" >&6; } 21934 else 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21936 $as_echo "no" >&6; } 21937 fi 21938 21939 21940 test -n "$LDD" && break 21941 done 21942 21943 else 21944 # The variable is set, but is it from the command line or the environment? 21945 21946 # Try to remove the string !LDD! from our list. 21947 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21948 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21949 # If it failed, the variable was not from the command line. Ignore it, 21950 # but warn the user (except for BASH, which is always set by the calling BASH). 21951 if test "xLDD" != xBASH; then 21952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21953 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21954 fi 21955 # Try to locate tool using the code snippet 21956 for ac_prog in ldd 21957 do 21958 # Extract the first word of "$ac_prog", so it can be a program name with args. 21959 set dummy $ac_prog; ac_word=$2 21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21961 $as_echo_n "checking for $ac_word... " >&6; } 21962 if ${ac_cv_path_LDD+:} false; then : 21963 $as_echo_n "(cached) " >&6 21964 else 21965 case $LDD in 21966 [\\/]* | ?:[\\/]*) 21967 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21968 ;; 21969 *) 21970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21971 for as_dir in $PATH 21972 do 21973 IFS=$as_save_IFS 21974 test -z "$as_dir" && as_dir=. 21975 for ac_exec_ext in '' $ac_executable_extensions; do 21976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21977 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21979 break 2 21980 fi 21981 done 21982 done 21983 IFS=$as_save_IFS 21984 21985 ;; 21986 esac 21987 fi 21988 LDD=$ac_cv_path_LDD 21989 if test -n "$LDD"; then 21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21991 $as_echo "$LDD" >&6; } 21992 else 21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21994 $as_echo "no" >&6; } 21995 fi 21996 21997 21998 test -n "$LDD" && break 21999 done 22000 22001 else 22002 # If it succeeded, then it was overridden by the user. We will use it 22003 # for the tool. 22004 22005 # First remove it from the list of overridden variables, so we can test 22006 # for unknown variables in the end. 22007 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22008 22009 # Check if we try to supply an empty value 22010 if test "x$LDD" = x; then 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22012 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22014 $as_echo_n "checking for LDD... " >&6; } 22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22016 $as_echo "disabled" >&6; } 22017 else 22018 # Check if the provided tool contains a complete path. 22019 tool_specified="$LDD" 22020 tool_basename="${tool_specified##*/}" 22021 if test "x$tool_basename" = "x$tool_specified"; then 22022 # A command without a complete path is provided, search $PATH. 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22024 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22025 # Extract the first word of "$tool_basename", so it can be a program name with args. 22026 set dummy $tool_basename; ac_word=$2 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22028 $as_echo_n "checking for $ac_word... " >&6; } 22029 if ${ac_cv_path_LDD+:} false; then : 22030 $as_echo_n "(cached) " >&6 22031 else 22032 case $LDD in 22033 [\\/]* | ?:[\\/]*) 22034 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22035 ;; 22036 *) 22037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22038 for as_dir in $PATH 22039 do 22040 IFS=$as_save_IFS 22041 test -z "$as_dir" && as_dir=. 22042 for ac_exec_ext in '' $ac_executable_extensions; do 22043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22044 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22046 break 2 22047 fi 22048 done 22049 done 22050 IFS=$as_save_IFS 22051 22052 ;; 22053 esac 22054 fi 22055 LDD=$ac_cv_path_LDD 22056 if test -n "$LDD"; then 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22058 $as_echo "$LDD" >&6; } 22059 else 22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22061 $as_echo "no" >&6; } 22062 fi 22063 22064 22065 if test "x$LDD" = x; then 22066 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22067 fi 22068 else 22069 # Otherwise we believe it is a complete path. Use it as it is. 22070 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22071 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22073 $as_echo_n "checking for LDD... " >&6; } 22074 if test ! -x "$tool_specified"; then 22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22076 $as_echo "not found" >&6; } 22077 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22078 fi 22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22080 $as_echo "$tool_specified" >&6; } 22081 fi 22082 fi 22083 fi 22084 22085 fi 22086 22087 22088 if test "x$LDD" = "x"; then 22089 # List shared lib dependencies is used for 22090 # debug output and checking for forbidden dependencies. 22091 # We can build without it. 22092 LDD="true" 22093 fi 22094 22095 22096 # Publish this variable in the help. 22097 22098 22099 if [ -z "${OTOOL+x}" ]; then 22100 # The variable is not set by user, try to locate tool using the code snippet 22101 for ac_prog in otool 22102 do 22103 # Extract the first word of "$ac_prog", so it can be a program name with args. 22104 set dummy $ac_prog; ac_word=$2 22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22106 $as_echo_n "checking for $ac_word... " >&6; } 22107 if ${ac_cv_path_OTOOL+:} false; then : 22108 $as_echo_n "(cached) " >&6 22109 else 22110 case $OTOOL in 22111 [\\/]* | ?:[\\/]*) 22112 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22113 ;; 22114 *) 22115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22116 for as_dir in $PATH 22117 do 22118 IFS=$as_save_IFS 22119 test -z "$as_dir" && as_dir=. 22120 for ac_exec_ext in '' $ac_executable_extensions; do 22121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22122 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22124 break 2 22125 fi 22126 done 22127 done 22128 IFS=$as_save_IFS 22129 22130 ;; 22131 esac 22132 fi 22133 OTOOL=$ac_cv_path_OTOOL 22134 if test -n "$OTOOL"; then 22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22136 $as_echo "$OTOOL" >&6; } 22137 else 22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22139 $as_echo "no" >&6; } 22140 fi 22141 22142 22143 test -n "$OTOOL" && break 22144 done 22145 22146 else 22147 # The variable is set, but is it from the command line or the environment? 22148 22149 # Try to remove the string !OTOOL! from our list. 22150 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 22151 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22152 # If it failed, the variable was not from the command line. Ignore it, 22153 # but warn the user (except for BASH, which is always set by the calling BASH). 22154 if test "xOTOOL" != xBASH; then 22155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 22156 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 22157 fi 22158 # Try to locate tool using the code snippet 22159 for ac_prog in otool 22160 do 22161 # Extract the first word of "$ac_prog", so it can be a program name with args. 22162 set dummy $ac_prog; ac_word=$2 22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22164 $as_echo_n "checking for $ac_word... " >&6; } 22165 if ${ac_cv_path_OTOOL+:} false; then : 22166 $as_echo_n "(cached) " >&6 22167 else 22168 case $OTOOL in 22169 [\\/]* | ?:[\\/]*) 22170 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22171 ;; 22172 *) 22173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22174 for as_dir in $PATH 22175 do 22176 IFS=$as_save_IFS 22177 test -z "$as_dir" && as_dir=. 22178 for ac_exec_ext in '' $ac_executable_extensions; do 22179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22180 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22182 break 2 22183 fi 22184 done 22185 done 22186 IFS=$as_save_IFS 22187 22188 ;; 22189 esac 22190 fi 22191 OTOOL=$ac_cv_path_OTOOL 22192 if test -n "$OTOOL"; then 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22194 $as_echo "$OTOOL" >&6; } 22195 else 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22197 $as_echo "no" >&6; } 22198 fi 22199 22200 22201 test -n "$OTOOL" && break 22202 done 22203 22204 else 22205 # If it succeeded, then it was overridden by the user. We will use it 22206 # for the tool. 22207 22208 # First remove it from the list of overridden variables, so we can test 22209 # for unknown variables in the end. 22210 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22211 22212 # Check if we try to supply an empty value 22213 if test "x$OTOOL" = x; then 22214 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 22215 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22217 $as_echo_n "checking for OTOOL... " >&6; } 22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22219 $as_echo "disabled" >&6; } 22220 else 22221 # Check if the provided tool contains a complete path. 22222 tool_specified="$OTOOL" 22223 tool_basename="${tool_specified##*/}" 22224 if test "x$tool_basename" = "x$tool_specified"; then 22225 # A command without a complete path is provided, search $PATH. 22226 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 22227 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 22228 # Extract the first word of "$tool_basename", so it can be a program name with args. 22229 set dummy $tool_basename; ac_word=$2 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22231 $as_echo_n "checking for $ac_word... " >&6; } 22232 if ${ac_cv_path_OTOOL+:} false; then : 22233 $as_echo_n "(cached) " >&6 22234 else 22235 case $OTOOL in 22236 [\\/]* | ?:[\\/]*) 22237 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22238 ;; 22239 *) 22240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22241 for as_dir in $PATH 22242 do 22243 IFS=$as_save_IFS 22244 test -z "$as_dir" && as_dir=. 22245 for ac_exec_ext in '' $ac_executable_extensions; do 22246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22247 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22249 break 2 22250 fi 22251 done 22252 done 22253 IFS=$as_save_IFS 22254 22255 ;; 22256 esac 22257 fi 22258 OTOOL=$ac_cv_path_OTOOL 22259 if test -n "$OTOOL"; then 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22261 $as_echo "$OTOOL" >&6; } 22262 else 22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22264 $as_echo "no" >&6; } 22265 fi 22266 22267 22268 if test "x$OTOOL" = x; then 22269 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22270 fi 22271 else 22272 # Otherwise we believe it is a complete path. Use it as it is. 22273 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22274 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22276 $as_echo_n "checking for OTOOL... " >&6; } 22277 if test ! -x "$tool_specified"; then 22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22279 $as_echo "not found" >&6; } 22280 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22281 fi 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22283 $as_echo "$tool_specified" >&6; } 22284 fi 22285 fi 22286 fi 22287 22288 fi 22289 22290 22291 if test "x$OTOOL" = "x"; then 22292 OTOOL="true" 22293 fi 22294 22295 22296 # Publish this variable in the help. 22297 22298 22299 if [ -z "${READELF+x}" ]; then 22300 # The variable is not set by user, try to locate tool using the code snippet 22301 for ac_prog in greadelf readelf 22302 do 22303 # Extract the first word of "$ac_prog", so it can be a program name with args. 22304 set dummy $ac_prog; ac_word=$2 22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22306 $as_echo_n "checking for $ac_word... " >&6; } 22307 if ${ac_cv_path_READELF+:} false; then : 22308 $as_echo_n "(cached) " >&6 22309 else 22310 case $READELF in 22311 [\\/]* | ?:[\\/]*) 22312 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22313 ;; 22314 *) 22315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22316 for as_dir in $PATH 22317 do 22318 IFS=$as_save_IFS 22319 test -z "$as_dir" && as_dir=. 22320 for ac_exec_ext in '' $ac_executable_extensions; do 22321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22322 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22324 break 2 22325 fi 22326 done 22327 done 22328 IFS=$as_save_IFS 22329 22330 ;; 22331 esac 22332 fi 22333 READELF=$ac_cv_path_READELF 22334 if test -n "$READELF"; then 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22336 $as_echo "$READELF" >&6; } 22337 else 22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22339 $as_echo "no" >&6; } 22340 fi 22341 22342 22343 test -n "$READELF" && break 22344 done 22345 22346 else 22347 # The variable is set, but is it from the command line or the environment? 22348 22349 # Try to remove the string !READELF! from our list. 22350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22352 # If it failed, the variable was not from the command line. Ignore it, 22353 # but warn the user (except for BASH, which is always set by the calling BASH). 22354 if test "xREADELF" != xBASH; then 22355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22356 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22357 fi 22358 # Try to locate tool using the code snippet 22359 for ac_prog in greadelf readelf 22360 do 22361 # Extract the first word of "$ac_prog", so it can be a program name with args. 22362 set dummy $ac_prog; ac_word=$2 22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22364 $as_echo_n "checking for $ac_word... " >&6; } 22365 if ${ac_cv_path_READELF+:} false; then : 22366 $as_echo_n "(cached) " >&6 22367 else 22368 case $READELF in 22369 [\\/]* | ?:[\\/]*) 22370 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22371 ;; 22372 *) 22373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22374 for as_dir in $PATH 22375 do 22376 IFS=$as_save_IFS 22377 test -z "$as_dir" && as_dir=. 22378 for ac_exec_ext in '' $ac_executable_extensions; do 22379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22380 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22382 break 2 22383 fi 22384 done 22385 done 22386 IFS=$as_save_IFS 22387 22388 ;; 22389 esac 22390 fi 22391 READELF=$ac_cv_path_READELF 22392 if test -n "$READELF"; then 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22394 $as_echo "$READELF" >&6; } 22395 else 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22397 $as_echo "no" >&6; } 22398 fi 22399 22400 22401 test -n "$READELF" && break 22402 done 22403 22404 else 22405 # If it succeeded, then it was overridden by the user. We will use it 22406 # for the tool. 22407 22408 # First remove it from the list of overridden variables, so we can test 22409 # for unknown variables in the end. 22410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22411 22412 # Check if we try to supply an empty value 22413 if test "x$READELF" = x; then 22414 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22415 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22417 $as_echo_n "checking for READELF... " >&6; } 22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22419 $as_echo "disabled" >&6; } 22420 else 22421 # Check if the provided tool contains a complete path. 22422 tool_specified="$READELF" 22423 tool_basename="${tool_specified##*/}" 22424 if test "x$tool_basename" = "x$tool_specified"; then 22425 # A command without a complete path is provided, search $PATH. 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22427 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22428 # Extract the first word of "$tool_basename", so it can be a program name with args. 22429 set dummy $tool_basename; ac_word=$2 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22431 $as_echo_n "checking for $ac_word... " >&6; } 22432 if ${ac_cv_path_READELF+:} false; then : 22433 $as_echo_n "(cached) " >&6 22434 else 22435 case $READELF in 22436 [\\/]* | ?:[\\/]*) 22437 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22438 ;; 22439 *) 22440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22441 for as_dir in $PATH 22442 do 22443 IFS=$as_save_IFS 22444 test -z "$as_dir" && as_dir=. 22445 for ac_exec_ext in '' $ac_executable_extensions; do 22446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22447 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22449 break 2 22450 fi 22451 done 22452 done 22453 IFS=$as_save_IFS 22454 22455 ;; 22456 esac 22457 fi 22458 READELF=$ac_cv_path_READELF 22459 if test -n "$READELF"; then 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22461 $as_echo "$READELF" >&6; } 22462 else 22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22464 $as_echo "no" >&6; } 22465 fi 22466 22467 22468 if test "x$READELF" = x; then 22469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22470 fi 22471 else 22472 # Otherwise we believe it is a complete path. Use it as it is. 22473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22474 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22476 $as_echo_n "checking for READELF... " >&6; } 22477 if test ! -x "$tool_specified"; then 22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22479 $as_echo "not found" >&6; } 22480 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22481 fi 22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22483 $as_echo "$tool_specified" >&6; } 22484 fi 22485 fi 22486 fi 22487 22488 fi 22489 22490 22491 22492 22493 # Publish this variable in the help. 22494 22495 22496 if [ -z "${DOT+x}" ]; then 22497 # The variable is not set by user, try to locate tool using the code snippet 22498 for ac_prog in dot 22499 do 22500 # Extract the first word of "$ac_prog", so it can be a program name with args. 22501 set dummy $ac_prog; ac_word=$2 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22503 $as_echo_n "checking for $ac_word... " >&6; } 22504 if ${ac_cv_path_DOT+:} false; then : 22505 $as_echo_n "(cached) " >&6 22506 else 22507 case $DOT in 22508 [\\/]* | ?:[\\/]*) 22509 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22510 ;; 22511 *) 22512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22513 for as_dir in $PATH 22514 do 22515 IFS=$as_save_IFS 22516 test -z "$as_dir" && as_dir=. 22517 for ac_exec_ext in '' $ac_executable_extensions; do 22518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22519 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22521 break 2 22522 fi 22523 done 22524 done 22525 IFS=$as_save_IFS 22526 22527 ;; 22528 esac 22529 fi 22530 DOT=$ac_cv_path_DOT 22531 if test -n "$DOT"; then 22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22533 $as_echo "$DOT" >&6; } 22534 else 22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22536 $as_echo "no" >&6; } 22537 fi 22538 22539 22540 test -n "$DOT" && break 22541 done 22542 22543 else 22544 # The variable is set, but is it from the command line or the environment? 22545 22546 # Try to remove the string !DOT! from our list. 22547 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22548 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22549 # If it failed, the variable was not from the command line. Ignore it, 22550 # but warn the user (except for BASH, which is always set by the calling BASH). 22551 if test "xDOT" != xBASH; then 22552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22553 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22554 fi 22555 # Try to locate tool using the code snippet 22556 for ac_prog in dot 22557 do 22558 # Extract the first word of "$ac_prog", so it can be a program name with args. 22559 set dummy $ac_prog; ac_word=$2 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22561 $as_echo_n "checking for $ac_word... " >&6; } 22562 if ${ac_cv_path_DOT+:} false; then : 22563 $as_echo_n "(cached) " >&6 22564 else 22565 case $DOT in 22566 [\\/]* | ?:[\\/]*) 22567 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22568 ;; 22569 *) 22570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22571 for as_dir in $PATH 22572 do 22573 IFS=$as_save_IFS 22574 test -z "$as_dir" && as_dir=. 22575 for ac_exec_ext in '' $ac_executable_extensions; do 22576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22577 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22579 break 2 22580 fi 22581 done 22582 done 22583 IFS=$as_save_IFS 22584 22585 ;; 22586 esac 22587 fi 22588 DOT=$ac_cv_path_DOT 22589 if test -n "$DOT"; then 22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22591 $as_echo "$DOT" >&6; } 22592 else 22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22594 $as_echo "no" >&6; } 22595 fi 22596 22597 22598 test -n "$DOT" && break 22599 done 22600 22601 else 22602 # If it succeeded, then it was overridden by the user. We will use it 22603 # for the tool. 22604 22605 # First remove it from the list of overridden variables, so we can test 22606 # for unknown variables in the end. 22607 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22608 22609 # Check if we try to supply an empty value 22610 if test "x$DOT" = x; then 22611 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22612 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22614 $as_echo_n "checking for DOT... " >&6; } 22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22616 $as_echo "disabled" >&6; } 22617 else 22618 # Check if the provided tool contains a complete path. 22619 tool_specified="$DOT" 22620 tool_basename="${tool_specified##*/}" 22621 if test "x$tool_basename" = "x$tool_specified"; then 22622 # A command without a complete path is provided, search $PATH. 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22624 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22625 # Extract the first word of "$tool_basename", so it can be a program name with args. 22626 set dummy $tool_basename; ac_word=$2 22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22628 $as_echo_n "checking for $ac_word... " >&6; } 22629 if ${ac_cv_path_DOT+:} false; then : 22630 $as_echo_n "(cached) " >&6 22631 else 22632 case $DOT in 22633 [\\/]* | ?:[\\/]*) 22634 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22635 ;; 22636 *) 22637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22638 for as_dir in $PATH 22639 do 22640 IFS=$as_save_IFS 22641 test -z "$as_dir" && as_dir=. 22642 for ac_exec_ext in '' $ac_executable_extensions; do 22643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22644 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22646 break 2 22647 fi 22648 done 22649 done 22650 IFS=$as_save_IFS 22651 22652 ;; 22653 esac 22654 fi 22655 DOT=$ac_cv_path_DOT 22656 if test -n "$DOT"; then 22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22658 $as_echo "$DOT" >&6; } 22659 else 22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22661 $as_echo "no" >&6; } 22662 fi 22663 22664 22665 if test "x$DOT" = x; then 22666 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22667 fi 22668 else 22669 # Otherwise we believe it is a complete path. Use it as it is. 22670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22671 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22673 $as_echo_n "checking for DOT... " >&6; } 22674 if test ! -x "$tool_specified"; then 22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22676 $as_echo "not found" >&6; } 22677 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22678 fi 22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22680 $as_echo "$tool_specified" >&6; } 22681 fi 22682 fi 22683 fi 22684 22685 fi 22686 22687 22688 22689 22690 # Publish this variable in the help. 22691 22692 22693 if [ -z "${HG+x}" ]; then 22694 # The variable is not set by user, try to locate tool using the code snippet 22695 for ac_prog in hg 22696 do 22697 # Extract the first word of "$ac_prog", so it can be a program name with args. 22698 set dummy $ac_prog; ac_word=$2 22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22700 $as_echo_n "checking for $ac_word... " >&6; } 22701 if ${ac_cv_path_HG+:} false; then : 22702 $as_echo_n "(cached) " >&6 22703 else 22704 case $HG in 22705 [\\/]* | ?:[\\/]*) 22706 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22707 ;; 22708 *) 22709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22710 for as_dir in $PATH 22711 do 22712 IFS=$as_save_IFS 22713 test -z "$as_dir" && as_dir=. 22714 for ac_exec_ext in '' $ac_executable_extensions; do 22715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22716 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22718 break 2 22719 fi 22720 done 22721 done 22722 IFS=$as_save_IFS 22723 22724 ;; 22725 esac 22726 fi 22727 HG=$ac_cv_path_HG 22728 if test -n "$HG"; then 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22730 $as_echo "$HG" >&6; } 22731 else 22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22733 $as_echo "no" >&6; } 22734 fi 22735 22736 22737 test -n "$HG" && break 22738 done 22739 22740 else 22741 # The variable is set, but is it from the command line or the environment? 22742 22743 # Try to remove the string !HG! from our list. 22744 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22745 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22746 # If it failed, the variable was not from the command line. Ignore it, 22747 # but warn the user (except for BASH, which is always set by the calling BASH). 22748 if test "xHG" != xBASH; then 22749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22750 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22751 fi 22752 # Try to locate tool using the code snippet 22753 for ac_prog in hg 22754 do 22755 # Extract the first word of "$ac_prog", so it can be a program name with args. 22756 set dummy $ac_prog; ac_word=$2 22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22758 $as_echo_n "checking for $ac_word... " >&6; } 22759 if ${ac_cv_path_HG+:} false; then : 22760 $as_echo_n "(cached) " >&6 22761 else 22762 case $HG in 22763 [\\/]* | ?:[\\/]*) 22764 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22765 ;; 22766 *) 22767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22768 for as_dir in $PATH 22769 do 22770 IFS=$as_save_IFS 22771 test -z "$as_dir" && as_dir=. 22772 for ac_exec_ext in '' $ac_executable_extensions; do 22773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22774 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22776 break 2 22777 fi 22778 done 22779 done 22780 IFS=$as_save_IFS 22781 22782 ;; 22783 esac 22784 fi 22785 HG=$ac_cv_path_HG 22786 if test -n "$HG"; then 22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22788 $as_echo "$HG" >&6; } 22789 else 22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22791 $as_echo "no" >&6; } 22792 fi 22793 22794 22795 test -n "$HG" && break 22796 done 22797 22798 else 22799 # If it succeeded, then it was overridden by the user. We will use it 22800 # for the tool. 22801 22802 # First remove it from the list of overridden variables, so we can test 22803 # for unknown variables in the end. 22804 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22805 22806 # Check if we try to supply an empty value 22807 if test "x$HG" = x; then 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22809 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22811 $as_echo_n "checking for HG... " >&6; } 22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22813 $as_echo "disabled" >&6; } 22814 else 22815 # Check if the provided tool contains a complete path. 22816 tool_specified="$HG" 22817 tool_basename="${tool_specified##*/}" 22818 if test "x$tool_basename" = "x$tool_specified"; then 22819 # A command without a complete path is provided, search $PATH. 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22821 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22822 # Extract the first word of "$tool_basename", so it can be a program name with args. 22823 set dummy $tool_basename; ac_word=$2 22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22825 $as_echo_n "checking for $ac_word... " >&6; } 22826 if ${ac_cv_path_HG+:} false; then : 22827 $as_echo_n "(cached) " >&6 22828 else 22829 case $HG in 22830 [\\/]* | ?:[\\/]*) 22831 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22832 ;; 22833 *) 22834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22835 for as_dir in $PATH 22836 do 22837 IFS=$as_save_IFS 22838 test -z "$as_dir" && as_dir=. 22839 for ac_exec_ext in '' $ac_executable_extensions; do 22840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22841 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22843 break 2 22844 fi 22845 done 22846 done 22847 IFS=$as_save_IFS 22848 22849 ;; 22850 esac 22851 fi 22852 HG=$ac_cv_path_HG 22853 if test -n "$HG"; then 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22855 $as_echo "$HG" >&6; } 22856 else 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22858 $as_echo "no" >&6; } 22859 fi 22860 22861 22862 if test "x$HG" = x; then 22863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22864 fi 22865 else 22866 # Otherwise we believe it is a complete path. Use it as it is. 22867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22868 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22870 $as_echo_n "checking for HG... " >&6; } 22871 if test ! -x "$tool_specified"; then 22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22873 $as_echo "not found" >&6; } 22874 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22875 fi 22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22877 $as_echo "$tool_specified" >&6; } 22878 fi 22879 fi 22880 fi 22881 22882 fi 22883 22884 22885 22886 22887 # Publish this variable in the help. 22888 22889 22890 if [ -z "${STAT+x}" ]; then 22891 # The variable is not set by user, try to locate tool using the code snippet 22892 for ac_prog in stat 22893 do 22894 # Extract the first word of "$ac_prog", so it can be a program name with args. 22895 set dummy $ac_prog; ac_word=$2 22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22897 $as_echo_n "checking for $ac_word... " >&6; } 22898 if ${ac_cv_path_STAT+:} false; then : 22899 $as_echo_n "(cached) " >&6 22900 else 22901 case $STAT in 22902 [\\/]* | ?:[\\/]*) 22903 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22904 ;; 22905 *) 22906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22907 for as_dir in $PATH 22908 do 22909 IFS=$as_save_IFS 22910 test -z "$as_dir" && as_dir=. 22911 for ac_exec_ext in '' $ac_executable_extensions; do 22912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22913 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22915 break 2 22916 fi 22917 done 22918 done 22919 IFS=$as_save_IFS 22920 22921 ;; 22922 esac 22923 fi 22924 STAT=$ac_cv_path_STAT 22925 if test -n "$STAT"; then 22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22927 $as_echo "$STAT" >&6; } 22928 else 22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22930 $as_echo "no" >&6; } 22931 fi 22932 22933 22934 test -n "$STAT" && break 22935 done 22936 22937 else 22938 # The variable is set, but is it from the command line or the environment? 22939 22940 # Try to remove the string !STAT! from our list. 22941 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22942 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22943 # If it failed, the variable was not from the command line. Ignore it, 22944 # but warn the user (except for BASH, which is always set by the calling BASH). 22945 if test "xSTAT" != xBASH; then 22946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22947 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22948 fi 22949 # Try to locate tool using the code snippet 22950 for ac_prog in stat 22951 do 22952 # Extract the first word of "$ac_prog", so it can be a program name with args. 22953 set dummy $ac_prog; ac_word=$2 22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22955 $as_echo_n "checking for $ac_word... " >&6; } 22956 if ${ac_cv_path_STAT+:} false; then : 22957 $as_echo_n "(cached) " >&6 22958 else 22959 case $STAT in 22960 [\\/]* | ?:[\\/]*) 22961 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22962 ;; 22963 *) 22964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22965 for as_dir in $PATH 22966 do 22967 IFS=$as_save_IFS 22968 test -z "$as_dir" && as_dir=. 22969 for ac_exec_ext in '' $ac_executable_extensions; do 22970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22971 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22973 break 2 22974 fi 22975 done 22976 done 22977 IFS=$as_save_IFS 22978 22979 ;; 22980 esac 22981 fi 22982 STAT=$ac_cv_path_STAT 22983 if test -n "$STAT"; then 22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22985 $as_echo "$STAT" >&6; } 22986 else 22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22988 $as_echo "no" >&6; } 22989 fi 22990 22991 22992 test -n "$STAT" && break 22993 done 22994 22995 else 22996 # If it succeeded, then it was overridden by the user. We will use it 22997 # for the tool. 22998 22999 # First remove it from the list of overridden variables, so we can test 23000 # for unknown variables in the end. 23001 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23002 23003 # Check if we try to supply an empty value 23004 if test "x$STAT" = x; then 23005 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 23006 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23008 $as_echo_n "checking for STAT... " >&6; } 23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23010 $as_echo "disabled" >&6; } 23011 else 23012 # Check if the provided tool contains a complete path. 23013 tool_specified="$STAT" 23014 tool_basename="${tool_specified##*/}" 23015 if test "x$tool_basename" = "x$tool_specified"; then 23016 # A command without a complete path is provided, search $PATH. 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 23018 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 23019 # Extract the first word of "$tool_basename", so it can be a program name with args. 23020 set dummy $tool_basename; ac_word=$2 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23022 $as_echo_n "checking for $ac_word... " >&6; } 23023 if ${ac_cv_path_STAT+:} false; then : 23024 $as_echo_n "(cached) " >&6 23025 else 23026 case $STAT in 23027 [\\/]* | ?:[\\/]*) 23028 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 23029 ;; 23030 *) 23031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23032 for as_dir in $PATH 23033 do 23034 IFS=$as_save_IFS 23035 test -z "$as_dir" && as_dir=. 23036 for ac_exec_ext in '' $ac_executable_extensions; do 23037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23038 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23040 break 2 23041 fi 23042 done 23043 done 23044 IFS=$as_save_IFS 23045 23046 ;; 23047 esac 23048 fi 23049 STAT=$ac_cv_path_STAT 23050 if test -n "$STAT"; then 23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23052 $as_echo "$STAT" >&6; } 23053 else 23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23055 $as_echo "no" >&6; } 23056 fi 23057 23058 23059 if test "x$STAT" = x; then 23060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23061 fi 23062 else 23063 # Otherwise we believe it is a complete path. Use it as it is. 23064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 23065 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23067 $as_echo_n "checking for STAT... " >&6; } 23068 if test ! -x "$tool_specified"; then 23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23070 $as_echo "not found" >&6; } 23071 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 23072 fi 23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23074 $as_echo "$tool_specified" >&6; } 23075 fi 23076 fi 23077 fi 23078 23079 fi 23080 23081 23082 23083 23084 # Publish this variable in the help. 23085 23086 23087 if [ -z "${TIME+x}" ]; then 23088 # The variable is not set by user, try to locate tool using the code snippet 23089 for ac_prog in time 23090 do 23091 # Extract the first word of "$ac_prog", so it can be a program name with args. 23092 set dummy $ac_prog; ac_word=$2 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23094 $as_echo_n "checking for $ac_word... " >&6; } 23095 if ${ac_cv_path_TIME+:} false; then : 23096 $as_echo_n "(cached) " >&6 23097 else 23098 case $TIME in 23099 [\\/]* | ?:[\\/]*) 23100 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23101 ;; 23102 *) 23103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23104 for as_dir in $PATH 23105 do 23106 IFS=$as_save_IFS 23107 test -z "$as_dir" && as_dir=. 23108 for ac_exec_ext in '' $ac_executable_extensions; do 23109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23110 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23112 break 2 23113 fi 23114 done 23115 done 23116 IFS=$as_save_IFS 23117 23118 ;; 23119 esac 23120 fi 23121 TIME=$ac_cv_path_TIME 23122 if test -n "$TIME"; then 23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23124 $as_echo "$TIME" >&6; } 23125 else 23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23127 $as_echo "no" >&6; } 23128 fi 23129 23130 23131 test -n "$TIME" && break 23132 done 23133 23134 else 23135 # The variable is set, but is it from the command line or the environment? 23136 23137 # Try to remove the string !TIME! from our list. 23138 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 23139 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23140 # If it failed, the variable was not from the command line. Ignore it, 23141 # but warn the user (except for BASH, which is always set by the calling BASH). 23142 if test "xTIME" != xBASH; then 23143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 23144 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 23145 fi 23146 # Try to locate tool using the code snippet 23147 for ac_prog in time 23148 do 23149 # Extract the first word of "$ac_prog", so it can be a program name with args. 23150 set dummy $ac_prog; ac_word=$2 23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23152 $as_echo_n "checking for $ac_word... " >&6; } 23153 if ${ac_cv_path_TIME+:} false; then : 23154 $as_echo_n "(cached) " >&6 23155 else 23156 case $TIME in 23157 [\\/]* | ?:[\\/]*) 23158 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23159 ;; 23160 *) 23161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23162 for as_dir in $PATH 23163 do 23164 IFS=$as_save_IFS 23165 test -z "$as_dir" && as_dir=. 23166 for ac_exec_ext in '' $ac_executable_extensions; do 23167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23168 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23170 break 2 23171 fi 23172 done 23173 done 23174 IFS=$as_save_IFS 23175 23176 ;; 23177 esac 23178 fi 23179 TIME=$ac_cv_path_TIME 23180 if test -n "$TIME"; then 23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23182 $as_echo "$TIME" >&6; } 23183 else 23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23185 $as_echo "no" >&6; } 23186 fi 23187 23188 23189 test -n "$TIME" && break 23190 done 23191 23192 else 23193 # If it succeeded, then it was overridden by the user. We will use it 23194 # for the tool. 23195 23196 # First remove it from the list of overridden variables, so we can test 23197 # for unknown variables in the end. 23198 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23199 23200 # Check if we try to supply an empty value 23201 if test "x$TIME" = x; then 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23203 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23205 $as_echo_n "checking for TIME... " >&6; } 23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23207 $as_echo "disabled" >&6; } 23208 else 23209 # Check if the provided tool contains a complete path. 23210 tool_specified="$TIME" 23211 tool_basename="${tool_specified##*/}" 23212 if test "x$tool_basename" = "x$tool_specified"; then 23213 # A command without a complete path is provided, search $PATH. 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23215 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23216 # Extract the first word of "$tool_basename", so it can be a program name with args. 23217 set dummy $tool_basename; ac_word=$2 23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23219 $as_echo_n "checking for $ac_word... " >&6; } 23220 if ${ac_cv_path_TIME+:} false; then : 23221 $as_echo_n "(cached) " >&6 23222 else 23223 case $TIME in 23224 [\\/]* | ?:[\\/]*) 23225 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23226 ;; 23227 *) 23228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23229 for as_dir in $PATH 23230 do 23231 IFS=$as_save_IFS 23232 test -z "$as_dir" && as_dir=. 23233 for ac_exec_ext in '' $ac_executable_extensions; do 23234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23235 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23237 break 2 23238 fi 23239 done 23240 done 23241 IFS=$as_save_IFS 23242 23243 ;; 23244 esac 23245 fi 23246 TIME=$ac_cv_path_TIME 23247 if test -n "$TIME"; then 23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23249 $as_echo "$TIME" >&6; } 23250 else 23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23252 $as_echo "no" >&6; } 23253 fi 23254 23255 23256 if test "x$TIME" = x; then 23257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23258 fi 23259 else 23260 # Otherwise we believe it is a complete path. Use it as it is. 23261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23262 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23264 $as_echo_n "checking for TIME... " >&6; } 23265 if test ! -x "$tool_specified"; then 23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23267 $as_echo "not found" >&6; } 23268 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23269 fi 23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23271 $as_echo "$tool_specified" >&6; } 23272 fi 23273 fi 23274 fi 23275 23276 fi 23277 23278 23279 23280 23281 # Publish this variable in the help. 23282 23283 23284 if [ -z "${FLOCK+x}" ]; then 23285 # The variable is not set by user, try to locate tool using the code snippet 23286 for ac_prog in flock 23287 do 23288 # Extract the first word of "$ac_prog", so it can be a program name with args. 23289 set dummy $ac_prog; ac_word=$2 23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23291 $as_echo_n "checking for $ac_word... " >&6; } 23292 if ${ac_cv_path_FLOCK+:} false; then : 23293 $as_echo_n "(cached) " >&6 23294 else 23295 case $FLOCK in 23296 [\\/]* | ?:[\\/]*) 23297 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23298 ;; 23299 *) 23300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23301 for as_dir in $PATH 23302 do 23303 IFS=$as_save_IFS 23304 test -z "$as_dir" && as_dir=. 23305 for ac_exec_ext in '' $ac_executable_extensions; do 23306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23307 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23309 break 2 23310 fi 23311 done 23312 done 23313 IFS=$as_save_IFS 23314 23315 ;; 23316 esac 23317 fi 23318 FLOCK=$ac_cv_path_FLOCK 23319 if test -n "$FLOCK"; then 23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23321 $as_echo "$FLOCK" >&6; } 23322 else 23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23324 $as_echo "no" >&6; } 23325 fi 23326 23327 23328 test -n "$FLOCK" && break 23329 done 23330 23331 else 23332 # The variable is set, but is it from the command line or the environment? 23333 23334 # Try to remove the string !FLOCK! from our list. 23335 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23336 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23337 # If it failed, the variable was not from the command line. Ignore it, 23338 # but warn the user (except for BASH, which is always set by the calling BASH). 23339 if test "xFLOCK" != xBASH; then 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23341 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23342 fi 23343 # Try to locate tool using the code snippet 23344 for ac_prog in flock 23345 do 23346 # Extract the first word of "$ac_prog", so it can be a program name with args. 23347 set dummy $ac_prog; ac_word=$2 23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23349 $as_echo_n "checking for $ac_word... " >&6; } 23350 if ${ac_cv_path_FLOCK+:} false; then : 23351 $as_echo_n "(cached) " >&6 23352 else 23353 case $FLOCK in 23354 [\\/]* | ?:[\\/]*) 23355 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23356 ;; 23357 *) 23358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23359 for as_dir in $PATH 23360 do 23361 IFS=$as_save_IFS 23362 test -z "$as_dir" && as_dir=. 23363 for ac_exec_ext in '' $ac_executable_extensions; do 23364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23365 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23367 break 2 23368 fi 23369 done 23370 done 23371 IFS=$as_save_IFS 23372 23373 ;; 23374 esac 23375 fi 23376 FLOCK=$ac_cv_path_FLOCK 23377 if test -n "$FLOCK"; then 23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23379 $as_echo "$FLOCK" >&6; } 23380 else 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23382 $as_echo "no" >&6; } 23383 fi 23384 23385 23386 test -n "$FLOCK" && break 23387 done 23388 23389 else 23390 # If it succeeded, then it was overridden by the user. We will use it 23391 # for the tool. 23392 23393 # First remove it from the list of overridden variables, so we can test 23394 # for unknown variables in the end. 23395 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23396 23397 # Check if we try to supply an empty value 23398 if test "x$FLOCK" = x; then 23399 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23400 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23402 $as_echo_n "checking for FLOCK... " >&6; } 23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23404 $as_echo "disabled" >&6; } 23405 else 23406 # Check if the provided tool contains a complete path. 23407 tool_specified="$FLOCK" 23408 tool_basename="${tool_specified##*/}" 23409 if test "x$tool_basename" = "x$tool_specified"; then 23410 # A command without a complete path is provided, search $PATH. 23411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23412 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23413 # Extract the first word of "$tool_basename", so it can be a program name with args. 23414 set dummy $tool_basename; ac_word=$2 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23416 $as_echo_n "checking for $ac_word... " >&6; } 23417 if ${ac_cv_path_FLOCK+:} false; then : 23418 $as_echo_n "(cached) " >&6 23419 else 23420 case $FLOCK in 23421 [\\/]* | ?:[\\/]*) 23422 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23423 ;; 23424 *) 23425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23426 for as_dir in $PATH 23427 do 23428 IFS=$as_save_IFS 23429 test -z "$as_dir" && as_dir=. 23430 for ac_exec_ext in '' $ac_executable_extensions; do 23431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23432 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23434 break 2 23435 fi 23436 done 23437 done 23438 IFS=$as_save_IFS 23439 23440 ;; 23441 esac 23442 fi 23443 FLOCK=$ac_cv_path_FLOCK 23444 if test -n "$FLOCK"; then 23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23446 $as_echo "$FLOCK" >&6; } 23447 else 23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23449 $as_echo "no" >&6; } 23450 fi 23451 23452 23453 if test "x$FLOCK" = x; then 23454 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23455 fi 23456 else 23457 # Otherwise we believe it is a complete path. Use it as it is. 23458 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23459 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23461 $as_echo_n "checking for FLOCK... " >&6; } 23462 if test ! -x "$tool_specified"; then 23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23464 $as_echo "not found" >&6; } 23465 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23466 fi 23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23468 $as_echo "$tool_specified" >&6; } 23469 fi 23470 fi 23471 fi 23472 23473 fi 23474 23475 23476 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23477 # be in the user path. 23478 23479 23480 # Publish this variable in the help. 23481 23482 23483 if [ -z "${DTRACE+x}" ]; then 23484 # The variable is not set by user, try to locate tool using the code snippet 23485 for ac_prog in dtrace 23486 do 23487 # Extract the first word of "$ac_prog", so it can be a program name with args. 23488 set dummy $ac_prog; ac_word=$2 23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23490 $as_echo_n "checking for $ac_word... " >&6; } 23491 if ${ac_cv_path_DTRACE+:} false; then : 23492 $as_echo_n "(cached) " >&6 23493 else 23494 case $DTRACE in 23495 [\\/]* | ?:[\\/]*) 23496 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23497 ;; 23498 *) 23499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23500 as_dummy="$PATH:/usr/sbin" 23501 for as_dir in $as_dummy 23502 do 23503 IFS=$as_save_IFS 23504 test -z "$as_dir" && as_dir=. 23505 for ac_exec_ext in '' $ac_executable_extensions; do 23506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23507 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23509 break 2 23510 fi 23511 done 23512 done 23513 IFS=$as_save_IFS 23514 23515 ;; 23516 esac 23517 fi 23518 DTRACE=$ac_cv_path_DTRACE 23519 if test -n "$DTRACE"; then 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23521 $as_echo "$DTRACE" >&6; } 23522 else 23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23524 $as_echo "no" >&6; } 23525 fi 23526 23527 23528 test -n "$DTRACE" && break 23529 done 23530 23531 else 23532 # The variable is set, but is it from the command line or the environment? 23533 23534 # Try to remove the string !DTRACE! from our list. 23535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23537 # If it failed, the variable was not from the command line. Ignore it, 23538 # but warn the user (except for BASH, which is always set by the calling BASH). 23539 if test "xDTRACE" != xBASH; then 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23541 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23542 fi 23543 # Try to locate tool using the code snippet 23544 for ac_prog in dtrace 23545 do 23546 # Extract the first word of "$ac_prog", so it can be a program name with args. 23547 set dummy $ac_prog; ac_word=$2 23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23549 $as_echo_n "checking for $ac_word... " >&6; } 23550 if ${ac_cv_path_DTRACE+:} false; then : 23551 $as_echo_n "(cached) " >&6 23552 else 23553 case $DTRACE in 23554 [\\/]* | ?:[\\/]*) 23555 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23556 ;; 23557 *) 23558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23559 as_dummy="$PATH:/usr/sbin" 23560 for as_dir in $as_dummy 23561 do 23562 IFS=$as_save_IFS 23563 test -z "$as_dir" && as_dir=. 23564 for ac_exec_ext in '' $ac_executable_extensions; do 23565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23566 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23568 break 2 23569 fi 23570 done 23571 done 23572 IFS=$as_save_IFS 23573 23574 ;; 23575 esac 23576 fi 23577 DTRACE=$ac_cv_path_DTRACE 23578 if test -n "$DTRACE"; then 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23580 $as_echo "$DTRACE" >&6; } 23581 else 23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23583 $as_echo "no" >&6; } 23584 fi 23585 23586 23587 test -n "$DTRACE" && break 23588 done 23589 23590 else 23591 # If it succeeded, then it was overridden by the user. We will use it 23592 # for the tool. 23593 23594 # First remove it from the list of overridden variables, so we can test 23595 # for unknown variables in the end. 23596 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23597 23598 # Check if we try to supply an empty value 23599 if test "x$DTRACE" = x; then 23600 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23601 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23603 $as_echo_n "checking for DTRACE... " >&6; } 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23605 $as_echo "disabled" >&6; } 23606 else 23607 # Check if the provided tool contains a complete path. 23608 tool_specified="$DTRACE" 23609 tool_basename="${tool_specified##*/}" 23610 if test "x$tool_basename" = "x$tool_specified"; then 23611 # A command without a complete path is provided, search $PATH. 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23613 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23614 # Extract the first word of "$tool_basename", so it can be a program name with args. 23615 set dummy $tool_basename; ac_word=$2 23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23617 $as_echo_n "checking for $ac_word... " >&6; } 23618 if ${ac_cv_path_DTRACE+:} false; then : 23619 $as_echo_n "(cached) " >&6 23620 else 23621 case $DTRACE in 23622 [\\/]* | ?:[\\/]*) 23623 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23624 ;; 23625 *) 23626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23627 for as_dir in $PATH 23628 do 23629 IFS=$as_save_IFS 23630 test -z "$as_dir" && as_dir=. 23631 for ac_exec_ext in '' $ac_executable_extensions; do 23632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23633 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23635 break 2 23636 fi 23637 done 23638 done 23639 IFS=$as_save_IFS 23640 23641 ;; 23642 esac 23643 fi 23644 DTRACE=$ac_cv_path_DTRACE 23645 if test -n "$DTRACE"; then 23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23647 $as_echo "$DTRACE" >&6; } 23648 else 23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23650 $as_echo "no" >&6; } 23651 fi 23652 23653 23654 if test "x$DTRACE" = x; then 23655 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23656 fi 23657 else 23658 # Otherwise we believe it is a complete path. Use it as it is. 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23660 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23662 $as_echo_n "checking for DTRACE... " >&6; } 23663 if test ! -x "$tool_specified"; then 23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23665 $as_echo "not found" >&6; } 23666 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23667 fi 23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23669 $as_echo "$tool_specified" >&6; } 23670 fi 23671 fi 23672 fi 23673 23674 fi 23675 23676 23677 23678 23679 # Publish this variable in the help. 23680 23681 23682 if [ -z "${PATCH+x}" ]; then 23683 # The variable is not set by user, try to locate tool using the code snippet 23684 for ac_prog in gpatch patch 23685 do 23686 # Extract the first word of "$ac_prog", so it can be a program name with args. 23687 set dummy $ac_prog; ac_word=$2 23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23689 $as_echo_n "checking for $ac_word... " >&6; } 23690 if ${ac_cv_path_PATCH+:} false; then : 23691 $as_echo_n "(cached) " >&6 23692 else 23693 case $PATCH in 23694 [\\/]* | ?:[\\/]*) 23695 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23696 ;; 23697 *) 23698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23699 for as_dir in $PATH 23700 do 23701 IFS=$as_save_IFS 23702 test -z "$as_dir" && as_dir=. 23703 for ac_exec_ext in '' $ac_executable_extensions; do 23704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23705 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23707 break 2 23708 fi 23709 done 23710 done 23711 IFS=$as_save_IFS 23712 23713 ;; 23714 esac 23715 fi 23716 PATCH=$ac_cv_path_PATCH 23717 if test -n "$PATCH"; then 23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23719 $as_echo "$PATCH" >&6; } 23720 else 23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23722 $as_echo "no" >&6; } 23723 fi 23724 23725 23726 test -n "$PATCH" && break 23727 done 23728 23729 else 23730 # The variable is set, but is it from the command line or the environment? 23731 23732 # Try to remove the string !PATCH! from our list. 23733 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23734 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23735 # If it failed, the variable was not from the command line. Ignore it, 23736 # but warn the user (except for BASH, which is always set by the calling BASH). 23737 if test "xPATCH" != xBASH; then 23738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23739 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23740 fi 23741 # Try to locate tool using the code snippet 23742 for ac_prog in gpatch patch 23743 do 23744 # Extract the first word of "$ac_prog", so it can be a program name with args. 23745 set dummy $ac_prog; ac_word=$2 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23747 $as_echo_n "checking for $ac_word... " >&6; } 23748 if ${ac_cv_path_PATCH+:} false; then : 23749 $as_echo_n "(cached) " >&6 23750 else 23751 case $PATCH in 23752 [\\/]* | ?:[\\/]*) 23753 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23754 ;; 23755 *) 23756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23757 for as_dir in $PATH 23758 do 23759 IFS=$as_save_IFS 23760 test -z "$as_dir" && as_dir=. 23761 for ac_exec_ext in '' $ac_executable_extensions; do 23762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23763 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23765 break 2 23766 fi 23767 done 23768 done 23769 IFS=$as_save_IFS 23770 23771 ;; 23772 esac 23773 fi 23774 PATCH=$ac_cv_path_PATCH 23775 if test -n "$PATCH"; then 23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23777 $as_echo "$PATCH" >&6; } 23778 else 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23780 $as_echo "no" >&6; } 23781 fi 23782 23783 23784 test -n "$PATCH" && break 23785 done 23786 23787 else 23788 # If it succeeded, then it was overridden by the user. We will use it 23789 # for the tool. 23790 23791 # First remove it from the list of overridden variables, so we can test 23792 # for unknown variables in the end. 23793 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23794 23795 # Check if we try to supply an empty value 23796 if test "x$PATCH" = x; then 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23798 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23800 $as_echo_n "checking for PATCH... " >&6; } 23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23802 $as_echo "disabled" >&6; } 23803 else 23804 # Check if the provided tool contains a complete path. 23805 tool_specified="$PATCH" 23806 tool_basename="${tool_specified##*/}" 23807 if test "x$tool_basename" = "x$tool_specified"; then 23808 # A command without a complete path is provided, search $PATH. 23809 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23810 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23811 # Extract the first word of "$tool_basename", so it can be a program name with args. 23812 set dummy $tool_basename; ac_word=$2 23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23814 $as_echo_n "checking for $ac_word... " >&6; } 23815 if ${ac_cv_path_PATCH+:} false; then : 23816 $as_echo_n "(cached) " >&6 23817 else 23818 case $PATCH in 23819 [\\/]* | ?:[\\/]*) 23820 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23821 ;; 23822 *) 23823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23824 for as_dir in $PATH 23825 do 23826 IFS=$as_save_IFS 23827 test -z "$as_dir" && as_dir=. 23828 for ac_exec_ext in '' $ac_executable_extensions; do 23829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23830 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23832 break 2 23833 fi 23834 done 23835 done 23836 IFS=$as_save_IFS 23837 23838 ;; 23839 esac 23840 fi 23841 PATCH=$ac_cv_path_PATCH 23842 if test -n "$PATCH"; then 23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23844 $as_echo "$PATCH" >&6; } 23845 else 23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23847 $as_echo "no" >&6; } 23848 fi 23849 23850 23851 if test "x$PATCH" = x; then 23852 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23853 fi 23854 else 23855 # Otherwise we believe it is a complete path. Use it as it is. 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23857 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23859 $as_echo_n "checking for PATCH... " >&6; } 23860 if test ! -x "$tool_specified"; then 23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23862 $as_echo "not found" >&6; } 23863 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23864 fi 23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23866 $as_echo "$tool_specified" >&6; } 23867 fi 23868 fi 23869 fi 23870 23871 fi 23872 23873 23874 # Check if it's GNU time 23875 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23876 if test "x$IS_GNU_TIME" != x; then 23877 IS_GNU_TIME=yes 23878 else 23879 IS_GNU_TIME=no 23880 fi 23881 23882 23883 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23884 23885 23886 23887 # Publish this variable in the help. 23888 23889 23890 if [ -z "${DSYMUTIL+x}" ]; then 23891 # The variable is not set by user, try to locate tool using the code snippet 23892 for ac_prog in dsymutil 23893 do 23894 # Extract the first word of "$ac_prog", so it can be a program name with args. 23895 set dummy $ac_prog; ac_word=$2 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23897 $as_echo_n "checking for $ac_word... " >&6; } 23898 if ${ac_cv_path_DSYMUTIL+:} false; then : 23899 $as_echo_n "(cached) " >&6 23900 else 23901 case $DSYMUTIL in 23902 [\\/]* | ?:[\\/]*) 23903 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23904 ;; 23905 *) 23906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23907 for as_dir in $PATH 23908 do 23909 IFS=$as_save_IFS 23910 test -z "$as_dir" && as_dir=. 23911 for ac_exec_ext in '' $ac_executable_extensions; do 23912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23913 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23915 break 2 23916 fi 23917 done 23918 done 23919 IFS=$as_save_IFS 23920 23921 ;; 23922 esac 23923 fi 23924 DSYMUTIL=$ac_cv_path_DSYMUTIL 23925 if test -n "$DSYMUTIL"; then 23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23927 $as_echo "$DSYMUTIL" >&6; } 23928 else 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23930 $as_echo "no" >&6; } 23931 fi 23932 23933 23934 test -n "$DSYMUTIL" && break 23935 done 23936 23937 else 23938 # The variable is set, but is it from the command line or the environment? 23939 23940 # Try to remove the string !DSYMUTIL! from our list. 23941 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23942 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23943 # If it failed, the variable was not from the command line. Ignore it, 23944 # but warn the user (except for BASH, which is always set by the calling BASH). 23945 if test "xDSYMUTIL" != xBASH; then 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23947 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23948 fi 23949 # Try to locate tool using the code snippet 23950 for ac_prog in dsymutil 23951 do 23952 # Extract the first word of "$ac_prog", so it can be a program name with args. 23953 set dummy $ac_prog; ac_word=$2 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23955 $as_echo_n "checking for $ac_word... " >&6; } 23956 if ${ac_cv_path_DSYMUTIL+:} false; then : 23957 $as_echo_n "(cached) " >&6 23958 else 23959 case $DSYMUTIL in 23960 [\\/]* | ?:[\\/]*) 23961 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23962 ;; 23963 *) 23964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23965 for as_dir in $PATH 23966 do 23967 IFS=$as_save_IFS 23968 test -z "$as_dir" && as_dir=. 23969 for ac_exec_ext in '' $ac_executable_extensions; do 23970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23971 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23973 break 2 23974 fi 23975 done 23976 done 23977 IFS=$as_save_IFS 23978 23979 ;; 23980 esac 23981 fi 23982 DSYMUTIL=$ac_cv_path_DSYMUTIL 23983 if test -n "$DSYMUTIL"; then 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23985 $as_echo "$DSYMUTIL" >&6; } 23986 else 23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23988 $as_echo "no" >&6; } 23989 fi 23990 23991 23992 test -n "$DSYMUTIL" && break 23993 done 23994 23995 else 23996 # If it succeeded, then it was overridden by the user. We will use it 23997 # for the tool. 23998 23999 # First remove it from the list of overridden variables, so we can test 24000 # for unknown variables in the end. 24001 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24002 24003 # Check if we try to supply an empty value 24004 if test "x$DSYMUTIL" = x; then 24005 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 24006 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24008 $as_echo_n "checking for DSYMUTIL... " >&6; } 24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24010 $as_echo "disabled" >&6; } 24011 else 24012 # Check if the provided tool contains a complete path. 24013 tool_specified="$DSYMUTIL" 24014 tool_basename="${tool_specified##*/}" 24015 if test "x$tool_basename" = "x$tool_specified"; then 24016 # A command without a complete path is provided, search $PATH. 24017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 24018 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 24019 # Extract the first word of "$tool_basename", so it can be a program name with args. 24020 set dummy $tool_basename; ac_word=$2 24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24022 $as_echo_n "checking for $ac_word... " >&6; } 24023 if ${ac_cv_path_DSYMUTIL+:} false; then : 24024 $as_echo_n "(cached) " >&6 24025 else 24026 case $DSYMUTIL in 24027 [\\/]* | ?:[\\/]*) 24028 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 24029 ;; 24030 *) 24031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24032 for as_dir in $PATH 24033 do 24034 IFS=$as_save_IFS 24035 test -z "$as_dir" && as_dir=. 24036 for ac_exec_ext in '' $ac_executable_extensions; do 24037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24038 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24040 break 2 24041 fi 24042 done 24043 done 24044 IFS=$as_save_IFS 24045 24046 ;; 24047 esac 24048 fi 24049 DSYMUTIL=$ac_cv_path_DSYMUTIL 24050 if test -n "$DSYMUTIL"; then 24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24052 $as_echo "$DSYMUTIL" >&6; } 24053 else 24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24055 $as_echo "no" >&6; } 24056 fi 24057 24058 24059 if test "x$DSYMUTIL" = x; then 24060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24061 fi 24062 else 24063 # Otherwise we believe it is a complete path. Use it as it is. 24064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 24065 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24067 $as_echo_n "checking for DSYMUTIL... " >&6; } 24068 if test ! -x "$tool_specified"; then 24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24070 $as_echo "not found" >&6; } 24071 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 24072 fi 24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24074 $as_echo "$tool_specified" >&6; } 24075 fi 24076 fi 24077 fi 24078 24079 fi 24080 24081 24082 24083 if test "x$DSYMUTIL" = x; then 24084 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 24085 fi 24086 24087 24088 24089 24090 24091 # Publish this variable in the help. 24092 24093 24094 if [ -z "${XATTR+x}" ]; then 24095 # The variable is not set by user, try to locate tool using the code snippet 24096 for ac_prog in xattr 24097 do 24098 # Extract the first word of "$ac_prog", so it can be a program name with args. 24099 set dummy $ac_prog; ac_word=$2 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24101 $as_echo_n "checking for $ac_word... " >&6; } 24102 if ${ac_cv_path_XATTR+:} false; then : 24103 $as_echo_n "(cached) " >&6 24104 else 24105 case $XATTR in 24106 [\\/]* | ?:[\\/]*) 24107 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24108 ;; 24109 *) 24110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24111 for as_dir in $PATH 24112 do 24113 IFS=$as_save_IFS 24114 test -z "$as_dir" && as_dir=. 24115 for ac_exec_ext in '' $ac_executable_extensions; do 24116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24117 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24119 break 2 24120 fi 24121 done 24122 done 24123 IFS=$as_save_IFS 24124 24125 ;; 24126 esac 24127 fi 24128 XATTR=$ac_cv_path_XATTR 24129 if test -n "$XATTR"; then 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24131 $as_echo "$XATTR" >&6; } 24132 else 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24134 $as_echo "no" >&6; } 24135 fi 24136 24137 24138 test -n "$XATTR" && break 24139 done 24140 24141 else 24142 # The variable is set, but is it from the command line or the environment? 24143 24144 # Try to remove the string !XATTR! from our list. 24145 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 24146 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24147 # If it failed, the variable was not from the command line. Ignore it, 24148 # but warn the user (except for BASH, which is always set by the calling BASH). 24149 if test "xXATTR" != xBASH; then 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 24151 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 24152 fi 24153 # Try to locate tool using the code snippet 24154 for ac_prog in xattr 24155 do 24156 # Extract the first word of "$ac_prog", so it can be a program name with args. 24157 set dummy $ac_prog; ac_word=$2 24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24159 $as_echo_n "checking for $ac_word... " >&6; } 24160 if ${ac_cv_path_XATTR+:} false; then : 24161 $as_echo_n "(cached) " >&6 24162 else 24163 case $XATTR in 24164 [\\/]* | ?:[\\/]*) 24165 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24166 ;; 24167 *) 24168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24169 for as_dir in $PATH 24170 do 24171 IFS=$as_save_IFS 24172 test -z "$as_dir" && as_dir=. 24173 for ac_exec_ext in '' $ac_executable_extensions; do 24174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24175 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24177 break 2 24178 fi 24179 done 24180 done 24181 IFS=$as_save_IFS 24182 24183 ;; 24184 esac 24185 fi 24186 XATTR=$ac_cv_path_XATTR 24187 if test -n "$XATTR"; then 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24189 $as_echo "$XATTR" >&6; } 24190 else 24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24192 $as_echo "no" >&6; } 24193 fi 24194 24195 24196 test -n "$XATTR" && break 24197 done 24198 24199 else 24200 # If it succeeded, then it was overridden by the user. We will use it 24201 # for the tool. 24202 24203 # First remove it from the list of overridden variables, so we can test 24204 # for unknown variables in the end. 24205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24206 24207 # Check if we try to supply an empty value 24208 if test "x$XATTR" = x; then 24209 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24210 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24212 $as_echo_n "checking for XATTR... " >&6; } 24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24214 $as_echo "disabled" >&6; } 24215 else 24216 # Check if the provided tool contains a complete path. 24217 tool_specified="$XATTR" 24218 tool_basename="${tool_specified##*/}" 24219 if test "x$tool_basename" = "x$tool_specified"; then 24220 # A command without a complete path is provided, search $PATH. 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24222 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24223 # Extract the first word of "$tool_basename", so it can be a program name with args. 24224 set dummy $tool_basename; ac_word=$2 24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24226 $as_echo_n "checking for $ac_word... " >&6; } 24227 if ${ac_cv_path_XATTR+:} false; then : 24228 $as_echo_n "(cached) " >&6 24229 else 24230 case $XATTR in 24231 [\\/]* | ?:[\\/]*) 24232 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24233 ;; 24234 *) 24235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24236 for as_dir in $PATH 24237 do 24238 IFS=$as_save_IFS 24239 test -z "$as_dir" && as_dir=. 24240 for ac_exec_ext in '' $ac_executable_extensions; do 24241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24242 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24244 break 2 24245 fi 24246 done 24247 done 24248 IFS=$as_save_IFS 24249 24250 ;; 24251 esac 24252 fi 24253 XATTR=$ac_cv_path_XATTR 24254 if test -n "$XATTR"; then 24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24256 $as_echo "$XATTR" >&6; } 24257 else 24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24259 $as_echo "no" >&6; } 24260 fi 24261 24262 24263 if test "x$XATTR" = x; then 24264 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24265 fi 24266 else 24267 # Otherwise we believe it is a complete path. Use it as it is. 24268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24269 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24271 $as_echo_n "checking for XATTR... " >&6; } 24272 if test ! -x "$tool_specified"; then 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24274 $as_echo "not found" >&6; } 24275 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24276 fi 24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24278 $as_echo "$tool_specified" >&6; } 24279 fi 24280 fi 24281 fi 24282 24283 fi 24284 24285 24286 24287 if test "x$XATTR" = x; then 24288 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24289 fi 24290 24291 24292 24293 24294 # Publish this variable in the help. 24295 24296 24297 if [ -z "${CODESIGN+x}" ]; then 24298 # The variable is not set by user, try to locate tool using the code snippet 24299 for ac_prog in codesign 24300 do 24301 # Extract the first word of "$ac_prog", so it can be a program name with args. 24302 set dummy $ac_prog; ac_word=$2 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24304 $as_echo_n "checking for $ac_word... " >&6; } 24305 if ${ac_cv_path_CODESIGN+:} false; then : 24306 $as_echo_n "(cached) " >&6 24307 else 24308 case $CODESIGN in 24309 [\\/]* | ?:[\\/]*) 24310 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24311 ;; 24312 *) 24313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24314 for as_dir in $PATH 24315 do 24316 IFS=$as_save_IFS 24317 test -z "$as_dir" && as_dir=. 24318 for ac_exec_ext in '' $ac_executable_extensions; do 24319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24320 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24322 break 2 24323 fi 24324 done 24325 done 24326 IFS=$as_save_IFS 24327 24328 ;; 24329 esac 24330 fi 24331 CODESIGN=$ac_cv_path_CODESIGN 24332 if test -n "$CODESIGN"; then 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24334 $as_echo "$CODESIGN" >&6; } 24335 else 24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24337 $as_echo "no" >&6; } 24338 fi 24339 24340 24341 test -n "$CODESIGN" && break 24342 done 24343 24344 else 24345 # The variable is set, but is it from the command line or the environment? 24346 24347 # Try to remove the string !CODESIGN! from our list. 24348 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24349 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24350 # If it failed, the variable was not from the command line. Ignore it, 24351 # but warn the user (except for BASH, which is always set by the calling BASH). 24352 if test "xCODESIGN" != xBASH; then 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24354 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24355 fi 24356 # Try to locate tool using the code snippet 24357 for ac_prog in codesign 24358 do 24359 # Extract the first word of "$ac_prog", so it can be a program name with args. 24360 set dummy $ac_prog; ac_word=$2 24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24362 $as_echo_n "checking for $ac_word... " >&6; } 24363 if ${ac_cv_path_CODESIGN+:} false; then : 24364 $as_echo_n "(cached) " >&6 24365 else 24366 case $CODESIGN in 24367 [\\/]* | ?:[\\/]*) 24368 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24369 ;; 24370 *) 24371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24372 for as_dir in $PATH 24373 do 24374 IFS=$as_save_IFS 24375 test -z "$as_dir" && as_dir=. 24376 for ac_exec_ext in '' $ac_executable_extensions; do 24377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24378 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24380 break 2 24381 fi 24382 done 24383 done 24384 IFS=$as_save_IFS 24385 24386 ;; 24387 esac 24388 fi 24389 CODESIGN=$ac_cv_path_CODESIGN 24390 if test -n "$CODESIGN"; then 24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24392 $as_echo "$CODESIGN" >&6; } 24393 else 24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24395 $as_echo "no" >&6; } 24396 fi 24397 24398 24399 test -n "$CODESIGN" && break 24400 done 24401 24402 else 24403 # If it succeeded, then it was overridden by the user. We will use it 24404 # for the tool. 24405 24406 # First remove it from the list of overridden variables, so we can test 24407 # for unknown variables in the end. 24408 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24409 24410 # Check if we try to supply an empty value 24411 if test "x$CODESIGN" = x; then 24412 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24413 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24415 $as_echo_n "checking for CODESIGN... " >&6; } 24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24417 $as_echo "disabled" >&6; } 24418 else 24419 # Check if the provided tool contains a complete path. 24420 tool_specified="$CODESIGN" 24421 tool_basename="${tool_specified##*/}" 24422 if test "x$tool_basename" = "x$tool_specified"; then 24423 # A command without a complete path is provided, search $PATH. 24424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24425 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24426 # Extract the first word of "$tool_basename", so it can be a program name with args. 24427 set dummy $tool_basename; ac_word=$2 24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24429 $as_echo_n "checking for $ac_word... " >&6; } 24430 if ${ac_cv_path_CODESIGN+:} false; then : 24431 $as_echo_n "(cached) " >&6 24432 else 24433 case $CODESIGN in 24434 [\\/]* | ?:[\\/]*) 24435 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24436 ;; 24437 *) 24438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24439 for as_dir in $PATH 24440 do 24441 IFS=$as_save_IFS 24442 test -z "$as_dir" && as_dir=. 24443 for ac_exec_ext in '' $ac_executable_extensions; do 24444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24445 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24447 break 2 24448 fi 24449 done 24450 done 24451 IFS=$as_save_IFS 24452 24453 ;; 24454 esac 24455 fi 24456 CODESIGN=$ac_cv_path_CODESIGN 24457 if test -n "$CODESIGN"; then 24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24459 $as_echo "$CODESIGN" >&6; } 24460 else 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24462 $as_echo "no" >&6; } 24463 fi 24464 24465 24466 if test "x$CODESIGN" = x; then 24467 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24468 fi 24469 else 24470 # Otherwise we believe it is a complete path. Use it as it is. 24471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24472 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24474 $as_echo_n "checking for CODESIGN... " >&6; } 24475 if test ! -x "$tool_specified"; then 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24477 $as_echo "not found" >&6; } 24478 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24479 fi 24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24481 $as_echo "$tool_specified" >&6; } 24482 fi 24483 fi 24484 fi 24485 24486 fi 24487 24488 24489 if test "x$CODESIGN" != "x"; then 24490 # Verify that the openjdk_codesign certificate is present 24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24492 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24493 $RM codesign-testfile 24494 $TOUCH codesign-testfile 24495 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24496 $RM codesign-testfile 24497 if test "x$CODESIGN" = x; then 24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24499 $as_echo "no" >&6; } 24500 else 24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24502 $as_echo "yes" >&6; } 24503 fi 24504 fi 24505 24506 24507 24508 # Publish this variable in the help. 24509 24510 24511 if [ -z "${SETFILE+x}" ]; then 24512 # The variable is not set by user, try to locate tool using the code snippet 24513 for ac_prog in SetFile 24514 do 24515 # Extract the first word of "$ac_prog", so it can be a program name with args. 24516 set dummy $ac_prog; ac_word=$2 24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24518 $as_echo_n "checking for $ac_word... " >&6; } 24519 if ${ac_cv_path_SETFILE+:} false; then : 24520 $as_echo_n "(cached) " >&6 24521 else 24522 case $SETFILE in 24523 [\\/]* | ?:[\\/]*) 24524 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24525 ;; 24526 *) 24527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24528 for as_dir in $PATH 24529 do 24530 IFS=$as_save_IFS 24531 test -z "$as_dir" && as_dir=. 24532 for ac_exec_ext in '' $ac_executable_extensions; do 24533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24534 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24536 break 2 24537 fi 24538 done 24539 done 24540 IFS=$as_save_IFS 24541 24542 ;; 24543 esac 24544 fi 24545 SETFILE=$ac_cv_path_SETFILE 24546 if test -n "$SETFILE"; then 24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24548 $as_echo "$SETFILE" >&6; } 24549 else 24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24551 $as_echo "no" >&6; } 24552 fi 24553 24554 24555 test -n "$SETFILE" && break 24556 done 24557 24558 else 24559 # The variable is set, but is it from the command line or the environment? 24560 24561 # Try to remove the string !SETFILE! from our list. 24562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24564 # If it failed, the variable was not from the command line. Ignore it, 24565 # but warn the user (except for BASH, which is always set by the calling BASH). 24566 if test "xSETFILE" != xBASH; then 24567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24568 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24569 fi 24570 # Try to locate tool using the code snippet 24571 for ac_prog in SetFile 24572 do 24573 # Extract the first word of "$ac_prog", so it can be a program name with args. 24574 set dummy $ac_prog; ac_word=$2 24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24576 $as_echo_n "checking for $ac_word... " >&6; } 24577 if ${ac_cv_path_SETFILE+:} false; then : 24578 $as_echo_n "(cached) " >&6 24579 else 24580 case $SETFILE in 24581 [\\/]* | ?:[\\/]*) 24582 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24583 ;; 24584 *) 24585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24586 for as_dir in $PATH 24587 do 24588 IFS=$as_save_IFS 24589 test -z "$as_dir" && as_dir=. 24590 for ac_exec_ext in '' $ac_executable_extensions; do 24591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24592 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24594 break 2 24595 fi 24596 done 24597 done 24598 IFS=$as_save_IFS 24599 24600 ;; 24601 esac 24602 fi 24603 SETFILE=$ac_cv_path_SETFILE 24604 if test -n "$SETFILE"; then 24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24606 $as_echo "$SETFILE" >&6; } 24607 else 24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24609 $as_echo "no" >&6; } 24610 fi 24611 24612 24613 test -n "$SETFILE" && break 24614 done 24615 24616 else 24617 # If it succeeded, then it was overridden by the user. We will use it 24618 # for the tool. 24619 24620 # First remove it from the list of overridden variables, so we can test 24621 # for unknown variables in the end. 24622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24623 24624 # Check if we try to supply an empty value 24625 if test "x$SETFILE" = x; then 24626 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24627 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24629 $as_echo_n "checking for SETFILE... " >&6; } 24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24631 $as_echo "disabled" >&6; } 24632 else 24633 # Check if the provided tool contains a complete path. 24634 tool_specified="$SETFILE" 24635 tool_basename="${tool_specified##*/}" 24636 if test "x$tool_basename" = "x$tool_specified"; then 24637 # A command without a complete path is provided, search $PATH. 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24639 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24640 # Extract the first word of "$tool_basename", so it can be a program name with args. 24641 set dummy $tool_basename; ac_word=$2 24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24643 $as_echo_n "checking for $ac_word... " >&6; } 24644 if ${ac_cv_path_SETFILE+:} false; then : 24645 $as_echo_n "(cached) " >&6 24646 else 24647 case $SETFILE in 24648 [\\/]* | ?:[\\/]*) 24649 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24650 ;; 24651 *) 24652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24653 for as_dir in $PATH 24654 do 24655 IFS=$as_save_IFS 24656 test -z "$as_dir" && as_dir=. 24657 for ac_exec_ext in '' $ac_executable_extensions; do 24658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24659 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24661 break 2 24662 fi 24663 done 24664 done 24665 IFS=$as_save_IFS 24666 24667 ;; 24668 esac 24669 fi 24670 SETFILE=$ac_cv_path_SETFILE 24671 if test -n "$SETFILE"; then 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24673 $as_echo "$SETFILE" >&6; } 24674 else 24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24676 $as_echo "no" >&6; } 24677 fi 24678 24679 24680 if test "x$SETFILE" = x; then 24681 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24682 fi 24683 else 24684 # Otherwise we believe it is a complete path. Use it as it is. 24685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24686 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24688 $as_echo_n "checking for SETFILE... " >&6; } 24689 if test ! -x "$tool_specified"; then 24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24691 $as_echo "not found" >&6; } 24692 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24693 fi 24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24695 $as_echo "$tool_specified" >&6; } 24696 fi 24697 fi 24698 fi 24699 24700 fi 24701 24702 24703 24704 if test "x$SETFILE" = x; then 24705 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24706 fi 24707 24708 24709 fi 24710 24711 24712 # Check bash version 24713 # Extra [ ] to stop m4 mangling 24714 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24716 $as_echo_n "checking bash version... " >&6; } 24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24718 $as_echo "$BASH_VER" >&6; } 24719 24720 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24721 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24722 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24723 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24724 fi 24725 24726 # Test if bash supports pipefail. 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24728 $as_echo_n "checking if bash supports pipefail... " >&6; } 24729 if ${BASH} -c 'set -o pipefail'; then 24730 BASH_ARGS="$BASH_ARGS -o pipefail" 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24732 $as_echo "yes" >&6; } 24733 else 24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24735 $as_echo "no" >&6; } 24736 fi 24737 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24739 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24740 if ${BASH} -e -c 'true'; then 24741 BASH_ARGS="$BASH_ARGS -e" 24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24743 $as_echo "yes" >&6; } 24744 else 24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24746 $as_echo "no" >&6; } 24747 fi 24748 24749 24750 24751 24752 # Check if pkg-config is available. 24753 24754 24755 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24756 if test -n "$ac_tool_prefix"; then 24757 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24758 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24760 $as_echo_n "checking for $ac_word... " >&6; } 24761 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24762 $as_echo_n "(cached) " >&6 24763 else 24764 case $PKG_CONFIG in 24765 [\\/]* | ?:[\\/]*) 24766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24767 ;; 24768 *) 24769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24770 for as_dir in $PATH 24771 do 24772 IFS=$as_save_IFS 24773 test -z "$as_dir" && as_dir=. 24774 for ac_exec_ext in '' $ac_executable_extensions; do 24775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24778 break 2 24779 fi 24780 done 24781 done 24782 IFS=$as_save_IFS 24783 24784 ;; 24785 esac 24786 fi 24787 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24788 if test -n "$PKG_CONFIG"; then 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24790 $as_echo "$PKG_CONFIG" >&6; } 24791 else 24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24793 $as_echo "no" >&6; } 24794 fi 24795 24796 24797 fi 24798 if test -z "$ac_cv_path_PKG_CONFIG"; then 24799 ac_pt_PKG_CONFIG=$PKG_CONFIG 24800 # Extract the first word of "pkg-config", so it can be a program name with args. 24801 set dummy pkg-config; ac_word=$2 24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24803 $as_echo_n "checking for $ac_word... " >&6; } 24804 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24805 $as_echo_n "(cached) " >&6 24806 else 24807 case $ac_pt_PKG_CONFIG in 24808 [\\/]* | ?:[\\/]*) 24809 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24810 ;; 24811 *) 24812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24813 for as_dir in $PATH 24814 do 24815 IFS=$as_save_IFS 24816 test -z "$as_dir" && as_dir=. 24817 for ac_exec_ext in '' $ac_executable_extensions; do 24818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24819 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24821 break 2 24822 fi 24823 done 24824 done 24825 IFS=$as_save_IFS 24826 24827 ;; 24828 esac 24829 fi 24830 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24831 if test -n "$ac_pt_PKG_CONFIG"; then 24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24833 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24834 else 24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24836 $as_echo "no" >&6; } 24837 fi 24838 24839 if test "x$ac_pt_PKG_CONFIG" = x; then 24840 PKG_CONFIG="" 24841 else 24842 case $cross_compiling:$ac_tool_warned in 24843 yes:) 24844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24846 ac_tool_warned=yes ;; 24847 esac 24848 PKG_CONFIG=$ac_pt_PKG_CONFIG 24849 fi 24850 else 24851 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24852 fi 24853 24854 fi 24855 if test -n "$PKG_CONFIG"; then 24856 _pkg_min_version=0.9.0 24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24858 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24859 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24861 $as_echo "yes" >&6; } 24862 else 24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24864 $as_echo "no" >&6; } 24865 PKG_CONFIG="" 24866 fi 24867 24868 fi 24869 24870 # After basic tools have been setup, we can check build os specific details. 24871 24872 ############################################################################### 24873 24874 # Note that this is the build platform OS version! 24875 24876 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24877 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24878 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24879 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24880 24881 24882 24883 24884 24885 # Misc basic settings 24886 24887 24888 # Check whether --with-default-make-target was given. 24889 if test "${with_default_make_target+set}" = set; then : 24890 withval=$with_default_make_target; 24891 fi 24892 24893 if test "x$with_default_make_target" = "x" \ 24894 || test "x$with_default_make_target" = "xyes"; then 24895 DEFAULT_MAKE_TARGET="exploded-image" 24896 elif test "x$with_default_make_target" = "xno"; then 24897 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24898 else 24899 DEFAULT_MAKE_TARGET="$with_default_make_target" 24900 fi 24901 24902 24903 24904 24905 ############################################################################### 24906 # 24907 # Determine OpenJDK variants, options and version numbers. 24908 # 24909 ############################################################################### 24910 24911 # We need build & target for this. 24912 24913 # Should we build a JDK without a graphical UI? 24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24915 $as_echo_n "checking headless only... " >&6; } 24916 # Check whether --enable-headless-only was given. 24917 if test "${enable_headless_only+set}" = set; then : 24918 enableval=$enable_headless_only; 24919 fi 24920 24921 24922 if test "x$enable_headless_only" = "xyes"; then 24923 ENABLE_HEADLESS_ONLY="true" 24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24925 $as_echo "yes" >&6; } 24926 elif test "x$enable_headless_only" = "xno"; then 24927 ENABLE_HEADLESS_ONLY="false" 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24929 $as_echo "no" >&6; } 24930 elif test "x$enable_headless_only" = "x"; then 24931 ENABLE_HEADLESS_ONLY="false" 24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24933 $as_echo "no" >&6; } 24934 else 24935 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24936 fi 24937 24938 24939 24940 # Should we build the complete docs, or just a lightweight version? 24941 # Check whether --enable-full-docs was given. 24942 if test "${enable_full_docs+set}" = set; then : 24943 enableval=$enable_full_docs; 24944 fi 24945 24946 24947 # Verify dependencies 24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 24949 $as_echo_n "checking for graphviz dot... " >&6; } 24950 if test "x$DOT" != "x"; then 24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24952 $as_echo "yes" >&6; } 24953 else 24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24955 $as_echo "no, cannot generate full docs" >&6; } 24956 FULL_DOCS_DEP_MISSING=true 24957 fi 24958 24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 24960 $as_echo_n "checking for pandoc... " >&6; } 24961 if test "x$PANDOC" != "x"; then 24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24963 $as_echo "yes" >&6; } 24964 else 24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24966 $as_echo "no, cannot generate full docs" >&6; } 24967 FULL_DOCS_DEP_MISSING=true 24968 fi 24969 24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 24971 $as_echo_n "checking full docs... " >&6; } 24972 if test "x$enable_full_docs" = xyes; then 24973 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24975 $as_echo "no, missing dependencies" >&6; } 24976 24977 # Print a helpful message on how to acquire the necessary build dependency. 24978 # dot is the help tag: freetype, cups, alsa etc 24979 MISSING_DEPENDENCY=dot 24980 24981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24982 cygwin_help $MISSING_DEPENDENCY 24983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24984 msys_help $MISSING_DEPENDENCY 24985 else 24986 PKGHANDLER_COMMAND= 24987 24988 case $PKGHANDLER in 24989 apt-get) 24990 apt_help $MISSING_DEPENDENCY ;; 24991 yum) 24992 yum_help $MISSING_DEPENDENCY ;; 24993 brew) 24994 brew_help $MISSING_DEPENDENCY ;; 24995 port) 24996 port_help $MISSING_DEPENDENCY ;; 24997 pkgutil) 24998 pkgutil_help $MISSING_DEPENDENCY ;; 24999 pkgadd) 25000 pkgadd_help $MISSING_DEPENDENCY ;; 25001 esac 25002 25003 if test "x$PKGHANDLER_COMMAND" != x; then 25004 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25005 fi 25006 fi 25007 25008 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 25009 else 25010 ENABLE_FULL_DOCS=true 25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 25012 $as_echo "yes, forced" >&6; } 25013 fi 25014 elif test "x$enable_full_docs" = xno; then 25015 ENABLE_FULL_DOCS=false 25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 25017 $as_echo "no, forced" >&6; } 25018 elif test "x$enable_full_docs" = x; then 25019 # Check for prerequisites 25020 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 25021 ENABLE_FULL_DOCS=false 25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25023 $as_echo "no, missing dependencies" >&6; } 25024 else 25025 ENABLE_FULL_DOCS=true 25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 25027 $as_echo "yes, dependencies present" >&6; } 25028 fi 25029 else 25030 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 25031 fi 25032 25033 25034 25035 # Choose cacerts source file 25036 25037 # Check whether --with-cacerts-file was given. 25038 if test "${with_cacerts_file+set}" = set; then : 25039 withval=$with_cacerts_file; 25040 fi 25041 25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5 25043 $as_echo_n "checking for cacerts file... " >&6; } 25044 if test "x$with_cacerts_file" == x; then 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 25046 $as_echo "default" >&6; } 25047 else 25048 CACERTS_FILE=$with_cacerts_file 25049 if test ! -f "$CACERTS_FILE"; then 25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 25051 $as_echo "fail" >&6; } 25052 as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5 25053 fi 25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5 25055 $as_echo "$CACERTS_FILE" >&6; } 25056 fi 25057 25058 25059 # Enable or disable unlimited crypto 25060 # Check whether --enable-unlimited-crypto was given. 25061 if test "${enable_unlimited_crypto+set}" = set; then : 25062 enableval=$enable_unlimited_crypto; 25063 else 25064 enable_unlimited_crypto=yes 25065 fi 25066 25067 if test "x$enable_unlimited_crypto" = "xyes"; then 25068 UNLIMITED_CRYPTO=true 25069 else 25070 UNLIMITED_CRYPTO=false 25071 fi 25072 25073 25074 # Should we build the serviceability agent (SA)? 25075 INCLUDE_SA=true 25076 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 25077 INCLUDE_SA=false 25078 fi 25079 if test "x$OPENJDK_TARGET_OS" = xaix ; then 25080 INCLUDE_SA=false 25081 fi 25082 25083 25084 # Compress jars 25085 COMPRESS_JARS=false 25086 25087 25088 25089 # Setup default copyright year. Mostly overridden when building close to a new year. 25090 25091 # Check whether --with-copyright-year was given. 25092 if test "${with_copyright_year+set}" = set; then : 25093 withval=$with_copyright_year; 25094 fi 25095 25096 if test "x$with_copyright_year" = xyes; then 25097 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 25098 elif test "x$with_copyright_year" != x; then 25099 COPYRIGHT_YEAR="$with_copyright_year" 25100 else 25101 COPYRIGHT_YEAR=`$DATE +'%Y'` 25102 fi 25103 25104 25105 25106 # Check whether --enable-keep-packaged-modules was given. 25107 if test "${enable_keep_packaged_modules+set}" = set; then : 25108 enableval=$enable_keep_packaged_modules; 25109 fi 25110 25111 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 25113 $as_echo_n "checking if packaged modules are kept... " >&6; } 25114 if test "x$enable_keep_packaged_modules" = "xyes"; then 25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25116 $as_echo "yes" >&6; } 25117 JLINK_KEEP_PACKAGED_MODULES=true 25118 elif test "x$enable_keep_packaged_modules" = "xno"; then 25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25120 $as_echo "no" >&6; } 25121 JLINK_KEEP_PACKAGED_MODULES=false 25122 elif test "x$enable_keep_packaged_modules" = "x"; then 25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 25124 $as_echo "yes (default)" >&6; } 25125 JLINK_KEEP_PACKAGED_MODULES=true 25126 else 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 25128 $as_echo "error" >&6; } 25129 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 25130 fi 25131 25132 25133 25134 25135 # Warn user that old version arguments are deprecated. 25136 25137 25138 # Check whether --with-milestone was given. 25139 if test "${with_milestone+set}" = set; then : 25140 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 25141 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 25142 fi 25143 25144 25145 25146 25147 # Check whether --with-update-version was given. 25148 if test "${with_update_version+set}" = set; then : 25149 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 25150 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 25151 fi 25152 25153 25154 25155 25156 # Check whether --with-user-release-suffix was given. 25157 if test "${with_user_release_suffix+set}" = set; then : 25158 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 25159 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25160 fi 25161 25162 25163 25164 25165 # Check whether --with-build-number was given. 25166 if test "${with_build_number+set}" = set; then : 25167 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25168 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25169 fi 25170 25171 25172 25173 # Source the version numbers file 25174 . $AUTOCONF_DIR/version-numbers 25175 25176 # Some non-version number information is set in that file 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 # Override version from arguments 25187 25188 # If --with-version-string is set, process it first. It is possible to 25189 # override parts with more specific flags, since these are processed later. 25190 25191 # Check whether --with-version-string was given. 25192 if test "${with_version_string+set}" = set; then : 25193 withval=$with_version_string; 25194 fi 25195 25196 if test "x$with_version_string" = xyes; then 25197 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25198 elif test "x$with_version_string" != x; then 25199 # Additional [] needed to keep m4 from mangling shell constructs. 25200 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25201 VERSION_MAJOR=${BASH_REMATCH[1]} 25202 VERSION_MINOR=${BASH_REMATCH[3]} 25203 VERSION_SECURITY=${BASH_REMATCH[5]} 25204 VERSION_PATCH=${BASH_REMATCH[7]} 25205 VERSION_PRE=${BASH_REMATCH[9]} 25206 version_plus_separator=${BASH_REMATCH[11]} 25207 VERSION_BUILD=${BASH_REMATCH[12]} 25208 VERSION_OPT=${BASH_REMATCH[14]} 25209 # Unspecified numerical fields are interpreted as 0. 25210 if test "x$VERSION_MINOR" = x; then 25211 VERSION_MINOR=0 25212 fi 25213 if test "x$VERSION_SECURITY" = x; then 25214 VERSION_SECURITY=0 25215 fi 25216 if test "x$VERSION_PATCH" = x; then 25217 VERSION_PATCH=0 25218 fi 25219 if test "x$version_plus_separator" != x \ 25220 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25221 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25222 fi 25223 # Stop the version part process from setting default values. 25224 # We still allow them to explicitly override though. 25225 NO_DEFAULT_VERSION_PARTS=true 25226 else 25227 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25228 fi 25229 fi 25230 25231 25232 # Check whether --with-version-pre was given. 25233 if test "${with_version_pre+set}" = set; then : 25234 withval=$with_version_pre; with_version_pre_present=true 25235 else 25236 with_version_pre_present=false 25237 fi 25238 25239 25240 if test "x$with_version_pre_present" = xtrue; then 25241 if test "x$with_version_pre" = xyes; then 25242 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25243 elif test "x$with_version_pre" = xno; then 25244 # Interpret --without-* as empty string instead of the literal "no" 25245 VERSION_PRE= 25246 else 25247 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25248 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25249 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25251 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25252 fi 25253 fi 25254 else 25255 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25256 # Default is to use "internal" as pre 25257 VERSION_PRE="internal" 25258 fi 25259 fi 25260 25261 25262 # Check whether --with-version-opt was given. 25263 if test "${with_version_opt+set}" = set; then : 25264 withval=$with_version_opt; with_version_opt_present=true 25265 else 25266 with_version_opt_present=false 25267 fi 25268 25269 25270 if test "x$with_version_opt_present" = xtrue; then 25271 if test "x$with_version_opt" = xyes; then 25272 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25273 elif test "x$with_version_opt" = xno; then 25274 # Interpret --without-* as empty string instead of the literal "no" 25275 VERSION_OPT= 25276 else 25277 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25278 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25279 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25281 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25282 fi 25283 fi 25284 else 25285 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25286 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25287 # Outer [ ] to quote m4. 25288 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25289 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25290 fi 25291 fi 25292 25293 25294 # Check whether --with-version-build was given. 25295 if test "${with_version_build+set}" = set; then : 25296 withval=$with_version_build; with_version_build_present=true 25297 else 25298 with_version_build_present=false 25299 fi 25300 25301 25302 if test "x$with_version_build_present" = xtrue; then 25303 if test "x$with_version_build" = xyes; then 25304 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25305 elif test "x$with_version_build" = xno; then 25306 # Interpret --without-* as empty string instead of the literal "no" 25307 VERSION_BUILD= 25308 elif test "x$with_version_build" = x; then 25309 VERSION_BUILD= 25310 else 25311 25312 # Additional [] needed to keep m4 from mangling shell constructs. 25313 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25314 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25315 fi 25316 # Extract the version number without leading zeros. 25317 cleaned_value=${BASH_REMATCH[1]} 25318 if test "x$cleaned_value" = x; then 25319 # Special case for zero 25320 cleaned_value=${BASH_REMATCH[2]} 25321 fi 25322 25323 if test $cleaned_value -gt 255; then 25324 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25325 fi 25326 if test "x$cleaned_value" != "x$with_version_build"; then 25327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25328 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25329 fi 25330 VERSION_BUILD=$cleaned_value 25331 25332 fi 25333 else 25334 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25335 # Default is to not have a build number. 25336 VERSION_BUILD="" 25337 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25338 VERSION_BUILD=0 25339 fi 25340 fi 25341 25342 25343 # Check whether --with-version-major was given. 25344 if test "${with_version_major+set}" = set; then : 25345 withval=$with_version_major; with_version_major_present=true 25346 else 25347 with_version_major_present=false 25348 fi 25349 25350 25351 if test "x$with_version_major_present" = xtrue; then 25352 if test "x$with_version_major" = xyes; then 25353 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 25354 else 25355 25356 # Additional [] needed to keep m4 from mangling shell constructs. 25357 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25358 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 25359 fi 25360 # Extract the version number without leading zeros. 25361 cleaned_value=${BASH_REMATCH[1]} 25362 if test "x$cleaned_value" = x; then 25363 # Special case for zero 25364 cleaned_value=${BASH_REMATCH[2]} 25365 fi 25366 25367 if test $cleaned_value -gt 255; then 25368 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 25369 fi 25370 if test "x$cleaned_value" != "x$with_version_major"; then 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 25372 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 25373 fi 25374 VERSION_MAJOR=$cleaned_value 25375 25376 fi 25377 else 25378 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25379 # Default is to get value from version-numbers 25380 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 25381 fi 25382 fi 25383 25384 25385 # Check whether --with-version-minor was given. 25386 if test "${with_version_minor+set}" = set; then : 25387 withval=$with_version_minor; with_version_minor_present=true 25388 else 25389 with_version_minor_present=false 25390 fi 25391 25392 25393 if test "x$with_version_minor_present" = xtrue; then 25394 if test "x$with_version_minor" = xyes; then 25395 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 25396 elif test "x$with_version_minor" = xno; then 25397 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25398 VERSION_MINOR=0 25399 elif test "x$with_version_minor" = x; then 25400 VERSION_MINOR=0 25401 else 25402 25403 # Additional [] needed to keep m4 from mangling shell constructs. 25404 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25405 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 25406 fi 25407 # Extract the version number without leading zeros. 25408 cleaned_value=${BASH_REMATCH[1]} 25409 if test "x$cleaned_value" = x; then 25410 # Special case for zero 25411 cleaned_value=${BASH_REMATCH[2]} 25412 fi 25413 25414 if test $cleaned_value -gt 255; then 25415 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 25416 fi 25417 if test "x$cleaned_value" != "x$with_version_minor"; then 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 25419 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 25420 fi 25421 VERSION_MINOR=$cleaned_value 25422 25423 fi 25424 else 25425 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25426 # Default is 0, if unspecified 25427 VERSION_MINOR=$DEFAULT_VERSION_MINOR 25428 fi 25429 fi 25430 25431 25432 # Check whether --with-version-security was given. 25433 if test "${with_version_security+set}" = set; then : 25434 withval=$with_version_security; with_version_security_present=true 25435 else 25436 with_version_security_present=false 25437 fi 25438 25439 25440 if test "x$with_version_security_present" = xtrue; then 25441 if test "x$with_version_security" = xyes; then 25442 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 25443 elif test "x$with_version_security" = xno; then 25444 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25445 VERSION_SECURITY=0 25446 elif test "x$with_version_security" = x; then 25447 VERSION_SECURITY=0 25448 else 25449 25450 # Additional [] needed to keep m4 from mangling shell constructs. 25451 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25452 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 25453 fi 25454 # Extract the version number without leading zeros. 25455 cleaned_value=${BASH_REMATCH[1]} 25456 if test "x$cleaned_value" = x; then 25457 # Special case for zero 25458 cleaned_value=${BASH_REMATCH[2]} 25459 fi 25460 25461 if test $cleaned_value -gt 255; then 25462 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 25463 fi 25464 if test "x$cleaned_value" != "x$with_version_security"; then 25465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 25466 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 25467 fi 25468 VERSION_SECURITY=$cleaned_value 25469 25470 fi 25471 else 25472 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25473 # Default is 0, if unspecified 25474 VERSION_SECURITY=$DEFAULT_VERSION_SECURITY 25475 fi 25476 fi 25477 25478 25479 # Check whether --with-version-patch was given. 25480 if test "${with_version_patch+set}" = set; then : 25481 withval=$with_version_patch; with_version_patch_present=true 25482 else 25483 with_version_patch_present=false 25484 fi 25485 25486 25487 if test "x$with_version_patch_present" = xtrue; then 25488 if test "x$with_version_patch" = xyes; then 25489 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25490 elif test "x$with_version_patch" = xno; then 25491 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25492 VERSION_PATCH=0 25493 elif test "x$with_version_patch" = x; then 25494 VERSION_PATCH=0 25495 else 25496 25497 # Additional [] needed to keep m4 from mangling shell constructs. 25498 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25499 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25500 fi 25501 # Extract the version number without leading zeros. 25502 cleaned_value=${BASH_REMATCH[1]} 25503 if test "x$cleaned_value" = x; then 25504 # Special case for zero 25505 cleaned_value=${BASH_REMATCH[2]} 25506 fi 25507 25508 if test $cleaned_value -gt 255; then 25509 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25510 fi 25511 if test "x$cleaned_value" != "x$with_version_patch"; then 25512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25513 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25514 fi 25515 VERSION_PATCH=$cleaned_value 25516 25517 fi 25518 else 25519 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25520 # Default is 0, if unspecified 25521 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25522 fi 25523 fi 25524 25525 # Calculate derived version properties 25526 25527 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25528 if test "x$VERSION_PRE" = x; then 25529 VERSION_IS_GA=true 25530 else 25531 VERSION_IS_GA=false 25532 fi 25533 25534 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25535 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 25536 25537 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25538 # Strip trailing zeroes from stripped_version_number 25539 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25540 VERSION_NUMBER=$stripped_version_number 25541 25542 # The complete version string, with additional build information 25543 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25544 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25545 else 25546 # If either build or opt is set, we need a + separator 25547 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25548 fi 25549 25550 # The short version string, just VERSION_NUMBER and PRE, if present. 25551 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25552 25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25554 $as_echo_n "checking for version string... " >&6; } 25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25556 $as_echo "$VERSION_STRING" >&6; } 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 ############################################################################### 25573 # 25574 # Setup BootJDK, used to bootstrap the build. 25575 # 25576 ############################################################################### 25577 25578 25579 BOOT_JDK_FOUND=no 25580 25581 # Check whether --with-boot-jdk was given. 25582 if test "${with_boot_jdk+set}" = set; then : 25583 withval=$with_boot_jdk; 25584 fi 25585 25586 25587 # We look for the Boot JDK through various means, going from more certain to 25588 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25589 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25590 # must check if this is indeed valid; otherwise we'll continue looking. 25591 25592 # Test: Is bootjdk explicitly set by command line arguments? 25593 25594 if test "x$BOOT_JDK_FOUND" = xno; then 25595 # Now execute the test 25596 25597 if test "x$with_boot_jdk" != x; then 25598 BOOT_JDK=$with_boot_jdk 25599 BOOT_JDK_FOUND=maybe 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25601 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25602 fi 25603 25604 25605 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25606 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25607 # Do we have a bin/java? 25608 if test ! -x "$BOOT_JDK/bin/java"; then 25609 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25610 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25611 BOOT_JDK_FOUND=no 25612 else 25613 # Do we have a bin/javac? 25614 if test ! -x "$BOOT_JDK/bin/javac"; then 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25618 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25619 BOOT_JDK_FOUND=no 25620 else 25621 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25622 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25623 25624 # Extra M4 quote needed to protect [] in grep expression. 25625 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25626 if test "x$FOUND_CORRECT_VERSION" = x; then 25627 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25629 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25630 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25631 BOOT_JDK_FOUND=no 25632 else 25633 # We're done! :-) 25634 BOOT_JDK_FOUND=yes 25635 25636 # Only process if variable expands to non-empty 25637 25638 if test "x$BOOT_JDK" != x; then 25639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25640 25641 # Input might be given as Windows format, start by converting to 25642 # unix format. 25643 path="$BOOT_JDK" 25644 new_path=`$CYGPATH -u "$path"` 25645 25646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25649 # "foo.exe" is OK but "foo" is an error. 25650 # 25651 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25652 # It is also a way to make sure we got the proper file name for the real test later on. 25653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25654 if test "x$test_shortpath" = x; then 25655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25657 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25658 fi 25659 25660 # Call helper function which possibly converts this using DOS-style short mode. 25661 # If so, the updated path is stored in $new_path. 25662 25663 input_path="$new_path" 25664 # Check if we need to convert this using DOS-style short mode. If the path 25665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25666 # take no chances and rewrite it. 25667 # Note: m4 eats our [], so we need to use [ and ] instead. 25668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25669 if test "x$has_forbidden_chars" != x; then 25670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25674 # Going to short mode and back again did indeed matter. Since short mode is 25675 # case insensitive, let's make it lowercase to improve readability. 25676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25677 # Now convert it back to Unix-style (cygpath) 25678 input_path=`$CYGPATH -u "$shortmode_path"` 25679 new_path="$input_path" 25680 fi 25681 fi 25682 25683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25684 if test "x$test_cygdrive_prefix" = x; then 25685 # As a simple fix, exclude /usr/bin since it's not a real path. 25686 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25688 # a path prefixed by /cygdrive for fixpath to work. 25689 new_path="$CYGWIN_ROOT_PATH$input_path" 25690 fi 25691 fi 25692 25693 25694 if test "x$path" != "x$new_path"; then 25695 BOOT_JDK="$new_path" 25696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25697 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25698 fi 25699 25700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25701 25702 path="$BOOT_JDK" 25703 has_colon=`$ECHO $path | $GREP ^.:` 25704 new_path="$path" 25705 if test "x$has_colon" = x; then 25706 # Not in mixed or Windows style, start by that. 25707 new_path=`cmd //c echo $path` 25708 fi 25709 25710 25711 input_path="$new_path" 25712 # Check if we need to convert this using DOS-style short mode. If the path 25713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25714 # take no chances and rewrite it. 25715 # Note: m4 eats our [], so we need to use [ and ] instead. 25716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25717 if test "x$has_forbidden_chars" != x; then 25718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25720 fi 25721 25722 25723 windows_path="$new_path" 25724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25725 unix_path=`$CYGPATH -u "$windows_path"` 25726 new_path="$unix_path" 25727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25729 new_path="$unix_path" 25730 fi 25731 25732 if test "x$path" != "x$new_path"; then 25733 BOOT_JDK="$new_path" 25734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25736 fi 25737 25738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25740 25741 else 25742 # We're on a unix platform. Hooray! :) 25743 path="$BOOT_JDK" 25744 has_space=`$ECHO "$path" | $GREP " "` 25745 if test "x$has_space" != x; then 25746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25747 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25748 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25749 fi 25750 25751 # Use eval to expand a potential ~ 25752 eval path="$path" 25753 if test ! -f "$path" && test ! -d "$path"; then 25754 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25755 fi 25756 25757 if test -d "$path"; then 25758 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25759 else 25760 dir="`$DIRNAME "$path"`" 25761 base="`$BASENAME "$path"`" 25762 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25763 fi 25764 fi 25765 fi 25766 25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25768 $as_echo_n "checking for Boot JDK... " >&6; } 25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25770 $as_echo "$BOOT_JDK" >&6; } 25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25772 $as_echo_n "checking Boot JDK version... " >&6; } 25773 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25775 $as_echo "$BOOT_JDK_VERSION" >&6; } 25776 fi # end check jdk version 25777 fi # end check javac 25778 fi # end check java 25779 fi # end check boot jdk found 25780 fi 25781 25782 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25783 # Having specified an argument which is incorrect will produce an instant failure; 25784 # we should not go on looking 25785 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25786 fi 25787 25788 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25789 25790 if test "x$BOOT_JDK_FOUND" = xno; then 25791 # Now execute the test 25792 25793 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25794 # First check at user selected default 25795 25796 if test "x$BOOT_JDK_FOUND" = xno; then 25797 # Now execute the test 25798 25799 if test -x /usr/libexec/java_home; then 25800 BOOT_JDK=`/usr/libexec/java_home ` 25801 BOOT_JDK_FOUND=maybe 25802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25803 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25804 fi 25805 25806 25807 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25808 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25809 # Do we have a bin/java? 25810 if test ! -x "$BOOT_JDK/bin/java"; then 25811 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25813 BOOT_JDK_FOUND=no 25814 else 25815 # Do we have a bin/javac? 25816 if test ! -x "$BOOT_JDK/bin/javac"; then 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25819 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25820 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25821 BOOT_JDK_FOUND=no 25822 else 25823 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25824 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25825 25826 # Extra M4 quote needed to protect [] in grep expression. 25827 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25828 if test "x$FOUND_CORRECT_VERSION" = x; then 25829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25832 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25833 BOOT_JDK_FOUND=no 25834 else 25835 # We're done! :-) 25836 BOOT_JDK_FOUND=yes 25837 25838 # Only process if variable expands to non-empty 25839 25840 if test "x$BOOT_JDK" != x; then 25841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25842 25843 # Input might be given as Windows format, start by converting to 25844 # unix format. 25845 path="$BOOT_JDK" 25846 new_path=`$CYGPATH -u "$path"` 25847 25848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25851 # "foo.exe" is OK but "foo" is an error. 25852 # 25853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25854 # It is also a way to make sure we got the proper file name for the real test later on. 25855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25856 if test "x$test_shortpath" = x; then 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25859 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25860 fi 25861 25862 # Call helper function which possibly converts this using DOS-style short mode. 25863 # If so, the updated path is stored in $new_path. 25864 25865 input_path="$new_path" 25866 # Check if we need to convert this using DOS-style short mode. If the path 25867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25868 # take no chances and rewrite it. 25869 # Note: m4 eats our [], so we need to use [ and ] instead. 25870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25871 if test "x$has_forbidden_chars" != x; then 25872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25876 # Going to short mode and back again did indeed matter. Since short mode is 25877 # case insensitive, let's make it lowercase to improve readability. 25878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25879 # Now convert it back to Unix-style (cygpath) 25880 input_path=`$CYGPATH -u "$shortmode_path"` 25881 new_path="$input_path" 25882 fi 25883 fi 25884 25885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25886 if test "x$test_cygdrive_prefix" = x; then 25887 # As a simple fix, exclude /usr/bin since it's not a real path. 25888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25890 # a path prefixed by /cygdrive for fixpath to work. 25891 new_path="$CYGWIN_ROOT_PATH$input_path" 25892 fi 25893 fi 25894 25895 25896 if test "x$path" != "x$new_path"; then 25897 BOOT_JDK="$new_path" 25898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25899 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25900 fi 25901 25902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25903 25904 path="$BOOT_JDK" 25905 has_colon=`$ECHO $path | $GREP ^.:` 25906 new_path="$path" 25907 if test "x$has_colon" = x; then 25908 # Not in mixed or Windows style, start by that. 25909 new_path=`cmd //c echo $path` 25910 fi 25911 25912 25913 input_path="$new_path" 25914 # Check if we need to convert this using DOS-style short mode. If the path 25915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25916 # take no chances and rewrite it. 25917 # Note: m4 eats our [], so we need to use [ and ] instead. 25918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25919 if test "x$has_forbidden_chars" != x; then 25920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25922 fi 25923 25924 25925 windows_path="$new_path" 25926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25927 unix_path=`$CYGPATH -u "$windows_path"` 25928 new_path="$unix_path" 25929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25931 new_path="$unix_path" 25932 fi 25933 25934 if test "x$path" != "x$new_path"; then 25935 BOOT_JDK="$new_path" 25936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25937 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25938 fi 25939 25940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25942 25943 else 25944 # We're on a unix platform. Hooray! :) 25945 path="$BOOT_JDK" 25946 has_space=`$ECHO "$path" | $GREP " "` 25947 if test "x$has_space" != x; then 25948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25949 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25951 fi 25952 25953 # Use eval to expand a potential ~ 25954 eval path="$path" 25955 if test ! -f "$path" && test ! -d "$path"; then 25956 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25957 fi 25958 25959 if test -d "$path"; then 25960 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25961 else 25962 dir="`$DIRNAME "$path"`" 25963 base="`$BASENAME "$path"`" 25964 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25965 fi 25966 fi 25967 fi 25968 25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25970 $as_echo_n "checking for Boot JDK... " >&6; } 25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25972 $as_echo "$BOOT_JDK" >&6; } 25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25974 $as_echo_n "checking Boot JDK version... " >&6; } 25975 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25977 $as_echo "$BOOT_JDK_VERSION" >&6; } 25978 fi # end check jdk version 25979 fi # end check javac 25980 fi # end check java 25981 fi # end check boot jdk found 25982 fi 25983 25984 # If that did not work out (e.g. too old), try explicit versions instead 25985 25986 if test "x$BOOT_JDK_FOUND" = xno; then 25987 # Now execute the test 25988 25989 if test -x /usr/libexec/java_home; then 25990 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25991 BOOT_JDK_FOUND=maybe 25992 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25993 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25994 fi 25995 25996 25997 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25998 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25999 # Do we have a bin/java? 26000 if test ! -x "$BOOT_JDK/bin/java"; then 26001 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26002 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26003 BOOT_JDK_FOUND=no 26004 else 26005 # Do we have a bin/javac? 26006 if test ! -x "$BOOT_JDK/bin/javac"; then 26007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26009 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26010 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26011 BOOT_JDK_FOUND=no 26012 else 26013 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26014 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26015 26016 # Extra M4 quote needed to protect [] in grep expression. 26017 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26018 if test "x$FOUND_CORRECT_VERSION" = x; then 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26021 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26022 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26023 BOOT_JDK_FOUND=no 26024 else 26025 # We're done! :-) 26026 BOOT_JDK_FOUND=yes 26027 26028 # Only process if variable expands to non-empty 26029 26030 if test "x$BOOT_JDK" != x; then 26031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26032 26033 # Input might be given as Windows format, start by converting to 26034 # unix format. 26035 path="$BOOT_JDK" 26036 new_path=`$CYGPATH -u "$path"` 26037 26038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26041 # "foo.exe" is OK but "foo" is an error. 26042 # 26043 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26044 # It is also a way to make sure we got the proper file name for the real test later on. 26045 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26046 if test "x$test_shortpath" = x; then 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26049 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26050 fi 26051 26052 # Call helper function which possibly converts this using DOS-style short mode. 26053 # If so, the updated path is stored in $new_path. 26054 26055 input_path="$new_path" 26056 # Check if we need to convert this using DOS-style short mode. If the path 26057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26058 # take no chances and rewrite it. 26059 # Note: m4 eats our [], so we need to use [ and ] instead. 26060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26061 if test "x$has_forbidden_chars" != x; then 26062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26066 # Going to short mode and back again did indeed matter. Since short mode is 26067 # case insensitive, let's make it lowercase to improve readability. 26068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26069 # Now convert it back to Unix-style (cygpath) 26070 input_path=`$CYGPATH -u "$shortmode_path"` 26071 new_path="$input_path" 26072 fi 26073 fi 26074 26075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26076 if test "x$test_cygdrive_prefix" = x; then 26077 # As a simple fix, exclude /usr/bin since it's not a real path. 26078 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26080 # a path prefixed by /cygdrive for fixpath to work. 26081 new_path="$CYGWIN_ROOT_PATH$input_path" 26082 fi 26083 fi 26084 26085 26086 if test "x$path" != "x$new_path"; then 26087 BOOT_JDK="$new_path" 26088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26089 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26090 fi 26091 26092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26093 26094 path="$BOOT_JDK" 26095 has_colon=`$ECHO $path | $GREP ^.:` 26096 new_path="$path" 26097 if test "x$has_colon" = x; then 26098 # Not in mixed or Windows style, start by that. 26099 new_path=`cmd //c echo $path` 26100 fi 26101 26102 26103 input_path="$new_path" 26104 # Check if we need to convert this using DOS-style short mode. If the path 26105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26106 # take no chances and rewrite it. 26107 # Note: m4 eats our [], so we need to use [ and ] instead. 26108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26109 if test "x$has_forbidden_chars" != x; then 26110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26111 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26112 fi 26113 26114 26115 windows_path="$new_path" 26116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26117 unix_path=`$CYGPATH -u "$windows_path"` 26118 new_path="$unix_path" 26119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26121 new_path="$unix_path" 26122 fi 26123 26124 if test "x$path" != "x$new_path"; then 26125 BOOT_JDK="$new_path" 26126 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26127 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26128 fi 26129 26130 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26131 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26132 26133 else 26134 # We're on a unix platform. Hooray! :) 26135 path="$BOOT_JDK" 26136 has_space=`$ECHO "$path" | $GREP " "` 26137 if test "x$has_space" != x; then 26138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26139 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26140 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26141 fi 26142 26143 # Use eval to expand a potential ~ 26144 eval path="$path" 26145 if test ! -f "$path" && test ! -d "$path"; then 26146 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26147 fi 26148 26149 if test -d "$path"; then 26150 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26151 else 26152 dir="`$DIRNAME "$path"`" 26153 base="`$BASENAME "$path"`" 26154 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26155 fi 26156 fi 26157 fi 26158 26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26160 $as_echo_n "checking for Boot JDK... " >&6; } 26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26162 $as_echo "$BOOT_JDK" >&6; } 26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26164 $as_echo_n "checking Boot JDK version... " >&6; } 26165 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26167 $as_echo "$BOOT_JDK_VERSION" >&6; } 26168 fi # end check jdk version 26169 fi # end check javac 26170 fi # end check java 26171 fi # end check boot jdk found 26172 fi 26173 26174 26175 if test "x$BOOT_JDK_FOUND" = xno; then 26176 # Now execute the test 26177 26178 if test -x /usr/libexec/java_home; then 26179 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26180 BOOT_JDK_FOUND=maybe 26181 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26182 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26183 fi 26184 26185 26186 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26187 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26188 # Do we have a bin/java? 26189 if test ! -x "$BOOT_JDK/bin/java"; then 26190 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26192 BOOT_JDK_FOUND=no 26193 else 26194 # Do we have a bin/javac? 26195 if test ! -x "$BOOT_JDK/bin/javac"; then 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26198 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26199 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26200 BOOT_JDK_FOUND=no 26201 else 26202 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26203 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26204 26205 # Extra M4 quote needed to protect [] in grep expression. 26206 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26207 if test "x$FOUND_CORRECT_VERSION" = x; then 26208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26210 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26211 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26212 BOOT_JDK_FOUND=no 26213 else 26214 # We're done! :-) 26215 BOOT_JDK_FOUND=yes 26216 26217 # Only process if variable expands to non-empty 26218 26219 if test "x$BOOT_JDK" != x; then 26220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26221 26222 # Input might be given as Windows format, start by converting to 26223 # unix format. 26224 path="$BOOT_JDK" 26225 new_path=`$CYGPATH -u "$path"` 26226 26227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26230 # "foo.exe" is OK but "foo" is an error. 26231 # 26232 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26233 # It is also a way to make sure we got the proper file name for the real test later on. 26234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26235 if test "x$test_shortpath" = x; then 26236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26238 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26239 fi 26240 26241 # Call helper function which possibly converts this using DOS-style short mode. 26242 # If so, the updated path is stored in $new_path. 26243 26244 input_path="$new_path" 26245 # Check if we need to convert this using DOS-style short mode. If the path 26246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26247 # take no chances and rewrite it. 26248 # Note: m4 eats our [], so we need to use [ and ] instead. 26249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26250 if test "x$has_forbidden_chars" != x; then 26251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26255 # Going to short mode and back again did indeed matter. Since short mode is 26256 # case insensitive, let's make it lowercase to improve readability. 26257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26258 # Now convert it back to Unix-style (cygpath) 26259 input_path=`$CYGPATH -u "$shortmode_path"` 26260 new_path="$input_path" 26261 fi 26262 fi 26263 26264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26265 if test "x$test_cygdrive_prefix" = x; then 26266 # As a simple fix, exclude /usr/bin since it's not a real path. 26267 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26269 # a path prefixed by /cygdrive for fixpath to work. 26270 new_path="$CYGWIN_ROOT_PATH$input_path" 26271 fi 26272 fi 26273 26274 26275 if test "x$path" != "x$new_path"; then 26276 BOOT_JDK="$new_path" 26277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26279 fi 26280 26281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26282 26283 path="$BOOT_JDK" 26284 has_colon=`$ECHO $path | $GREP ^.:` 26285 new_path="$path" 26286 if test "x$has_colon" = x; then 26287 # Not in mixed or Windows style, start by that. 26288 new_path=`cmd //c echo $path` 26289 fi 26290 26291 26292 input_path="$new_path" 26293 # Check if we need to convert this using DOS-style short mode. If the path 26294 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26295 # take no chances and rewrite it. 26296 # Note: m4 eats our [], so we need to use [ and ] instead. 26297 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26298 if test "x$has_forbidden_chars" != x; then 26299 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26300 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26301 fi 26302 26303 26304 windows_path="$new_path" 26305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26306 unix_path=`$CYGPATH -u "$windows_path"` 26307 new_path="$unix_path" 26308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26310 new_path="$unix_path" 26311 fi 26312 26313 if test "x$path" != "x$new_path"; then 26314 BOOT_JDK="$new_path" 26315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26316 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26317 fi 26318 26319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26321 26322 else 26323 # We're on a unix platform. Hooray! :) 26324 path="$BOOT_JDK" 26325 has_space=`$ECHO "$path" | $GREP " "` 26326 if test "x$has_space" != x; then 26327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26328 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26329 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26330 fi 26331 26332 # Use eval to expand a potential ~ 26333 eval path="$path" 26334 if test ! -f "$path" && test ! -d "$path"; then 26335 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26336 fi 26337 26338 if test -d "$path"; then 26339 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26340 else 26341 dir="`$DIRNAME "$path"`" 26342 base="`$BASENAME "$path"`" 26343 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26344 fi 26345 fi 26346 fi 26347 26348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26349 $as_echo_n "checking for Boot JDK... " >&6; } 26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26351 $as_echo "$BOOT_JDK" >&6; } 26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26353 $as_echo_n "checking Boot JDK version... " >&6; } 26354 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26356 $as_echo "$BOOT_JDK_VERSION" >&6; } 26357 fi # end check jdk version 26358 fi # end check javac 26359 fi # end check java 26360 fi # end check boot jdk found 26361 fi 26362 26363 26364 if test "x$BOOT_JDK_FOUND" = xno; then 26365 # Now execute the test 26366 26367 if test -x /usr/libexec/java_home; then 26368 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26369 BOOT_JDK_FOUND=maybe 26370 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26371 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26372 fi 26373 26374 26375 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26376 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26377 # Do we have a bin/java? 26378 if test ! -x "$BOOT_JDK/bin/java"; then 26379 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26380 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26381 BOOT_JDK_FOUND=no 26382 else 26383 # Do we have a bin/javac? 26384 if test ! -x "$BOOT_JDK/bin/javac"; then 26385 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26386 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26387 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26388 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26389 BOOT_JDK_FOUND=no 26390 else 26391 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26392 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26393 26394 # Extra M4 quote needed to protect [] in grep expression. 26395 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26396 if test "x$FOUND_CORRECT_VERSION" = x; then 26397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26399 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26400 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26401 BOOT_JDK_FOUND=no 26402 else 26403 # We're done! :-) 26404 BOOT_JDK_FOUND=yes 26405 26406 # Only process if variable expands to non-empty 26407 26408 if test "x$BOOT_JDK" != x; then 26409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26410 26411 # Input might be given as Windows format, start by converting to 26412 # unix format. 26413 path="$BOOT_JDK" 26414 new_path=`$CYGPATH -u "$path"` 26415 26416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26419 # "foo.exe" is OK but "foo" is an error. 26420 # 26421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26422 # It is also a way to make sure we got the proper file name for the real test later on. 26423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26424 if test "x$test_shortpath" = x; then 26425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26426 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26427 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26428 fi 26429 26430 # Call helper function which possibly converts this using DOS-style short mode. 26431 # If so, the updated path is stored in $new_path. 26432 26433 input_path="$new_path" 26434 # Check if we need to convert this using DOS-style short mode. If the path 26435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26436 # take no chances and rewrite it. 26437 # Note: m4 eats our [], so we need to use [ and ] instead. 26438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26439 if test "x$has_forbidden_chars" != x; then 26440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26444 # Going to short mode and back again did indeed matter. Since short mode is 26445 # case insensitive, let's make it lowercase to improve readability. 26446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26447 # Now convert it back to Unix-style (cygpath) 26448 input_path=`$CYGPATH -u "$shortmode_path"` 26449 new_path="$input_path" 26450 fi 26451 fi 26452 26453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26454 if test "x$test_cygdrive_prefix" = x; then 26455 # As a simple fix, exclude /usr/bin since it's not a real path. 26456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26458 # a path prefixed by /cygdrive for fixpath to work. 26459 new_path="$CYGWIN_ROOT_PATH$input_path" 26460 fi 26461 fi 26462 26463 26464 if test "x$path" != "x$new_path"; then 26465 BOOT_JDK="$new_path" 26466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26467 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26468 fi 26469 26470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26471 26472 path="$BOOT_JDK" 26473 has_colon=`$ECHO $path | $GREP ^.:` 26474 new_path="$path" 26475 if test "x$has_colon" = x; then 26476 # Not in mixed or Windows style, start by that. 26477 new_path=`cmd //c echo $path` 26478 fi 26479 26480 26481 input_path="$new_path" 26482 # Check if we need to convert this using DOS-style short mode. If the path 26483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26484 # take no chances and rewrite it. 26485 # Note: m4 eats our [], so we need to use [ and ] instead. 26486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26487 if test "x$has_forbidden_chars" != x; then 26488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26490 fi 26491 26492 26493 windows_path="$new_path" 26494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26495 unix_path=`$CYGPATH -u "$windows_path"` 26496 new_path="$unix_path" 26497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26499 new_path="$unix_path" 26500 fi 26501 26502 if test "x$path" != "x$new_path"; then 26503 BOOT_JDK="$new_path" 26504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26505 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26506 fi 26507 26508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26510 26511 else 26512 # We're on a unix platform. Hooray! :) 26513 path="$BOOT_JDK" 26514 has_space=`$ECHO "$path" | $GREP " "` 26515 if test "x$has_space" != x; then 26516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26519 fi 26520 26521 # Use eval to expand a potential ~ 26522 eval path="$path" 26523 if test ! -f "$path" && test ! -d "$path"; then 26524 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26525 fi 26526 26527 if test -d "$path"; then 26528 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26529 else 26530 dir="`$DIRNAME "$path"`" 26531 base="`$BASENAME "$path"`" 26532 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26533 fi 26534 fi 26535 fi 26536 26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26538 $as_echo_n "checking for Boot JDK... " >&6; } 26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26540 $as_echo "$BOOT_JDK" >&6; } 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26542 $as_echo_n "checking Boot JDK version... " >&6; } 26543 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26545 $as_echo "$BOOT_JDK_VERSION" >&6; } 26546 fi # end check jdk version 26547 fi # end check javac 26548 fi # end check java 26549 fi # end check boot jdk found 26550 fi 26551 26552 fi 26553 26554 26555 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26556 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26557 # Do we have a bin/java? 26558 if test ! -x "$BOOT_JDK/bin/java"; then 26559 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26561 BOOT_JDK_FOUND=no 26562 else 26563 # Do we have a bin/javac? 26564 if test ! -x "$BOOT_JDK/bin/javac"; then 26565 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26567 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26568 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26569 BOOT_JDK_FOUND=no 26570 else 26571 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26572 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26573 26574 # Extra M4 quote needed to protect [] in grep expression. 26575 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26576 if test "x$FOUND_CORRECT_VERSION" = x; then 26577 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26578 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26579 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26580 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26581 BOOT_JDK_FOUND=no 26582 else 26583 # We're done! :-) 26584 BOOT_JDK_FOUND=yes 26585 26586 # Only process if variable expands to non-empty 26587 26588 if test "x$BOOT_JDK" != x; then 26589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26590 26591 # Input might be given as Windows format, start by converting to 26592 # unix format. 26593 path="$BOOT_JDK" 26594 new_path=`$CYGPATH -u "$path"` 26595 26596 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26597 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26598 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26599 # "foo.exe" is OK but "foo" is an error. 26600 # 26601 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26602 # It is also a way to make sure we got the proper file name for the real test later on. 26603 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26604 if test "x$test_shortpath" = x; then 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26606 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26607 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26608 fi 26609 26610 # Call helper function which possibly converts this using DOS-style short mode. 26611 # If so, the updated path is stored in $new_path. 26612 26613 input_path="$new_path" 26614 # Check if we need to convert this using DOS-style short mode. If the path 26615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26616 # take no chances and rewrite it. 26617 # Note: m4 eats our [], so we need to use [ and ] instead. 26618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26619 if test "x$has_forbidden_chars" != x; then 26620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26621 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26622 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26623 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26624 # Going to short mode and back again did indeed matter. Since short mode is 26625 # case insensitive, let's make it lowercase to improve readability. 26626 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26627 # Now convert it back to Unix-style (cygpath) 26628 input_path=`$CYGPATH -u "$shortmode_path"` 26629 new_path="$input_path" 26630 fi 26631 fi 26632 26633 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26634 if test "x$test_cygdrive_prefix" = x; then 26635 # As a simple fix, exclude /usr/bin since it's not a real path. 26636 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26637 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26638 # a path prefixed by /cygdrive for fixpath to work. 26639 new_path="$CYGWIN_ROOT_PATH$input_path" 26640 fi 26641 fi 26642 26643 26644 if test "x$path" != "x$new_path"; then 26645 BOOT_JDK="$new_path" 26646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26647 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26648 fi 26649 26650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26651 26652 path="$BOOT_JDK" 26653 has_colon=`$ECHO $path | $GREP ^.:` 26654 new_path="$path" 26655 if test "x$has_colon" = x; then 26656 # Not in mixed or Windows style, start by that. 26657 new_path=`cmd //c echo $path` 26658 fi 26659 26660 26661 input_path="$new_path" 26662 # Check if we need to convert this using DOS-style short mode. If the path 26663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26664 # take no chances and rewrite it. 26665 # Note: m4 eats our [], so we need to use [ and ] instead. 26666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26667 if test "x$has_forbidden_chars" != x; then 26668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26669 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26670 fi 26671 26672 26673 windows_path="$new_path" 26674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26675 unix_path=`$CYGPATH -u "$windows_path"` 26676 new_path="$unix_path" 26677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26679 new_path="$unix_path" 26680 fi 26681 26682 if test "x$path" != "x$new_path"; then 26683 BOOT_JDK="$new_path" 26684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26685 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26686 fi 26687 26688 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26689 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26690 26691 else 26692 # We're on a unix platform. Hooray! :) 26693 path="$BOOT_JDK" 26694 has_space=`$ECHO "$path" | $GREP " "` 26695 if test "x$has_space" != x; then 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26697 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26698 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26699 fi 26700 26701 # Use eval to expand a potential ~ 26702 eval path="$path" 26703 if test ! -f "$path" && test ! -d "$path"; then 26704 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26705 fi 26706 26707 if test -d "$path"; then 26708 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26709 else 26710 dir="`$DIRNAME "$path"`" 26711 base="`$BASENAME "$path"`" 26712 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26713 fi 26714 fi 26715 fi 26716 26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26718 $as_echo_n "checking for Boot JDK... " >&6; } 26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26720 $as_echo "$BOOT_JDK" >&6; } 26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26722 $as_echo_n "checking Boot JDK version... " >&6; } 26723 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26725 $as_echo "$BOOT_JDK_VERSION" >&6; } 26726 fi # end check jdk version 26727 fi # end check javac 26728 fi # end check java 26729 fi # end check boot jdk found 26730 fi 26731 26732 26733 # Test: Is $JAVA_HOME set? 26734 26735 if test "x$BOOT_JDK_FOUND" = xno; then 26736 # Now execute the test 26737 26738 if test "x$JAVA_HOME" != x; then 26739 JAVA_HOME_PROCESSED="$JAVA_HOME" 26740 26741 # Only process if variable expands to non-empty 26742 26743 if test "x$JAVA_HOME_PROCESSED" != x; then 26744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26745 26746 # Input might be given as Windows format, start by converting to 26747 # unix format. 26748 path="$JAVA_HOME_PROCESSED" 26749 new_path=`$CYGPATH -u "$path"` 26750 26751 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26752 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26753 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26754 # "foo.exe" is OK but "foo" is an error. 26755 # 26756 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26757 # It is also a way to make sure we got the proper file name for the real test later on. 26758 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26759 if test "x$test_shortpath" = x; then 26760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26761 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26762 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26763 fi 26764 26765 # Call helper function which possibly converts this using DOS-style short mode. 26766 # If so, the updated path is stored in $new_path. 26767 26768 input_path="$new_path" 26769 # Check if we need to convert this using DOS-style short mode. If the path 26770 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26771 # take no chances and rewrite it. 26772 # Note: m4 eats our [], so we need to use [ and ] instead. 26773 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26774 if test "x$has_forbidden_chars" != x; then 26775 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26776 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26777 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26778 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26779 # Going to short mode and back again did indeed matter. Since short mode is 26780 # case insensitive, let's make it lowercase to improve readability. 26781 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26782 # Now convert it back to Unix-style (cygpath) 26783 input_path=`$CYGPATH -u "$shortmode_path"` 26784 new_path="$input_path" 26785 fi 26786 fi 26787 26788 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26789 if test "x$test_cygdrive_prefix" = x; then 26790 # As a simple fix, exclude /usr/bin since it's not a real path. 26791 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26792 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26793 # a path prefixed by /cygdrive for fixpath to work. 26794 new_path="$CYGWIN_ROOT_PATH$input_path" 26795 fi 26796 fi 26797 26798 26799 if test "x$path" != "x$new_path"; then 26800 JAVA_HOME_PROCESSED="$new_path" 26801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26802 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26803 fi 26804 26805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26806 26807 path="$JAVA_HOME_PROCESSED" 26808 has_colon=`$ECHO $path | $GREP ^.:` 26809 new_path="$path" 26810 if test "x$has_colon" = x; then 26811 # Not in mixed or Windows style, start by that. 26812 new_path=`cmd //c echo $path` 26813 fi 26814 26815 26816 input_path="$new_path" 26817 # Check if we need to convert this using DOS-style short mode. If the path 26818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26819 # take no chances and rewrite it. 26820 # Note: m4 eats our [], so we need to use [ and ] instead. 26821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26822 if test "x$has_forbidden_chars" != x; then 26823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26824 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26825 fi 26826 26827 26828 windows_path="$new_path" 26829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26830 unix_path=`$CYGPATH -u "$windows_path"` 26831 new_path="$unix_path" 26832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26834 new_path="$unix_path" 26835 fi 26836 26837 if test "x$path" != "x$new_path"; then 26838 JAVA_HOME_PROCESSED="$new_path" 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26840 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26841 fi 26842 26843 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26844 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26845 26846 else 26847 # We're on a unix platform. Hooray! :) 26848 path="$JAVA_HOME_PROCESSED" 26849 has_space=`$ECHO "$path" | $GREP " "` 26850 if test "x$has_space" != x; then 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26852 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26853 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26854 fi 26855 26856 # Use eval to expand a potential ~ 26857 eval path="$path" 26858 if test ! -f "$path" && test ! -d "$path"; then 26859 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26860 fi 26861 26862 if test -d "$path"; then 26863 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26864 else 26865 dir="`$DIRNAME "$path"`" 26866 base="`$BASENAME "$path"`" 26867 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26868 fi 26869 fi 26870 fi 26871 26872 if test ! -d "$JAVA_HOME_PROCESSED"; then 26873 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26874 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26875 else 26876 # Aha, the user has set a JAVA_HOME 26877 # let us use that as the Boot JDK. 26878 BOOT_JDK="$JAVA_HOME_PROCESSED" 26879 BOOT_JDK_FOUND=maybe 26880 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26881 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26882 fi 26883 fi 26884 26885 26886 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26887 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26888 # Do we have a bin/java? 26889 if test ! -x "$BOOT_JDK/bin/java"; then 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26891 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26892 BOOT_JDK_FOUND=no 26893 else 26894 # Do we have a bin/javac? 26895 if test ! -x "$BOOT_JDK/bin/javac"; then 26896 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26899 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26900 BOOT_JDK_FOUND=no 26901 else 26902 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26903 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26904 26905 # Extra M4 quote needed to protect [] in grep expression. 26906 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26907 if test "x$FOUND_CORRECT_VERSION" = x; then 26908 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26909 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26910 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26911 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26912 BOOT_JDK_FOUND=no 26913 else 26914 # We're done! :-) 26915 BOOT_JDK_FOUND=yes 26916 26917 # Only process if variable expands to non-empty 26918 26919 if test "x$BOOT_JDK" != x; then 26920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26921 26922 # Input might be given as Windows format, start by converting to 26923 # unix format. 26924 path="$BOOT_JDK" 26925 new_path=`$CYGPATH -u "$path"` 26926 26927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26930 # "foo.exe" is OK but "foo" is an error. 26931 # 26932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26933 # It is also a way to make sure we got the proper file name for the real test later on. 26934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26935 if test "x$test_shortpath" = x; then 26936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26938 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26939 fi 26940 26941 # Call helper function which possibly converts this using DOS-style short mode. 26942 # If so, the updated path is stored in $new_path. 26943 26944 input_path="$new_path" 26945 # Check if we need to convert this using DOS-style short mode. If the path 26946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26947 # take no chances and rewrite it. 26948 # Note: m4 eats our [], so we need to use [ and ] instead. 26949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26950 if test "x$has_forbidden_chars" != x; then 26951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26955 # Going to short mode and back again did indeed matter. Since short mode is 26956 # case insensitive, let's make it lowercase to improve readability. 26957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26958 # Now convert it back to Unix-style (cygpath) 26959 input_path=`$CYGPATH -u "$shortmode_path"` 26960 new_path="$input_path" 26961 fi 26962 fi 26963 26964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26965 if test "x$test_cygdrive_prefix" = x; then 26966 # As a simple fix, exclude /usr/bin since it's not a real path. 26967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26969 # a path prefixed by /cygdrive for fixpath to work. 26970 new_path="$CYGWIN_ROOT_PATH$input_path" 26971 fi 26972 fi 26973 26974 26975 if test "x$path" != "x$new_path"; then 26976 BOOT_JDK="$new_path" 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26978 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26979 fi 26980 26981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26982 26983 path="$BOOT_JDK" 26984 has_colon=`$ECHO $path | $GREP ^.:` 26985 new_path="$path" 26986 if test "x$has_colon" = x; then 26987 # Not in mixed or Windows style, start by that. 26988 new_path=`cmd //c echo $path` 26989 fi 26990 26991 26992 input_path="$new_path" 26993 # Check if we need to convert this using DOS-style short mode. If the path 26994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26995 # take no chances and rewrite it. 26996 # Note: m4 eats our [], so we need to use [ and ] instead. 26997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26998 if test "x$has_forbidden_chars" != x; then 26999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27001 fi 27002 27003 27004 windows_path="$new_path" 27005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27006 unix_path=`$CYGPATH -u "$windows_path"` 27007 new_path="$unix_path" 27008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27010 new_path="$unix_path" 27011 fi 27012 27013 if test "x$path" != "x$new_path"; then 27014 BOOT_JDK="$new_path" 27015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27016 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27017 fi 27018 27019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27021 27022 else 27023 # We're on a unix platform. Hooray! :) 27024 path="$BOOT_JDK" 27025 has_space=`$ECHO "$path" | $GREP " "` 27026 if test "x$has_space" != x; then 27027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27028 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27030 fi 27031 27032 # Use eval to expand a potential ~ 27033 eval path="$path" 27034 if test ! -f "$path" && test ! -d "$path"; then 27035 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27036 fi 27037 27038 if test -d "$path"; then 27039 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27040 else 27041 dir="`$DIRNAME "$path"`" 27042 base="`$BASENAME "$path"`" 27043 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27044 fi 27045 fi 27046 fi 27047 27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27049 $as_echo_n "checking for Boot JDK... " >&6; } 27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27051 $as_echo "$BOOT_JDK" >&6; } 27052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27053 $as_echo_n "checking Boot JDK version... " >&6; } 27054 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27056 $as_echo "$BOOT_JDK_VERSION" >&6; } 27057 fi # end check jdk version 27058 fi # end check javac 27059 fi # end check java 27060 fi # end check boot jdk found 27061 fi 27062 27063 27064 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 27065 27066 if test "x$BOOT_JDK_FOUND" = xno; then 27067 # Now execute the test 27068 27069 # Extract the first word of "javac", so it can be a program name with args. 27070 set dummy javac; ac_word=$2 27071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27072 $as_echo_n "checking for $ac_word... " >&6; } 27073 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 27074 $as_echo_n "(cached) " >&6 27075 else 27076 case $JAVAC_CHECK in 27077 [\\/]* | ?:[\\/]*) 27078 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 27079 ;; 27080 *) 27081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27082 for as_dir in $PATH 27083 do 27084 IFS=$as_save_IFS 27085 test -z "$as_dir" && as_dir=. 27086 for ac_exec_ext in '' $ac_executable_extensions; do 27087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27088 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27090 break 2 27091 fi 27092 done 27093 done 27094 IFS=$as_save_IFS 27095 27096 ;; 27097 esac 27098 fi 27099 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27100 if test -n "$JAVAC_CHECK"; then 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27102 $as_echo "$JAVAC_CHECK" >&6; } 27103 else 27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27105 $as_echo "no" >&6; } 27106 fi 27107 27108 27109 # Extract the first word of "java", so it can be a program name with args. 27110 set dummy java; ac_word=$2 27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27112 $as_echo_n "checking for $ac_word... " >&6; } 27113 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27114 $as_echo_n "(cached) " >&6 27115 else 27116 case $JAVA_CHECK in 27117 [\\/]* | ?:[\\/]*) 27118 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27119 ;; 27120 *) 27121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27122 for as_dir in $PATH 27123 do 27124 IFS=$as_save_IFS 27125 test -z "$as_dir" && as_dir=. 27126 for ac_exec_ext in '' $ac_executable_extensions; do 27127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27128 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27130 break 2 27131 fi 27132 done 27133 done 27134 IFS=$as_save_IFS 27135 27136 ;; 27137 esac 27138 fi 27139 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27140 if test -n "$JAVA_CHECK"; then 27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27142 $as_echo "$JAVA_CHECK" >&6; } 27143 else 27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27145 $as_echo "no" >&6; } 27146 fi 27147 27148 27149 BINARY="$JAVAC_CHECK" 27150 if test "x$JAVAC_CHECK" = x; then 27151 BINARY="$JAVA_CHECK" 27152 fi 27153 if test "x$BINARY" != x; then 27154 # So there is a java(c) binary, it might be part of a JDK. 27155 # Lets find the JDK/JRE directory by following symbolic links. 27156 # Linux/GNU systems often have links from /usr/bin/java to 27157 # /etc/alternatives/java to the real JDK binary. 27158 27159 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27160 # Follow a chain of symbolic links. Use readlink 27161 # where it exists, else fall back to horribly 27162 # complicated shell code. 27163 if test "x$READLINK_TESTED" != yes; then 27164 # On MacOSX there is a readlink tool with a different 27165 # purpose than the GNU readlink tool. Check the found readlink. 27166 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27167 if test "x$ISGNU" = x; then 27168 # A readlink that we do not know how to use. 27169 # Are there other non-GNU readlinks out there? 27170 READLINK_TESTED=yes 27171 READLINK= 27172 fi 27173 fi 27174 27175 if test "x$READLINK" != x; then 27176 BINARY=`$READLINK -f $BINARY` 27177 else 27178 # Save the current directory for restoring afterwards 27179 STARTDIR=$PWD 27180 COUNTER=0 27181 sym_link_dir=`$DIRNAME $BINARY` 27182 sym_link_file=`$BASENAME $BINARY` 27183 cd $sym_link_dir 27184 # Use -P flag to resolve symlinks in directories. 27185 cd `$THEPWDCMD -P` 27186 sym_link_dir=`$THEPWDCMD -P` 27187 # Resolve file symlinks 27188 while test $COUNTER -lt 20; do 27189 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27190 if test "x$ISLINK" == x; then 27191 # This is not a symbolic link! We are done! 27192 break 27193 fi 27194 # Again resolve directory symlinks since the target of the just found 27195 # link could be in a different directory 27196 cd `$DIRNAME $ISLINK` 27197 sym_link_dir=`$THEPWDCMD -P` 27198 sym_link_file=`$BASENAME $ISLINK` 27199 let COUNTER=COUNTER+1 27200 done 27201 cd $STARTDIR 27202 BINARY=$sym_link_dir/$sym_link_file 27203 fi 27204 fi 27205 27206 BOOT_JDK=`dirname "$BINARY"` 27207 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27208 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27209 # Looks like we found ourselves an JDK 27210 BOOT_JDK_FOUND=maybe 27211 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27212 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27213 fi 27214 fi 27215 27216 27217 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27218 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27219 # Do we have a bin/java? 27220 if test ! -x "$BOOT_JDK/bin/java"; then 27221 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27222 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27223 BOOT_JDK_FOUND=no 27224 else 27225 # Do we have a bin/javac? 27226 if test ! -x "$BOOT_JDK/bin/javac"; then 27227 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27229 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27230 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27231 BOOT_JDK_FOUND=no 27232 else 27233 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27234 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27235 27236 # Extra M4 quote needed to protect [] in grep expression. 27237 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27238 if test "x$FOUND_CORRECT_VERSION" = x; then 27239 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27240 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27241 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27242 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27243 BOOT_JDK_FOUND=no 27244 else 27245 # We're done! :-) 27246 BOOT_JDK_FOUND=yes 27247 27248 # Only process if variable expands to non-empty 27249 27250 if test "x$BOOT_JDK" != x; then 27251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27252 27253 # Input might be given as Windows format, start by converting to 27254 # unix format. 27255 path="$BOOT_JDK" 27256 new_path=`$CYGPATH -u "$path"` 27257 27258 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27259 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27260 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27261 # "foo.exe" is OK but "foo" is an error. 27262 # 27263 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27264 # It is also a way to make sure we got the proper file name for the real test later on. 27265 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27266 if test "x$test_shortpath" = x; then 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27269 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27270 fi 27271 27272 # Call helper function which possibly converts this using DOS-style short mode. 27273 # If so, the updated path is stored in $new_path. 27274 27275 input_path="$new_path" 27276 # Check if we need to convert this using DOS-style short mode. If the path 27277 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27278 # take no chances and rewrite it. 27279 # Note: m4 eats our [], so we need to use [ and ] instead. 27280 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27281 if test "x$has_forbidden_chars" != x; then 27282 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27283 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27284 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27285 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27286 # Going to short mode and back again did indeed matter. Since short mode is 27287 # case insensitive, let's make it lowercase to improve readability. 27288 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27289 # Now convert it back to Unix-style (cygpath) 27290 input_path=`$CYGPATH -u "$shortmode_path"` 27291 new_path="$input_path" 27292 fi 27293 fi 27294 27295 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27296 if test "x$test_cygdrive_prefix" = x; then 27297 # As a simple fix, exclude /usr/bin since it's not a real path. 27298 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27299 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27300 # a path prefixed by /cygdrive for fixpath to work. 27301 new_path="$CYGWIN_ROOT_PATH$input_path" 27302 fi 27303 fi 27304 27305 27306 if test "x$path" != "x$new_path"; then 27307 BOOT_JDK="$new_path" 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27309 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27310 fi 27311 27312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27313 27314 path="$BOOT_JDK" 27315 has_colon=`$ECHO $path | $GREP ^.:` 27316 new_path="$path" 27317 if test "x$has_colon" = x; then 27318 # Not in mixed or Windows style, start by that. 27319 new_path=`cmd //c echo $path` 27320 fi 27321 27322 27323 input_path="$new_path" 27324 # Check if we need to convert this using DOS-style short mode. If the path 27325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27326 # take no chances and rewrite it. 27327 # Note: m4 eats our [], so we need to use [ and ] instead. 27328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27329 if test "x$has_forbidden_chars" != x; then 27330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27331 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27332 fi 27333 27334 27335 windows_path="$new_path" 27336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27337 unix_path=`$CYGPATH -u "$windows_path"` 27338 new_path="$unix_path" 27339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27340 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27341 new_path="$unix_path" 27342 fi 27343 27344 if test "x$path" != "x$new_path"; then 27345 BOOT_JDK="$new_path" 27346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27347 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27348 fi 27349 27350 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27351 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27352 27353 else 27354 # We're on a unix platform. Hooray! :) 27355 path="$BOOT_JDK" 27356 has_space=`$ECHO "$path" | $GREP " "` 27357 if test "x$has_space" != x; then 27358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27359 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27360 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27361 fi 27362 27363 # Use eval to expand a potential ~ 27364 eval path="$path" 27365 if test ! -f "$path" && test ! -d "$path"; then 27366 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27367 fi 27368 27369 if test -d "$path"; then 27370 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27371 else 27372 dir="`$DIRNAME "$path"`" 27373 base="`$BASENAME "$path"`" 27374 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27375 fi 27376 fi 27377 fi 27378 27379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27380 $as_echo_n "checking for Boot JDK... " >&6; } 27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27382 $as_echo "$BOOT_JDK" >&6; } 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27384 $as_echo_n "checking Boot JDK version... " >&6; } 27385 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27387 $as_echo "$BOOT_JDK_VERSION" >&6; } 27388 fi # end check jdk version 27389 fi # end check javac 27390 fi # end check java 27391 fi # end check boot jdk found 27392 fi 27393 27394 27395 # Test: Is there a JDK installed in default, well-known locations? 27396 27397 if test "x$BOOT_JDK_FOUND" = xno; then 27398 # Now execute the test 27399 27400 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27401 27402 if test "x$BOOT_JDK_FOUND" = xno; then 27403 # Now execute the test 27404 27405 if test "x$ProgramW6432" != x; then 27406 VIRTUAL_DIR="$ProgramW6432/Java" 27407 27408 windows_path="$VIRTUAL_DIR" 27409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27410 unix_path=`$CYGPATH -u "$windows_path"` 27411 VIRTUAL_DIR="$unix_path" 27412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27414 VIRTUAL_DIR="$unix_path" 27415 fi 27416 27417 27418 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27419 BOOT_JDK_SUFFIX="" 27420 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27421 if test "x$ALL_JDKS_FOUND" != x; then 27422 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27423 27424 if test "x$BOOT_JDK_FOUND" = xno; then 27425 # Now execute the test 27426 27427 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27428 if test -d "$BOOT_JDK"; then 27429 BOOT_JDK_FOUND=maybe 27430 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27431 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27432 fi 27433 27434 27435 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27436 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27437 # Do we have a bin/java? 27438 if test ! -x "$BOOT_JDK/bin/java"; then 27439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27441 BOOT_JDK_FOUND=no 27442 else 27443 # Do we have a bin/javac? 27444 if test ! -x "$BOOT_JDK/bin/javac"; then 27445 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27447 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27448 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27449 BOOT_JDK_FOUND=no 27450 else 27451 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27452 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27453 27454 # Extra M4 quote needed to protect [] in grep expression. 27455 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27456 if test "x$FOUND_CORRECT_VERSION" = x; then 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27458 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27459 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27460 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27461 BOOT_JDK_FOUND=no 27462 else 27463 # We're done! :-) 27464 BOOT_JDK_FOUND=yes 27465 27466 # Only process if variable expands to non-empty 27467 27468 if test "x$BOOT_JDK" != x; then 27469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27470 27471 # Input might be given as Windows format, start by converting to 27472 # unix format. 27473 path="$BOOT_JDK" 27474 new_path=`$CYGPATH -u "$path"` 27475 27476 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27477 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27478 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27479 # "foo.exe" is OK but "foo" is an error. 27480 # 27481 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27482 # It is also a way to make sure we got the proper file name for the real test later on. 27483 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27484 if test "x$test_shortpath" = x; then 27485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27486 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27487 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27488 fi 27489 27490 # Call helper function which possibly converts this using DOS-style short mode. 27491 # If so, the updated path is stored in $new_path. 27492 27493 input_path="$new_path" 27494 # Check if we need to convert this using DOS-style short mode. If the path 27495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27496 # take no chances and rewrite it. 27497 # Note: m4 eats our [], so we need to use [ and ] instead. 27498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27499 if test "x$has_forbidden_chars" != x; then 27500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27501 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27502 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27503 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27504 # Going to short mode and back again did indeed matter. Since short mode is 27505 # case insensitive, let's make it lowercase to improve readability. 27506 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27507 # Now convert it back to Unix-style (cygpath) 27508 input_path=`$CYGPATH -u "$shortmode_path"` 27509 new_path="$input_path" 27510 fi 27511 fi 27512 27513 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27514 if test "x$test_cygdrive_prefix" = x; then 27515 # As a simple fix, exclude /usr/bin since it's not a real path. 27516 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27517 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27518 # a path prefixed by /cygdrive for fixpath to work. 27519 new_path="$CYGWIN_ROOT_PATH$input_path" 27520 fi 27521 fi 27522 27523 27524 if test "x$path" != "x$new_path"; then 27525 BOOT_JDK="$new_path" 27526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27527 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27528 fi 27529 27530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27531 27532 path="$BOOT_JDK" 27533 has_colon=`$ECHO $path | $GREP ^.:` 27534 new_path="$path" 27535 if test "x$has_colon" = x; then 27536 # Not in mixed or Windows style, start by that. 27537 new_path=`cmd //c echo $path` 27538 fi 27539 27540 27541 input_path="$new_path" 27542 # Check if we need to convert this using DOS-style short mode. If the path 27543 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27544 # take no chances and rewrite it. 27545 # Note: m4 eats our [], so we need to use [ and ] instead. 27546 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27547 if test "x$has_forbidden_chars" != x; then 27548 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27549 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27550 fi 27551 27552 27553 windows_path="$new_path" 27554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27555 unix_path=`$CYGPATH -u "$windows_path"` 27556 new_path="$unix_path" 27557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27559 new_path="$unix_path" 27560 fi 27561 27562 if test "x$path" != "x$new_path"; then 27563 BOOT_JDK="$new_path" 27564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27565 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27566 fi 27567 27568 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27569 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27570 27571 else 27572 # We're on a unix platform. Hooray! :) 27573 path="$BOOT_JDK" 27574 has_space=`$ECHO "$path" | $GREP " "` 27575 if test "x$has_space" != x; then 27576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27577 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27578 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27579 fi 27580 27581 # Use eval to expand a potential ~ 27582 eval path="$path" 27583 if test ! -f "$path" && test ! -d "$path"; then 27584 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27585 fi 27586 27587 if test -d "$path"; then 27588 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27589 else 27590 dir="`$DIRNAME "$path"`" 27591 base="`$BASENAME "$path"`" 27592 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27593 fi 27594 fi 27595 fi 27596 27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27598 $as_echo_n "checking for Boot JDK... " >&6; } 27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27600 $as_echo "$BOOT_JDK" >&6; } 27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27602 $as_echo_n "checking Boot JDK version... " >&6; } 27603 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27605 $as_echo "$BOOT_JDK_VERSION" >&6; } 27606 fi # end check jdk version 27607 fi # end check javac 27608 fi # end check java 27609 fi # end check boot jdk found 27610 fi 27611 27612 done 27613 fi 27614 27615 fi 27616 27617 27618 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27619 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27620 # Do we have a bin/java? 27621 if test ! -x "$BOOT_JDK/bin/java"; then 27622 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27623 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27624 BOOT_JDK_FOUND=no 27625 else 27626 # Do we have a bin/javac? 27627 if test ! -x "$BOOT_JDK/bin/javac"; then 27628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27631 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27632 BOOT_JDK_FOUND=no 27633 else 27634 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27635 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27636 27637 # Extra M4 quote needed to protect [] in grep expression. 27638 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27639 if test "x$FOUND_CORRECT_VERSION" = x; then 27640 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27641 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27642 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27643 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27644 BOOT_JDK_FOUND=no 27645 else 27646 # We're done! :-) 27647 BOOT_JDK_FOUND=yes 27648 27649 # Only process if variable expands to non-empty 27650 27651 if test "x$BOOT_JDK" != x; then 27652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27653 27654 # Input might be given as Windows format, start by converting to 27655 # unix format. 27656 path="$BOOT_JDK" 27657 new_path=`$CYGPATH -u "$path"` 27658 27659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27662 # "foo.exe" is OK but "foo" is an error. 27663 # 27664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27665 # It is also a way to make sure we got the proper file name for the real test later on. 27666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27667 if test "x$test_shortpath" = x; then 27668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27670 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27671 fi 27672 27673 # Call helper function which possibly converts this using DOS-style short mode. 27674 # If so, the updated path is stored in $new_path. 27675 27676 input_path="$new_path" 27677 # Check if we need to convert this using DOS-style short mode. If the path 27678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27679 # take no chances and rewrite it. 27680 # Note: m4 eats our [], so we need to use [ and ] instead. 27681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27682 if test "x$has_forbidden_chars" != x; then 27683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27687 # Going to short mode and back again did indeed matter. Since short mode is 27688 # case insensitive, let's make it lowercase to improve readability. 27689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27690 # Now convert it back to Unix-style (cygpath) 27691 input_path=`$CYGPATH -u "$shortmode_path"` 27692 new_path="$input_path" 27693 fi 27694 fi 27695 27696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27697 if test "x$test_cygdrive_prefix" = x; then 27698 # As a simple fix, exclude /usr/bin since it's not a real path. 27699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27701 # a path prefixed by /cygdrive for fixpath to work. 27702 new_path="$CYGWIN_ROOT_PATH$input_path" 27703 fi 27704 fi 27705 27706 27707 if test "x$path" != "x$new_path"; then 27708 BOOT_JDK="$new_path" 27709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27711 fi 27712 27713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27714 27715 path="$BOOT_JDK" 27716 has_colon=`$ECHO $path | $GREP ^.:` 27717 new_path="$path" 27718 if test "x$has_colon" = x; then 27719 # Not in mixed or Windows style, start by that. 27720 new_path=`cmd //c echo $path` 27721 fi 27722 27723 27724 input_path="$new_path" 27725 # Check if we need to convert this using DOS-style short mode. If the path 27726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27727 # take no chances and rewrite it. 27728 # Note: m4 eats our [], so we need to use [ and ] instead. 27729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27730 if test "x$has_forbidden_chars" != x; then 27731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27733 fi 27734 27735 27736 windows_path="$new_path" 27737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27738 unix_path=`$CYGPATH -u "$windows_path"` 27739 new_path="$unix_path" 27740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27742 new_path="$unix_path" 27743 fi 27744 27745 if test "x$path" != "x$new_path"; then 27746 BOOT_JDK="$new_path" 27747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27749 fi 27750 27751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27753 27754 else 27755 # We're on a unix platform. Hooray! :) 27756 path="$BOOT_JDK" 27757 has_space=`$ECHO "$path" | $GREP " "` 27758 if test "x$has_space" != x; then 27759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27762 fi 27763 27764 # Use eval to expand a potential ~ 27765 eval path="$path" 27766 if test ! -f "$path" && test ! -d "$path"; then 27767 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27768 fi 27769 27770 if test -d "$path"; then 27771 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27772 else 27773 dir="`$DIRNAME "$path"`" 27774 base="`$BASENAME "$path"`" 27775 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27776 fi 27777 fi 27778 fi 27779 27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27781 $as_echo_n "checking for Boot JDK... " >&6; } 27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27783 $as_echo "$BOOT_JDK" >&6; } 27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27785 $as_echo_n "checking Boot JDK version... " >&6; } 27786 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27788 $as_echo "$BOOT_JDK_VERSION" >&6; } 27789 fi # end check jdk version 27790 fi # end check javac 27791 fi # end check java 27792 fi # end check boot jdk found 27793 fi 27794 27795 27796 if test "x$BOOT_JDK_FOUND" = xno; then 27797 # Now execute the test 27798 27799 if test "x$PROGRAMW6432" != x; then 27800 VIRTUAL_DIR="$PROGRAMW6432/Java" 27801 27802 windows_path="$VIRTUAL_DIR" 27803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27804 unix_path=`$CYGPATH -u "$windows_path"` 27805 VIRTUAL_DIR="$unix_path" 27806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27808 VIRTUAL_DIR="$unix_path" 27809 fi 27810 27811 27812 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27813 BOOT_JDK_SUFFIX="" 27814 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27815 if test "x$ALL_JDKS_FOUND" != x; then 27816 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27817 27818 if test "x$BOOT_JDK_FOUND" = xno; then 27819 # Now execute the test 27820 27821 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27822 if test -d "$BOOT_JDK"; then 27823 BOOT_JDK_FOUND=maybe 27824 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27825 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27826 fi 27827 27828 27829 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27830 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27831 # Do we have a bin/java? 27832 if test ! -x "$BOOT_JDK/bin/java"; then 27833 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27834 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27835 BOOT_JDK_FOUND=no 27836 else 27837 # Do we have a bin/javac? 27838 if test ! -x "$BOOT_JDK/bin/javac"; then 27839 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27840 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27841 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27842 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27843 BOOT_JDK_FOUND=no 27844 else 27845 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27846 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27847 27848 # Extra M4 quote needed to protect [] in grep expression. 27849 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27850 if test "x$FOUND_CORRECT_VERSION" = x; then 27851 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27852 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27853 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27854 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27855 BOOT_JDK_FOUND=no 27856 else 27857 # We're done! :-) 27858 BOOT_JDK_FOUND=yes 27859 27860 # Only process if variable expands to non-empty 27861 27862 if test "x$BOOT_JDK" != x; then 27863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27864 27865 # Input might be given as Windows format, start by converting to 27866 # unix format. 27867 path="$BOOT_JDK" 27868 new_path=`$CYGPATH -u "$path"` 27869 27870 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27871 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27872 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27873 # "foo.exe" is OK but "foo" is an error. 27874 # 27875 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27876 # It is also a way to make sure we got the proper file name for the real test later on. 27877 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27878 if test "x$test_shortpath" = x; then 27879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27880 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27881 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27882 fi 27883 27884 # Call helper function which possibly converts this using DOS-style short mode. 27885 # If so, the updated path is stored in $new_path. 27886 27887 input_path="$new_path" 27888 # Check if we need to convert this using DOS-style short mode. If the path 27889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27890 # take no chances and rewrite it. 27891 # Note: m4 eats our [], so we need to use [ and ] instead. 27892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27893 if test "x$has_forbidden_chars" != x; then 27894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27895 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27896 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27897 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27898 # Going to short mode and back again did indeed matter. Since short mode is 27899 # case insensitive, let's make it lowercase to improve readability. 27900 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27901 # Now convert it back to Unix-style (cygpath) 27902 input_path=`$CYGPATH -u "$shortmode_path"` 27903 new_path="$input_path" 27904 fi 27905 fi 27906 27907 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27908 if test "x$test_cygdrive_prefix" = x; then 27909 # As a simple fix, exclude /usr/bin since it's not a real path. 27910 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27911 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27912 # a path prefixed by /cygdrive for fixpath to work. 27913 new_path="$CYGWIN_ROOT_PATH$input_path" 27914 fi 27915 fi 27916 27917 27918 if test "x$path" != "x$new_path"; then 27919 BOOT_JDK="$new_path" 27920 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27921 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27922 fi 27923 27924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27925 27926 path="$BOOT_JDK" 27927 has_colon=`$ECHO $path | $GREP ^.:` 27928 new_path="$path" 27929 if test "x$has_colon" = x; then 27930 # Not in mixed or Windows style, start by that. 27931 new_path=`cmd //c echo $path` 27932 fi 27933 27934 27935 input_path="$new_path" 27936 # Check if we need to convert this using DOS-style short mode. If the path 27937 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27938 # take no chances and rewrite it. 27939 # Note: m4 eats our [], so we need to use [ and ] instead. 27940 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27941 if test "x$has_forbidden_chars" != x; then 27942 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27943 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27944 fi 27945 27946 27947 windows_path="$new_path" 27948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27949 unix_path=`$CYGPATH -u "$windows_path"` 27950 new_path="$unix_path" 27951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27953 new_path="$unix_path" 27954 fi 27955 27956 if test "x$path" != "x$new_path"; then 27957 BOOT_JDK="$new_path" 27958 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27959 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27960 fi 27961 27962 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27963 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27964 27965 else 27966 # We're on a unix platform. Hooray! :) 27967 path="$BOOT_JDK" 27968 has_space=`$ECHO "$path" | $GREP " "` 27969 if test "x$has_space" != x; then 27970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27971 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27972 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27973 fi 27974 27975 # Use eval to expand a potential ~ 27976 eval path="$path" 27977 if test ! -f "$path" && test ! -d "$path"; then 27978 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27979 fi 27980 27981 if test -d "$path"; then 27982 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27983 else 27984 dir="`$DIRNAME "$path"`" 27985 base="`$BASENAME "$path"`" 27986 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27987 fi 27988 fi 27989 fi 27990 27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27992 $as_echo_n "checking for Boot JDK... " >&6; } 27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27994 $as_echo "$BOOT_JDK" >&6; } 27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27996 $as_echo_n "checking Boot JDK version... " >&6; } 27997 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27999 $as_echo "$BOOT_JDK_VERSION" >&6; } 28000 fi # end check jdk version 28001 fi # end check javac 28002 fi # end check java 28003 fi # end check boot jdk found 28004 fi 28005 28006 done 28007 fi 28008 28009 fi 28010 28011 28012 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28013 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28014 # Do we have a bin/java? 28015 if test ! -x "$BOOT_JDK/bin/java"; then 28016 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28017 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28018 BOOT_JDK_FOUND=no 28019 else 28020 # Do we have a bin/javac? 28021 if test ! -x "$BOOT_JDK/bin/javac"; then 28022 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28024 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28025 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28026 BOOT_JDK_FOUND=no 28027 else 28028 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28029 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28030 28031 # Extra M4 quote needed to protect [] in grep expression. 28032 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28033 if test "x$FOUND_CORRECT_VERSION" = x; then 28034 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28036 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28037 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28038 BOOT_JDK_FOUND=no 28039 else 28040 # We're done! :-) 28041 BOOT_JDK_FOUND=yes 28042 28043 # Only process if variable expands to non-empty 28044 28045 if test "x$BOOT_JDK" != x; then 28046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28047 28048 # Input might be given as Windows format, start by converting to 28049 # unix format. 28050 path="$BOOT_JDK" 28051 new_path=`$CYGPATH -u "$path"` 28052 28053 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28054 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28055 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28056 # "foo.exe" is OK but "foo" is an error. 28057 # 28058 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28059 # It is also a way to make sure we got the proper file name for the real test later on. 28060 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28061 if test "x$test_shortpath" = x; then 28062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28063 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28064 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28065 fi 28066 28067 # Call helper function which possibly converts this using DOS-style short mode. 28068 # If so, the updated path is stored in $new_path. 28069 28070 input_path="$new_path" 28071 # Check if we need to convert this using DOS-style short mode. If the path 28072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28073 # take no chances and rewrite it. 28074 # Note: m4 eats our [], so we need to use [ and ] instead. 28075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28076 if test "x$has_forbidden_chars" != x; then 28077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28078 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28079 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28080 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28081 # Going to short mode and back again did indeed matter. Since short mode is 28082 # case insensitive, let's make it lowercase to improve readability. 28083 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28084 # Now convert it back to Unix-style (cygpath) 28085 input_path=`$CYGPATH -u "$shortmode_path"` 28086 new_path="$input_path" 28087 fi 28088 fi 28089 28090 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28091 if test "x$test_cygdrive_prefix" = x; then 28092 # As a simple fix, exclude /usr/bin since it's not a real path. 28093 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28094 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28095 # a path prefixed by /cygdrive for fixpath to work. 28096 new_path="$CYGWIN_ROOT_PATH$input_path" 28097 fi 28098 fi 28099 28100 28101 if test "x$path" != "x$new_path"; then 28102 BOOT_JDK="$new_path" 28103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28104 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28105 fi 28106 28107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28108 28109 path="$BOOT_JDK" 28110 has_colon=`$ECHO $path | $GREP ^.:` 28111 new_path="$path" 28112 if test "x$has_colon" = x; then 28113 # Not in mixed or Windows style, start by that. 28114 new_path=`cmd //c echo $path` 28115 fi 28116 28117 28118 input_path="$new_path" 28119 # Check if we need to convert this using DOS-style short mode. If the path 28120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28121 # take no chances and rewrite it. 28122 # Note: m4 eats our [], so we need to use [ and ] instead. 28123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28124 if test "x$has_forbidden_chars" != x; then 28125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28126 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28127 fi 28128 28129 28130 windows_path="$new_path" 28131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28132 unix_path=`$CYGPATH -u "$windows_path"` 28133 new_path="$unix_path" 28134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28135 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28136 new_path="$unix_path" 28137 fi 28138 28139 if test "x$path" != "x$new_path"; then 28140 BOOT_JDK="$new_path" 28141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28142 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28143 fi 28144 28145 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28146 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28147 28148 else 28149 # We're on a unix platform. Hooray! :) 28150 path="$BOOT_JDK" 28151 has_space=`$ECHO "$path" | $GREP " "` 28152 if test "x$has_space" != x; then 28153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28154 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28155 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28156 fi 28157 28158 # Use eval to expand a potential ~ 28159 eval path="$path" 28160 if test ! -f "$path" && test ! -d "$path"; then 28161 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28162 fi 28163 28164 if test -d "$path"; then 28165 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28166 else 28167 dir="`$DIRNAME "$path"`" 28168 base="`$BASENAME "$path"`" 28169 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28170 fi 28171 fi 28172 fi 28173 28174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28175 $as_echo_n "checking for Boot JDK... " >&6; } 28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28177 $as_echo "$BOOT_JDK" >&6; } 28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28179 $as_echo_n "checking Boot JDK version... " >&6; } 28180 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28182 $as_echo "$BOOT_JDK_VERSION" >&6; } 28183 fi # end check jdk version 28184 fi # end check javac 28185 fi # end check java 28186 fi # end check boot jdk found 28187 fi 28188 28189 28190 if test "x$BOOT_JDK_FOUND" = xno; then 28191 # Now execute the test 28192 28193 if test "x$PROGRAMFILES" != x; then 28194 VIRTUAL_DIR="$PROGRAMFILES/Java" 28195 28196 windows_path="$VIRTUAL_DIR" 28197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28198 unix_path=`$CYGPATH -u "$windows_path"` 28199 VIRTUAL_DIR="$unix_path" 28200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28202 VIRTUAL_DIR="$unix_path" 28203 fi 28204 28205 28206 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28207 BOOT_JDK_SUFFIX="" 28208 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28209 if test "x$ALL_JDKS_FOUND" != x; then 28210 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28211 28212 if test "x$BOOT_JDK_FOUND" = xno; then 28213 # Now execute the test 28214 28215 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28216 if test -d "$BOOT_JDK"; then 28217 BOOT_JDK_FOUND=maybe 28218 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28219 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28220 fi 28221 28222 28223 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28224 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28225 # Do we have a bin/java? 28226 if test ! -x "$BOOT_JDK/bin/java"; then 28227 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28229 BOOT_JDK_FOUND=no 28230 else 28231 # Do we have a bin/javac? 28232 if test ! -x "$BOOT_JDK/bin/javac"; then 28233 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28234 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28235 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28236 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28237 BOOT_JDK_FOUND=no 28238 else 28239 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28240 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28241 28242 # Extra M4 quote needed to protect [] in grep expression. 28243 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28244 if test "x$FOUND_CORRECT_VERSION" = x; then 28245 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28247 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28248 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28249 BOOT_JDK_FOUND=no 28250 else 28251 # We're done! :-) 28252 BOOT_JDK_FOUND=yes 28253 28254 # Only process if variable expands to non-empty 28255 28256 if test "x$BOOT_JDK" != x; then 28257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28258 28259 # Input might be given as Windows format, start by converting to 28260 # unix format. 28261 path="$BOOT_JDK" 28262 new_path=`$CYGPATH -u "$path"` 28263 28264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28267 # "foo.exe" is OK but "foo" is an error. 28268 # 28269 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28270 # It is also a way to make sure we got the proper file name for the real test later on. 28271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28272 if test "x$test_shortpath" = x; then 28273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28274 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28275 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28276 fi 28277 28278 # Call helper function which possibly converts this using DOS-style short mode. 28279 # If so, the updated path is stored in $new_path. 28280 28281 input_path="$new_path" 28282 # Check if we need to convert this using DOS-style short mode. If the path 28283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28284 # take no chances and rewrite it. 28285 # Note: m4 eats our [], so we need to use [ and ] instead. 28286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28287 if test "x$has_forbidden_chars" != x; then 28288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28289 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28290 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28291 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28292 # Going to short mode and back again did indeed matter. Since short mode is 28293 # case insensitive, let's make it lowercase to improve readability. 28294 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28295 # Now convert it back to Unix-style (cygpath) 28296 input_path=`$CYGPATH -u "$shortmode_path"` 28297 new_path="$input_path" 28298 fi 28299 fi 28300 28301 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28302 if test "x$test_cygdrive_prefix" = x; then 28303 # As a simple fix, exclude /usr/bin since it's not a real path. 28304 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28305 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28306 # a path prefixed by /cygdrive for fixpath to work. 28307 new_path="$CYGWIN_ROOT_PATH$input_path" 28308 fi 28309 fi 28310 28311 28312 if test "x$path" != "x$new_path"; then 28313 BOOT_JDK="$new_path" 28314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28315 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28316 fi 28317 28318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28319 28320 path="$BOOT_JDK" 28321 has_colon=`$ECHO $path | $GREP ^.:` 28322 new_path="$path" 28323 if test "x$has_colon" = x; then 28324 # Not in mixed or Windows style, start by that. 28325 new_path=`cmd //c echo $path` 28326 fi 28327 28328 28329 input_path="$new_path" 28330 # Check if we need to convert this using DOS-style short mode. If the path 28331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28332 # take no chances and rewrite it. 28333 # Note: m4 eats our [], so we need to use [ and ] instead. 28334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28335 if test "x$has_forbidden_chars" != x; then 28336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28338 fi 28339 28340 28341 windows_path="$new_path" 28342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28343 unix_path=`$CYGPATH -u "$windows_path"` 28344 new_path="$unix_path" 28345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28347 new_path="$unix_path" 28348 fi 28349 28350 if test "x$path" != "x$new_path"; then 28351 BOOT_JDK="$new_path" 28352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28353 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28354 fi 28355 28356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28358 28359 else 28360 # We're on a unix platform. Hooray! :) 28361 path="$BOOT_JDK" 28362 has_space=`$ECHO "$path" | $GREP " "` 28363 if test "x$has_space" != x; then 28364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28365 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28366 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28367 fi 28368 28369 # Use eval to expand a potential ~ 28370 eval path="$path" 28371 if test ! -f "$path" && test ! -d "$path"; then 28372 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28373 fi 28374 28375 if test -d "$path"; then 28376 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28377 else 28378 dir="`$DIRNAME "$path"`" 28379 base="`$BASENAME "$path"`" 28380 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28381 fi 28382 fi 28383 fi 28384 28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28386 $as_echo_n "checking for Boot JDK... " >&6; } 28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28388 $as_echo "$BOOT_JDK" >&6; } 28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28390 $as_echo_n "checking Boot JDK version... " >&6; } 28391 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28393 $as_echo "$BOOT_JDK_VERSION" >&6; } 28394 fi # end check jdk version 28395 fi # end check javac 28396 fi # end check java 28397 fi # end check boot jdk found 28398 fi 28399 28400 done 28401 fi 28402 28403 fi 28404 28405 28406 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28407 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28408 # Do we have a bin/java? 28409 if test ! -x "$BOOT_JDK/bin/java"; then 28410 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28412 BOOT_JDK_FOUND=no 28413 else 28414 # Do we have a bin/javac? 28415 if test ! -x "$BOOT_JDK/bin/javac"; then 28416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28418 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28419 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28420 BOOT_JDK_FOUND=no 28421 else 28422 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28423 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28424 28425 # Extra M4 quote needed to protect [] in grep expression. 28426 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28427 if test "x$FOUND_CORRECT_VERSION" = x; then 28428 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28430 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28431 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28432 BOOT_JDK_FOUND=no 28433 else 28434 # We're done! :-) 28435 BOOT_JDK_FOUND=yes 28436 28437 # Only process if variable expands to non-empty 28438 28439 if test "x$BOOT_JDK" != x; then 28440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28441 28442 # Input might be given as Windows format, start by converting to 28443 # unix format. 28444 path="$BOOT_JDK" 28445 new_path=`$CYGPATH -u "$path"` 28446 28447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28450 # "foo.exe" is OK but "foo" is an error. 28451 # 28452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28453 # It is also a way to make sure we got the proper file name for the real test later on. 28454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28455 if test "x$test_shortpath" = x; then 28456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28458 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28459 fi 28460 28461 # Call helper function which possibly converts this using DOS-style short mode. 28462 # If so, the updated path is stored in $new_path. 28463 28464 input_path="$new_path" 28465 # Check if we need to convert this using DOS-style short mode. If the path 28466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28467 # take no chances and rewrite it. 28468 # Note: m4 eats our [], so we need to use [ and ] instead. 28469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28470 if test "x$has_forbidden_chars" != x; then 28471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28472 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28473 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28474 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28475 # Going to short mode and back again did indeed matter. Since short mode is 28476 # case insensitive, let's make it lowercase to improve readability. 28477 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28478 # Now convert it back to Unix-style (cygpath) 28479 input_path=`$CYGPATH -u "$shortmode_path"` 28480 new_path="$input_path" 28481 fi 28482 fi 28483 28484 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28485 if test "x$test_cygdrive_prefix" = x; then 28486 # As a simple fix, exclude /usr/bin since it's not a real path. 28487 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28488 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28489 # a path prefixed by /cygdrive for fixpath to work. 28490 new_path="$CYGWIN_ROOT_PATH$input_path" 28491 fi 28492 fi 28493 28494 28495 if test "x$path" != "x$new_path"; then 28496 BOOT_JDK="$new_path" 28497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28499 fi 28500 28501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28502 28503 path="$BOOT_JDK" 28504 has_colon=`$ECHO $path | $GREP ^.:` 28505 new_path="$path" 28506 if test "x$has_colon" = x; then 28507 # Not in mixed or Windows style, start by that. 28508 new_path=`cmd //c echo $path` 28509 fi 28510 28511 28512 input_path="$new_path" 28513 # Check if we need to convert this using DOS-style short mode. If the path 28514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28515 # take no chances and rewrite it. 28516 # Note: m4 eats our [], so we need to use [ and ] instead. 28517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28518 if test "x$has_forbidden_chars" != x; then 28519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28521 fi 28522 28523 28524 windows_path="$new_path" 28525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28526 unix_path=`$CYGPATH -u "$windows_path"` 28527 new_path="$unix_path" 28528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28530 new_path="$unix_path" 28531 fi 28532 28533 if test "x$path" != "x$new_path"; then 28534 BOOT_JDK="$new_path" 28535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28537 fi 28538 28539 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28540 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28541 28542 else 28543 # We're on a unix platform. Hooray! :) 28544 path="$BOOT_JDK" 28545 has_space=`$ECHO "$path" | $GREP " "` 28546 if test "x$has_space" != x; then 28547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28549 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28550 fi 28551 28552 # Use eval to expand a potential ~ 28553 eval path="$path" 28554 if test ! -f "$path" && test ! -d "$path"; then 28555 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28556 fi 28557 28558 if test -d "$path"; then 28559 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28560 else 28561 dir="`$DIRNAME "$path"`" 28562 base="`$BASENAME "$path"`" 28563 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28564 fi 28565 fi 28566 fi 28567 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28569 $as_echo_n "checking for Boot JDK... " >&6; } 28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28571 $as_echo "$BOOT_JDK" >&6; } 28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28573 $as_echo_n "checking Boot JDK version... " >&6; } 28574 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28576 $as_echo "$BOOT_JDK_VERSION" >&6; } 28577 fi # end check jdk version 28578 fi # end check javac 28579 fi # end check java 28580 fi # end check boot jdk found 28581 fi 28582 28583 28584 if test "x$BOOT_JDK_FOUND" = xno; then 28585 # Now execute the test 28586 28587 if test "x$ProgramFiles" != x; then 28588 VIRTUAL_DIR="$ProgramFiles/Java" 28589 28590 windows_path="$VIRTUAL_DIR" 28591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28592 unix_path=`$CYGPATH -u "$windows_path"` 28593 VIRTUAL_DIR="$unix_path" 28594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28595 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28596 VIRTUAL_DIR="$unix_path" 28597 fi 28598 28599 28600 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28601 BOOT_JDK_SUFFIX="" 28602 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28603 if test "x$ALL_JDKS_FOUND" != x; then 28604 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28605 28606 if test "x$BOOT_JDK_FOUND" = xno; then 28607 # Now execute the test 28608 28609 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28610 if test -d "$BOOT_JDK"; then 28611 BOOT_JDK_FOUND=maybe 28612 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28613 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28614 fi 28615 28616 28617 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28618 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28619 # Do we have a bin/java? 28620 if test ! -x "$BOOT_JDK/bin/java"; then 28621 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28622 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28623 BOOT_JDK_FOUND=no 28624 else 28625 # Do we have a bin/javac? 28626 if test ! -x "$BOOT_JDK/bin/javac"; then 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28630 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28631 BOOT_JDK_FOUND=no 28632 else 28633 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28634 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28635 28636 # Extra M4 quote needed to protect [] in grep expression. 28637 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28638 if test "x$FOUND_CORRECT_VERSION" = x; then 28639 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28641 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28642 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28643 BOOT_JDK_FOUND=no 28644 else 28645 # We're done! :-) 28646 BOOT_JDK_FOUND=yes 28647 28648 # Only process if variable expands to non-empty 28649 28650 if test "x$BOOT_JDK" != x; then 28651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28652 28653 # Input might be given as Windows format, start by converting to 28654 # unix format. 28655 path="$BOOT_JDK" 28656 new_path=`$CYGPATH -u "$path"` 28657 28658 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28659 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28660 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28661 # "foo.exe" is OK but "foo" is an error. 28662 # 28663 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28664 # It is also a way to make sure we got the proper file name for the real test later on. 28665 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28666 if test "x$test_shortpath" = x; then 28667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28669 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28670 fi 28671 28672 # Call helper function which possibly converts this using DOS-style short mode. 28673 # If so, the updated path is stored in $new_path. 28674 28675 input_path="$new_path" 28676 # Check if we need to convert this using DOS-style short mode. If the path 28677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28678 # take no chances and rewrite it. 28679 # Note: m4 eats our [], so we need to use [ and ] instead. 28680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28681 if test "x$has_forbidden_chars" != x; then 28682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28683 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28684 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28685 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28686 # Going to short mode and back again did indeed matter. Since short mode is 28687 # case insensitive, let's make it lowercase to improve readability. 28688 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28689 # Now convert it back to Unix-style (cygpath) 28690 input_path=`$CYGPATH -u "$shortmode_path"` 28691 new_path="$input_path" 28692 fi 28693 fi 28694 28695 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28696 if test "x$test_cygdrive_prefix" = x; then 28697 # As a simple fix, exclude /usr/bin since it's not a real path. 28698 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28699 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28700 # a path prefixed by /cygdrive for fixpath to work. 28701 new_path="$CYGWIN_ROOT_PATH$input_path" 28702 fi 28703 fi 28704 28705 28706 if test "x$path" != "x$new_path"; then 28707 BOOT_JDK="$new_path" 28708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28709 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28710 fi 28711 28712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28713 28714 path="$BOOT_JDK" 28715 has_colon=`$ECHO $path | $GREP ^.:` 28716 new_path="$path" 28717 if test "x$has_colon" = x; then 28718 # Not in mixed or Windows style, start by that. 28719 new_path=`cmd //c echo $path` 28720 fi 28721 28722 28723 input_path="$new_path" 28724 # Check if we need to convert this using DOS-style short mode. If the path 28725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28726 # take no chances and rewrite it. 28727 # Note: m4 eats our [], so we need to use [ and ] instead. 28728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28729 if test "x$has_forbidden_chars" != x; then 28730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28731 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28732 fi 28733 28734 28735 windows_path="$new_path" 28736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28737 unix_path=`$CYGPATH -u "$windows_path"` 28738 new_path="$unix_path" 28739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28740 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28741 new_path="$unix_path" 28742 fi 28743 28744 if test "x$path" != "x$new_path"; then 28745 BOOT_JDK="$new_path" 28746 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28748 fi 28749 28750 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28751 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28752 28753 else 28754 # We're on a unix platform. Hooray! :) 28755 path="$BOOT_JDK" 28756 has_space=`$ECHO "$path" | $GREP " "` 28757 if test "x$has_space" != x; then 28758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28759 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28760 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28761 fi 28762 28763 # Use eval to expand a potential ~ 28764 eval path="$path" 28765 if test ! -f "$path" && test ! -d "$path"; then 28766 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28767 fi 28768 28769 if test -d "$path"; then 28770 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28771 else 28772 dir="`$DIRNAME "$path"`" 28773 base="`$BASENAME "$path"`" 28774 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28775 fi 28776 fi 28777 fi 28778 28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28780 $as_echo_n "checking for Boot JDK... " >&6; } 28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28782 $as_echo "$BOOT_JDK" >&6; } 28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28784 $as_echo_n "checking Boot JDK version... " >&6; } 28785 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28787 $as_echo "$BOOT_JDK_VERSION" >&6; } 28788 fi # end check jdk version 28789 fi # end check javac 28790 fi # end check java 28791 fi # end check boot jdk found 28792 fi 28793 28794 done 28795 fi 28796 28797 fi 28798 28799 28800 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28801 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28802 # Do we have a bin/java? 28803 if test ! -x "$BOOT_JDK/bin/java"; then 28804 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28805 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28806 BOOT_JDK_FOUND=no 28807 else 28808 # Do we have a bin/javac? 28809 if test ! -x "$BOOT_JDK/bin/javac"; then 28810 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28812 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28813 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28814 BOOT_JDK_FOUND=no 28815 else 28816 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28817 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28818 28819 # Extra M4 quote needed to protect [] in grep expression. 28820 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28821 if test "x$FOUND_CORRECT_VERSION" = x; then 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28824 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28825 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28826 BOOT_JDK_FOUND=no 28827 else 28828 # We're done! :-) 28829 BOOT_JDK_FOUND=yes 28830 28831 # Only process if variable expands to non-empty 28832 28833 if test "x$BOOT_JDK" != x; then 28834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28835 28836 # Input might be given as Windows format, start by converting to 28837 # unix format. 28838 path="$BOOT_JDK" 28839 new_path=`$CYGPATH -u "$path"` 28840 28841 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28842 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28843 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28844 # "foo.exe" is OK but "foo" is an error. 28845 # 28846 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28847 # It is also a way to make sure we got the proper file name for the real test later on. 28848 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28849 if test "x$test_shortpath" = x; then 28850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28851 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28852 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28853 fi 28854 28855 # Call helper function which possibly converts this using DOS-style short mode. 28856 # If so, the updated path is stored in $new_path. 28857 28858 input_path="$new_path" 28859 # Check if we need to convert this using DOS-style short mode. If the path 28860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28861 # take no chances and rewrite it. 28862 # Note: m4 eats our [], so we need to use [ and ] instead. 28863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28864 if test "x$has_forbidden_chars" != x; then 28865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28866 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28867 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28868 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28869 # Going to short mode and back again did indeed matter. Since short mode is 28870 # case insensitive, let's make it lowercase to improve readability. 28871 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28872 # Now convert it back to Unix-style (cygpath) 28873 input_path=`$CYGPATH -u "$shortmode_path"` 28874 new_path="$input_path" 28875 fi 28876 fi 28877 28878 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28879 if test "x$test_cygdrive_prefix" = x; then 28880 # As a simple fix, exclude /usr/bin since it's not a real path. 28881 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28882 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28883 # a path prefixed by /cygdrive for fixpath to work. 28884 new_path="$CYGWIN_ROOT_PATH$input_path" 28885 fi 28886 fi 28887 28888 28889 if test "x$path" != "x$new_path"; then 28890 BOOT_JDK="$new_path" 28891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28892 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28893 fi 28894 28895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28896 28897 path="$BOOT_JDK" 28898 has_colon=`$ECHO $path | $GREP ^.:` 28899 new_path="$path" 28900 if test "x$has_colon" = x; then 28901 # Not in mixed or Windows style, start by that. 28902 new_path=`cmd //c echo $path` 28903 fi 28904 28905 28906 input_path="$new_path" 28907 # Check if we need to convert this using DOS-style short mode. If the path 28908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28909 # take no chances and rewrite it. 28910 # Note: m4 eats our [], so we need to use [ and ] instead. 28911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28912 if test "x$has_forbidden_chars" != x; then 28913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28914 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28915 fi 28916 28917 28918 windows_path="$new_path" 28919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28920 unix_path=`$CYGPATH -u "$windows_path"` 28921 new_path="$unix_path" 28922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28924 new_path="$unix_path" 28925 fi 28926 28927 if test "x$path" != "x$new_path"; then 28928 BOOT_JDK="$new_path" 28929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28930 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28931 fi 28932 28933 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28934 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28935 28936 else 28937 # We're on a unix platform. Hooray! :) 28938 path="$BOOT_JDK" 28939 has_space=`$ECHO "$path" | $GREP " "` 28940 if test "x$has_space" != x; then 28941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28942 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28943 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28944 fi 28945 28946 # Use eval to expand a potential ~ 28947 eval path="$path" 28948 if test ! -f "$path" && test ! -d "$path"; then 28949 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28950 fi 28951 28952 if test -d "$path"; then 28953 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28954 else 28955 dir="`$DIRNAME "$path"`" 28956 base="`$BASENAME "$path"`" 28957 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28958 fi 28959 fi 28960 fi 28961 28962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28963 $as_echo_n "checking for Boot JDK... " >&6; } 28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28965 $as_echo "$BOOT_JDK" >&6; } 28966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28967 $as_echo_n "checking Boot JDK version... " >&6; } 28968 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28970 $as_echo "$BOOT_JDK_VERSION" >&6; } 28971 fi # end check jdk version 28972 fi # end check javac 28973 fi # end check java 28974 fi # end check boot jdk found 28975 fi 28976 28977 28978 if test "x$BOOT_JDK_FOUND" = xno; then 28979 # Now execute the test 28980 28981 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28982 BOOT_JDK_SUFFIX="" 28983 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28984 if test "x$ALL_JDKS_FOUND" != x; then 28985 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28986 28987 if test "x$BOOT_JDK_FOUND" = xno; then 28988 # Now execute the test 28989 28990 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28991 if test -d "$BOOT_JDK"; then 28992 BOOT_JDK_FOUND=maybe 28993 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28994 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28995 fi 28996 28997 28998 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28999 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29000 # Do we have a bin/java? 29001 if test ! -x "$BOOT_JDK/bin/java"; then 29002 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29003 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29004 BOOT_JDK_FOUND=no 29005 else 29006 # Do we have a bin/javac? 29007 if test ! -x "$BOOT_JDK/bin/javac"; then 29008 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29010 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29011 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29012 BOOT_JDK_FOUND=no 29013 else 29014 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29015 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29016 29017 # Extra M4 quote needed to protect [] in grep expression. 29018 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29019 if test "x$FOUND_CORRECT_VERSION" = x; then 29020 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29021 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29022 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29023 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29024 BOOT_JDK_FOUND=no 29025 else 29026 # We're done! :-) 29027 BOOT_JDK_FOUND=yes 29028 29029 # Only process if variable expands to non-empty 29030 29031 if test "x$BOOT_JDK" != x; then 29032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29033 29034 # Input might be given as Windows format, start by converting to 29035 # unix format. 29036 path="$BOOT_JDK" 29037 new_path=`$CYGPATH -u "$path"` 29038 29039 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29040 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29041 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29042 # "foo.exe" is OK but "foo" is an error. 29043 # 29044 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29045 # It is also a way to make sure we got the proper file name for the real test later on. 29046 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29047 if test "x$test_shortpath" = x; then 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29049 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29050 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29051 fi 29052 29053 # Call helper function which possibly converts this using DOS-style short mode. 29054 # If so, the updated path is stored in $new_path. 29055 29056 input_path="$new_path" 29057 # Check if we need to convert this using DOS-style short mode. If the path 29058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29059 # take no chances and rewrite it. 29060 # Note: m4 eats our [], so we need to use [ and ] instead. 29061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29062 if test "x$has_forbidden_chars" != x; then 29063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29064 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29065 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29066 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29067 # Going to short mode and back again did indeed matter. Since short mode is 29068 # case insensitive, let's make it lowercase to improve readability. 29069 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29070 # Now convert it back to Unix-style (cygpath) 29071 input_path=`$CYGPATH -u "$shortmode_path"` 29072 new_path="$input_path" 29073 fi 29074 fi 29075 29076 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29077 if test "x$test_cygdrive_prefix" = x; then 29078 # As a simple fix, exclude /usr/bin since it's not a real path. 29079 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29080 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29081 # a path prefixed by /cygdrive for fixpath to work. 29082 new_path="$CYGWIN_ROOT_PATH$input_path" 29083 fi 29084 fi 29085 29086 29087 if test "x$path" != "x$new_path"; then 29088 BOOT_JDK="$new_path" 29089 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29090 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29091 fi 29092 29093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29094 29095 path="$BOOT_JDK" 29096 has_colon=`$ECHO $path | $GREP ^.:` 29097 new_path="$path" 29098 if test "x$has_colon" = x; then 29099 # Not in mixed or Windows style, start by that. 29100 new_path=`cmd //c echo $path` 29101 fi 29102 29103 29104 input_path="$new_path" 29105 # Check if we need to convert this using DOS-style short mode. If the path 29106 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29107 # take no chances and rewrite it. 29108 # Note: m4 eats our [], so we need to use [ and ] instead. 29109 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29110 if test "x$has_forbidden_chars" != x; then 29111 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29112 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29113 fi 29114 29115 29116 windows_path="$new_path" 29117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29118 unix_path=`$CYGPATH -u "$windows_path"` 29119 new_path="$unix_path" 29120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29122 new_path="$unix_path" 29123 fi 29124 29125 if test "x$path" != "x$new_path"; then 29126 BOOT_JDK="$new_path" 29127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29128 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29129 fi 29130 29131 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29132 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29133 29134 else 29135 # We're on a unix platform. Hooray! :) 29136 path="$BOOT_JDK" 29137 has_space=`$ECHO "$path" | $GREP " "` 29138 if test "x$has_space" != x; then 29139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29140 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29141 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29142 fi 29143 29144 # Use eval to expand a potential ~ 29145 eval path="$path" 29146 if test ! -f "$path" && test ! -d "$path"; then 29147 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29148 fi 29149 29150 if test -d "$path"; then 29151 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29152 else 29153 dir="`$DIRNAME "$path"`" 29154 base="`$BASENAME "$path"`" 29155 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29156 fi 29157 fi 29158 fi 29159 29160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29161 $as_echo_n "checking for Boot JDK... " >&6; } 29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29163 $as_echo "$BOOT_JDK" >&6; } 29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29165 $as_echo_n "checking Boot JDK version... " >&6; } 29166 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29168 $as_echo "$BOOT_JDK_VERSION" >&6; } 29169 fi # end check jdk version 29170 fi # end check javac 29171 fi # end check java 29172 fi # end check boot jdk found 29173 fi 29174 29175 done 29176 fi 29177 29178 29179 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29180 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29181 # Do we have a bin/java? 29182 if test ! -x "$BOOT_JDK/bin/java"; then 29183 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29184 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29185 BOOT_JDK_FOUND=no 29186 else 29187 # Do we have a bin/javac? 29188 if test ! -x "$BOOT_JDK/bin/javac"; then 29189 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29190 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29191 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29192 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29193 BOOT_JDK_FOUND=no 29194 else 29195 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29196 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29197 29198 # Extra M4 quote needed to protect [] in grep expression. 29199 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29200 if test "x$FOUND_CORRECT_VERSION" = x; then 29201 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29202 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29203 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29204 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29205 BOOT_JDK_FOUND=no 29206 else 29207 # We're done! :-) 29208 BOOT_JDK_FOUND=yes 29209 29210 # Only process if variable expands to non-empty 29211 29212 if test "x$BOOT_JDK" != x; then 29213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29214 29215 # Input might be given as Windows format, start by converting to 29216 # unix format. 29217 path="$BOOT_JDK" 29218 new_path=`$CYGPATH -u "$path"` 29219 29220 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29221 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29222 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29223 # "foo.exe" is OK but "foo" is an error. 29224 # 29225 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29226 # It is also a way to make sure we got the proper file name for the real test later on. 29227 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29228 if test "x$test_shortpath" = x; then 29229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29230 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29231 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29232 fi 29233 29234 # Call helper function which possibly converts this using DOS-style short mode. 29235 # If so, the updated path is stored in $new_path. 29236 29237 input_path="$new_path" 29238 # Check if we need to convert this using DOS-style short mode. If the path 29239 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29240 # take no chances and rewrite it. 29241 # Note: m4 eats our [], so we need to use [ and ] instead. 29242 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29243 if test "x$has_forbidden_chars" != x; then 29244 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29245 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29246 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29247 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29248 # Going to short mode and back again did indeed matter. Since short mode is 29249 # case insensitive, let's make it lowercase to improve readability. 29250 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29251 # Now convert it back to Unix-style (cygpath) 29252 input_path=`$CYGPATH -u "$shortmode_path"` 29253 new_path="$input_path" 29254 fi 29255 fi 29256 29257 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29258 if test "x$test_cygdrive_prefix" = x; then 29259 # As a simple fix, exclude /usr/bin since it's not a real path. 29260 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29261 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29262 # a path prefixed by /cygdrive for fixpath to work. 29263 new_path="$CYGWIN_ROOT_PATH$input_path" 29264 fi 29265 fi 29266 29267 29268 if test "x$path" != "x$new_path"; then 29269 BOOT_JDK="$new_path" 29270 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29271 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29272 fi 29273 29274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29275 29276 path="$BOOT_JDK" 29277 has_colon=`$ECHO $path | $GREP ^.:` 29278 new_path="$path" 29279 if test "x$has_colon" = x; then 29280 # Not in mixed or Windows style, start by that. 29281 new_path=`cmd //c echo $path` 29282 fi 29283 29284 29285 input_path="$new_path" 29286 # Check if we need to convert this using DOS-style short mode. If the path 29287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29288 # take no chances and rewrite it. 29289 # Note: m4 eats our [], so we need to use [ and ] instead. 29290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29291 if test "x$has_forbidden_chars" != x; then 29292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29293 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29294 fi 29295 29296 29297 windows_path="$new_path" 29298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29299 unix_path=`$CYGPATH -u "$windows_path"` 29300 new_path="$unix_path" 29301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29303 new_path="$unix_path" 29304 fi 29305 29306 if test "x$path" != "x$new_path"; then 29307 BOOT_JDK="$new_path" 29308 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29309 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29310 fi 29311 29312 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29313 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29314 29315 else 29316 # We're on a unix platform. Hooray! :) 29317 path="$BOOT_JDK" 29318 has_space=`$ECHO "$path" | $GREP " "` 29319 if test "x$has_space" != x; then 29320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29321 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29322 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29323 fi 29324 29325 # Use eval to expand a potential ~ 29326 eval path="$path" 29327 if test ! -f "$path" && test ! -d "$path"; then 29328 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29329 fi 29330 29331 if test -d "$path"; then 29332 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29333 else 29334 dir="`$DIRNAME "$path"`" 29335 base="`$BASENAME "$path"`" 29336 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29337 fi 29338 fi 29339 fi 29340 29341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29342 $as_echo_n "checking for Boot JDK... " >&6; } 29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29344 $as_echo "$BOOT_JDK" >&6; } 29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29346 $as_echo_n "checking Boot JDK version... " >&6; } 29347 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29349 $as_echo "$BOOT_JDK_VERSION" >&6; } 29350 fi # end check jdk version 29351 fi # end check javac 29352 fi # end check java 29353 fi # end check boot jdk found 29354 fi 29355 29356 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29357 29358 if test "x$BOOT_JDK_FOUND" = xno; then 29359 # Now execute the test 29360 29361 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29362 BOOT_JDK_SUFFIX="/Contents/Home" 29363 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29364 if test "x$ALL_JDKS_FOUND" != x; then 29365 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29366 29367 if test "x$BOOT_JDK_FOUND" = xno; then 29368 # Now execute the test 29369 29370 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29371 if test -d "$BOOT_JDK"; then 29372 BOOT_JDK_FOUND=maybe 29373 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29374 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29375 fi 29376 29377 29378 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29379 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29380 # Do we have a bin/java? 29381 if test ! -x "$BOOT_JDK/bin/java"; then 29382 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29384 BOOT_JDK_FOUND=no 29385 else 29386 # Do we have a bin/javac? 29387 if test ! -x "$BOOT_JDK/bin/javac"; then 29388 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29390 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29391 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29392 BOOT_JDK_FOUND=no 29393 else 29394 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29395 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29396 29397 # Extra M4 quote needed to protect [] in grep expression. 29398 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29399 if test "x$FOUND_CORRECT_VERSION" = x; then 29400 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29402 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29403 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29404 BOOT_JDK_FOUND=no 29405 else 29406 # We're done! :-) 29407 BOOT_JDK_FOUND=yes 29408 29409 # Only process if variable expands to non-empty 29410 29411 if test "x$BOOT_JDK" != x; then 29412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29413 29414 # Input might be given as Windows format, start by converting to 29415 # unix format. 29416 path="$BOOT_JDK" 29417 new_path=`$CYGPATH -u "$path"` 29418 29419 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29420 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29421 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29422 # "foo.exe" is OK but "foo" is an error. 29423 # 29424 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29425 # It is also a way to make sure we got the proper file name for the real test later on. 29426 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29427 if test "x$test_shortpath" = x; then 29428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29429 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29430 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29431 fi 29432 29433 # Call helper function which possibly converts this using DOS-style short mode. 29434 # If so, the updated path is stored in $new_path. 29435 29436 input_path="$new_path" 29437 # Check if we need to convert this using DOS-style short mode. If the path 29438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29439 # take no chances and rewrite it. 29440 # Note: m4 eats our [], so we need to use [ and ] instead. 29441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29442 if test "x$has_forbidden_chars" != x; then 29443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29444 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29445 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29446 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29447 # Going to short mode and back again did indeed matter. Since short mode is 29448 # case insensitive, let's make it lowercase to improve readability. 29449 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29450 # Now convert it back to Unix-style (cygpath) 29451 input_path=`$CYGPATH -u "$shortmode_path"` 29452 new_path="$input_path" 29453 fi 29454 fi 29455 29456 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29457 if test "x$test_cygdrive_prefix" = x; then 29458 # As a simple fix, exclude /usr/bin since it's not a real path. 29459 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29460 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29461 # a path prefixed by /cygdrive for fixpath to work. 29462 new_path="$CYGWIN_ROOT_PATH$input_path" 29463 fi 29464 fi 29465 29466 29467 if test "x$path" != "x$new_path"; then 29468 BOOT_JDK="$new_path" 29469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29470 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29471 fi 29472 29473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29474 29475 path="$BOOT_JDK" 29476 has_colon=`$ECHO $path | $GREP ^.:` 29477 new_path="$path" 29478 if test "x$has_colon" = x; then 29479 # Not in mixed or Windows style, start by that. 29480 new_path=`cmd //c echo $path` 29481 fi 29482 29483 29484 input_path="$new_path" 29485 # Check if we need to convert this using DOS-style short mode. If the path 29486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29487 # take no chances and rewrite it. 29488 # Note: m4 eats our [], so we need to use [ and ] instead. 29489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29490 if test "x$has_forbidden_chars" != x; then 29491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29492 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29493 fi 29494 29495 29496 windows_path="$new_path" 29497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29498 unix_path=`$CYGPATH -u "$windows_path"` 29499 new_path="$unix_path" 29500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29502 new_path="$unix_path" 29503 fi 29504 29505 if test "x$path" != "x$new_path"; then 29506 BOOT_JDK="$new_path" 29507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29508 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29509 fi 29510 29511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29513 29514 else 29515 # We're on a unix platform. Hooray! :) 29516 path="$BOOT_JDK" 29517 has_space=`$ECHO "$path" | $GREP " "` 29518 if test "x$has_space" != x; then 29519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29521 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29522 fi 29523 29524 # Use eval to expand a potential ~ 29525 eval path="$path" 29526 if test ! -f "$path" && test ! -d "$path"; then 29527 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29528 fi 29529 29530 if test -d "$path"; then 29531 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29532 else 29533 dir="`$DIRNAME "$path"`" 29534 base="`$BASENAME "$path"`" 29535 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29536 fi 29537 fi 29538 fi 29539 29540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29541 $as_echo_n "checking for Boot JDK... " >&6; } 29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29543 $as_echo "$BOOT_JDK" >&6; } 29544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29545 $as_echo_n "checking Boot JDK version... " >&6; } 29546 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29548 $as_echo "$BOOT_JDK_VERSION" >&6; } 29549 fi # end check jdk version 29550 fi # end check javac 29551 fi # end check java 29552 fi # end check boot jdk found 29553 fi 29554 29555 done 29556 fi 29557 29558 29559 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29560 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29561 # Do we have a bin/java? 29562 if test ! -x "$BOOT_JDK/bin/java"; then 29563 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29564 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29565 BOOT_JDK_FOUND=no 29566 else 29567 # Do we have a bin/javac? 29568 if test ! -x "$BOOT_JDK/bin/javac"; then 29569 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29571 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29572 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29573 BOOT_JDK_FOUND=no 29574 else 29575 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29576 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29577 29578 # Extra M4 quote needed to protect [] in grep expression. 29579 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29580 if test "x$FOUND_CORRECT_VERSION" = x; then 29581 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29582 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29583 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29584 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29585 BOOT_JDK_FOUND=no 29586 else 29587 # We're done! :-) 29588 BOOT_JDK_FOUND=yes 29589 29590 # Only process if variable expands to non-empty 29591 29592 if test "x$BOOT_JDK" != x; then 29593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29594 29595 # Input might be given as Windows format, start by converting to 29596 # unix format. 29597 path="$BOOT_JDK" 29598 new_path=`$CYGPATH -u "$path"` 29599 29600 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29601 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29602 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29603 # "foo.exe" is OK but "foo" is an error. 29604 # 29605 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29606 # It is also a way to make sure we got the proper file name for the real test later on. 29607 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29608 if test "x$test_shortpath" = x; then 29609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29610 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29611 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29612 fi 29613 29614 # Call helper function which possibly converts this using DOS-style short mode. 29615 # If so, the updated path is stored in $new_path. 29616 29617 input_path="$new_path" 29618 # Check if we need to convert this using DOS-style short mode. If the path 29619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29620 # take no chances and rewrite it. 29621 # Note: m4 eats our [], so we need to use [ and ] instead. 29622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29623 if test "x$has_forbidden_chars" != x; then 29624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29625 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29626 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29627 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29628 # Going to short mode and back again did indeed matter. Since short mode is 29629 # case insensitive, let's make it lowercase to improve readability. 29630 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29631 # Now convert it back to Unix-style (cygpath) 29632 input_path=`$CYGPATH -u "$shortmode_path"` 29633 new_path="$input_path" 29634 fi 29635 fi 29636 29637 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29638 if test "x$test_cygdrive_prefix" = x; then 29639 # As a simple fix, exclude /usr/bin since it's not a real path. 29640 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29641 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29642 # a path prefixed by /cygdrive for fixpath to work. 29643 new_path="$CYGWIN_ROOT_PATH$input_path" 29644 fi 29645 fi 29646 29647 29648 if test "x$path" != "x$new_path"; then 29649 BOOT_JDK="$new_path" 29650 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29651 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29652 fi 29653 29654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29655 29656 path="$BOOT_JDK" 29657 has_colon=`$ECHO $path | $GREP ^.:` 29658 new_path="$path" 29659 if test "x$has_colon" = x; then 29660 # Not in mixed or Windows style, start by that. 29661 new_path=`cmd //c echo $path` 29662 fi 29663 29664 29665 input_path="$new_path" 29666 # Check if we need to convert this using DOS-style short mode. If the path 29667 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29668 # take no chances and rewrite it. 29669 # Note: m4 eats our [], so we need to use [ and ] instead. 29670 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29671 if test "x$has_forbidden_chars" != x; then 29672 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29673 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29674 fi 29675 29676 29677 windows_path="$new_path" 29678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29679 unix_path=`$CYGPATH -u "$windows_path"` 29680 new_path="$unix_path" 29681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29683 new_path="$unix_path" 29684 fi 29685 29686 if test "x$path" != "x$new_path"; then 29687 BOOT_JDK="$new_path" 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29689 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29690 fi 29691 29692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29694 29695 else 29696 # We're on a unix platform. Hooray! :) 29697 path="$BOOT_JDK" 29698 has_space=`$ECHO "$path" | $GREP " "` 29699 if test "x$has_space" != x; then 29700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29701 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29702 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29703 fi 29704 29705 # Use eval to expand a potential ~ 29706 eval path="$path" 29707 if test ! -f "$path" && test ! -d "$path"; then 29708 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29709 fi 29710 29711 if test -d "$path"; then 29712 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29713 else 29714 dir="`$DIRNAME "$path"`" 29715 base="`$BASENAME "$path"`" 29716 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29717 fi 29718 fi 29719 fi 29720 29721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29722 $as_echo_n "checking for Boot JDK... " >&6; } 29723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29724 $as_echo "$BOOT_JDK" >&6; } 29725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29726 $as_echo_n "checking Boot JDK version... " >&6; } 29727 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29729 $as_echo "$BOOT_JDK_VERSION" >&6; } 29730 fi # end check jdk version 29731 fi # end check javac 29732 fi # end check java 29733 fi # end check boot jdk found 29734 fi 29735 29736 29737 if test "x$BOOT_JDK_FOUND" = xno; then 29738 # Now execute the test 29739 29740 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29741 BOOT_JDK_SUFFIX="/Contents/Home" 29742 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29743 if test "x$ALL_JDKS_FOUND" != x; then 29744 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29745 29746 if test "x$BOOT_JDK_FOUND" = xno; then 29747 # Now execute the test 29748 29749 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29750 if test -d "$BOOT_JDK"; then 29751 BOOT_JDK_FOUND=maybe 29752 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29753 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29754 fi 29755 29756 29757 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29758 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29759 # Do we have a bin/java? 29760 if test ! -x "$BOOT_JDK/bin/java"; then 29761 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29763 BOOT_JDK_FOUND=no 29764 else 29765 # Do we have a bin/javac? 29766 if test ! -x "$BOOT_JDK/bin/javac"; then 29767 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29768 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29769 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29770 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29771 BOOT_JDK_FOUND=no 29772 else 29773 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29774 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29775 29776 # Extra M4 quote needed to protect [] in grep expression. 29777 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29778 if test "x$FOUND_CORRECT_VERSION" = x; then 29779 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29781 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29782 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29783 BOOT_JDK_FOUND=no 29784 else 29785 # We're done! :-) 29786 BOOT_JDK_FOUND=yes 29787 29788 # Only process if variable expands to non-empty 29789 29790 if test "x$BOOT_JDK" != x; then 29791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29792 29793 # Input might be given as Windows format, start by converting to 29794 # unix format. 29795 path="$BOOT_JDK" 29796 new_path=`$CYGPATH -u "$path"` 29797 29798 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29799 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29800 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29801 # "foo.exe" is OK but "foo" is an error. 29802 # 29803 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29804 # It is also a way to make sure we got the proper file name for the real test later on. 29805 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29806 if test "x$test_shortpath" = x; then 29807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29808 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29809 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29810 fi 29811 29812 # Call helper function which possibly converts this using DOS-style short mode. 29813 # If so, the updated path is stored in $new_path. 29814 29815 input_path="$new_path" 29816 # Check if we need to convert this using DOS-style short mode. If the path 29817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29818 # take no chances and rewrite it. 29819 # Note: m4 eats our [], so we need to use [ and ] instead. 29820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29821 if test "x$has_forbidden_chars" != x; then 29822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29823 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29824 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29825 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29826 # Going to short mode and back again did indeed matter. Since short mode is 29827 # case insensitive, let's make it lowercase to improve readability. 29828 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29829 # Now convert it back to Unix-style (cygpath) 29830 input_path=`$CYGPATH -u "$shortmode_path"` 29831 new_path="$input_path" 29832 fi 29833 fi 29834 29835 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29836 if test "x$test_cygdrive_prefix" = x; then 29837 # As a simple fix, exclude /usr/bin since it's not a real path. 29838 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29839 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29840 # a path prefixed by /cygdrive for fixpath to work. 29841 new_path="$CYGWIN_ROOT_PATH$input_path" 29842 fi 29843 fi 29844 29845 29846 if test "x$path" != "x$new_path"; then 29847 BOOT_JDK="$new_path" 29848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29850 fi 29851 29852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29853 29854 path="$BOOT_JDK" 29855 has_colon=`$ECHO $path | $GREP ^.:` 29856 new_path="$path" 29857 if test "x$has_colon" = x; then 29858 # Not in mixed or Windows style, start by that. 29859 new_path=`cmd //c echo $path` 29860 fi 29861 29862 29863 input_path="$new_path" 29864 # Check if we need to convert this using DOS-style short mode. If the path 29865 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29866 # take no chances and rewrite it. 29867 # Note: m4 eats our [], so we need to use [ and ] instead. 29868 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29869 if test "x$has_forbidden_chars" != x; then 29870 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29871 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29872 fi 29873 29874 29875 windows_path="$new_path" 29876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29877 unix_path=`$CYGPATH -u "$windows_path"` 29878 new_path="$unix_path" 29879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29881 new_path="$unix_path" 29882 fi 29883 29884 if test "x$path" != "x$new_path"; then 29885 BOOT_JDK="$new_path" 29886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29887 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29888 fi 29889 29890 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29891 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29892 29893 else 29894 # We're on a unix platform. Hooray! :) 29895 path="$BOOT_JDK" 29896 has_space=`$ECHO "$path" | $GREP " "` 29897 if test "x$has_space" != x; then 29898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29899 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29900 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29901 fi 29902 29903 # Use eval to expand a potential ~ 29904 eval path="$path" 29905 if test ! -f "$path" && test ! -d "$path"; then 29906 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29907 fi 29908 29909 if test -d "$path"; then 29910 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29911 else 29912 dir="`$DIRNAME "$path"`" 29913 base="`$BASENAME "$path"`" 29914 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29915 fi 29916 fi 29917 fi 29918 29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29920 $as_echo_n "checking for Boot JDK... " >&6; } 29921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29922 $as_echo "$BOOT_JDK" >&6; } 29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29924 $as_echo_n "checking Boot JDK version... " >&6; } 29925 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29927 $as_echo "$BOOT_JDK_VERSION" >&6; } 29928 fi # end check jdk version 29929 fi # end check javac 29930 fi # end check java 29931 fi # end check boot jdk found 29932 fi 29933 29934 done 29935 fi 29936 29937 29938 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29939 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29940 # Do we have a bin/java? 29941 if test ! -x "$BOOT_JDK/bin/java"; then 29942 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29944 BOOT_JDK_FOUND=no 29945 else 29946 # Do we have a bin/javac? 29947 if test ! -x "$BOOT_JDK/bin/javac"; then 29948 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29949 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29951 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29952 BOOT_JDK_FOUND=no 29953 else 29954 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29955 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29956 29957 # Extra M4 quote needed to protect [] in grep expression. 29958 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29959 if test "x$FOUND_CORRECT_VERSION" = x; then 29960 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29962 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29963 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29964 BOOT_JDK_FOUND=no 29965 else 29966 # We're done! :-) 29967 BOOT_JDK_FOUND=yes 29968 29969 # Only process if variable expands to non-empty 29970 29971 if test "x$BOOT_JDK" != x; then 29972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29973 29974 # Input might be given as Windows format, start by converting to 29975 # unix format. 29976 path="$BOOT_JDK" 29977 new_path=`$CYGPATH -u "$path"` 29978 29979 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29980 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29981 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29982 # "foo.exe" is OK but "foo" is an error. 29983 # 29984 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29985 # It is also a way to make sure we got the proper file name for the real test later on. 29986 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29987 if test "x$test_shortpath" = x; then 29988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29989 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29990 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29991 fi 29992 29993 # Call helper function which possibly converts this using DOS-style short mode. 29994 # If so, the updated path is stored in $new_path. 29995 29996 input_path="$new_path" 29997 # Check if we need to convert this using DOS-style short mode. If the path 29998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29999 # take no chances and rewrite it. 30000 # Note: m4 eats our [], so we need to use [ and ] instead. 30001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30002 if test "x$has_forbidden_chars" != x; then 30003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30004 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30005 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30006 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30007 # Going to short mode and back again did indeed matter. Since short mode is 30008 # case insensitive, let's make it lowercase to improve readability. 30009 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30010 # Now convert it back to Unix-style (cygpath) 30011 input_path=`$CYGPATH -u "$shortmode_path"` 30012 new_path="$input_path" 30013 fi 30014 fi 30015 30016 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30017 if test "x$test_cygdrive_prefix" = x; then 30018 # As a simple fix, exclude /usr/bin since it's not a real path. 30019 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30020 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30021 # a path prefixed by /cygdrive for fixpath to work. 30022 new_path="$CYGWIN_ROOT_PATH$input_path" 30023 fi 30024 fi 30025 30026 30027 if test "x$path" != "x$new_path"; then 30028 BOOT_JDK="$new_path" 30029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30031 fi 30032 30033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30034 30035 path="$BOOT_JDK" 30036 has_colon=`$ECHO $path | $GREP ^.:` 30037 new_path="$path" 30038 if test "x$has_colon" = x; then 30039 # Not in mixed or Windows style, start by that. 30040 new_path=`cmd //c echo $path` 30041 fi 30042 30043 30044 input_path="$new_path" 30045 # Check if we need to convert this using DOS-style short mode. If the path 30046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30047 # take no chances and rewrite it. 30048 # Note: m4 eats our [], so we need to use [ and ] instead. 30049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30050 if test "x$has_forbidden_chars" != x; then 30051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30052 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30053 fi 30054 30055 30056 windows_path="$new_path" 30057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30058 unix_path=`$CYGPATH -u "$windows_path"` 30059 new_path="$unix_path" 30060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30062 new_path="$unix_path" 30063 fi 30064 30065 if test "x$path" != "x$new_path"; then 30066 BOOT_JDK="$new_path" 30067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30068 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30069 fi 30070 30071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30073 30074 else 30075 # We're on a unix platform. Hooray! :) 30076 path="$BOOT_JDK" 30077 has_space=`$ECHO "$path" | $GREP " "` 30078 if test "x$has_space" != x; then 30079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30080 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30081 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30082 fi 30083 30084 # Use eval to expand a potential ~ 30085 eval path="$path" 30086 if test ! -f "$path" && test ! -d "$path"; then 30087 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30088 fi 30089 30090 if test -d "$path"; then 30091 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30092 else 30093 dir="`$DIRNAME "$path"`" 30094 base="`$BASENAME "$path"`" 30095 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30096 fi 30097 fi 30098 fi 30099 30100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30101 $as_echo_n "checking for Boot JDK... " >&6; } 30102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30103 $as_echo "$BOOT_JDK" >&6; } 30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30105 $as_echo_n "checking Boot JDK version... " >&6; } 30106 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30108 $as_echo "$BOOT_JDK_VERSION" >&6; } 30109 fi # end check jdk version 30110 fi # end check javac 30111 fi # end check java 30112 fi # end check boot jdk found 30113 fi 30114 30115 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30116 30117 if test "x$BOOT_JDK_FOUND" = xno; then 30118 # Now execute the test 30119 30120 BOOT_JDK_PREFIX="/usr/lib/jvm" 30121 BOOT_JDK_SUFFIX="" 30122 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30123 if test "x$ALL_JDKS_FOUND" != x; then 30124 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30125 30126 if test "x$BOOT_JDK_FOUND" = xno; then 30127 # Now execute the test 30128 30129 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30130 if test -d "$BOOT_JDK"; then 30131 BOOT_JDK_FOUND=maybe 30132 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30133 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30134 fi 30135 30136 30137 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30138 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30139 # Do we have a bin/java? 30140 if test ! -x "$BOOT_JDK/bin/java"; then 30141 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30143 BOOT_JDK_FOUND=no 30144 else 30145 # Do we have a bin/javac? 30146 if test ! -x "$BOOT_JDK/bin/javac"; then 30147 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30149 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30150 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30151 BOOT_JDK_FOUND=no 30152 else 30153 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30154 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30155 30156 # Extra M4 quote needed to protect [] in grep expression. 30157 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30158 if test "x$FOUND_CORRECT_VERSION" = x; then 30159 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30160 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30161 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30162 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30163 BOOT_JDK_FOUND=no 30164 else 30165 # We're done! :-) 30166 BOOT_JDK_FOUND=yes 30167 30168 # Only process if variable expands to non-empty 30169 30170 if test "x$BOOT_JDK" != x; then 30171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30172 30173 # Input might be given as Windows format, start by converting to 30174 # unix format. 30175 path="$BOOT_JDK" 30176 new_path=`$CYGPATH -u "$path"` 30177 30178 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30179 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30180 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30181 # "foo.exe" is OK but "foo" is an error. 30182 # 30183 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30184 # It is also a way to make sure we got the proper file name for the real test later on. 30185 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30186 if test "x$test_shortpath" = x; then 30187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30188 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30189 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30190 fi 30191 30192 # Call helper function which possibly converts this using DOS-style short mode. 30193 # If so, the updated path is stored in $new_path. 30194 30195 input_path="$new_path" 30196 # Check if we need to convert this using DOS-style short mode. If the path 30197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30198 # take no chances and rewrite it. 30199 # Note: m4 eats our [], so we need to use [ and ] instead. 30200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30201 if test "x$has_forbidden_chars" != x; then 30202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30206 # Going to short mode and back again did indeed matter. Since short mode is 30207 # case insensitive, let's make it lowercase to improve readability. 30208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30209 # Now convert it back to Unix-style (cygpath) 30210 input_path=`$CYGPATH -u "$shortmode_path"` 30211 new_path="$input_path" 30212 fi 30213 fi 30214 30215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30216 if test "x$test_cygdrive_prefix" = x; then 30217 # As a simple fix, exclude /usr/bin since it's not a real path. 30218 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30220 # a path prefixed by /cygdrive for fixpath to work. 30221 new_path="$CYGWIN_ROOT_PATH$input_path" 30222 fi 30223 fi 30224 30225 30226 if test "x$path" != "x$new_path"; then 30227 BOOT_JDK="$new_path" 30228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30229 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30230 fi 30231 30232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30233 30234 path="$BOOT_JDK" 30235 has_colon=`$ECHO $path | $GREP ^.:` 30236 new_path="$path" 30237 if test "x$has_colon" = x; then 30238 # Not in mixed or Windows style, start by that. 30239 new_path=`cmd //c echo $path` 30240 fi 30241 30242 30243 input_path="$new_path" 30244 # Check if we need to convert this using DOS-style short mode. If the path 30245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30246 # take no chances and rewrite it. 30247 # Note: m4 eats our [], so we need to use [ and ] instead. 30248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30249 if test "x$has_forbidden_chars" != x; then 30250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30251 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30252 fi 30253 30254 30255 windows_path="$new_path" 30256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30257 unix_path=`$CYGPATH -u "$windows_path"` 30258 new_path="$unix_path" 30259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30261 new_path="$unix_path" 30262 fi 30263 30264 if test "x$path" != "x$new_path"; then 30265 BOOT_JDK="$new_path" 30266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30267 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30268 fi 30269 30270 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30271 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30272 30273 else 30274 # We're on a unix platform. Hooray! :) 30275 path="$BOOT_JDK" 30276 has_space=`$ECHO "$path" | $GREP " "` 30277 if test "x$has_space" != x; then 30278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30279 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30280 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30281 fi 30282 30283 # Use eval to expand a potential ~ 30284 eval path="$path" 30285 if test ! -f "$path" && test ! -d "$path"; then 30286 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30287 fi 30288 30289 if test -d "$path"; then 30290 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30291 else 30292 dir="`$DIRNAME "$path"`" 30293 base="`$BASENAME "$path"`" 30294 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30295 fi 30296 fi 30297 fi 30298 30299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30300 $as_echo_n "checking for Boot JDK... " >&6; } 30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30302 $as_echo "$BOOT_JDK" >&6; } 30303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30304 $as_echo_n "checking Boot JDK version... " >&6; } 30305 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30307 $as_echo "$BOOT_JDK_VERSION" >&6; } 30308 fi # end check jdk version 30309 fi # end check javac 30310 fi # end check java 30311 fi # end check boot jdk found 30312 fi 30313 30314 done 30315 fi 30316 30317 30318 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30319 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30320 # Do we have a bin/java? 30321 if test ! -x "$BOOT_JDK/bin/java"; then 30322 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30324 BOOT_JDK_FOUND=no 30325 else 30326 # Do we have a bin/javac? 30327 if test ! -x "$BOOT_JDK/bin/javac"; then 30328 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30329 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30330 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30331 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30332 BOOT_JDK_FOUND=no 30333 else 30334 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30335 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30336 30337 # Extra M4 quote needed to protect [] in grep expression. 30338 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30339 if test "x$FOUND_CORRECT_VERSION" = x; then 30340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30342 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30343 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30344 BOOT_JDK_FOUND=no 30345 else 30346 # We're done! :-) 30347 BOOT_JDK_FOUND=yes 30348 30349 # Only process if variable expands to non-empty 30350 30351 if test "x$BOOT_JDK" != x; then 30352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30353 30354 # Input might be given as Windows format, start by converting to 30355 # unix format. 30356 path="$BOOT_JDK" 30357 new_path=`$CYGPATH -u "$path"` 30358 30359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30362 # "foo.exe" is OK but "foo" is an error. 30363 # 30364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30365 # It is also a way to make sure we got the proper file name for the real test later on. 30366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30367 if test "x$test_shortpath" = x; then 30368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30370 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30371 fi 30372 30373 # Call helper function which possibly converts this using DOS-style short mode. 30374 # If so, the updated path is stored in $new_path. 30375 30376 input_path="$new_path" 30377 # Check if we need to convert this using DOS-style short mode. If the path 30378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30379 # take no chances and rewrite it. 30380 # Note: m4 eats our [], so we need to use [ and ] instead. 30381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30382 if test "x$has_forbidden_chars" != x; then 30383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30387 # Going to short mode and back again did indeed matter. Since short mode is 30388 # case insensitive, let's make it lowercase to improve readability. 30389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30390 # Now convert it back to Unix-style (cygpath) 30391 input_path=`$CYGPATH -u "$shortmode_path"` 30392 new_path="$input_path" 30393 fi 30394 fi 30395 30396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30397 if test "x$test_cygdrive_prefix" = x; then 30398 # As a simple fix, exclude /usr/bin since it's not a real path. 30399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30401 # a path prefixed by /cygdrive for fixpath to work. 30402 new_path="$CYGWIN_ROOT_PATH$input_path" 30403 fi 30404 fi 30405 30406 30407 if test "x$path" != "x$new_path"; then 30408 BOOT_JDK="$new_path" 30409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30410 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30411 fi 30412 30413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30414 30415 path="$BOOT_JDK" 30416 has_colon=`$ECHO $path | $GREP ^.:` 30417 new_path="$path" 30418 if test "x$has_colon" = x; then 30419 # Not in mixed or Windows style, start by that. 30420 new_path=`cmd //c echo $path` 30421 fi 30422 30423 30424 input_path="$new_path" 30425 # Check if we need to convert this using DOS-style short mode. If the path 30426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30427 # take no chances and rewrite it. 30428 # Note: m4 eats our [], so we need to use [ and ] instead. 30429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30430 if test "x$has_forbidden_chars" != x; then 30431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30433 fi 30434 30435 30436 windows_path="$new_path" 30437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30438 unix_path=`$CYGPATH -u "$windows_path"` 30439 new_path="$unix_path" 30440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30442 new_path="$unix_path" 30443 fi 30444 30445 if test "x$path" != "x$new_path"; then 30446 BOOT_JDK="$new_path" 30447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30449 fi 30450 30451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30453 30454 else 30455 # We're on a unix platform. Hooray! :) 30456 path="$BOOT_JDK" 30457 has_space=`$ECHO "$path" | $GREP " "` 30458 if test "x$has_space" != x; then 30459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30462 fi 30463 30464 # Use eval to expand a potential ~ 30465 eval path="$path" 30466 if test ! -f "$path" && test ! -d "$path"; then 30467 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30468 fi 30469 30470 if test -d "$path"; then 30471 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30472 else 30473 dir="`$DIRNAME "$path"`" 30474 base="`$BASENAME "$path"`" 30475 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30476 fi 30477 fi 30478 fi 30479 30480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30481 $as_echo_n "checking for Boot JDK... " >&6; } 30482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30483 $as_echo "$BOOT_JDK" >&6; } 30484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30485 $as_echo_n "checking Boot JDK version... " >&6; } 30486 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30488 $as_echo "$BOOT_JDK_VERSION" >&6; } 30489 fi # end check jdk version 30490 fi # end check javac 30491 fi # end check java 30492 fi # end check boot jdk found 30493 fi 30494 30495 fi 30496 30497 30498 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30499 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30500 # Do we have a bin/java? 30501 if test ! -x "$BOOT_JDK/bin/java"; then 30502 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30503 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30504 BOOT_JDK_FOUND=no 30505 else 30506 # Do we have a bin/javac? 30507 if test ! -x "$BOOT_JDK/bin/javac"; then 30508 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30510 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30511 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30512 BOOT_JDK_FOUND=no 30513 else 30514 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30515 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30516 30517 # Extra M4 quote needed to protect [] in grep expression. 30518 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30519 if test "x$FOUND_CORRECT_VERSION" = x; then 30520 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30522 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30523 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30524 BOOT_JDK_FOUND=no 30525 else 30526 # We're done! :-) 30527 BOOT_JDK_FOUND=yes 30528 30529 # Only process if variable expands to non-empty 30530 30531 if test "x$BOOT_JDK" != x; then 30532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30533 30534 # Input might be given as Windows format, start by converting to 30535 # unix format. 30536 path="$BOOT_JDK" 30537 new_path=`$CYGPATH -u "$path"` 30538 30539 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30540 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30541 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30542 # "foo.exe" is OK but "foo" is an error. 30543 # 30544 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30545 # It is also a way to make sure we got the proper file name for the real test later on. 30546 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30547 if test "x$test_shortpath" = x; then 30548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30549 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30550 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30551 fi 30552 30553 # Call helper function which possibly converts this using DOS-style short mode. 30554 # If so, the updated path is stored in $new_path. 30555 30556 input_path="$new_path" 30557 # Check if we need to convert this using DOS-style short mode. If the path 30558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30559 # take no chances and rewrite it. 30560 # Note: m4 eats our [], so we need to use [ and ] instead. 30561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30562 if test "x$has_forbidden_chars" != x; then 30563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30564 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30565 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30566 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30567 # Going to short mode and back again did indeed matter. Since short mode is 30568 # case insensitive, let's make it lowercase to improve readability. 30569 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30570 # Now convert it back to Unix-style (cygpath) 30571 input_path=`$CYGPATH -u "$shortmode_path"` 30572 new_path="$input_path" 30573 fi 30574 fi 30575 30576 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30577 if test "x$test_cygdrive_prefix" = x; then 30578 # As a simple fix, exclude /usr/bin since it's not a real path. 30579 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30580 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30581 # a path prefixed by /cygdrive for fixpath to work. 30582 new_path="$CYGWIN_ROOT_PATH$input_path" 30583 fi 30584 fi 30585 30586 30587 if test "x$path" != "x$new_path"; then 30588 BOOT_JDK="$new_path" 30589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30590 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30591 fi 30592 30593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30594 30595 path="$BOOT_JDK" 30596 has_colon=`$ECHO $path | $GREP ^.:` 30597 new_path="$path" 30598 if test "x$has_colon" = x; then 30599 # Not in mixed or Windows style, start by that. 30600 new_path=`cmd //c echo $path` 30601 fi 30602 30603 30604 input_path="$new_path" 30605 # Check if we need to convert this using DOS-style short mode. If the path 30606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30607 # take no chances and rewrite it. 30608 # Note: m4 eats our [], so we need to use [ and ] instead. 30609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30610 if test "x$has_forbidden_chars" != x; then 30611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30612 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30613 fi 30614 30615 30616 windows_path="$new_path" 30617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30618 unix_path=`$CYGPATH -u "$windows_path"` 30619 new_path="$unix_path" 30620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30622 new_path="$unix_path" 30623 fi 30624 30625 if test "x$path" != "x$new_path"; then 30626 BOOT_JDK="$new_path" 30627 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30628 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30629 fi 30630 30631 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30632 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30633 30634 else 30635 # We're on a unix platform. Hooray! :) 30636 path="$BOOT_JDK" 30637 has_space=`$ECHO "$path" | $GREP " "` 30638 if test "x$has_space" != x; then 30639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30640 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30641 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30642 fi 30643 30644 # Use eval to expand a potential ~ 30645 eval path="$path" 30646 if test ! -f "$path" && test ! -d "$path"; then 30647 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30648 fi 30649 30650 if test -d "$path"; then 30651 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30652 else 30653 dir="`$DIRNAME "$path"`" 30654 base="`$BASENAME "$path"`" 30655 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30656 fi 30657 fi 30658 fi 30659 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30661 $as_echo_n "checking for Boot JDK... " >&6; } 30662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30663 $as_echo "$BOOT_JDK" >&6; } 30664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30665 $as_echo_n "checking Boot JDK version... " >&6; } 30666 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30668 $as_echo "$BOOT_JDK_VERSION" >&6; } 30669 fi # end check jdk version 30670 fi # end check javac 30671 fi # end check java 30672 fi # end check boot jdk found 30673 fi 30674 30675 30676 # If we haven't found anything yet, we've truly lost. Give up. 30677 if test "x$BOOT_JDK_FOUND" = xno; then 30678 30679 # Print a helpful message on how to acquire the necessary build dependency. 30680 # openjdk is the help tag: freetype, cups, alsa etc 30681 MISSING_DEPENDENCY=openjdk 30682 30683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30684 cygwin_help $MISSING_DEPENDENCY 30685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30686 msys_help $MISSING_DEPENDENCY 30687 else 30688 PKGHANDLER_COMMAND= 30689 30690 case $PKGHANDLER in 30691 apt-get) 30692 apt_help $MISSING_DEPENDENCY ;; 30693 yum) 30694 yum_help $MISSING_DEPENDENCY ;; 30695 brew) 30696 brew_help $MISSING_DEPENDENCY ;; 30697 port) 30698 port_help $MISSING_DEPENDENCY ;; 30699 pkgutil) 30700 pkgutil_help $MISSING_DEPENDENCY ;; 30701 pkgadd) 30702 pkgadd_help $MISSING_DEPENDENCY ;; 30703 esac 30704 30705 if test "x$PKGHANDLER_COMMAND" != x; then 30706 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30707 fi 30708 fi 30709 30710 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30711 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30712 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30713 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30714 as_fn_error $? "Cannot continue" "$LINENO" 5 30715 fi 30716 30717 30718 30719 # Setup tools from the Boot JDK. 30720 30721 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30722 30723 # Publish this variable in the help. 30724 30725 30726 if [ -z "${JAVA+x}" ]; then 30727 # The variable is not set by user, try to locate tool using the code snippet 30728 30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30730 $as_echo_n "checking for java in Boot JDK... " >&6; } 30731 JAVA=$BOOT_JDK/bin/java 30732 if test ! -x $JAVA; then 30733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30734 $as_echo "not found" >&6; } 30735 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30736 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30737 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30738 fi 30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30740 $as_echo "ok" >&6; } 30741 30742 30743 else 30744 # The variable is set, but is it from the command line or the environment? 30745 30746 # Try to remove the string !JAVA! from our list. 30747 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30748 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30749 # If it failed, the variable was not from the command line. Ignore it, 30750 # but warn the user (except for BASH, which is always set by the calling BASH). 30751 if test "xJAVA" != xBASH; then 30752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30753 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30754 fi 30755 # Try to locate tool using the code snippet 30756 30757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30758 $as_echo_n "checking for java in Boot JDK... " >&6; } 30759 JAVA=$BOOT_JDK/bin/java 30760 if test ! -x $JAVA; then 30761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30762 $as_echo "not found" >&6; } 30763 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30764 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30765 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30766 fi 30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30768 $as_echo "ok" >&6; } 30769 30770 30771 else 30772 # If it succeeded, then it was overridden by the user. We will use it 30773 # for the tool. 30774 30775 # First remove it from the list of overridden variables, so we can test 30776 # for unknown variables in the end. 30777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30778 30779 # Check if we try to supply an empty value 30780 if test "x$JAVA" = x; then 30781 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30782 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30784 $as_echo_n "checking for JAVA... " >&6; } 30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30786 $as_echo "disabled" >&6; } 30787 else 30788 # Check if the provided tool contains a complete path. 30789 tool_specified="$JAVA" 30790 tool_basename="${tool_specified##*/}" 30791 if test "x$tool_basename" = "x$tool_specified"; then 30792 # A command without a complete path is provided, search $PATH. 30793 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30794 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30795 # Extract the first word of "$tool_basename", so it can be a program name with args. 30796 set dummy $tool_basename; ac_word=$2 30797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30798 $as_echo_n "checking for $ac_word... " >&6; } 30799 if ${ac_cv_path_JAVA+:} false; then : 30800 $as_echo_n "(cached) " >&6 30801 else 30802 case $JAVA in 30803 [\\/]* | ?:[\\/]*) 30804 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30805 ;; 30806 *) 30807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30808 for as_dir in $PATH 30809 do 30810 IFS=$as_save_IFS 30811 test -z "$as_dir" && as_dir=. 30812 for ac_exec_ext in '' $ac_executable_extensions; do 30813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30814 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30816 break 2 30817 fi 30818 done 30819 done 30820 IFS=$as_save_IFS 30821 30822 ;; 30823 esac 30824 fi 30825 JAVA=$ac_cv_path_JAVA 30826 if test -n "$JAVA"; then 30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30828 $as_echo "$JAVA" >&6; } 30829 else 30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30831 $as_echo "no" >&6; } 30832 fi 30833 30834 30835 if test "x$JAVA" = x; then 30836 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30837 fi 30838 else 30839 # Otherwise we believe it is a complete path. Use it as it is. 30840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30841 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30843 $as_echo_n "checking for JAVA... " >&6; } 30844 if test ! -x "$tool_specified"; then 30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30846 $as_echo "not found" >&6; } 30847 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30848 fi 30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30850 $as_echo "$tool_specified" >&6; } 30851 fi 30852 fi 30853 fi 30854 30855 fi 30856 30857 30858 30859 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30860 30861 # Publish this variable in the help. 30862 30863 30864 if [ -z "${JAVAC+x}" ]; then 30865 # The variable is not set by user, try to locate tool using the code snippet 30866 30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30868 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30869 JAVAC=$BOOT_JDK/bin/javac 30870 if test ! -x $JAVAC; then 30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30872 $as_echo "not found" >&6; } 30873 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30874 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30875 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30876 fi 30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30878 $as_echo "ok" >&6; } 30879 30880 30881 else 30882 # The variable is set, but is it from the command line or the environment? 30883 30884 # Try to remove the string !JAVAC! from our list. 30885 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30886 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30887 # If it failed, the variable was not from the command line. Ignore it, 30888 # but warn the user (except for BASH, which is always set by the calling BASH). 30889 if test "xJAVAC" != xBASH; then 30890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30891 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30892 fi 30893 # Try to locate tool using the code snippet 30894 30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30896 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30897 JAVAC=$BOOT_JDK/bin/javac 30898 if test ! -x $JAVAC; then 30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30900 $as_echo "not found" >&6; } 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30902 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30903 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30904 fi 30905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30906 $as_echo "ok" >&6; } 30907 30908 30909 else 30910 # If it succeeded, then it was overridden by the user. We will use it 30911 # for the tool. 30912 30913 # First remove it from the list of overridden variables, so we can test 30914 # for unknown variables in the end. 30915 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30916 30917 # Check if we try to supply an empty value 30918 if test "x$JAVAC" = x; then 30919 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30920 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30922 $as_echo_n "checking for JAVAC... " >&6; } 30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30924 $as_echo "disabled" >&6; } 30925 else 30926 # Check if the provided tool contains a complete path. 30927 tool_specified="$JAVAC" 30928 tool_basename="${tool_specified##*/}" 30929 if test "x$tool_basename" = "x$tool_specified"; then 30930 # A command without a complete path is provided, search $PATH. 30931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30932 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30933 # Extract the first word of "$tool_basename", so it can be a program name with args. 30934 set dummy $tool_basename; ac_word=$2 30935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30936 $as_echo_n "checking for $ac_word... " >&6; } 30937 if ${ac_cv_path_JAVAC+:} false; then : 30938 $as_echo_n "(cached) " >&6 30939 else 30940 case $JAVAC in 30941 [\\/]* | ?:[\\/]*) 30942 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30943 ;; 30944 *) 30945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30946 for as_dir in $PATH 30947 do 30948 IFS=$as_save_IFS 30949 test -z "$as_dir" && as_dir=. 30950 for ac_exec_ext in '' $ac_executable_extensions; do 30951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30952 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30954 break 2 30955 fi 30956 done 30957 done 30958 IFS=$as_save_IFS 30959 30960 ;; 30961 esac 30962 fi 30963 JAVAC=$ac_cv_path_JAVAC 30964 if test -n "$JAVAC"; then 30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30966 $as_echo "$JAVAC" >&6; } 30967 else 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30969 $as_echo "no" >&6; } 30970 fi 30971 30972 30973 if test "x$JAVAC" = x; then 30974 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30975 fi 30976 else 30977 # Otherwise we believe it is a complete path. Use it as it is. 30978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30979 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30981 $as_echo_n "checking for JAVAC... " >&6; } 30982 if test ! -x "$tool_specified"; then 30983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30984 $as_echo "not found" >&6; } 30985 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30986 fi 30987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30988 $as_echo "$tool_specified" >&6; } 30989 fi 30990 fi 30991 fi 30992 30993 fi 30994 30995 30996 30997 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30998 30999 # Publish this variable in the help. 31000 31001 31002 if [ -z "${JAVAH+x}" ]; then 31003 # The variable is not set by user, try to locate tool using the code snippet 31004 31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31006 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31007 JAVAH=$BOOT_JDK/bin/javah 31008 if test ! -x $JAVAH; then 31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31010 $as_echo "not found" >&6; } 31011 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31012 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31013 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31014 fi 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31016 $as_echo "ok" >&6; } 31017 31018 31019 else 31020 # The variable is set, but is it from the command line or the environment? 31021 31022 # Try to remove the string !JAVAH! from our list. 31023 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 31024 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31025 # If it failed, the variable was not from the command line. Ignore it, 31026 # but warn the user (except for BASH, which is always set by the calling BASH). 31027 if test "xJAVAH" != xBASH; then 31028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 31029 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 31030 fi 31031 # Try to locate tool using the code snippet 31032 31033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31034 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31035 JAVAH=$BOOT_JDK/bin/javah 31036 if test ! -x $JAVAH; then 31037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31038 $as_echo "not found" >&6; } 31039 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31040 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31041 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31042 fi 31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31044 $as_echo "ok" >&6; } 31045 31046 31047 else 31048 # If it succeeded, then it was overridden by the user. We will use it 31049 # for the tool. 31050 31051 # First remove it from the list of overridden variables, so we can test 31052 # for unknown variables in the end. 31053 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31054 31055 # Check if we try to supply an empty value 31056 if test "x$JAVAH" = x; then 31057 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 31058 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 31059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31060 $as_echo_n "checking for JAVAH... " >&6; } 31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31062 $as_echo "disabled" >&6; } 31063 else 31064 # Check if the provided tool contains a complete path. 31065 tool_specified="$JAVAH" 31066 tool_basename="${tool_specified##*/}" 31067 if test "x$tool_basename" = "x$tool_specified"; then 31068 # A command without a complete path is provided, search $PATH. 31069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 31070 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 31071 # Extract the first word of "$tool_basename", so it can be a program name with args. 31072 set dummy $tool_basename; ac_word=$2 31073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31074 $as_echo_n "checking for $ac_word... " >&6; } 31075 if ${ac_cv_path_JAVAH+:} false; then : 31076 $as_echo_n "(cached) " >&6 31077 else 31078 case $JAVAH in 31079 [\\/]* | ?:[\\/]*) 31080 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 31081 ;; 31082 *) 31083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31084 for as_dir in $PATH 31085 do 31086 IFS=$as_save_IFS 31087 test -z "$as_dir" && as_dir=. 31088 for ac_exec_ext in '' $ac_executable_extensions; do 31089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31090 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 31091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31092 break 2 31093 fi 31094 done 31095 done 31096 IFS=$as_save_IFS 31097 31098 ;; 31099 esac 31100 fi 31101 JAVAH=$ac_cv_path_JAVAH 31102 if test -n "$JAVAH"; then 31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 31104 $as_echo "$JAVAH" >&6; } 31105 else 31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31107 $as_echo "no" >&6; } 31108 fi 31109 31110 31111 if test "x$JAVAH" = x; then 31112 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31113 fi 31114 else 31115 # Otherwise we believe it is a complete path. Use it as it is. 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 31117 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31119 $as_echo_n "checking for JAVAH... " >&6; } 31120 if test ! -x "$tool_specified"; then 31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31122 $as_echo "not found" >&6; } 31123 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 31124 fi 31125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31126 $as_echo "$tool_specified" >&6; } 31127 fi 31128 fi 31129 fi 31130 31131 fi 31132 31133 31134 31135 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31136 31137 # Publish this variable in the help. 31138 31139 31140 if [ -z "${JAVADOC+x}" ]; then 31141 # The variable is not set by user, try to locate tool using the code snippet 31142 31143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31144 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31145 JAVADOC=$BOOT_JDK/bin/javadoc 31146 if test ! -x $JAVADOC; then 31147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31148 $as_echo "not found" >&6; } 31149 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31150 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31151 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31152 fi 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31154 $as_echo "ok" >&6; } 31155 31156 31157 else 31158 # The variable is set, but is it from the command line or the environment? 31159 31160 # Try to remove the string !JAVADOC! from our list. 31161 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVADOC!/} 31162 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31163 # If it failed, the variable was not from the command line. Ignore it, 31164 # but warn the user (except for BASH, which is always set by the calling BASH). 31165 if test "xJAVADOC" != xBASH; then 31166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&5 31167 $as_echo "$as_me: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&2;} 31168 fi 31169 # Try to locate tool using the code snippet 31170 31171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31172 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31173 JAVADOC=$BOOT_JDK/bin/javadoc 31174 if test ! -x $JAVADOC; then 31175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31176 $as_echo "not found" >&6; } 31177 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31178 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31179 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31180 fi 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31182 $as_echo "ok" >&6; } 31183 31184 31185 else 31186 # If it succeeded, then it was overridden by the user. We will use it 31187 # for the tool. 31188 31189 # First remove it from the list of overridden variables, so we can test 31190 # for unknown variables in the end. 31191 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31192 31193 # Check if we try to supply an empty value 31194 if test "x$JAVADOC" = x; then 31195 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVADOC= (no value)" >&5 31196 $as_echo "$as_me: Setting user supplied tool JAVADOC= (no value)" >&6;} 31197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31198 $as_echo_n "checking for JAVADOC... " >&6; } 31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31200 $as_echo "disabled" >&6; } 31201 else 31202 # Check if the provided tool contains a complete path. 31203 tool_specified="$JAVADOC" 31204 tool_basename="${tool_specified##*/}" 31205 if test "x$tool_basename" = "x$tool_specified"; then 31206 # A command without a complete path is provided, search $PATH. 31207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVADOC=$tool_basename" >&5 31208 $as_echo "$as_me: Will search for user supplied tool JAVADOC=$tool_basename" >&6;} 31209 # Extract the first word of "$tool_basename", so it can be a program name with args. 31210 set dummy $tool_basename; ac_word=$2 31211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31212 $as_echo_n "checking for $ac_word... " >&6; } 31213 if ${ac_cv_path_JAVADOC+:} false; then : 31214 $as_echo_n "(cached) " >&6 31215 else 31216 case $JAVADOC in 31217 [\\/]* | ?:[\\/]*) 31218 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. 31219 ;; 31220 *) 31221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31222 for as_dir in $PATH 31223 do 31224 IFS=$as_save_IFS 31225 test -z "$as_dir" && as_dir=. 31226 for ac_exec_ext in '' $ac_executable_extensions; do 31227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31228 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" 31229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31230 break 2 31231 fi 31232 done 31233 done 31234 IFS=$as_save_IFS 31235 31236 ;; 31237 esac 31238 fi 31239 JAVADOC=$ac_cv_path_JAVADOC 31240 if test -n "$JAVADOC"; then 31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 31242 $as_echo "$JAVADOC" >&6; } 31243 else 31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31245 $as_echo "no" >&6; } 31246 fi 31247 31248 31249 if test "x$JAVADOC" = x; then 31250 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31251 fi 31252 else 31253 # Otherwise we believe it is a complete path. Use it as it is. 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVADOC=$tool_specified" >&5 31255 $as_echo "$as_me: Will use user supplied tool JAVADOC=$tool_specified" >&6;} 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31257 $as_echo_n "checking for JAVADOC... " >&6; } 31258 if test ! -x "$tool_specified"; then 31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31260 $as_echo "not found" >&6; } 31261 as_fn_error $? "User supplied tool JAVADOC=$tool_specified does not exist or is not executable" "$LINENO" 5 31262 fi 31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31264 $as_echo "$tool_specified" >&6; } 31265 fi 31266 fi 31267 fi 31268 31269 fi 31270 31271 31272 31273 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31274 31275 # Publish this variable in the help. 31276 31277 31278 if [ -z "${JAR+x}" ]; then 31279 # The variable is not set by user, try to locate tool using the code snippet 31280 31281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31282 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31283 JAR=$BOOT_JDK/bin/jar 31284 if test ! -x $JAR; then 31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31286 $as_echo "not found" >&6; } 31287 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31288 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31289 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31290 fi 31291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31292 $as_echo "ok" >&6; } 31293 31294 31295 else 31296 # The variable is set, but is it from the command line or the environment? 31297 31298 # Try to remove the string !JAR! from our list. 31299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31301 # If it failed, the variable was not from the command line. Ignore it, 31302 # but warn the user (except for BASH, which is always set by the calling BASH). 31303 if test "xJAR" != xBASH; then 31304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31305 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31306 fi 31307 # Try to locate tool using the code snippet 31308 31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31310 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31311 JAR=$BOOT_JDK/bin/jar 31312 if test ! -x $JAR; then 31313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31314 $as_echo "not found" >&6; } 31315 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31316 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31317 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31318 fi 31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31320 $as_echo "ok" >&6; } 31321 31322 31323 else 31324 # If it succeeded, then it was overridden by the user. We will use it 31325 # for the tool. 31326 31327 # First remove it from the list of overridden variables, so we can test 31328 # for unknown variables in the end. 31329 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31330 31331 # Check if we try to supply an empty value 31332 if test "x$JAR" = x; then 31333 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31334 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31336 $as_echo_n "checking for JAR... " >&6; } 31337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31338 $as_echo "disabled" >&6; } 31339 else 31340 # Check if the provided tool contains a complete path. 31341 tool_specified="$JAR" 31342 tool_basename="${tool_specified##*/}" 31343 if test "x$tool_basename" = "x$tool_specified"; then 31344 # A command without a complete path is provided, search $PATH. 31345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31346 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31347 # Extract the first word of "$tool_basename", so it can be a program name with args. 31348 set dummy $tool_basename; ac_word=$2 31349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31350 $as_echo_n "checking for $ac_word... " >&6; } 31351 if ${ac_cv_path_JAR+:} false; then : 31352 $as_echo_n "(cached) " >&6 31353 else 31354 case $JAR in 31355 [\\/]* | ?:[\\/]*) 31356 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31357 ;; 31358 *) 31359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31360 for as_dir in $PATH 31361 do 31362 IFS=$as_save_IFS 31363 test -z "$as_dir" && as_dir=. 31364 for ac_exec_ext in '' $ac_executable_extensions; do 31365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31366 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31368 break 2 31369 fi 31370 done 31371 done 31372 IFS=$as_save_IFS 31373 31374 ;; 31375 esac 31376 fi 31377 JAR=$ac_cv_path_JAR 31378 if test -n "$JAR"; then 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31380 $as_echo "$JAR" >&6; } 31381 else 31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31383 $as_echo "no" >&6; } 31384 fi 31385 31386 31387 if test "x$JAR" = x; then 31388 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31389 fi 31390 else 31391 # Otherwise we believe it is a complete path. Use it as it is. 31392 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31393 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31395 $as_echo_n "checking for JAR... " >&6; } 31396 if test ! -x "$tool_specified"; then 31397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31398 $as_echo "not found" >&6; } 31399 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31400 fi 31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31402 $as_echo "$tool_specified" >&6; } 31403 fi 31404 fi 31405 fi 31406 31407 fi 31408 31409 31410 31411 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31412 31413 # Publish this variable in the help. 31414 31415 31416 if [ -z "${JARSIGNER+x}" ]; then 31417 # The variable is not set by user, try to locate tool using the code snippet 31418 31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31420 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31421 JARSIGNER=$BOOT_JDK/bin/jarsigner 31422 if test ! -x $JARSIGNER; then 31423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31424 $as_echo "not found" >&6; } 31425 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31426 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31427 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31428 fi 31429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31430 $as_echo "ok" >&6; } 31431 31432 31433 else 31434 # The variable is set, but is it from the command line or the environment? 31435 31436 # Try to remove the string !JARSIGNER! from our list. 31437 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31438 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31439 # If it failed, the variable was not from the command line. Ignore it, 31440 # but warn the user (except for BASH, which is always set by the calling BASH). 31441 if test "xJARSIGNER" != xBASH; then 31442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31443 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31444 fi 31445 # Try to locate tool using the code snippet 31446 31447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31448 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31449 JARSIGNER=$BOOT_JDK/bin/jarsigner 31450 if test ! -x $JARSIGNER; then 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31452 $as_echo "not found" >&6; } 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31454 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31455 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31456 fi 31457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31458 $as_echo "ok" >&6; } 31459 31460 31461 else 31462 # If it succeeded, then it was overridden by the user. We will use it 31463 # for the tool. 31464 31465 # First remove it from the list of overridden variables, so we can test 31466 # for unknown variables in the end. 31467 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31468 31469 # Check if we try to supply an empty value 31470 if test "x$JARSIGNER" = x; then 31471 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31472 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31474 $as_echo_n "checking for JARSIGNER... " >&6; } 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31476 $as_echo "disabled" >&6; } 31477 else 31478 # Check if the provided tool contains a complete path. 31479 tool_specified="$JARSIGNER" 31480 tool_basename="${tool_specified##*/}" 31481 if test "x$tool_basename" = "x$tool_specified"; then 31482 # A command without a complete path is provided, search $PATH. 31483 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31484 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31485 # Extract the first word of "$tool_basename", so it can be a program name with args. 31486 set dummy $tool_basename; ac_word=$2 31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31488 $as_echo_n "checking for $ac_word... " >&6; } 31489 if ${ac_cv_path_JARSIGNER+:} false; then : 31490 $as_echo_n "(cached) " >&6 31491 else 31492 case $JARSIGNER in 31493 [\\/]* | ?:[\\/]*) 31494 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31495 ;; 31496 *) 31497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31498 for as_dir in $PATH 31499 do 31500 IFS=$as_save_IFS 31501 test -z "$as_dir" && as_dir=. 31502 for ac_exec_ext in '' $ac_executable_extensions; do 31503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31504 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31506 break 2 31507 fi 31508 done 31509 done 31510 IFS=$as_save_IFS 31511 31512 ;; 31513 esac 31514 fi 31515 JARSIGNER=$ac_cv_path_JARSIGNER 31516 if test -n "$JARSIGNER"; then 31517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31518 $as_echo "$JARSIGNER" >&6; } 31519 else 31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31521 $as_echo "no" >&6; } 31522 fi 31523 31524 31525 if test "x$JARSIGNER" = x; then 31526 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31527 fi 31528 else 31529 # Otherwise we believe it is a complete path. Use it as it is. 31530 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31531 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31533 $as_echo_n "checking for JARSIGNER... " >&6; } 31534 if test ! -x "$tool_specified"; then 31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31536 $as_echo "not found" >&6; } 31537 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31538 fi 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31540 $as_echo "$tool_specified" >&6; } 31541 fi 31542 fi 31543 fi 31544 31545 fi 31546 31547 31548 31549 # Finally, set some other options... 31550 31551 # When compiling code to be executed by the Boot JDK, force compatibility with the 31552 # oldest supported bootjdk. 31553 BOOT_JDK_SOURCETARGET="-source 9 -target 9" 31554 31555 31556 31557 31558 # Check if the boot jdk is 32 or 64 bit 31559 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31560 BOOT_JDK_BITS="64" 31561 else 31562 BOOT_JDK_BITS="32" 31563 fi 31564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31565 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31567 $as_echo "$BOOT_JDK_BITS" >&6; } 31568 31569 # Try to enable CDS 31570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Boot JDK Class Data Sharing (CDS)" >&5 31571 $as_echo_n "checking for local Boot JDK Class Data Sharing (CDS)... " >&6; } 31572 BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa 31573 31574 $ECHO "Check if jvm arg is ok: -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" >&5 31575 $ECHO "Command: $JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version" >&5 31576 OUTPUT=`$JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version 2>&1` 31577 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 31578 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 31579 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 31580 boot_jdk_cds_args="$boot_jdk_cds_args -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" 31581 JVM_ARG_OK=true 31582 else 31583 $ECHO "Arg failed:" >&5 31584 $ECHO "$OUTPUT" >&5 31585 JVM_ARG_OK=false 31586 fi 31587 31588 31589 if test "x$boot_jdk_cds_args" != x; then 31590 # Try creating a CDS archive 31591 "$JAVA" $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1 31592 if test $? -eq 0; then 31593 BOOTJDK_USE_LOCAL_CDS=true 31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, created" >&5 31595 $as_echo "yes, created" >&6; } 31596 else 31597 # Generation failed, don't use CDS. 31598 BOOTJDK_USE_LOCAL_CDS=false 31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, creation failed" >&5 31600 $as_echo "no, creation failed" >&6; } 31601 fi 31602 else 31603 BOOTJDK_USE_LOCAL_CDS=false 31604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, -XX:SharedArchiveFile not supported" >&5 31605 $as_echo "no, -XX:SharedArchiveFile not supported" >&6; } 31606 fi 31607 31608 31609 31610 # Check whether --with-build-jdk was given. 31611 if test "${with_build_jdk+set}" = set; then : 31612 withval=$with_build_jdk; 31613 fi 31614 31615 31616 CREATE_BUILDJDK=false 31617 EXTERNAL_BUILDJDK=false 31618 BUILD_JDK_FOUND="no" 31619 if test "x$with_build_jdk" != "x"; then 31620 31621 if test "x$BUILD_JDK_FOUND" = xno; then 31622 # Execute the test 31623 31624 if test "x$with_build_jdk" != x; then 31625 BUILD_JDK=$with_build_jdk 31626 BUILD_JDK_FOUND=maybe 31627 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31628 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31629 fi 31630 31631 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31632 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31633 # Do we have a bin/java? 31634 if test ! -x "$BUILD_JDK/bin/java"; then 31635 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31636 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31637 BUILD_JDK_FOUND=no 31638 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31639 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31640 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31641 BUILD_JDK_FOUND=no 31642 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31644 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31645 BUILD_JDK_FOUND=no 31646 elif test ! -x "$BUILD_JDK/bin/javac"; then 31647 # Do we have a bin/javac? 31648 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31649 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31650 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31651 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31652 BUILD_JDK_FOUND=no 31653 else 31654 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31655 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31656 31657 # Extra M4 quote needed to protect [] in grep expression. 31658 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"'` 31659 if test "x$FOUND_CORRECT_VERSION" = x; then 31660 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31661 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31662 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 10)" >&5 31663 $as_echo "$as_me: (Your Build JDK must be version 10)" >&6;} 31664 BUILD_JDK_FOUND=no 31665 else 31666 # We're done! 31667 BUILD_JDK_FOUND=yes 31668 31669 # Only process if variable expands to non-empty 31670 31671 if test "x$BUILD_JDK" != x; then 31672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31673 31674 # Input might be given as Windows format, start by converting to 31675 # unix format. 31676 path="$BUILD_JDK" 31677 new_path=`$CYGPATH -u "$path"` 31678 31679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31682 # "foo.exe" is OK but "foo" is an error. 31683 # 31684 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31685 # It is also a way to make sure we got the proper file name for the real test later on. 31686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31687 if test "x$test_shortpath" = x; then 31688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31689 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31690 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31691 fi 31692 31693 # Call helper function which possibly converts this using DOS-style short mode. 31694 # If so, the updated path is stored in $new_path. 31695 31696 input_path="$new_path" 31697 # Check if we need to convert this using DOS-style short mode. If the path 31698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31699 # take no chances and rewrite it. 31700 # Note: m4 eats our [], so we need to use [ and ] instead. 31701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31702 if test "x$has_forbidden_chars" != x; then 31703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31704 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31705 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31706 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31707 # Going to short mode and back again did indeed matter. Since short mode is 31708 # case insensitive, let's make it lowercase to improve readability. 31709 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31710 # Now convert it back to Unix-style (cygpath) 31711 input_path=`$CYGPATH -u "$shortmode_path"` 31712 new_path="$input_path" 31713 fi 31714 fi 31715 31716 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31717 if test "x$test_cygdrive_prefix" = x; then 31718 # As a simple fix, exclude /usr/bin since it's not a real path. 31719 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31720 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31721 # a path prefixed by /cygdrive for fixpath to work. 31722 new_path="$CYGWIN_ROOT_PATH$input_path" 31723 fi 31724 fi 31725 31726 31727 if test "x$path" != "x$new_path"; then 31728 BUILD_JDK="$new_path" 31729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31730 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31731 fi 31732 31733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31734 31735 path="$BUILD_JDK" 31736 has_colon=`$ECHO $path | $GREP ^.:` 31737 new_path="$path" 31738 if test "x$has_colon" = x; then 31739 # Not in mixed or Windows style, start by that. 31740 new_path=`cmd //c echo $path` 31741 fi 31742 31743 31744 input_path="$new_path" 31745 # Check if we need to convert this using DOS-style short mode. If the path 31746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31747 # take no chances and rewrite it. 31748 # Note: m4 eats our [], so we need to use [ and ] instead. 31749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31750 if test "x$has_forbidden_chars" != x; then 31751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31752 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31753 fi 31754 31755 31756 windows_path="$new_path" 31757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31758 unix_path=`$CYGPATH -u "$windows_path"` 31759 new_path="$unix_path" 31760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31762 new_path="$unix_path" 31763 fi 31764 31765 if test "x$path" != "x$new_path"; then 31766 BUILD_JDK="$new_path" 31767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31768 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31769 fi 31770 31771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31773 31774 else 31775 # We're on a unix platform. Hooray! :) 31776 path="$BUILD_JDK" 31777 has_space=`$ECHO "$path" | $GREP " "` 31778 if test "x$has_space" != x; then 31779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31780 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31781 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31782 fi 31783 31784 # Use eval to expand a potential ~ 31785 eval path="$path" 31786 if test ! -f "$path" && test ! -d "$path"; then 31787 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31788 fi 31789 31790 if test -d "$path"; then 31791 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31792 else 31793 dir="`$DIRNAME "$path"`" 31794 base="`$BASENAME "$path"`" 31795 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31796 fi 31797 fi 31798 fi 31799 31800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31801 $as_echo_n "checking for Build JDK... " >&6; } 31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31803 $as_echo "$BUILD_JDK" >&6; } 31804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31805 $as_echo_n "checking Build JDK version... " >&6; } 31806 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31808 $as_echo "$BUILD_JDK_VERSION" >&6; } 31809 fi # end check jdk version 31810 fi # end check java 31811 fi # end check build jdk found 31812 fi 31813 31814 EXTERNAL_BUILDJDK=true 31815 else 31816 if test "x$COMPILE_TYPE" = "xcross"; then 31817 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31818 BUILD_JDK_FOUND=yes 31819 CREATE_BUILDJDK=true 31820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31821 $as_echo_n "checking for Build JDK... " >&6; } 31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31823 $as_echo "yes, will build it for the host platform" >&6; } 31824 else 31825 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31826 BUILD_JDK_FOUND=yes 31827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31828 $as_echo_n "checking for Build JDK... " >&6; } 31829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31830 $as_echo "yes, will use output dir" >&6; } 31831 fi 31832 fi 31833 31834 JMOD="$BUILD_JDK/bin/jmod" 31835 JLINK="$BUILD_JDK/bin/jlink" 31836 31837 31838 31839 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31841 $as_echo_n "checking for Build JDK... " >&6; } 31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31843 $as_echo "no" >&6; } 31844 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31845 fi 31846 31847 31848 31849 31850 31851 31852 ############################################################################### 31853 # 31854 # Configure the sources to use. We can add or override individual directories. 31855 # 31856 ############################################################################### 31857 31858 31859 OUTPUTDIR="$OUTPUTDIR" 31860 31861 JDK_OUTPUTDIR="$OUTPUTDIR/jdk" 31862 31863 # Where are the sources. 31864 31865 31866 31867 31868 # Check whether --with-import-modules was given. 31869 if test "${with_import_modules+set}" = set; then : 31870 withval=$with_import_modules; 31871 fi 31872 31873 31874 if test "x$with_import_modules" != x \ 31875 && test "x$with_import_modules" != "xno"; then 31876 if test -d "$with_import_modules"; then 31877 IMPORT_MODULES_TOPDIR="$with_import_modules" 31878 31879 # Only process if variable expands to non-empty 31880 31881 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31883 31884 # Input might be given as Windows format, start by converting to 31885 # unix format. 31886 path="$IMPORT_MODULES_TOPDIR" 31887 new_path=`$CYGPATH -u "$path"` 31888 31889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31892 # "foo.exe" is OK but "foo" is an error. 31893 # 31894 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31895 # It is also a way to make sure we got the proper file name for the real test later on. 31896 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31897 if test "x$test_shortpath" = x; then 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31899 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31900 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31901 fi 31902 31903 # Call helper function which possibly converts this using DOS-style short mode. 31904 # If so, the updated path is stored in $new_path. 31905 31906 input_path="$new_path" 31907 # Check if we need to convert this using DOS-style short mode. If the path 31908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31909 # take no chances and rewrite it. 31910 # Note: m4 eats our [], so we need to use [ and ] instead. 31911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31912 if test "x$has_forbidden_chars" != x; then 31913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31917 # Going to short mode and back again did indeed matter. Since short mode is 31918 # case insensitive, let's make it lowercase to improve readability. 31919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31920 # Now convert it back to Unix-style (cygpath) 31921 input_path=`$CYGPATH -u "$shortmode_path"` 31922 new_path="$input_path" 31923 fi 31924 fi 31925 31926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31927 if test "x$test_cygdrive_prefix" = x; then 31928 # As a simple fix, exclude /usr/bin since it's not a real path. 31929 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31931 # a path prefixed by /cygdrive for fixpath to work. 31932 new_path="$CYGWIN_ROOT_PATH$input_path" 31933 fi 31934 fi 31935 31936 31937 if test "x$path" != "x$new_path"; then 31938 IMPORT_MODULES_TOPDIR="$new_path" 31939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31940 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31941 fi 31942 31943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31944 31945 path="$IMPORT_MODULES_TOPDIR" 31946 has_colon=`$ECHO $path | $GREP ^.:` 31947 new_path="$path" 31948 if test "x$has_colon" = x; then 31949 # Not in mixed or Windows style, start by that. 31950 new_path=`cmd //c echo $path` 31951 fi 31952 31953 31954 input_path="$new_path" 31955 # Check if we need to convert this using DOS-style short mode. If the path 31956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31957 # take no chances and rewrite it. 31958 # Note: m4 eats our [], so we need to use [ and ] instead. 31959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31960 if test "x$has_forbidden_chars" != x; then 31961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31963 fi 31964 31965 31966 windows_path="$new_path" 31967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31968 unix_path=`$CYGPATH -u "$windows_path"` 31969 new_path="$unix_path" 31970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31972 new_path="$unix_path" 31973 fi 31974 31975 if test "x$path" != "x$new_path"; then 31976 IMPORT_MODULES_TOPDIR="$new_path" 31977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31978 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31979 fi 31980 31981 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31982 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31983 31984 else 31985 # We're on a unix platform. Hooray! :) 31986 path="$IMPORT_MODULES_TOPDIR" 31987 has_space=`$ECHO "$path" | $GREP " "` 31988 if test "x$has_space" != x; then 31989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31990 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31991 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31992 fi 31993 31994 # Use eval to expand a potential ~ 31995 eval path="$path" 31996 if test ! -f "$path" && test ! -d "$path"; then 31997 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31998 fi 31999 32000 if test -d "$path"; then 32001 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 32002 else 32003 dir="`$DIRNAME "$path"`" 32004 base="`$BASENAME "$path"`" 32005 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 32006 fi 32007 fi 32008 fi 32009 32010 elif test -e "$with_import_modules"; then 32011 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 32012 $RM -rf "$IMPORT_MODULES_TOPDIR" 32013 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 32014 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 32015 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 32016 fi 32017 else 32018 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 32019 fi 32020 fi 32021 32022 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 32023 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 32024 fi 32025 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 32026 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 32027 fi 32028 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 32029 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 32030 fi 32031 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 32032 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 32033 fi 32034 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 32035 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 32036 fi 32037 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 32038 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 32039 fi 32040 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 32041 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 32042 fi 32043 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 32044 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 32045 fi 32046 32047 32048 32049 32050 32051 32052 32053 32054 32055 32056 32057 ############################################################################### 32058 # 32059 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 32060 # native code. 32061 # 32062 ############################################################################### 32063 32064 # See if we are doing a complete static build or not 32065 32066 # Check whether --enable-static-build was given. 32067 if test "${enable_static_build+set}" = set; then : 32068 enableval=$enable_static_build; 32069 fi 32070 32071 STATIC_BUILD=false 32072 if test "x$enable_static_build" = "xyes"; then 32073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 32074 $as_echo_n "checking if static build is enabled... " >&6; } 32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32076 $as_echo "yes" >&6; } 32077 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 32078 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 32079 fi 32080 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 32081 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 32082 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 32083 STATIC_BUILD=true 32084 elif test "x$enable_static_build" = "xno"; then 32085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 32086 $as_echo_n "checking if static build is enabled... " >&6; } 32087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32088 $as_echo "no" >&6; } 32089 elif test "x$enable_static_build" != "x"; then 32090 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 32091 fi 32092 32093 32094 32095 32096 # First determine the toolchain type (compiler family) 32097 32098 32099 # Check whether --with-toolchain-type was given. 32100 if test "${with_toolchain_type+set}" = set; then : 32101 withval=$with_toolchain_type; 32102 fi 32103 32104 32105 # Use indirect variable referencing 32106 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 32107 VALID_TOOLCHAINS=${!toolchain_var_name} 32108 32109 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32110 if test -n "$XCODEBUILD"; then 32111 # On Mac OS X, default toolchain to clang after Xcode 5 32112 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 32113 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 32114 if test $? -ne 0; then 32115 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 32116 fi 32117 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 32118 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 32119 $CUT -f 1 -d .` 32120 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 32121 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 32122 if test $XCODE_MAJOR_VERSION -ge 5; then 32123 DEFAULT_TOOLCHAIN="clang" 32124 else 32125 DEFAULT_TOOLCHAIN="gcc" 32126 fi 32127 else 32128 # If Xcode is not installed, but the command line tools are 32129 # then we can't run xcodebuild. On these systems we should 32130 # default to clang 32131 DEFAULT_TOOLCHAIN="clang" 32132 fi 32133 else 32134 # First toolchain type in the list is the default 32135 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 32136 fi 32137 32138 if test "x$with_toolchain_type" = xlist; then 32139 # List all toolchains 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 32141 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 32142 for toolchain in $VALID_TOOLCHAINS; do 32143 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 32144 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32145 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 32146 done 32147 32148 exit 0 32149 elif test "x$with_toolchain_type" != x; then 32150 # User override; check that it is valid 32151 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32152 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32153 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32154 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32155 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32156 as_fn_error $? "Cannot continue." "$LINENO" 5 32157 fi 32158 TOOLCHAIN_TYPE=$with_toolchain_type 32159 else 32160 # No flag given, use default 32161 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32162 fi 32163 32164 32165 TOOLCHAIN_CC_BINARY_clang="clang" 32166 TOOLCHAIN_CC_BINARY_gcc="gcc" 32167 TOOLCHAIN_CC_BINARY_microsoft="cl" 32168 TOOLCHAIN_CC_BINARY_solstudio="cc" 32169 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32170 32171 TOOLCHAIN_CXX_BINARY_clang="clang++" 32172 TOOLCHAIN_CXX_BINARY_gcc="g++" 32173 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32174 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32175 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32176 32177 # Use indirect variable referencing 32178 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32179 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32180 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32181 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32182 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32183 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32184 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32185 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32186 32187 32188 # Define filename patterns 32189 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32190 LIBRARY_PREFIX= 32191 SHARED_LIBRARY_SUFFIX='.dll' 32192 STATIC_LIBRARY_SUFFIX='.lib' 32193 SHARED_LIBRARY='$1.dll' 32194 STATIC_LIBRARY='$1.lib' 32195 OBJ_SUFFIX='.obj' 32196 EXE_SUFFIX='.exe' 32197 else 32198 LIBRARY_PREFIX=lib 32199 SHARED_LIBRARY_SUFFIX='.so' 32200 STATIC_LIBRARY_SUFFIX='.a' 32201 SHARED_LIBRARY='lib$1.so' 32202 STATIC_LIBRARY='lib$1.a' 32203 OBJ_SUFFIX='.o' 32204 EXE_SUFFIX='' 32205 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32206 # For full static builds, we're overloading the SHARED_LIBRARY 32207 # variables in order to limit the amount of changes required. 32208 # It would be better to remove SHARED and just use LIBRARY and 32209 # LIBRARY_SUFFIX for libraries that can be built either 32210 # shared or static and use STATIC_* for libraries that are 32211 # always built statically. 32212 if test "x$STATIC_BUILD" = xtrue; then 32213 SHARED_LIBRARY='lib$1.a' 32214 SHARED_LIBRARY_SUFFIX='.a' 32215 else 32216 SHARED_LIBRARY='lib$1.dylib' 32217 SHARED_LIBRARY_SUFFIX='.dylib' 32218 fi 32219 fi 32220 fi 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32232 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32233 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32234 else 32235 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32236 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32237 fi 32238 32239 32240 # User supplied flags should be used when configure detects compilers 32241 32242 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32244 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32245 fi 32246 32247 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32249 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32250 fi 32251 32252 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32254 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32255 fi 32256 32257 32258 # Check whether --with-extra-cflags was given. 32259 if test "${with_extra_cflags+set}" = set; then : 32260 withval=$with_extra_cflags; 32261 fi 32262 32263 32264 32265 # Check whether --with-extra-cxxflags was given. 32266 if test "${with_extra_cxxflags+set}" = set; then : 32267 withval=$with_extra_cxxflags; 32268 fi 32269 32270 32271 32272 # Check whether --with-extra-ldflags was given. 32273 if test "${with_extra_ldflags+set}" = set; then : 32274 withval=$with_extra_ldflags; 32275 fi 32276 32277 32278 EXTRA_CFLAGS="$with_extra_cflags" 32279 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32280 EXTRA_LDFLAGS="$with_extra_ldflags" 32281 32282 32283 32284 32285 32286 # The global CFLAGS and LDLAGS variables are used by configure tests and 32287 # should include the extra parameters 32288 CFLAGS="$EXTRA_CFLAGS" 32289 CXXFLAGS="$EXTRA_CXXFLAGS" 32290 LDFLAGS="$EXTRA_LDFLAGS" 32291 CPPFLAGS="" 32292 32293 # The sysroot cflags are needed for configure to be able to run the compilers 32294 32295 if test "x$SYSROOT" != "x"; then 32296 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32297 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32298 # Solaris Studio does not have a concept of sysroot. Instead we must 32299 # make sure the default include and lib dirs are appended to each 32300 # compile and link command line. Must also add -I-xbuiltin to enable 32301 # inlining of system functions and intrinsics. 32302 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32303 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32304 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32305 fi 32306 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32307 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32308 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32309 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32310 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32311 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32312 fi 32313 # The global CFLAGS and LDFLAGS variables need these for configure to function 32314 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32315 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32316 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32317 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32318 fi 32319 32320 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32321 # We also need -iframework<path>/System/Library/Frameworks 32322 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32323 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32324 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32325 # set this here so it doesn't have to be peppered throughout the forest 32326 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32327 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32328 fi 32329 32330 32331 32332 32333 32334 # Then detect the actual binaries needed 32335 32336 # FIXME: Is this needed? 32337 ac_ext=cpp 32338 ac_cpp='$CXXCPP $CPPFLAGS' 32339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32342 32343 32344 # Store the CFLAGS etc passed to the configure script. 32345 ORG_CFLAGS="$CFLAGS" 32346 ORG_CXXFLAGS="$CXXFLAGS" 32347 32348 # autoconf magic only relies on PATH, so update it if tools dir is specified 32349 OLD_PATH="$PATH" 32350 32351 # On Windows, we need to detect the visual studio installation first. 32352 # This will change the PATH, but we need to keep that new PATH even 32353 # after toolchain detection is done, since the compiler (on x86) uses 32354 # it for DLL resolution in runtime. 32355 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32356 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32357 32358 # Store path to cygwin link.exe to help excluding it when searching for 32359 # VS linker. This must be done before changing the PATH when looking for VS. 32360 # Extract the first word of "link", so it can be a program name with args. 32361 set dummy link; ac_word=$2 32362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32363 $as_echo_n "checking for $ac_word... " >&6; } 32364 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32365 $as_echo_n "(cached) " >&6 32366 else 32367 case $CYGWIN_LINK in 32368 [\\/]* | ?:[\\/]*) 32369 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32370 ;; 32371 *) 32372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32373 for as_dir in $PATH 32374 do 32375 IFS=$as_save_IFS 32376 test -z "$as_dir" && as_dir=. 32377 for ac_exec_ext in '' $ac_executable_extensions; do 32378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32379 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32381 break 2 32382 fi 32383 done 32384 done 32385 IFS=$as_save_IFS 32386 32387 ;; 32388 esac 32389 fi 32390 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32391 if test -n "$CYGWIN_LINK"; then 32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32393 $as_echo "$CYGWIN_LINK" >&6; } 32394 else 32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32396 $as_echo "no" >&6; } 32397 fi 32398 32399 32400 if test "x$CYGWIN_LINK" != x; then 32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32402 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32403 "$CYGWIN_LINK" --version > /dev/null 32404 if test $? -eq 0 ; then 32405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32406 $as_echo "yes" >&6; } 32407 else 32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32409 $as_echo "no" >&6; } 32410 # This might be the VS linker. Don't exclude it later on. 32411 CYGWIN_LINK="" 32412 fi 32413 fi 32414 32415 # First-hand choice is to locate and run the vsvars bat file. 32416 32417 32418 # Check whether --with-toolchain-version was given. 32419 if test "${with_toolchain_version+set}" = set; then : 32420 withval=$with_toolchain_version; 32421 fi 32422 32423 32424 if test "x$with_toolchain_version" = xlist; then 32425 # List all toolchains 32426 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32427 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32428 for version in $VALID_VS_VERSIONS; do 32429 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32430 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32431 done 32432 32433 exit 0 32434 elif test "x$DEVKIT_VS_VERSION" != x; then 32435 VS_VERSION=$DEVKIT_VS_VERSION 32436 TOOLCHAIN_VERSION=$VS_VERSION 32437 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32438 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32439 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32440 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32441 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32442 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32443 32444 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32445 # can still be exported as INCLUDE for compiler invocations without 32446 # SYSROOT_CFLAGS 32447 OLDIFS="$IFS" 32448 IFS=";" 32449 for i in $DEVKIT_VS_INCLUDE; do 32450 ipath=$i 32451 32452 unix_path="$ipath" 32453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32454 windows_path=`$CYGPATH -m "$unix_path"` 32455 ipath="$windows_path" 32456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32457 windows_path=`cmd //c echo $unix_path` 32458 ipath="$windows_path" 32459 fi 32460 32461 VS_INCLUDE="$VS_INCLUDE;$ipath" 32462 done 32463 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32464 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32465 for i in $DEVKIT_VS_LIB; do 32466 libpath=$i 32467 32468 unix_path="$libpath" 32469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32470 windows_path=`$CYGPATH -m "$unix_path"` 32471 libpath="$windows_path" 32472 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32473 windows_path=`cmd //c echo $unix_path` 32474 libpath="$windows_path" 32475 fi 32476 32477 VS_LIB="$VS_LIB;$libpath" 32478 done 32479 IFS="$OLDIFS" 32480 32481 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32482 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32483 32484 elif test "x$with_toolchain_version" != x; then 32485 # User override; check that it is valid 32486 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32487 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32488 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32489 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32490 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32491 as_fn_error $? "Cannot continue." "$LINENO" 5 32492 fi 32493 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32494 else 32495 # No flag given, use default 32496 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32497 fi 32498 32499 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32500 32501 VS_VERSION="$VS_VERSION" 32502 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32503 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32504 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32505 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32506 32507 # When using --with-tools-dir, assume it points to the correct and default 32508 # version of Visual Studio or that --with-toolchain-version was also set. 32509 if test "x$with_tools_dir" != x; then 32510 32511 if test "x$VS_ENV_CMD" = x; then 32512 VS_VERSION="${VS_VERSION}" 32513 VS_BASE="$with_tools_dir/../.." 32514 METHOD="--with-tools-dir" 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 32550 if test "x$VS_ENV_CMD" = x; then 32551 VS_VERSION="${VS_VERSION}" 32552 VS_BASE="$with_tools_dir/../../.." 32553 METHOD="--with-tools-dir" 32554 32555 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32556 VCVARSFILE="vc/bin/vcvars32.bat" 32557 else 32558 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32559 fi 32560 32561 32562 windows_path="$VS_BASE" 32563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32564 unix_path=`$CYGPATH -u "$windows_path"` 32565 VS_BASE="$unix_path" 32566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32568 VS_BASE="$unix_path" 32569 fi 32570 32571 if test -d "$VS_BASE"; then 32572 if test -f "$VS_BASE/$VCVARSFILE"; then 32573 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32574 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32575 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32576 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32577 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32578 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32579 else 32580 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32581 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32582 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32583 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32584 fi 32585 fi 32586 fi 32587 32588 if test "x$VS_ENV_CMD" = x; then 32589 # Having specified an argument which is incorrect will produce an instant failure; 32590 # we should not go on looking 32591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32592 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32593 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32594 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32595 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32596 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32597 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32598 fi 32599 fi 32600 32601 VS_ENV_CMD="" 32602 VS_ENV_ARGS="" 32603 32604 if test "x$VS_COMNTOOLS" != x; then 32605 32606 if test "x$VS_ENV_CMD" = x; then 32607 VS_VERSION="${VS_VERSION}" 32608 VS_BASE="$VS_COMNTOOLS/../.." 32609 METHOD="$VS_COMNTOOLS_VAR variable" 32610 32611 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32612 VCVARSFILE="vc/bin/vcvars32.bat" 32613 else 32614 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32615 fi 32616 32617 32618 windows_path="$VS_BASE" 32619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32620 unix_path=`$CYGPATH -u "$windows_path"` 32621 VS_BASE="$unix_path" 32622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32624 VS_BASE="$unix_path" 32625 fi 32626 32627 if test -d "$VS_BASE"; then 32628 if test -f "$VS_BASE/$VCVARSFILE"; then 32629 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32630 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32631 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32632 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32633 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32634 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32635 else 32636 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32637 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32638 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32639 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32640 fi 32641 fi 32642 fi 32643 32644 fi 32645 if test "x$PROGRAMFILES" != x; then 32646 32647 if test "x$VS_ENV_CMD" = x; then 32648 VS_VERSION="${VS_VERSION}" 32649 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32650 METHOD="well-known name" 32651 32652 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32653 VCVARSFILE="vc/bin/vcvars32.bat" 32654 else 32655 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32656 fi 32657 32658 32659 windows_path="$VS_BASE" 32660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32661 unix_path=`$CYGPATH -u "$windows_path"` 32662 VS_BASE="$unix_path" 32663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32665 VS_BASE="$unix_path" 32666 fi 32667 32668 if test -d "$VS_BASE"; then 32669 if test -f "$VS_BASE/$VCVARSFILE"; then 32670 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32671 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32672 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32673 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32674 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32675 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32676 else 32677 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32678 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32679 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32680 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32681 fi 32682 fi 32683 fi 32684 32685 fi 32686 # Work around the insanely named ProgramFiles(x86) env variable 32687 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32688 if test "x$PROGRAMFILES_X86" != x; then 32689 32690 if test "x$VS_ENV_CMD" = x; then 32691 VS_VERSION="${VS_VERSION}" 32692 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32693 METHOD="well-known name" 32694 32695 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32696 VCVARSFILE="vc/bin/vcvars32.bat" 32697 else 32698 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32699 fi 32700 32701 32702 windows_path="$VS_BASE" 32703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32704 unix_path=`$CYGPATH -u "$windows_path"` 32705 VS_BASE="$unix_path" 32706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32708 VS_BASE="$unix_path" 32709 fi 32710 32711 if test -d "$VS_BASE"; then 32712 if test -f "$VS_BASE/$VCVARSFILE"; then 32713 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32714 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32715 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32716 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32717 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32718 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32719 else 32720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32721 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32722 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32723 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32724 fi 32725 fi 32726 fi 32727 32728 fi 32729 32730 if test "x$VS_ENV_CMD" = x; then 32731 VS_VERSION="${VS_VERSION}" 32732 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32733 METHOD="well-known name" 32734 32735 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32736 VCVARSFILE="vc/bin/vcvars32.bat" 32737 else 32738 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32739 fi 32740 32741 32742 windows_path="$VS_BASE" 32743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32744 unix_path=`$CYGPATH -u "$windows_path"` 32745 VS_BASE="$unix_path" 32746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32747 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32748 VS_BASE="$unix_path" 32749 fi 32750 32751 if test -d "$VS_BASE"; then 32752 if test -f "$VS_BASE/$VCVARSFILE"; then 32753 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32754 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32755 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32756 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32757 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32758 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32759 else 32760 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32761 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32762 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32763 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32764 fi 32765 fi 32766 fi 32767 32768 32769 if test "x$VS_ENV_CMD" = x; then 32770 VS_VERSION="${VS_VERSION}" 32771 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32772 METHOD="well-known name" 32773 32774 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32775 VCVARSFILE="vc/bin/vcvars32.bat" 32776 else 32777 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32778 fi 32779 32780 32781 windows_path="$VS_BASE" 32782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32783 unix_path=`$CYGPATH -u "$windows_path"` 32784 VS_BASE="$unix_path" 32785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32787 VS_BASE="$unix_path" 32788 fi 32789 32790 if test -d "$VS_BASE"; then 32791 if test -f "$VS_BASE/$VCVARSFILE"; then 32792 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32793 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32794 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32795 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32796 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32797 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32798 else 32799 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32800 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32801 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32802 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32803 fi 32804 fi 32805 fi 32806 32807 32808 if test "x$SDK_INSTALL_DIR" != x; then 32809 if test "x$ProgramW6432" != x; then 32810 32811 if test "x$VS_ENV_CMD" = x; then 32812 VS_VERSION="${VS_VERSION}" 32813 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32814 METHOD="well-known name" 32815 32816 windows_path="$WIN_SDK_BASE" 32817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32818 unix_path=`$CYGPATH -u "$windows_path"` 32819 WIN_SDK_BASE="$unix_path" 32820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32821 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32822 WIN_SDK_BASE="$unix_path" 32823 fi 32824 32825 if test -d "$WIN_SDK_BASE"; then 32826 # There have been cases of partial or broken SDK installations. A missing 32827 # lib dir is not going to work. 32828 if test ! -d "$WIN_SDK_BASE/lib"; then 32829 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32830 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32831 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32832 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32833 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32834 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32835 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32836 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32837 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32838 VS_ENV_ARGS="/x86" 32839 else 32840 VS_ENV_ARGS="/x64" 32841 fi 32842 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32843 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32844 # TODO: improve detection for other versions of SDK 32845 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32846 else 32847 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32848 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32849 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32850 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32851 fi 32852 fi 32853 fi 32854 32855 fi 32856 if test "x$PROGRAMW6432" != x; then 32857 32858 if test "x$VS_ENV_CMD" = x; then 32859 VS_VERSION="${VS_VERSION}" 32860 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32861 METHOD="well-known name" 32862 32863 windows_path="$WIN_SDK_BASE" 32864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32865 unix_path=`$CYGPATH -u "$windows_path"` 32866 WIN_SDK_BASE="$unix_path" 32867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32869 WIN_SDK_BASE="$unix_path" 32870 fi 32871 32872 if test -d "$WIN_SDK_BASE"; then 32873 # There have been cases of partial or broken SDK installations. A missing 32874 # lib dir is not going to work. 32875 if test ! -d "$WIN_SDK_BASE/lib"; then 32876 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32877 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32878 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32879 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32880 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32881 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32882 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32883 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32884 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32885 VS_ENV_ARGS="/x86" 32886 else 32887 VS_ENV_ARGS="/x64" 32888 fi 32889 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32890 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32891 # TODO: improve detection for other versions of SDK 32892 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32893 else 32894 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32895 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32896 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32897 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32898 fi 32899 fi 32900 fi 32901 32902 fi 32903 if test "x$PROGRAMFILES" != x; then 32904 32905 if test "x$VS_ENV_CMD" = x; then 32906 VS_VERSION="${VS_VERSION}" 32907 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32908 METHOD="well-known name" 32909 32910 windows_path="$WIN_SDK_BASE" 32911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32912 unix_path=`$CYGPATH -u "$windows_path"` 32913 WIN_SDK_BASE="$unix_path" 32914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32916 WIN_SDK_BASE="$unix_path" 32917 fi 32918 32919 if test -d "$WIN_SDK_BASE"; then 32920 # There have been cases of partial or broken SDK installations. A missing 32921 # lib dir is not going to work. 32922 if test ! -d "$WIN_SDK_BASE/lib"; then 32923 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32924 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32925 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32926 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32927 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32929 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32930 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32931 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32932 VS_ENV_ARGS="/x86" 32933 else 32934 VS_ENV_ARGS="/x64" 32935 fi 32936 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32937 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32938 # TODO: improve detection for other versions of SDK 32939 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32940 else 32941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32942 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32944 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32945 fi 32946 fi 32947 fi 32948 32949 fi 32950 32951 if test "x$VS_ENV_CMD" = x; then 32952 VS_VERSION="${VS_VERSION}" 32953 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32954 METHOD="well-known name" 32955 32956 windows_path="$WIN_SDK_BASE" 32957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32958 unix_path=`$CYGPATH -u "$windows_path"` 32959 WIN_SDK_BASE="$unix_path" 32960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32962 WIN_SDK_BASE="$unix_path" 32963 fi 32964 32965 if test -d "$WIN_SDK_BASE"; then 32966 # There have been cases of partial or broken SDK installations. A missing 32967 # lib dir is not going to work. 32968 if test ! -d "$WIN_SDK_BASE/lib"; then 32969 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32970 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32971 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32972 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32973 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32974 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32975 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32976 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32977 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32978 VS_ENV_ARGS="/x86" 32979 else 32980 VS_ENV_ARGS="/x64" 32981 fi 32982 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32983 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32984 # TODO: improve detection for other versions of SDK 32985 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32986 else 32987 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32988 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32989 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32990 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32991 fi 32992 fi 32993 fi 32994 32995 32996 if test "x$VS_ENV_CMD" = x; then 32997 VS_VERSION="${VS_VERSION}" 32998 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32999 METHOD="well-known name" 33000 33001 windows_path="$WIN_SDK_BASE" 33002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33003 unix_path=`$CYGPATH -u "$windows_path"` 33004 WIN_SDK_BASE="$unix_path" 33005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33007 WIN_SDK_BASE="$unix_path" 33008 fi 33009 33010 if test -d "$WIN_SDK_BASE"; then 33011 # There have been cases of partial or broken SDK installations. A missing 33012 # lib dir is not going to work. 33013 if test ! -d "$WIN_SDK_BASE/lib"; then 33014 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33015 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33016 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 33017 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 33018 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 33019 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33020 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33021 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 33022 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 33023 VS_ENV_ARGS="/x86" 33024 else 33025 VS_ENV_ARGS="/x64" 33026 fi 33027 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 33028 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 33029 # TODO: improve detection for other versions of SDK 33030 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 33031 else 33032 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33033 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33034 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 33035 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 33036 fi 33037 fi 33038 fi 33039 33040 fi 33041 33042 if test "x$VS_ENV_CMD" != x; then 33043 TOOLCHAIN_VERSION=$VS_VERSION 33044 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 33045 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 33046 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 33047 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 33048 # The rest of the variables are already evaled while probing 33049 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 33050 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 33051 break 33052 fi 33053 done 33054 33055 33056 # If we have a devkit, skip all of the below. 33057 if test "x$DEVKIT_VS_VERSION" = x; then 33058 if test "x$VS_ENV_CMD" != x; then 33059 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 33060 33061 # Only process if variable expands to non-empty 33062 33063 if test "x$VS_ENV_CMD" != x; then 33064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33065 33066 # First separate the path from the arguments. This will split at the first 33067 # space. 33068 complete="$VS_ENV_CMD" 33069 path="${complete%% *}" 33070 tmp="$complete EOL" 33071 arguments="${tmp#* }" 33072 33073 # Input might be given as Windows format, start by converting to 33074 # unix format. 33075 new_path=`$CYGPATH -u "$path"` 33076 33077 # Now try to locate executable using which 33078 new_path=`$WHICH "$new_path" 2> /dev/null` 33079 # bat and cmd files are not always considered executable in cygwin causing which 33080 # to not find them 33081 if test "x$new_path" = x \ 33082 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33083 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33084 new_path=`$CYGPATH -u "$path"` 33085 fi 33086 if test "x$new_path" = x; then 33087 # Oops. Which didn't find the executable. 33088 # The splitting of arguments from the executable at a space might have been incorrect, 33089 # since paths with space are more likely in Windows. Give it another try with the whole 33090 # argument. 33091 path="$complete" 33092 arguments="EOL" 33093 new_path=`$CYGPATH -u "$path"` 33094 new_path=`$WHICH "$new_path" 2> /dev/null` 33095 # bat and cmd files are not always considered executable in cygwin causing which 33096 # to not find them 33097 if test "x$new_path" = x \ 33098 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33099 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33100 new_path=`$CYGPATH -u "$path"` 33101 fi 33102 if test "x$new_path" = x; then 33103 # It's still not found. Now this is an unrecoverable error. 33104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33105 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33106 has_space=`$ECHO "$complete" | $GREP " "` 33107 if test "x$has_space" != x; then 33108 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33109 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33110 fi 33111 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33112 fi 33113 fi 33114 33115 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33116 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33117 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33118 # "foo.exe" is OK but "foo" is an error. 33119 # 33120 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33121 # It is also a way to make sure we got the proper file name for the real test later on. 33122 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33123 if test "x$test_shortpath" = x; then 33124 # Short path failed, file does not exist as specified. 33125 # Try adding .exe or .cmd 33126 if test -f "${new_path}.exe"; then 33127 input_to_shortpath="${new_path}.exe" 33128 elif test -f "${new_path}.cmd"; then 33129 input_to_shortpath="${new_path}.cmd" 33130 else 33131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 33132 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 33133 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33134 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33135 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33136 fi 33137 else 33138 input_to_shortpath="$new_path" 33139 fi 33140 33141 # Call helper function which possibly converts this using DOS-style short mode. 33142 # If so, the updated path is stored in $new_path. 33143 new_path="$input_to_shortpath" 33144 33145 input_path="$input_to_shortpath" 33146 # Check if we need to convert this using DOS-style short mode. If the path 33147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33148 # take no chances and rewrite it. 33149 # Note: m4 eats our [], so we need to use [ and ] instead. 33150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33151 if test "x$has_forbidden_chars" != x; then 33152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33153 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33154 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33155 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33156 # Going to short mode and back again did indeed matter. Since short mode is 33157 # case insensitive, let's make it lowercase to improve readability. 33158 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33159 # Now convert it back to Unix-style (cygpath) 33160 input_path=`$CYGPATH -u "$shortmode_path"` 33161 new_path="$input_path" 33162 fi 33163 fi 33164 33165 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33166 if test "x$test_cygdrive_prefix" = x; then 33167 # As a simple fix, exclude /usr/bin since it's not a real path. 33168 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33169 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33170 # a path prefixed by /cygdrive for fixpath to work. 33171 new_path="$CYGWIN_ROOT_PATH$input_path" 33172 fi 33173 fi 33174 33175 # remove trailing .exe if any 33176 new_path="${new_path/%.exe/}" 33177 33178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33179 33180 # First separate the path from the arguments. This will split at the first 33181 # space. 33182 complete="$VS_ENV_CMD" 33183 path="${complete%% *}" 33184 tmp="$complete EOL" 33185 arguments="${tmp#* }" 33186 33187 # Input might be given as Windows format, start by converting to 33188 # unix format. 33189 new_path="$path" 33190 33191 windows_path="$new_path" 33192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33193 unix_path=`$CYGPATH -u "$windows_path"` 33194 new_path="$unix_path" 33195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33197 new_path="$unix_path" 33198 fi 33199 33200 33201 # Now try to locate executable using which 33202 new_path=`$WHICH "$new_path" 2> /dev/null` 33203 33204 if test "x$new_path" = x; then 33205 # Oops. Which didn't find the executable. 33206 # The splitting of arguments from the executable at a space might have been incorrect, 33207 # since paths with space are more likely in Windows. Give it another try with the whole 33208 # argument. 33209 path="$complete" 33210 arguments="EOL" 33211 new_path="$path" 33212 33213 windows_path="$new_path" 33214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33215 unix_path=`$CYGPATH -u "$windows_path"` 33216 new_path="$unix_path" 33217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33219 new_path="$unix_path" 33220 fi 33221 33222 33223 new_path=`$WHICH "$new_path" 2> /dev/null` 33224 # bat and cmd files are not always considered executable in MSYS causing which 33225 # to not find them 33226 if test "x$new_path" = x \ 33227 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33228 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33229 new_path="$path" 33230 33231 windows_path="$new_path" 33232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33233 unix_path=`$CYGPATH -u "$windows_path"` 33234 new_path="$unix_path" 33235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33237 new_path="$unix_path" 33238 fi 33239 33240 fi 33241 33242 if test "x$new_path" = x; then 33243 # It's still not found. Now this is an unrecoverable error. 33244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33245 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33246 has_space=`$ECHO "$complete" | $GREP " "` 33247 if test "x$has_space" != x; then 33248 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33249 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33250 fi 33251 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33252 fi 33253 fi 33254 33255 # Now new_path has a complete unix path to the binary 33256 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33257 # Keep paths in /bin as-is, but remove trailing .exe if any 33258 new_path="${new_path/%.exe/}" 33259 # Do not save /bin paths to all_fixpath_prefixes! 33260 else 33261 # Not in mixed or Windows style, start by that. 33262 new_path=`cmd //c echo $new_path` 33263 33264 input_path="$new_path" 33265 # Check if we need to convert this using DOS-style short mode. If the path 33266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33267 # take no chances and rewrite it. 33268 # Note: m4 eats our [], so we need to use [ and ] instead. 33269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33270 if test "x$has_forbidden_chars" != x; then 33271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33272 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33273 fi 33274 33275 # Output is in $new_path 33276 33277 windows_path="$new_path" 33278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33279 unix_path=`$CYGPATH -u "$windows_path"` 33280 new_path="$unix_path" 33281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33283 new_path="$unix_path" 33284 fi 33285 33286 # remove trailing .exe if any 33287 new_path="${new_path/%.exe/}" 33288 33289 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33290 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33291 fi 33292 33293 else 33294 # We're on a unix platform. Hooray! :) 33295 # First separate the path from the arguments. This will split at the first 33296 # space. 33297 complete="$VS_ENV_CMD" 33298 path="${complete%% *}" 33299 tmp="$complete EOL" 33300 arguments="${tmp#* }" 33301 33302 # Cannot rely on the command "which" here since it doesn't always work. 33303 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33304 if test -z "$is_absolute_path"; then 33305 # Path to executable is not absolute. Find it. 33306 IFS_save="$IFS" 33307 IFS=: 33308 for p in $PATH; do 33309 if test -f "$p/$path" && test -x "$p/$path"; then 33310 new_path="$p/$path" 33311 break 33312 fi 33313 done 33314 IFS="$IFS_save" 33315 else 33316 # This is an absolute path, we can use it without further modifications. 33317 new_path="$path" 33318 fi 33319 33320 if test "x$new_path" = x; then 33321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33322 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33323 has_space=`$ECHO "$complete" | $GREP " "` 33324 if test "x$has_space" != x; then 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33326 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33327 fi 33328 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33329 fi 33330 fi 33331 33332 # Now join together the path and the arguments once again 33333 if test "x$arguments" != xEOL; then 33334 new_complete="$new_path ${arguments% *}" 33335 else 33336 new_complete="$new_path" 33337 fi 33338 33339 if test "x$complete" != "x$new_complete"; then 33340 VS_ENV_CMD="$new_complete" 33341 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33342 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33343 fi 33344 fi 33345 33346 33347 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33348 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33349 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33350 33351 # We need to create a couple of temporary files. 33352 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33353 $MKDIR -p $VS_ENV_TMP_DIR 33354 33355 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33356 # Instead create a shell script which will set the relevant variables when run. 33357 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33358 33359 unix_path="$WINPATH_VS_ENV_CMD" 33360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33361 windows_path=`$CYGPATH -m "$unix_path"` 33362 WINPATH_VS_ENV_CMD="$windows_path" 33363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33364 windows_path=`cmd //c echo $unix_path` 33365 WINPATH_VS_ENV_CMD="$windows_path" 33366 fi 33367 33368 WINPATH_BASH="$BASH" 33369 33370 unix_path="$WINPATH_BASH" 33371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33372 windows_path=`$CYGPATH -m "$unix_path"` 33373 WINPATH_BASH="$windows_path" 33374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33375 windows_path=`cmd //c echo $unix_path` 33376 WINPATH_BASH="$windows_path" 33377 fi 33378 33379 33380 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33381 # script (executable by bash) that will setup the important variables. 33382 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33383 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33384 # This will end up something like: 33385 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33386 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33387 # These will end up something like: 33388 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33389 # The trailing space for everyone except PATH is no typo, but is needed due 33390 # to trailing \ in the Windows paths. These will be stripped later. 33391 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33392 >> $EXTRACT_VC_ENV_BAT_FILE 33393 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33394 >> $EXTRACT_VC_ENV_BAT_FILE 33395 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33396 >> $EXTRACT_VC_ENV_BAT_FILE 33397 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33398 >> $EXTRACT_VC_ENV_BAT_FILE 33399 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33400 >> $EXTRACT_VC_ENV_BAT_FILE 33401 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33402 >> $EXTRACT_VC_ENV_BAT_FILE 33403 33404 # Now execute the newly created bat file. 33405 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33406 # Change directory so we don't need to mess with Windows paths in redirects. 33407 cd $VS_ENV_TMP_DIR 33408 cmd /c extract-vs-env.bat | $CAT 33409 cd $CURDIR 33410 33411 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33412 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33413 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33414 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33415 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33416 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33417 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33418 as_fn_error $? "Cannot continue" "$LINENO" 5 33419 fi 33420 33421 # Now set all paths and other env variables. This will allow the rest of 33422 # the configure script to find and run the compiler in the proper way. 33423 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33424 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33425 . $VS_ENV_TMP_DIR/set-vs-env.sh 33426 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33427 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33428 else 33429 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33430 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33431 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33432 fi 33433 fi 33434 33435 # At this point, we should have correct variables in the environment, or we can't continue. 33436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33437 $as_echo_n "checking for Visual Studio variables... " >&6; } 33438 33439 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33440 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33441 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33443 $as_echo "present but broken" >&6; } 33444 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33445 else 33446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33447 $as_echo "ok" >&6; } 33448 # Remove any trailing "\" ";" and " " from the variables. 33449 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33450 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33451 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33452 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33453 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33454 # Remove any paths containing # (typically F#) as that messes up make. This 33455 # is needed if visual studio was installed with F# support. 33456 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33457 33458 33459 33460 33461 33462 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33463 OLDIFS="$IFS" 33464 IFS=";" 33465 for i in $VS_INCLUDE; do 33466 ipath=$i 33467 # Only process non-empty elements 33468 if test "x$ipath" != x; then 33469 IFS="$OLDIFS" 33470 # Check that directory exists before calling fixup_path 33471 testpath=$ipath 33472 33473 windows_path="$testpath" 33474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33475 unix_path=`$CYGPATH -u "$windows_path"` 33476 testpath="$unix_path" 33477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33478 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33479 testpath="$unix_path" 33480 fi 33481 33482 if test -d "$testpath"; then 33483 33484 # Only process if variable expands to non-empty 33485 33486 if test "x$ipath" != x; then 33487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33488 33489 # Input might be given as Windows format, start by converting to 33490 # unix format. 33491 path="$ipath" 33492 new_path=`$CYGPATH -u "$path"` 33493 33494 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33495 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33496 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33497 # "foo.exe" is OK but "foo" is an error. 33498 # 33499 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33500 # It is also a way to make sure we got the proper file name for the real test later on. 33501 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33502 if test "x$test_shortpath" = x; then 33503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33504 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33505 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33506 fi 33507 33508 # Call helper function which possibly converts this using DOS-style short mode. 33509 # If so, the updated path is stored in $new_path. 33510 33511 input_path="$new_path" 33512 # Check if we need to convert this using DOS-style short mode. If the path 33513 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33514 # take no chances and rewrite it. 33515 # Note: m4 eats our [], so we need to use [ and ] instead. 33516 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33517 if test "x$has_forbidden_chars" != x; then 33518 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33519 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33520 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33521 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33522 # Going to short mode and back again did indeed matter. Since short mode is 33523 # case insensitive, let's make it lowercase to improve readability. 33524 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33525 # Now convert it back to Unix-style (cygpath) 33526 input_path=`$CYGPATH -u "$shortmode_path"` 33527 new_path="$input_path" 33528 fi 33529 fi 33530 33531 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33532 if test "x$test_cygdrive_prefix" = x; then 33533 # As a simple fix, exclude /usr/bin since it's not a real path. 33534 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33535 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33536 # a path prefixed by /cygdrive for fixpath to work. 33537 new_path="$CYGWIN_ROOT_PATH$input_path" 33538 fi 33539 fi 33540 33541 33542 if test "x$path" != "x$new_path"; then 33543 ipath="$new_path" 33544 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33545 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33546 fi 33547 33548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33549 33550 path="$ipath" 33551 has_colon=`$ECHO $path | $GREP ^.:` 33552 new_path="$path" 33553 if test "x$has_colon" = x; then 33554 # Not in mixed or Windows style, start by that. 33555 new_path=`cmd //c echo $path` 33556 fi 33557 33558 33559 input_path="$new_path" 33560 # Check if we need to convert this using DOS-style short mode. If the path 33561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33562 # take no chances and rewrite it. 33563 # Note: m4 eats our [], so we need to use [ and ] instead. 33564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33565 if test "x$has_forbidden_chars" != x; then 33566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33567 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33568 fi 33569 33570 33571 windows_path="$new_path" 33572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33573 unix_path=`$CYGPATH -u "$windows_path"` 33574 new_path="$unix_path" 33575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33576 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33577 new_path="$unix_path" 33578 fi 33579 33580 if test "x$path" != "x$new_path"; then 33581 ipath="$new_path" 33582 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33583 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33584 fi 33585 33586 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33587 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33588 33589 else 33590 # We're on a unix platform. Hooray! :) 33591 path="$ipath" 33592 has_space=`$ECHO "$path" | $GREP " "` 33593 if test "x$has_space" != x; then 33594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33595 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33596 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33597 fi 33598 33599 # Use eval to expand a potential ~ 33600 eval path="$path" 33601 if test ! -f "$path" && test ! -d "$path"; then 33602 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33603 fi 33604 33605 if test -d "$path"; then 33606 ipath="`cd "$path"; $THEPWDCMD -L`" 33607 else 33608 dir="`$DIRNAME "$path"`" 33609 base="`$BASENAME "$path"`" 33610 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33611 fi 33612 fi 33613 fi 33614 33615 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33616 fi 33617 IFS=";" 33618 fi 33619 done 33620 # Convert VS_LIB into SYSROOT_LDFLAGS 33621 for i in $VS_LIB; do 33622 libpath=$i 33623 # Only process non-empty elements 33624 if test "x$libpath" != x; then 33625 IFS="$OLDIFS" 33626 # Check that directory exists before calling fixup_path 33627 testpath=$libpath 33628 33629 windows_path="$testpath" 33630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33631 unix_path=`$CYGPATH -u "$windows_path"` 33632 testpath="$unix_path" 33633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33635 testpath="$unix_path" 33636 fi 33637 33638 if test -d "$testpath"; then 33639 33640 # Only process if variable expands to non-empty 33641 33642 if test "x$libpath" != x; then 33643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33644 33645 # Input might be given as Windows format, start by converting to 33646 # unix format. 33647 path="$libpath" 33648 new_path=`$CYGPATH -u "$path"` 33649 33650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33653 # "foo.exe" is OK but "foo" is an error. 33654 # 33655 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33656 # It is also a way to make sure we got the proper file name for the real test later on. 33657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33658 if test "x$test_shortpath" = x; then 33659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33660 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33661 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33662 fi 33663 33664 # Call helper function which possibly converts this using DOS-style short mode. 33665 # If so, the updated path is stored in $new_path. 33666 33667 input_path="$new_path" 33668 # Check if we need to convert this using DOS-style short mode. If the path 33669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33670 # take no chances and rewrite it. 33671 # Note: m4 eats our [], so we need to use [ and ] instead. 33672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33673 if test "x$has_forbidden_chars" != x; then 33674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33678 # Going to short mode and back again did indeed matter. Since short mode is 33679 # case insensitive, let's make it lowercase to improve readability. 33680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33681 # Now convert it back to Unix-style (cygpath) 33682 input_path=`$CYGPATH -u "$shortmode_path"` 33683 new_path="$input_path" 33684 fi 33685 fi 33686 33687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33688 if test "x$test_cygdrive_prefix" = x; then 33689 # As a simple fix, exclude /usr/bin since it's not a real path. 33690 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33692 # a path prefixed by /cygdrive for fixpath to work. 33693 new_path="$CYGWIN_ROOT_PATH$input_path" 33694 fi 33695 fi 33696 33697 33698 if test "x$path" != "x$new_path"; then 33699 libpath="$new_path" 33700 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33701 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33702 fi 33703 33704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33705 33706 path="$libpath" 33707 has_colon=`$ECHO $path | $GREP ^.:` 33708 new_path="$path" 33709 if test "x$has_colon" = x; then 33710 # Not in mixed or Windows style, start by that. 33711 new_path=`cmd //c echo $path` 33712 fi 33713 33714 33715 input_path="$new_path" 33716 # Check if we need to convert this using DOS-style short mode. If the path 33717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33718 # take no chances and rewrite it. 33719 # Note: m4 eats our [], so we need to use [ and ] instead. 33720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33721 if test "x$has_forbidden_chars" != x; then 33722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33723 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33724 fi 33725 33726 33727 windows_path="$new_path" 33728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33729 unix_path=`$CYGPATH -u "$windows_path"` 33730 new_path="$unix_path" 33731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33733 new_path="$unix_path" 33734 fi 33735 33736 if test "x$path" != "x$new_path"; then 33737 libpath="$new_path" 33738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33739 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33740 fi 33741 33742 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33743 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33744 33745 else 33746 # We're on a unix platform. Hooray! :) 33747 path="$libpath" 33748 has_space=`$ECHO "$path" | $GREP " "` 33749 if test "x$has_space" != x; then 33750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33751 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33752 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33753 fi 33754 33755 # Use eval to expand a potential ~ 33756 eval path="$path" 33757 if test ! -f "$path" && test ! -d "$path"; then 33758 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33759 fi 33760 33761 if test -d "$path"; then 33762 libpath="`cd "$path"; $THEPWDCMD -L`" 33763 else 33764 dir="`$DIRNAME "$path"`" 33765 base="`$BASENAME "$path"`" 33766 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33767 fi 33768 fi 33769 fi 33770 33771 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33772 fi 33773 IFS=";" 33774 fi 33775 done 33776 IFS="$OLDIFS" 33777 fi 33778 else 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33780 $as_echo "not found" >&6; } 33781 33782 if test "x$VS_ENV_CMD" = x; then 33783 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33784 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33785 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33786 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33787 else 33788 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33789 $as_echo "$as_me: Running the extraction script failed." >&6;} 33790 fi 33791 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33792 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33794 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33795 as_fn_error $? "Cannot continue" "$LINENO" 5 33796 fi 33797 33798 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33799 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33800 PATH="$VS_PATH" 33801 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33802 export INCLUDE="$VS_INCLUDE" 33803 export LIB="$VS_LIB" 33804 else 33805 if test "x$XCODE_VERSION_OUTPUT" != x; then 33806 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33807 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33808 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33809 else 33810 # Currently we do not define this for other toolchains. This might change as the need arise. 33811 TOOLCHAIN_VERSION= 33812 fi 33813 fi 33814 33815 33816 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33817 # override all other locations. 33818 if test "x$TOOLCHAIN_PATH" != x; then 33819 PATH=$TOOLCHAIN_PATH:$PATH 33820 fi 33821 33822 33823 # 33824 # Setup the compilers (CC and CXX) 33825 # 33826 33827 COMPILER_NAME=C 33828 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33829 33830 if test "x$CC" != x; then 33831 # User has supplied compiler name already, always let that override. 33832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33833 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33834 if test "x`basename $CC`" = "x$CC"; then 33835 # A command without a complete path is provided, search $PATH. 33836 33837 for ac_prog in $CC 33838 do 33839 # Extract the first word of "$ac_prog", so it can be a program name with args. 33840 set dummy $ac_prog; ac_word=$2 33841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33842 $as_echo_n "checking for $ac_word... " >&6; } 33843 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33844 $as_echo_n "(cached) " >&6 33845 else 33846 case $POTENTIAL_CC in 33847 [\\/]* | ?:[\\/]*) 33848 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33849 ;; 33850 *) 33851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33852 for as_dir in $PATH 33853 do 33854 IFS=$as_save_IFS 33855 test -z "$as_dir" && as_dir=. 33856 for ac_exec_ext in '' $ac_executable_extensions; do 33857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33858 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33860 break 2 33861 fi 33862 done 33863 done 33864 IFS=$as_save_IFS 33865 33866 ;; 33867 esac 33868 fi 33869 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33870 if test -n "$POTENTIAL_CC"; then 33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33872 $as_echo "$POTENTIAL_CC" >&6; } 33873 else 33874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33875 $as_echo "no" >&6; } 33876 fi 33877 33878 33879 test -n "$POTENTIAL_CC" && break 33880 done 33881 33882 if test "x$POTENTIAL_CC" != x; then 33883 CC=$POTENTIAL_CC 33884 else 33885 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33886 fi 33887 else 33888 # Otherwise it might already be a complete path 33889 if test ! -x "$CC"; then 33890 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33891 fi 33892 fi 33893 else 33894 # No user supplied value. Locate compiler ourselves. 33895 33896 # If we are cross compiling, assume cross compilation tools follows the 33897 # cross compilation standard where they are prefixed with the autoconf 33898 # standard name for the target. For example the binary 33899 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33900 # If we are not cross compiling, then the default compiler name will be 33901 # used. 33902 33903 CC= 33904 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33905 # before checking the rest of the PATH. 33906 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33907 # step, this should not be necessary. 33908 if test -n "$TOOLCHAIN_PATH"; then 33909 PATH_save="$PATH" 33910 PATH="$TOOLCHAIN_PATH" 33911 if test -n "$ac_tool_prefix"; then 33912 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33913 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33915 $as_echo_n "checking for $ac_word... " >&6; } 33916 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33917 $as_echo_n "(cached) " >&6 33918 else 33919 case $TOOLCHAIN_PATH_CC in 33920 [\\/]* | ?:[\\/]*) 33921 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33922 ;; 33923 *) 33924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33925 for as_dir in $PATH 33926 do 33927 IFS=$as_save_IFS 33928 test -z "$as_dir" && as_dir=. 33929 for ac_exec_ext in '' $ac_executable_extensions; do 33930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33931 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33933 break 2 33934 fi 33935 done 33936 done 33937 IFS=$as_save_IFS 33938 33939 ;; 33940 esac 33941 fi 33942 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33943 if test -n "$TOOLCHAIN_PATH_CC"; then 33944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33945 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33946 else 33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33948 $as_echo "no" >&6; } 33949 fi 33950 33951 33952 fi 33953 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33954 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33955 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33956 set dummy $SEARCH_LIST; ac_word=$2 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33958 $as_echo_n "checking for $ac_word... " >&6; } 33959 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33960 $as_echo_n "(cached) " >&6 33961 else 33962 case $ac_pt_TOOLCHAIN_PATH_CC in 33963 [\\/]* | ?:[\\/]*) 33964 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33965 ;; 33966 *) 33967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33968 for as_dir in $PATH 33969 do 33970 IFS=$as_save_IFS 33971 test -z "$as_dir" && as_dir=. 33972 for ac_exec_ext in '' $ac_executable_extensions; do 33973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33974 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33976 break 2 33977 fi 33978 done 33979 done 33980 IFS=$as_save_IFS 33981 33982 ;; 33983 esac 33984 fi 33985 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33986 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33988 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33989 else 33990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33991 $as_echo "no" >&6; } 33992 fi 33993 33994 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33995 TOOLCHAIN_PATH_CC="" 33996 else 33997 case $cross_compiling:$ac_tool_warned in 33998 yes:) 33999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34001 ac_tool_warned=yes ;; 34002 esac 34003 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 34004 fi 34005 else 34006 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 34007 fi 34008 34009 CC=$TOOLCHAIN_PATH_CC 34010 PATH="$PATH_save" 34011 fi 34012 34013 # AC_PATH_TOOL can't be run multiple times with the same variable, 34014 # so create a new name for this run. 34015 if test "x$CC" = x; then 34016 if test -n "$ac_tool_prefix"; then 34017 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 34018 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 34019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34020 $as_echo_n "checking for $ac_word... " >&6; } 34021 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 34022 $as_echo_n "(cached) " >&6 34023 else 34024 case $POTENTIAL_CC in 34025 [\\/]* | ?:[\\/]*) 34026 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 34027 ;; 34028 *) 34029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34030 for as_dir in $PATH 34031 do 34032 IFS=$as_save_IFS 34033 test -z "$as_dir" && as_dir=. 34034 for ac_exec_ext in '' $ac_executable_extensions; do 34035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34036 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 34037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34038 break 2 34039 fi 34040 done 34041 done 34042 IFS=$as_save_IFS 34043 34044 ;; 34045 esac 34046 fi 34047 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 34048 if test -n "$POTENTIAL_CC"; then 34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 34050 $as_echo "$POTENTIAL_CC" >&6; } 34051 else 34052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34053 $as_echo "no" >&6; } 34054 fi 34055 34056 34057 fi 34058 if test -z "$ac_cv_path_POTENTIAL_CC"; then 34059 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 34060 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 34061 set dummy $SEARCH_LIST; ac_word=$2 34062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34063 $as_echo_n "checking for $ac_word... " >&6; } 34064 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 34065 $as_echo_n "(cached) " >&6 34066 else 34067 case $ac_pt_POTENTIAL_CC in 34068 [\\/]* | ?:[\\/]*) 34069 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 34070 ;; 34071 *) 34072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34073 for as_dir in $PATH 34074 do 34075 IFS=$as_save_IFS 34076 test -z "$as_dir" && as_dir=. 34077 for ac_exec_ext in '' $ac_executable_extensions; do 34078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34079 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 34080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34081 break 2 34082 fi 34083 done 34084 done 34085 IFS=$as_save_IFS 34086 34087 ;; 34088 esac 34089 fi 34090 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 34091 if test -n "$ac_pt_POTENTIAL_CC"; then 34092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 34093 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 34094 else 34095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34096 $as_echo "no" >&6; } 34097 fi 34098 34099 if test "x$ac_pt_POTENTIAL_CC" = x; then 34100 POTENTIAL_CC="" 34101 else 34102 case $cross_compiling:$ac_tool_warned in 34103 yes:) 34104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34106 ac_tool_warned=yes ;; 34107 esac 34108 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 34109 fi 34110 else 34111 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 34112 fi 34113 34114 CC=$POTENTIAL_CC 34115 fi 34116 34117 if test "x$CC" = x; then 34118 34119 # Print a helpful message on how to acquire the necessary build dependency. 34120 # devkit is the help tag: freetype, cups, alsa etc 34121 MISSING_DEPENDENCY=devkit 34122 34123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34124 cygwin_help $MISSING_DEPENDENCY 34125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34126 msys_help $MISSING_DEPENDENCY 34127 else 34128 PKGHANDLER_COMMAND= 34129 34130 case $PKGHANDLER in 34131 apt-get) 34132 apt_help $MISSING_DEPENDENCY ;; 34133 yum) 34134 yum_help $MISSING_DEPENDENCY ;; 34135 brew) 34136 brew_help $MISSING_DEPENDENCY ;; 34137 port) 34138 port_help $MISSING_DEPENDENCY ;; 34139 pkgutil) 34140 pkgutil_help $MISSING_DEPENDENCY ;; 34141 pkgadd) 34142 pkgadd_help $MISSING_DEPENDENCY ;; 34143 esac 34144 34145 if test "x$PKGHANDLER_COMMAND" != x; then 34146 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34147 fi 34148 fi 34149 34150 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34151 fi 34152 fi 34153 34154 # Now we have a compiler binary in CC. Make sure it's okay. 34155 34156 # Only process if variable expands to non-empty 34157 34158 if test "x$CC" != x; then 34159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34160 34161 # First separate the path from the arguments. This will split at the first 34162 # space. 34163 complete="$CC" 34164 path="${complete%% *}" 34165 tmp="$complete EOL" 34166 arguments="${tmp#* }" 34167 34168 # Input might be given as Windows format, start by converting to 34169 # unix format. 34170 new_path=`$CYGPATH -u "$path"` 34171 34172 # Now try to locate executable using which 34173 new_path=`$WHICH "$new_path" 2> /dev/null` 34174 # bat and cmd files are not always considered executable in cygwin causing which 34175 # to not find them 34176 if test "x$new_path" = x \ 34177 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34178 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34179 new_path=`$CYGPATH -u "$path"` 34180 fi 34181 if test "x$new_path" = x; then 34182 # Oops. Which didn't find the executable. 34183 # The splitting of arguments from the executable at a space might have been incorrect, 34184 # since paths with space are more likely in Windows. Give it another try with the whole 34185 # argument. 34186 path="$complete" 34187 arguments="EOL" 34188 new_path=`$CYGPATH -u "$path"` 34189 new_path=`$WHICH "$new_path" 2> /dev/null` 34190 # bat and cmd files are not always considered executable in cygwin causing which 34191 # to not find them 34192 if test "x$new_path" = x \ 34193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34195 new_path=`$CYGPATH -u "$path"` 34196 fi 34197 if test "x$new_path" = x; then 34198 # It's still not found. Now this is an unrecoverable error. 34199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34200 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34201 has_space=`$ECHO "$complete" | $GREP " "` 34202 if test "x$has_space" != x; then 34203 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34204 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34205 fi 34206 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34207 fi 34208 fi 34209 34210 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34211 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34212 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34213 # "foo.exe" is OK but "foo" is an error. 34214 # 34215 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34216 # It is also a way to make sure we got the proper file name for the real test later on. 34217 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34218 if test "x$test_shortpath" = x; then 34219 # Short path failed, file does not exist as specified. 34220 # Try adding .exe or .cmd 34221 if test -f "${new_path}.exe"; then 34222 input_to_shortpath="${new_path}.exe" 34223 elif test -f "${new_path}.cmd"; then 34224 input_to_shortpath="${new_path}.cmd" 34225 else 34226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34227 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34228 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34229 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34230 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34231 fi 34232 else 34233 input_to_shortpath="$new_path" 34234 fi 34235 34236 # Call helper function which possibly converts this using DOS-style short mode. 34237 # If so, the updated path is stored in $new_path. 34238 new_path="$input_to_shortpath" 34239 34240 input_path="$input_to_shortpath" 34241 # Check if we need to convert this using DOS-style short mode. If the path 34242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34243 # take no chances and rewrite it. 34244 # Note: m4 eats our [], so we need to use [ and ] instead. 34245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34246 if test "x$has_forbidden_chars" != x; then 34247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34251 # Going to short mode and back again did indeed matter. Since short mode is 34252 # case insensitive, let's make it lowercase to improve readability. 34253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34254 # Now convert it back to Unix-style (cygpath) 34255 input_path=`$CYGPATH -u "$shortmode_path"` 34256 new_path="$input_path" 34257 fi 34258 fi 34259 34260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34261 if test "x$test_cygdrive_prefix" = x; then 34262 # As a simple fix, exclude /usr/bin since it's not a real path. 34263 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34265 # a path prefixed by /cygdrive for fixpath to work. 34266 new_path="$CYGWIN_ROOT_PATH$input_path" 34267 fi 34268 fi 34269 34270 # remove trailing .exe if any 34271 new_path="${new_path/%.exe/}" 34272 34273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34274 34275 # First separate the path from the arguments. This will split at the first 34276 # space. 34277 complete="$CC" 34278 path="${complete%% *}" 34279 tmp="$complete EOL" 34280 arguments="${tmp#* }" 34281 34282 # Input might be given as Windows format, start by converting to 34283 # unix format. 34284 new_path="$path" 34285 34286 windows_path="$new_path" 34287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34288 unix_path=`$CYGPATH -u "$windows_path"` 34289 new_path="$unix_path" 34290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34292 new_path="$unix_path" 34293 fi 34294 34295 34296 # Now try to locate executable using which 34297 new_path=`$WHICH "$new_path" 2> /dev/null` 34298 34299 if test "x$new_path" = x; then 34300 # Oops. Which didn't find the executable. 34301 # The splitting of arguments from the executable at a space might have been incorrect, 34302 # since paths with space are more likely in Windows. Give it another try with the whole 34303 # argument. 34304 path="$complete" 34305 arguments="EOL" 34306 new_path="$path" 34307 34308 windows_path="$new_path" 34309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34310 unix_path=`$CYGPATH -u "$windows_path"` 34311 new_path="$unix_path" 34312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34313 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34314 new_path="$unix_path" 34315 fi 34316 34317 34318 new_path=`$WHICH "$new_path" 2> /dev/null` 34319 # bat and cmd files are not always considered executable in MSYS causing which 34320 # to not find them 34321 if test "x$new_path" = x \ 34322 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34323 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34324 new_path="$path" 34325 34326 windows_path="$new_path" 34327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34328 unix_path=`$CYGPATH -u "$windows_path"` 34329 new_path="$unix_path" 34330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34332 new_path="$unix_path" 34333 fi 34334 34335 fi 34336 34337 if test "x$new_path" = x; then 34338 # It's still not found. Now this is an unrecoverable error. 34339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34340 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34341 has_space=`$ECHO "$complete" | $GREP " "` 34342 if test "x$has_space" != x; then 34343 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34344 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34345 fi 34346 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34347 fi 34348 fi 34349 34350 # Now new_path has a complete unix path to the binary 34351 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34352 # Keep paths in /bin as-is, but remove trailing .exe if any 34353 new_path="${new_path/%.exe/}" 34354 # Do not save /bin paths to all_fixpath_prefixes! 34355 else 34356 # Not in mixed or Windows style, start by that. 34357 new_path=`cmd //c echo $new_path` 34358 34359 input_path="$new_path" 34360 # Check if we need to convert this using DOS-style short mode. If the path 34361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34362 # take no chances and rewrite it. 34363 # Note: m4 eats our [], so we need to use [ and ] instead. 34364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34365 if test "x$has_forbidden_chars" != x; then 34366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34367 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34368 fi 34369 34370 # Output is in $new_path 34371 34372 windows_path="$new_path" 34373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34374 unix_path=`$CYGPATH -u "$windows_path"` 34375 new_path="$unix_path" 34376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34378 new_path="$unix_path" 34379 fi 34380 34381 # remove trailing .exe if any 34382 new_path="${new_path/%.exe/}" 34383 34384 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34385 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34386 fi 34387 34388 else 34389 # We're on a unix platform. Hooray! :) 34390 # First separate the path from the arguments. This will split at the first 34391 # space. 34392 complete="$CC" 34393 path="${complete%% *}" 34394 tmp="$complete EOL" 34395 arguments="${tmp#* }" 34396 34397 # Cannot rely on the command "which" here since it doesn't always work. 34398 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34399 if test -z "$is_absolute_path"; then 34400 # Path to executable is not absolute. Find it. 34401 IFS_save="$IFS" 34402 IFS=: 34403 for p in $PATH; do 34404 if test -f "$p/$path" && test -x "$p/$path"; then 34405 new_path="$p/$path" 34406 break 34407 fi 34408 done 34409 IFS="$IFS_save" 34410 else 34411 # This is an absolute path, we can use it without further modifications. 34412 new_path="$path" 34413 fi 34414 34415 if test "x$new_path" = x; then 34416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34417 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34418 has_space=`$ECHO "$complete" | $GREP " "` 34419 if test "x$has_space" != x; then 34420 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34421 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34422 fi 34423 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34424 fi 34425 fi 34426 34427 # Now join together the path and the arguments once again 34428 if test "x$arguments" != xEOL; then 34429 new_complete="$new_path ${arguments% *}" 34430 else 34431 new_complete="$new_path" 34432 fi 34433 34434 if test "x$complete" != "x$new_complete"; then 34435 CC="$new_complete" 34436 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34437 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34438 fi 34439 fi 34440 34441 TEST_COMPILER="$CC" 34442 34443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34444 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34445 SYMLINK_ORIGINAL="$TEST_COMPILER" 34446 34447 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34448 # Follow a chain of symbolic links. Use readlink 34449 # where it exists, else fall back to horribly 34450 # complicated shell code. 34451 if test "x$READLINK_TESTED" != yes; then 34452 # On MacOSX there is a readlink tool with a different 34453 # purpose than the GNU readlink tool. Check the found readlink. 34454 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34455 if test "x$ISGNU" = x; then 34456 # A readlink that we do not know how to use. 34457 # Are there other non-GNU readlinks out there? 34458 READLINK_TESTED=yes 34459 READLINK= 34460 fi 34461 fi 34462 34463 if test "x$READLINK" != x; then 34464 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34465 else 34466 # Save the current directory for restoring afterwards 34467 STARTDIR=$PWD 34468 COUNTER=0 34469 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34470 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34471 cd $sym_link_dir 34472 # Use -P flag to resolve symlinks in directories. 34473 cd `$THEPWDCMD -P` 34474 sym_link_dir=`$THEPWDCMD -P` 34475 # Resolve file symlinks 34476 while test $COUNTER -lt 20; do 34477 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34478 if test "x$ISLINK" == x; then 34479 # This is not a symbolic link! We are done! 34480 break 34481 fi 34482 # Again resolve directory symlinks since the target of the just found 34483 # link could be in a different directory 34484 cd `$DIRNAME $ISLINK` 34485 sym_link_dir=`$THEPWDCMD -P` 34486 sym_link_file=`$BASENAME $ISLINK` 34487 let COUNTER=COUNTER+1 34488 done 34489 cd $STARTDIR 34490 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34491 fi 34492 fi 34493 34494 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34496 $as_echo "no symlink" >&6; } 34497 else 34498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34499 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34500 34501 # We can't handle ccache by gcc wrappers, since we need to know if we're 34502 # using ccache. Instead ccache usage must be controlled by a configure option. 34503 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34504 if test "x$COMPILER_BASENAME" = "xccache"; then 34505 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34506 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34507 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34508 fi 34509 fi 34510 34511 34512 COMPILER=$CC 34513 COMPILER_NAME=$COMPILER_NAME 34514 34515 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34516 # cc -V output typically looks like 34517 # cc: Sun C 5.12 Linux_i386 2011/11/16 34518 # or 34519 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34520 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34521 # Check that this is likely to be the Solaris Studio cc. 34522 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34523 if test $? -ne 0; then 34524 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34525 { $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 34526 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34527 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34528 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34529 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34530 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34531 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34532 fi 34533 # Remove usage instructions (if present), and 34534 # collapse compiler output into a single line 34535 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34536 $SED -e 's/ *[Uu]sage:.*//'` 34537 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34538 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34539 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34540 # xlc -qversion output typically looks like 34541 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34542 # Version: 11.01.0000.0015 34543 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34544 # Check that this is likely to be the IBM XL C compiler. 34545 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34546 if test $? -ne 0; then 34547 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34548 { $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 34549 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34550 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34551 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34552 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34553 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34554 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34555 fi 34556 # Collapse compiler output into a single line 34557 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34558 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34559 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34560 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34561 # There is no specific version flag, but all output starts with a version string. 34562 # First line typically looks something like: 34563 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34564 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34565 # Check that this is likely to be Microsoft CL.EXE. 34566 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34567 if test $? -ne 0; then 34568 { $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 34569 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34570 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34571 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34572 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34573 fi 34574 # Collapse compiler output into a single line 34575 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34576 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34577 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34578 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34579 # gcc --version output typically looks like 34580 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34581 # Copyright (C) 2013 Free Software Foundation, Inc. 34582 # This is free software; see the source for copying conditions. There is NO 34583 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34584 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34585 # Check that this is likely to be GCC. 34586 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34587 if test $? -ne 0; then 34588 { $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 34589 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34590 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34591 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34592 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34593 fi 34594 # Remove Copyright and legalese from version string, and 34595 # collapse into a single line 34596 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34597 $SED -e 's/ *Copyright .*//'` 34598 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34599 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34600 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34601 # clang --version output typically looks like 34602 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34603 # clang version 3.3 (tags/RELEASE_33/final) 34604 # or 34605 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34606 # Target: x86_64-pc-linux-gnu 34607 # Thread model: posix 34608 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34609 # Check that this is likely to be clang 34610 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34611 if test $? -ne 0; then 34612 { $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 34613 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34614 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34615 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34616 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34617 fi 34618 # Collapse compiler output into a single line 34619 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34620 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34621 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34622 else 34623 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34624 fi 34625 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34626 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34627 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34628 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34629 34630 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34631 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34632 34633 34634 # Now that we have resolved CC ourself, let autoconf have its go at it 34635 ac_ext=c 34636 ac_cpp='$CPP $CPPFLAGS' 34637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34639 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34640 if test -n "$ac_tool_prefix"; then 34641 for ac_prog in $CC 34642 do 34643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34646 $as_echo_n "checking for $ac_word... " >&6; } 34647 if ${ac_cv_prog_CC+:} false; then : 34648 $as_echo_n "(cached) " >&6 34649 else 34650 if test -n "$CC"; then 34651 ac_cv_prog_CC="$CC" # Let the user override the test. 34652 else 34653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34654 for as_dir in $PATH 34655 do 34656 IFS=$as_save_IFS 34657 test -z "$as_dir" && as_dir=. 34658 for ac_exec_ext in '' $ac_executable_extensions; do 34659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34662 break 2 34663 fi 34664 done 34665 done 34666 IFS=$as_save_IFS 34667 34668 fi 34669 fi 34670 CC=$ac_cv_prog_CC 34671 if test -n "$CC"; then 34672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34673 $as_echo "$CC" >&6; } 34674 else 34675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34676 $as_echo "no" >&6; } 34677 fi 34678 34679 34680 test -n "$CC" && break 34681 done 34682 fi 34683 if test -z "$CC"; then 34684 ac_ct_CC=$CC 34685 for ac_prog in $CC 34686 do 34687 # Extract the first word of "$ac_prog", so it can be a program name with args. 34688 set dummy $ac_prog; ac_word=$2 34689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34690 $as_echo_n "checking for $ac_word... " >&6; } 34691 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34692 $as_echo_n "(cached) " >&6 34693 else 34694 if test -n "$ac_ct_CC"; then 34695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34696 else 34697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34698 for as_dir in $PATH 34699 do 34700 IFS=$as_save_IFS 34701 test -z "$as_dir" && as_dir=. 34702 for ac_exec_ext in '' $ac_executable_extensions; do 34703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34704 ac_cv_prog_ac_ct_CC="$ac_prog" 34705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34706 break 2 34707 fi 34708 done 34709 done 34710 IFS=$as_save_IFS 34711 34712 fi 34713 fi 34714 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34715 if test -n "$ac_ct_CC"; then 34716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34717 $as_echo "$ac_ct_CC" >&6; } 34718 else 34719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34720 $as_echo "no" >&6; } 34721 fi 34722 34723 34724 test -n "$ac_ct_CC" && break 34725 done 34726 34727 if test "x$ac_ct_CC" = x; then 34728 CC="" 34729 else 34730 case $cross_compiling:$ac_tool_warned in 34731 yes:) 34732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34734 ac_tool_warned=yes ;; 34735 esac 34736 CC=$ac_ct_CC 34737 fi 34738 fi 34739 34740 34741 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34743 as_fn_error $? "no acceptable C compiler found in \$PATH 34744 See \`config.log' for more details" "$LINENO" 5; } 34745 34746 # Provide some information about the compiler. 34747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34748 set X $ac_compile 34749 ac_compiler=$2 34750 for ac_option in --version -v -V -qversion; do 34751 { { ac_try="$ac_compiler $ac_option >&5" 34752 case "(($ac_try" in 34753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34754 *) ac_try_echo=$ac_try;; 34755 esac 34756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34757 $as_echo "$ac_try_echo"; } >&5 34758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34759 ac_status=$? 34760 if test -s conftest.err; then 34761 sed '10a\ 34762 ... rest of stderr output deleted ... 34763 10q' conftest.err >conftest.er1 34764 cat conftest.er1 >&5 34765 fi 34766 rm -f conftest.er1 conftest.err 34767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34768 test $ac_status = 0; } 34769 done 34770 34771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34772 /* end confdefs.h. */ 34773 34774 int 34775 main () 34776 { 34777 34778 ; 34779 return 0; 34780 } 34781 _ACEOF 34782 ac_clean_files_save=$ac_clean_files 34783 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34784 # Try to create an executable without -o first, disregard a.out. 34785 # It will help us diagnose broken compilers, and finding out an intuition 34786 # of exeext. 34787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34788 $as_echo_n "checking whether the C compiler works... " >&6; } 34789 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34790 34791 # The possible output files: 34792 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34793 34794 ac_rmfiles= 34795 for ac_file in $ac_files 34796 do 34797 case $ac_file in 34798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34799 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34800 esac 34801 done 34802 rm -f $ac_rmfiles 34803 34804 if { { ac_try="$ac_link_default" 34805 case "(($ac_try" in 34806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34807 *) ac_try_echo=$ac_try;; 34808 esac 34809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34810 $as_echo "$ac_try_echo"; } >&5 34811 (eval "$ac_link_default") 2>&5 34812 ac_status=$? 34813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34814 test $ac_status = 0; }; then : 34815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34817 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34818 # so that the user can short-circuit this test for compilers unknown to 34819 # Autoconf. 34820 for ac_file in $ac_files '' 34821 do 34822 test -f "$ac_file" || continue 34823 case $ac_file in 34824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34825 ;; 34826 [ab].out ) 34827 # We found the default executable, but exeext='' is most 34828 # certainly right. 34829 break;; 34830 *.* ) 34831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34832 then :; else 34833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34834 fi 34835 # We set ac_cv_exeext here because the later test for it is not 34836 # safe: cross compilers may not add the suffix if given an `-o' 34837 # argument, so we may need to know it at that point already. 34838 # Even if this section looks crufty: it has the advantage of 34839 # actually working. 34840 break;; 34841 * ) 34842 break;; 34843 esac 34844 done 34845 test "$ac_cv_exeext" = no && ac_cv_exeext= 34846 34847 else 34848 ac_file='' 34849 fi 34850 if test -z "$ac_file"; then : 34851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34852 $as_echo "no" >&6; } 34853 $as_echo "$as_me: failed program was:" >&5 34854 sed 's/^/| /' conftest.$ac_ext >&5 34855 34856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34858 as_fn_error 77 "C compiler cannot create executables 34859 See \`config.log' for more details" "$LINENO" 5; } 34860 else 34861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34862 $as_echo "yes" >&6; } 34863 fi 34864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34865 $as_echo_n "checking for C compiler default output file name... " >&6; } 34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34867 $as_echo "$ac_file" >&6; } 34868 ac_exeext=$ac_cv_exeext 34869 34870 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34871 ac_clean_files=$ac_clean_files_save 34872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34873 $as_echo_n "checking for suffix of executables... " >&6; } 34874 if { { ac_try="$ac_link" 34875 case "(($ac_try" in 34876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34877 *) ac_try_echo=$ac_try;; 34878 esac 34879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34880 $as_echo "$ac_try_echo"; } >&5 34881 (eval "$ac_link") 2>&5 34882 ac_status=$? 34883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34884 test $ac_status = 0; }; then : 34885 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34887 # work properly (i.e., refer to `conftest.exe'), while it won't with 34888 # `rm'. 34889 for ac_file in conftest.exe conftest conftest.*; do 34890 test -f "$ac_file" || continue 34891 case $ac_file in 34892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34894 break;; 34895 * ) break;; 34896 esac 34897 done 34898 else 34899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34902 See \`config.log' for more details" "$LINENO" 5; } 34903 fi 34904 rm -f conftest conftest$ac_cv_exeext 34905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34906 $as_echo "$ac_cv_exeext" >&6; } 34907 34908 rm -f conftest.$ac_ext 34909 EXEEXT=$ac_cv_exeext 34910 ac_exeext=$EXEEXT 34911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34912 /* end confdefs.h. */ 34913 #include <stdio.h> 34914 int 34915 main () 34916 { 34917 FILE *f = fopen ("conftest.out", "w"); 34918 return ferror (f) || fclose (f) != 0; 34919 34920 ; 34921 return 0; 34922 } 34923 _ACEOF 34924 ac_clean_files="$ac_clean_files conftest.out" 34925 # Check that the compiler produces executables we can run. If not, either 34926 # the compiler is broken, or we cross compile. 34927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34928 $as_echo_n "checking whether we are cross compiling... " >&6; } 34929 if test "$cross_compiling" != yes; then 34930 { { ac_try="$ac_link" 34931 case "(($ac_try" in 34932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34933 *) ac_try_echo=$ac_try;; 34934 esac 34935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34936 $as_echo "$ac_try_echo"; } >&5 34937 (eval "$ac_link") 2>&5 34938 ac_status=$? 34939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34940 test $ac_status = 0; } 34941 if { ac_try='./conftest$ac_cv_exeext' 34942 { { case "(($ac_try" in 34943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34944 *) ac_try_echo=$ac_try;; 34945 esac 34946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34947 $as_echo "$ac_try_echo"; } >&5 34948 (eval "$ac_try") 2>&5 34949 ac_status=$? 34950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34951 test $ac_status = 0; }; }; then 34952 cross_compiling=no 34953 else 34954 if test "$cross_compiling" = maybe; then 34955 cross_compiling=yes 34956 else 34957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34959 as_fn_error $? "cannot run C compiled programs. 34960 If you meant to cross compile, use \`--host'. 34961 See \`config.log' for more details" "$LINENO" 5; } 34962 fi 34963 fi 34964 fi 34965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34966 $as_echo "$cross_compiling" >&6; } 34967 34968 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34969 ac_clean_files=$ac_clean_files_save 34970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34971 $as_echo_n "checking for suffix of object files... " >&6; } 34972 if ${ac_cv_objext+:} false; then : 34973 $as_echo_n "(cached) " >&6 34974 else 34975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34976 /* end confdefs.h. */ 34977 34978 int 34979 main () 34980 { 34981 34982 ; 34983 return 0; 34984 } 34985 _ACEOF 34986 rm -f conftest.o conftest.obj 34987 if { { ac_try="$ac_compile" 34988 case "(($ac_try" in 34989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34990 *) ac_try_echo=$ac_try;; 34991 esac 34992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34993 $as_echo "$ac_try_echo"; } >&5 34994 (eval "$ac_compile") 2>&5 34995 ac_status=$? 34996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34997 test $ac_status = 0; }; then : 34998 for ac_file in conftest.o conftest.obj conftest.*; do 34999 test -f "$ac_file" || continue; 35000 case $ac_file in 35001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 35002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 35003 break;; 35004 esac 35005 done 35006 else 35007 $as_echo "$as_me: failed program was:" >&5 35008 sed 's/^/| /' conftest.$ac_ext >&5 35009 35010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35012 as_fn_error $? "cannot compute suffix of object files: cannot compile 35013 See \`config.log' for more details" "$LINENO" 5; } 35014 fi 35015 rm -f conftest.$ac_cv_objext conftest.$ac_ext 35016 fi 35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 35018 $as_echo "$ac_cv_objext" >&6; } 35019 OBJEXT=$ac_cv_objext 35020 ac_objext=$OBJEXT 35021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 35022 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 35023 if ${ac_cv_c_compiler_gnu+:} false; then : 35024 $as_echo_n "(cached) " >&6 35025 else 35026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35027 /* end confdefs.h. */ 35028 35029 int 35030 main () 35031 { 35032 #ifndef __GNUC__ 35033 choke me 35034 #endif 35035 35036 ; 35037 return 0; 35038 } 35039 _ACEOF 35040 if ac_fn_c_try_compile "$LINENO"; then : 35041 ac_compiler_gnu=yes 35042 else 35043 ac_compiler_gnu=no 35044 fi 35045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35046 ac_cv_c_compiler_gnu=$ac_compiler_gnu 35047 35048 fi 35049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 35050 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 35051 if test $ac_compiler_gnu = yes; then 35052 GCC=yes 35053 else 35054 GCC= 35055 fi 35056 ac_test_CFLAGS=${CFLAGS+set} 35057 ac_save_CFLAGS=$CFLAGS 35058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 35059 $as_echo_n "checking whether $CC accepts -g... " >&6; } 35060 if ${ac_cv_prog_cc_g+:} false; then : 35061 $as_echo_n "(cached) " >&6 35062 else 35063 ac_save_c_werror_flag=$ac_c_werror_flag 35064 ac_c_werror_flag=yes 35065 ac_cv_prog_cc_g=no 35066 CFLAGS="-g" 35067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35068 /* end confdefs.h. */ 35069 35070 int 35071 main () 35072 { 35073 35074 ; 35075 return 0; 35076 } 35077 _ACEOF 35078 if ac_fn_c_try_compile "$LINENO"; then : 35079 ac_cv_prog_cc_g=yes 35080 else 35081 CFLAGS="" 35082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35083 /* end confdefs.h. */ 35084 35085 int 35086 main () 35087 { 35088 35089 ; 35090 return 0; 35091 } 35092 _ACEOF 35093 if ac_fn_c_try_compile "$LINENO"; then : 35094 35095 else 35096 ac_c_werror_flag=$ac_save_c_werror_flag 35097 CFLAGS="-g" 35098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35099 /* end confdefs.h. */ 35100 35101 int 35102 main () 35103 { 35104 35105 ; 35106 return 0; 35107 } 35108 _ACEOF 35109 if ac_fn_c_try_compile "$LINENO"; then : 35110 ac_cv_prog_cc_g=yes 35111 fi 35112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35113 fi 35114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35115 fi 35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35117 ac_c_werror_flag=$ac_save_c_werror_flag 35118 fi 35119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35120 $as_echo "$ac_cv_prog_cc_g" >&6; } 35121 if test "$ac_test_CFLAGS" = set; then 35122 CFLAGS=$ac_save_CFLAGS 35123 elif test $ac_cv_prog_cc_g = yes; then 35124 if test "$GCC" = yes; then 35125 CFLAGS="-g -O2" 35126 else 35127 CFLAGS="-g" 35128 fi 35129 else 35130 if test "$GCC" = yes; then 35131 CFLAGS="-O2" 35132 else 35133 CFLAGS= 35134 fi 35135 fi 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35137 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35138 if ${ac_cv_prog_cc_c89+:} false; then : 35139 $as_echo_n "(cached) " >&6 35140 else 35141 ac_cv_prog_cc_c89=no 35142 ac_save_CC=$CC 35143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35144 /* end confdefs.h. */ 35145 #include <stdarg.h> 35146 #include <stdio.h> 35147 struct stat; 35148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35149 struct buf { int x; }; 35150 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35151 static char *e (p, i) 35152 char **p; 35153 int i; 35154 { 35155 return p[i]; 35156 } 35157 static char *f (char * (*g) (char **, int), char **p, ...) 35158 { 35159 char *s; 35160 va_list v; 35161 va_start (v,p); 35162 s = g (p, va_arg (v,int)); 35163 va_end (v); 35164 return s; 35165 } 35166 35167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35168 function prototypes and stuff, but not '\xHH' hex character constants. 35169 These don't provoke an error unfortunately, instead are silently treated 35170 as 'x'. The following induces an error, until -std is added to get 35171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35172 array size at least. It's necessary to write '\x00'==0 to get something 35173 that's true only with -std. */ 35174 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35175 35176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35177 inside strings and character constants. */ 35178 #define FOO(x) 'x' 35179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35180 35181 int test (int i, double x); 35182 struct s1 {int (*f) (int a);}; 35183 struct s2 {int (*f) (double a);}; 35184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35185 int argc; 35186 char **argv; 35187 int 35188 main () 35189 { 35190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35191 ; 35192 return 0; 35193 } 35194 _ACEOF 35195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35197 do 35198 CC="$ac_save_CC $ac_arg" 35199 if ac_fn_c_try_compile "$LINENO"; then : 35200 ac_cv_prog_cc_c89=$ac_arg 35201 fi 35202 rm -f core conftest.err conftest.$ac_objext 35203 test "x$ac_cv_prog_cc_c89" != "xno" && break 35204 done 35205 rm -f conftest.$ac_ext 35206 CC=$ac_save_CC 35207 35208 fi 35209 # AC_CACHE_VAL 35210 case "x$ac_cv_prog_cc_c89" in 35211 x) 35212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35213 $as_echo "none needed" >&6; } ;; 35214 xno) 35215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35216 $as_echo "unsupported" >&6; } ;; 35217 *) 35218 CC="$CC $ac_cv_prog_cc_c89" 35219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35220 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35221 esac 35222 if test "x$ac_cv_prog_cc_c89" != xno; then : 35223 35224 fi 35225 35226 ac_ext=cpp 35227 ac_cpp='$CXXCPP $CPPFLAGS' 35228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35231 35232 35233 35234 COMPILER_NAME=C++ 35235 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35236 35237 if test "x$CXX" != x; then 35238 # User has supplied compiler name already, always let that override. 35239 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35240 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35241 if test "x`basename $CXX`" = "x$CXX"; then 35242 # A command without a complete path is provided, search $PATH. 35243 35244 for ac_prog in $CXX 35245 do 35246 # Extract the first word of "$ac_prog", so it can be a program name with args. 35247 set dummy $ac_prog; ac_word=$2 35248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35249 $as_echo_n "checking for $ac_word... " >&6; } 35250 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35251 $as_echo_n "(cached) " >&6 35252 else 35253 case $POTENTIAL_CXX in 35254 [\\/]* | ?:[\\/]*) 35255 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35256 ;; 35257 *) 35258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35259 for as_dir in $PATH 35260 do 35261 IFS=$as_save_IFS 35262 test -z "$as_dir" && as_dir=. 35263 for ac_exec_ext in '' $ac_executable_extensions; do 35264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35265 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35267 break 2 35268 fi 35269 done 35270 done 35271 IFS=$as_save_IFS 35272 35273 ;; 35274 esac 35275 fi 35276 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35277 if test -n "$POTENTIAL_CXX"; then 35278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35279 $as_echo "$POTENTIAL_CXX" >&6; } 35280 else 35281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35282 $as_echo "no" >&6; } 35283 fi 35284 35285 35286 test -n "$POTENTIAL_CXX" && break 35287 done 35288 35289 if test "x$POTENTIAL_CXX" != x; then 35290 CXX=$POTENTIAL_CXX 35291 else 35292 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35293 fi 35294 else 35295 # Otherwise it might already be a complete path 35296 if test ! -x "$CXX"; then 35297 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35298 fi 35299 fi 35300 else 35301 # No user supplied value. Locate compiler ourselves. 35302 35303 # If we are cross compiling, assume cross compilation tools follows the 35304 # cross compilation standard where they are prefixed with the autoconf 35305 # standard name for the target. For example the binary 35306 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35307 # If we are not cross compiling, then the default compiler name will be 35308 # used. 35309 35310 CXX= 35311 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35312 # before checking the rest of the PATH. 35313 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35314 # step, this should not be necessary. 35315 if test -n "$TOOLCHAIN_PATH"; then 35316 PATH_save="$PATH" 35317 PATH="$TOOLCHAIN_PATH" 35318 if test -n "$ac_tool_prefix"; then 35319 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35320 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35322 $as_echo_n "checking for $ac_word... " >&6; } 35323 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35324 $as_echo_n "(cached) " >&6 35325 else 35326 case $TOOLCHAIN_PATH_CXX in 35327 [\\/]* | ?:[\\/]*) 35328 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35329 ;; 35330 *) 35331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35332 for as_dir in $PATH 35333 do 35334 IFS=$as_save_IFS 35335 test -z "$as_dir" && as_dir=. 35336 for ac_exec_ext in '' $ac_executable_extensions; do 35337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35338 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35340 break 2 35341 fi 35342 done 35343 done 35344 IFS=$as_save_IFS 35345 35346 ;; 35347 esac 35348 fi 35349 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35350 if test -n "$TOOLCHAIN_PATH_CXX"; then 35351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35352 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35353 else 35354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35355 $as_echo "no" >&6; } 35356 fi 35357 35358 35359 fi 35360 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35361 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35362 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35363 set dummy $SEARCH_LIST; ac_word=$2 35364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35365 $as_echo_n "checking for $ac_word... " >&6; } 35366 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35367 $as_echo_n "(cached) " >&6 35368 else 35369 case $ac_pt_TOOLCHAIN_PATH_CXX in 35370 [\\/]* | ?:[\\/]*) 35371 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35372 ;; 35373 *) 35374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35375 for as_dir in $PATH 35376 do 35377 IFS=$as_save_IFS 35378 test -z "$as_dir" && as_dir=. 35379 for ac_exec_ext in '' $ac_executable_extensions; do 35380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35381 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35383 break 2 35384 fi 35385 done 35386 done 35387 IFS=$as_save_IFS 35388 35389 ;; 35390 esac 35391 fi 35392 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35393 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35395 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35396 else 35397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35398 $as_echo "no" >&6; } 35399 fi 35400 35401 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35402 TOOLCHAIN_PATH_CXX="" 35403 else 35404 case $cross_compiling:$ac_tool_warned in 35405 yes:) 35406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35408 ac_tool_warned=yes ;; 35409 esac 35410 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35411 fi 35412 else 35413 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35414 fi 35415 35416 CXX=$TOOLCHAIN_PATH_CXX 35417 PATH="$PATH_save" 35418 fi 35419 35420 # AC_PATH_TOOL can't be run multiple times with the same variable, 35421 # so create a new name for this run. 35422 if test "x$CXX" = x; then 35423 if test -n "$ac_tool_prefix"; then 35424 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35425 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35427 $as_echo_n "checking for $ac_word... " >&6; } 35428 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35429 $as_echo_n "(cached) " >&6 35430 else 35431 case $POTENTIAL_CXX in 35432 [\\/]* | ?:[\\/]*) 35433 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35434 ;; 35435 *) 35436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35437 for as_dir in $PATH 35438 do 35439 IFS=$as_save_IFS 35440 test -z "$as_dir" && as_dir=. 35441 for ac_exec_ext in '' $ac_executable_extensions; do 35442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35443 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35445 break 2 35446 fi 35447 done 35448 done 35449 IFS=$as_save_IFS 35450 35451 ;; 35452 esac 35453 fi 35454 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35455 if test -n "$POTENTIAL_CXX"; then 35456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35457 $as_echo "$POTENTIAL_CXX" >&6; } 35458 else 35459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35460 $as_echo "no" >&6; } 35461 fi 35462 35463 35464 fi 35465 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35466 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35467 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35468 set dummy $SEARCH_LIST; ac_word=$2 35469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35470 $as_echo_n "checking for $ac_word... " >&6; } 35471 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35472 $as_echo_n "(cached) " >&6 35473 else 35474 case $ac_pt_POTENTIAL_CXX in 35475 [\\/]* | ?:[\\/]*) 35476 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35477 ;; 35478 *) 35479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35480 for as_dir in $PATH 35481 do 35482 IFS=$as_save_IFS 35483 test -z "$as_dir" && as_dir=. 35484 for ac_exec_ext in '' $ac_executable_extensions; do 35485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35486 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35488 break 2 35489 fi 35490 done 35491 done 35492 IFS=$as_save_IFS 35493 35494 ;; 35495 esac 35496 fi 35497 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35498 if test -n "$ac_pt_POTENTIAL_CXX"; then 35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35500 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35501 else 35502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35503 $as_echo "no" >&6; } 35504 fi 35505 35506 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35507 POTENTIAL_CXX="" 35508 else 35509 case $cross_compiling:$ac_tool_warned in 35510 yes:) 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35513 ac_tool_warned=yes ;; 35514 esac 35515 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35516 fi 35517 else 35518 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35519 fi 35520 35521 CXX=$POTENTIAL_CXX 35522 fi 35523 35524 if test "x$CXX" = x; then 35525 35526 # Print a helpful message on how to acquire the necessary build dependency. 35527 # devkit is the help tag: freetype, cups, alsa etc 35528 MISSING_DEPENDENCY=devkit 35529 35530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35531 cygwin_help $MISSING_DEPENDENCY 35532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35533 msys_help $MISSING_DEPENDENCY 35534 else 35535 PKGHANDLER_COMMAND= 35536 35537 case $PKGHANDLER in 35538 apt-get) 35539 apt_help $MISSING_DEPENDENCY ;; 35540 yum) 35541 yum_help $MISSING_DEPENDENCY ;; 35542 brew) 35543 brew_help $MISSING_DEPENDENCY ;; 35544 port) 35545 port_help $MISSING_DEPENDENCY ;; 35546 pkgutil) 35547 pkgutil_help $MISSING_DEPENDENCY ;; 35548 pkgadd) 35549 pkgadd_help $MISSING_DEPENDENCY ;; 35550 esac 35551 35552 if test "x$PKGHANDLER_COMMAND" != x; then 35553 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35554 fi 35555 fi 35556 35557 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35558 fi 35559 fi 35560 35561 # Now we have a compiler binary in CXX. Make sure it's okay. 35562 35563 # Only process if variable expands to non-empty 35564 35565 if test "x$CXX" != x; then 35566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35567 35568 # First separate the path from the arguments. This will split at the first 35569 # space. 35570 complete="$CXX" 35571 path="${complete%% *}" 35572 tmp="$complete EOL" 35573 arguments="${tmp#* }" 35574 35575 # Input might be given as Windows format, start by converting to 35576 # unix format. 35577 new_path=`$CYGPATH -u "$path"` 35578 35579 # Now try to locate executable using which 35580 new_path=`$WHICH "$new_path" 2> /dev/null` 35581 # bat and cmd files are not always considered executable in cygwin causing which 35582 # to not find them 35583 if test "x$new_path" = x \ 35584 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35585 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35586 new_path=`$CYGPATH -u "$path"` 35587 fi 35588 if test "x$new_path" = x; then 35589 # Oops. Which didn't find the executable. 35590 # The splitting of arguments from the executable at a space might have been incorrect, 35591 # since paths with space are more likely in Windows. Give it another try with the whole 35592 # argument. 35593 path="$complete" 35594 arguments="EOL" 35595 new_path=`$CYGPATH -u "$path"` 35596 new_path=`$WHICH "$new_path" 2> /dev/null` 35597 # bat and cmd files are not always considered executable in cygwin causing which 35598 # to not find them 35599 if test "x$new_path" = x \ 35600 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35601 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35602 new_path=`$CYGPATH -u "$path"` 35603 fi 35604 if test "x$new_path" = x; then 35605 # It's still not found. Now this is an unrecoverable error. 35606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35607 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35608 has_space=`$ECHO "$complete" | $GREP " "` 35609 if test "x$has_space" != x; then 35610 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35611 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35612 fi 35613 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35614 fi 35615 fi 35616 35617 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35618 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35619 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35620 # "foo.exe" is OK but "foo" is an error. 35621 # 35622 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35623 # It is also a way to make sure we got the proper file name for the real test later on. 35624 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35625 if test "x$test_shortpath" = x; then 35626 # Short path failed, file does not exist as specified. 35627 # Try adding .exe or .cmd 35628 if test -f "${new_path}.exe"; then 35629 input_to_shortpath="${new_path}.exe" 35630 elif test -f "${new_path}.cmd"; then 35631 input_to_shortpath="${new_path}.cmd" 35632 else 35633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35634 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35635 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35636 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35637 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35638 fi 35639 else 35640 input_to_shortpath="$new_path" 35641 fi 35642 35643 # Call helper function which possibly converts this using DOS-style short mode. 35644 # If so, the updated path is stored in $new_path. 35645 new_path="$input_to_shortpath" 35646 35647 input_path="$input_to_shortpath" 35648 # Check if we need to convert this using DOS-style short mode. If the path 35649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35650 # take no chances and rewrite it. 35651 # Note: m4 eats our [], so we need to use [ and ] instead. 35652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35653 if test "x$has_forbidden_chars" != x; then 35654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35655 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35656 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35657 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35658 # Going to short mode and back again did indeed matter. Since short mode is 35659 # case insensitive, let's make it lowercase to improve readability. 35660 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35661 # Now convert it back to Unix-style (cygpath) 35662 input_path=`$CYGPATH -u "$shortmode_path"` 35663 new_path="$input_path" 35664 fi 35665 fi 35666 35667 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35668 if test "x$test_cygdrive_prefix" = x; then 35669 # As a simple fix, exclude /usr/bin since it's not a real path. 35670 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35671 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35672 # a path prefixed by /cygdrive for fixpath to work. 35673 new_path="$CYGWIN_ROOT_PATH$input_path" 35674 fi 35675 fi 35676 35677 # remove trailing .exe if any 35678 new_path="${new_path/%.exe/}" 35679 35680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35681 35682 # First separate the path from the arguments. This will split at the first 35683 # space. 35684 complete="$CXX" 35685 path="${complete%% *}" 35686 tmp="$complete EOL" 35687 arguments="${tmp#* }" 35688 35689 # Input might be given as Windows format, start by converting to 35690 # unix format. 35691 new_path="$path" 35692 35693 windows_path="$new_path" 35694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35695 unix_path=`$CYGPATH -u "$windows_path"` 35696 new_path="$unix_path" 35697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35698 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35699 new_path="$unix_path" 35700 fi 35701 35702 35703 # Now try to locate executable using which 35704 new_path=`$WHICH "$new_path" 2> /dev/null` 35705 35706 if test "x$new_path" = x; then 35707 # Oops. Which didn't find the executable. 35708 # The splitting of arguments from the executable at a space might have been incorrect, 35709 # since paths with space are more likely in Windows. Give it another try with the whole 35710 # argument. 35711 path="$complete" 35712 arguments="EOL" 35713 new_path="$path" 35714 35715 windows_path="$new_path" 35716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35717 unix_path=`$CYGPATH -u "$windows_path"` 35718 new_path="$unix_path" 35719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35721 new_path="$unix_path" 35722 fi 35723 35724 35725 new_path=`$WHICH "$new_path" 2> /dev/null` 35726 # bat and cmd files are not always considered executable in MSYS causing which 35727 # to not find them 35728 if test "x$new_path" = x \ 35729 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35730 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35731 new_path="$path" 35732 35733 windows_path="$new_path" 35734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35735 unix_path=`$CYGPATH -u "$windows_path"` 35736 new_path="$unix_path" 35737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35739 new_path="$unix_path" 35740 fi 35741 35742 fi 35743 35744 if test "x$new_path" = x; then 35745 # It's still not found. Now this is an unrecoverable error. 35746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35747 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35748 has_space=`$ECHO "$complete" | $GREP " "` 35749 if test "x$has_space" != x; then 35750 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35751 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35752 fi 35753 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35754 fi 35755 fi 35756 35757 # Now new_path has a complete unix path to the binary 35758 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35759 # Keep paths in /bin as-is, but remove trailing .exe if any 35760 new_path="${new_path/%.exe/}" 35761 # Do not save /bin paths to all_fixpath_prefixes! 35762 else 35763 # Not in mixed or Windows style, start by that. 35764 new_path=`cmd //c echo $new_path` 35765 35766 input_path="$new_path" 35767 # Check if we need to convert this using DOS-style short mode. If the path 35768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35769 # take no chances and rewrite it. 35770 # Note: m4 eats our [], so we need to use [ and ] instead. 35771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35772 if test "x$has_forbidden_chars" != x; then 35773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35774 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35775 fi 35776 35777 # Output is in $new_path 35778 35779 windows_path="$new_path" 35780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35781 unix_path=`$CYGPATH -u "$windows_path"` 35782 new_path="$unix_path" 35783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35785 new_path="$unix_path" 35786 fi 35787 35788 # remove trailing .exe if any 35789 new_path="${new_path/%.exe/}" 35790 35791 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35792 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35793 fi 35794 35795 else 35796 # We're on a unix platform. Hooray! :) 35797 # First separate the path from the arguments. This will split at the first 35798 # space. 35799 complete="$CXX" 35800 path="${complete%% *}" 35801 tmp="$complete EOL" 35802 arguments="${tmp#* }" 35803 35804 # Cannot rely on the command "which" here since it doesn't always work. 35805 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35806 if test -z "$is_absolute_path"; then 35807 # Path to executable is not absolute. Find it. 35808 IFS_save="$IFS" 35809 IFS=: 35810 for p in $PATH; do 35811 if test -f "$p/$path" && test -x "$p/$path"; then 35812 new_path="$p/$path" 35813 break 35814 fi 35815 done 35816 IFS="$IFS_save" 35817 else 35818 # This is an absolute path, we can use it without further modifications. 35819 new_path="$path" 35820 fi 35821 35822 if test "x$new_path" = x; then 35823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35824 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35825 has_space=`$ECHO "$complete" | $GREP " "` 35826 if test "x$has_space" != x; then 35827 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35828 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35829 fi 35830 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35831 fi 35832 fi 35833 35834 # Now join together the path and the arguments once again 35835 if test "x$arguments" != xEOL; then 35836 new_complete="$new_path ${arguments% *}" 35837 else 35838 new_complete="$new_path" 35839 fi 35840 35841 if test "x$complete" != "x$new_complete"; then 35842 CXX="$new_complete" 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35844 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35845 fi 35846 fi 35847 35848 TEST_COMPILER="$CXX" 35849 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35851 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35852 SYMLINK_ORIGINAL="$TEST_COMPILER" 35853 35854 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35855 # Follow a chain of symbolic links. Use readlink 35856 # where it exists, else fall back to horribly 35857 # complicated shell code. 35858 if test "x$READLINK_TESTED" != yes; then 35859 # On MacOSX there is a readlink tool with a different 35860 # purpose than the GNU readlink tool. Check the found readlink. 35861 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35862 if test "x$ISGNU" = x; then 35863 # A readlink that we do not know how to use. 35864 # Are there other non-GNU readlinks out there? 35865 READLINK_TESTED=yes 35866 READLINK= 35867 fi 35868 fi 35869 35870 if test "x$READLINK" != x; then 35871 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35872 else 35873 # Save the current directory for restoring afterwards 35874 STARTDIR=$PWD 35875 COUNTER=0 35876 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35877 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35878 cd $sym_link_dir 35879 # Use -P flag to resolve symlinks in directories. 35880 cd `$THEPWDCMD -P` 35881 sym_link_dir=`$THEPWDCMD -P` 35882 # Resolve file symlinks 35883 while test $COUNTER -lt 20; do 35884 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35885 if test "x$ISLINK" == x; then 35886 # This is not a symbolic link! We are done! 35887 break 35888 fi 35889 # Again resolve directory symlinks since the target of the just found 35890 # link could be in a different directory 35891 cd `$DIRNAME $ISLINK` 35892 sym_link_dir=`$THEPWDCMD -P` 35893 sym_link_file=`$BASENAME $ISLINK` 35894 let COUNTER=COUNTER+1 35895 done 35896 cd $STARTDIR 35897 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35898 fi 35899 fi 35900 35901 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35903 $as_echo "no symlink" >&6; } 35904 else 35905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35906 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35907 35908 # We can't handle ccache by gcc wrappers, since we need to know if we're 35909 # using ccache. Instead ccache usage must be controlled by a configure option. 35910 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35911 if test "x$COMPILER_BASENAME" = "xccache"; then 35912 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35913 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35914 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35915 fi 35916 fi 35917 35918 35919 COMPILER=$CXX 35920 COMPILER_NAME=$COMPILER_NAME 35921 35922 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35923 # cc -V output typically looks like 35924 # cc: Sun C 5.12 Linux_i386 2011/11/16 35925 # or 35926 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35927 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35928 # Check that this is likely to be the Solaris Studio cc. 35929 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35930 if test $? -ne 0; then 35931 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35932 { $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 35933 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35934 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35935 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35936 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35937 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35938 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35939 fi 35940 # Remove usage instructions (if present), and 35941 # collapse compiler output into a single line 35942 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35943 $SED -e 's/ *[Uu]sage:.*//'` 35944 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35945 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35946 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35947 # xlc -qversion output typically looks like 35948 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35949 # Version: 11.01.0000.0015 35950 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35951 # Check that this is likely to be the IBM XL C compiler. 35952 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35953 if test $? -ne 0; then 35954 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35955 { $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 35956 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35957 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35958 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35959 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35960 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35961 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35962 fi 35963 # Collapse compiler output into a single line 35964 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35965 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35966 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35967 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35968 # There is no specific version flag, but all output starts with a version string. 35969 # First line typically looks something like: 35970 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35971 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35972 # Check that this is likely to be Microsoft CL.EXE. 35973 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35974 if test $? -ne 0; then 35975 { $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 35976 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35977 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35978 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35979 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35980 fi 35981 # Collapse compiler output into a single line 35982 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35983 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35984 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35985 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35986 # gcc --version output typically looks like 35987 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35988 # Copyright (C) 2013 Free Software Foundation, Inc. 35989 # This is free software; see the source for copying conditions. There is NO 35990 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35991 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35992 # Check that this is likely to be GCC. 35993 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35994 if test $? -ne 0; then 35995 { $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 35996 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35997 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35998 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35999 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36000 fi 36001 # Remove Copyright and legalese from version string, and 36002 # collapse into a single line 36003 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36004 $SED -e 's/ *Copyright .*//'` 36005 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36006 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 36007 elif test "x$TOOLCHAIN_TYPE" = xclang; then 36008 # clang --version output typically looks like 36009 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 36010 # clang version 3.3 (tags/RELEASE_33/final) 36011 # or 36012 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 36013 # Target: x86_64-pc-linux-gnu 36014 # Thread model: posix 36015 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 36016 # Check that this is likely to be clang 36017 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 36018 if test $? -ne 0; then 36019 { $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 36020 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 36021 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 36022 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 36023 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36024 fi 36025 # Collapse compiler output into a single line 36026 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 36027 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36028 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 36029 else 36030 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 36031 fi 36032 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 36033 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 36034 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 36035 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 36036 36037 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 36038 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 36039 36040 36041 # Now that we have resolved CXX ourself, let autoconf have its go at it 36042 ac_ext=cpp 36043 ac_cpp='$CXXCPP $CPPFLAGS' 36044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36047 if test -z "$CXX"; then 36048 if test -n "$CCC"; then 36049 CXX=$CCC 36050 else 36051 if test -n "$ac_tool_prefix"; then 36052 for ac_prog in $CXX 36053 do 36054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36057 $as_echo_n "checking for $ac_word... " >&6; } 36058 if ${ac_cv_prog_CXX+:} false; then : 36059 $as_echo_n "(cached) " >&6 36060 else 36061 if test -n "$CXX"; then 36062 ac_cv_prog_CXX="$CXX" # Let the user override the test. 36063 else 36064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36065 for as_dir in $PATH 36066 do 36067 IFS=$as_save_IFS 36068 test -z "$as_dir" && as_dir=. 36069 for ac_exec_ext in '' $ac_executable_extensions; do 36070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36071 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 36072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36073 break 2 36074 fi 36075 done 36076 done 36077 IFS=$as_save_IFS 36078 36079 fi 36080 fi 36081 CXX=$ac_cv_prog_CXX 36082 if test -n "$CXX"; then 36083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 36084 $as_echo "$CXX" >&6; } 36085 else 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36087 $as_echo "no" >&6; } 36088 fi 36089 36090 36091 test -n "$CXX" && break 36092 done 36093 fi 36094 if test -z "$CXX"; then 36095 ac_ct_CXX=$CXX 36096 for ac_prog in $CXX 36097 do 36098 # Extract the first word of "$ac_prog", so it can be a program name with args. 36099 set dummy $ac_prog; ac_word=$2 36100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36101 $as_echo_n "checking for $ac_word... " >&6; } 36102 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 36103 $as_echo_n "(cached) " >&6 36104 else 36105 if test -n "$ac_ct_CXX"; then 36106 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 36107 else 36108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36109 for as_dir in $PATH 36110 do 36111 IFS=$as_save_IFS 36112 test -z "$as_dir" && as_dir=. 36113 for ac_exec_ext in '' $ac_executable_extensions; do 36114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36115 ac_cv_prog_ac_ct_CXX="$ac_prog" 36116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36117 break 2 36118 fi 36119 done 36120 done 36121 IFS=$as_save_IFS 36122 36123 fi 36124 fi 36125 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 36126 if test -n "$ac_ct_CXX"; then 36127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 36128 $as_echo "$ac_ct_CXX" >&6; } 36129 else 36130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36131 $as_echo "no" >&6; } 36132 fi 36133 36134 36135 test -n "$ac_ct_CXX" && break 36136 done 36137 36138 if test "x$ac_ct_CXX" = x; then 36139 CXX="g++" 36140 else 36141 case $cross_compiling:$ac_tool_warned in 36142 yes:) 36143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36145 ac_tool_warned=yes ;; 36146 esac 36147 CXX=$ac_ct_CXX 36148 fi 36149 fi 36150 36151 fi 36152 fi 36153 # Provide some information about the compiler. 36154 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36155 set X $ac_compile 36156 ac_compiler=$2 36157 for ac_option in --version -v -V -qversion; do 36158 { { ac_try="$ac_compiler $ac_option >&5" 36159 case "(($ac_try" in 36160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36161 *) ac_try_echo=$ac_try;; 36162 esac 36163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36164 $as_echo "$ac_try_echo"; } >&5 36165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36166 ac_status=$? 36167 if test -s conftest.err; then 36168 sed '10a\ 36169 ... rest of stderr output deleted ... 36170 10q' conftest.err >conftest.er1 36171 cat conftest.er1 >&5 36172 fi 36173 rm -f conftest.er1 conftest.err 36174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36175 test $ac_status = 0; } 36176 done 36177 36178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36179 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36180 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36181 $as_echo_n "(cached) " >&6 36182 else 36183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36184 /* end confdefs.h. */ 36185 36186 int 36187 main () 36188 { 36189 #ifndef __GNUC__ 36190 choke me 36191 #endif 36192 36193 ; 36194 return 0; 36195 } 36196 _ACEOF 36197 if ac_fn_cxx_try_compile "$LINENO"; then : 36198 ac_compiler_gnu=yes 36199 else 36200 ac_compiler_gnu=no 36201 fi 36202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36203 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36204 36205 fi 36206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36207 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36208 if test $ac_compiler_gnu = yes; then 36209 GXX=yes 36210 else 36211 GXX= 36212 fi 36213 ac_test_CXXFLAGS=${CXXFLAGS+set} 36214 ac_save_CXXFLAGS=$CXXFLAGS 36215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36216 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36217 if ${ac_cv_prog_cxx_g+:} false; then : 36218 $as_echo_n "(cached) " >&6 36219 else 36220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36221 ac_cxx_werror_flag=yes 36222 ac_cv_prog_cxx_g=no 36223 CXXFLAGS="-g" 36224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36225 /* end confdefs.h. */ 36226 36227 int 36228 main () 36229 { 36230 36231 ; 36232 return 0; 36233 } 36234 _ACEOF 36235 if ac_fn_cxx_try_compile "$LINENO"; then : 36236 ac_cv_prog_cxx_g=yes 36237 else 36238 CXXFLAGS="" 36239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36240 /* end confdefs.h. */ 36241 36242 int 36243 main () 36244 { 36245 36246 ; 36247 return 0; 36248 } 36249 _ACEOF 36250 if ac_fn_cxx_try_compile "$LINENO"; then : 36251 36252 else 36253 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36254 CXXFLAGS="-g" 36255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36256 /* end confdefs.h. */ 36257 36258 int 36259 main () 36260 { 36261 36262 ; 36263 return 0; 36264 } 36265 _ACEOF 36266 if ac_fn_cxx_try_compile "$LINENO"; then : 36267 ac_cv_prog_cxx_g=yes 36268 fi 36269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36270 fi 36271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36272 fi 36273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36275 fi 36276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36277 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36278 if test "$ac_test_CXXFLAGS" = set; then 36279 CXXFLAGS=$ac_save_CXXFLAGS 36280 elif test $ac_cv_prog_cxx_g = yes; then 36281 if test "$GXX" = yes; then 36282 CXXFLAGS="-g -O2" 36283 else 36284 CXXFLAGS="-g" 36285 fi 36286 else 36287 if test "$GXX" = yes; then 36288 CXXFLAGS="-O2" 36289 else 36290 CXXFLAGS= 36291 fi 36292 fi 36293 ac_ext=cpp 36294 ac_cpp='$CXXCPP $CPPFLAGS' 36295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36298 36299 36300 # This is the compiler version number on the form X.Y[.Z] 36301 36302 36303 36304 36305 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36307 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36309 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36310 fi 36311 36312 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36313 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36314 { $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 36315 $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;} 36316 fi 36317 36318 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36319 { $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 36320 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36321 fi 36322 36323 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36324 36325 36326 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 # Execute function body 36377 36378 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36379 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36380 36381 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36382 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36383 fi 36384 36385 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36386 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36387 fi 36388 36389 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36390 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36391 36392 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36393 : 36394 36395 else 36396 : 36397 36398 { $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 36399 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36400 36401 36402 fi 36403 36404 36405 36406 36407 36408 36409 36410 36411 36412 36413 36414 36415 36416 36417 fi 36418 36419 # 36420 # Setup the preprocessor (CPP and CXXCPP) 36421 # 36422 ac_ext=c 36423 ac_cpp='$CPP $CPPFLAGS' 36424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36426 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36428 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36429 # On Suns, sometimes $CPP names a directory. 36430 if test -n "$CPP" && test -d "$CPP"; then 36431 CPP= 36432 fi 36433 if test -z "$CPP"; then 36434 if ${ac_cv_prog_CPP+:} false; then : 36435 $as_echo_n "(cached) " >&6 36436 else 36437 # Double quotes because CPP needs to be expanded 36438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36439 do 36440 ac_preproc_ok=false 36441 for ac_c_preproc_warn_flag in '' yes 36442 do 36443 # Use a header file that comes with gcc, so configuring glibc 36444 # with a fresh cross-compiler works. 36445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36446 # <limits.h> exists even on freestanding compilers. 36447 # On the NeXT, cc -E runs the code through the compiler's parser, 36448 # not just through cpp. "Syntax error" is here to catch this case. 36449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36450 /* end confdefs.h. */ 36451 #ifdef __STDC__ 36452 # include <limits.h> 36453 #else 36454 # include <assert.h> 36455 #endif 36456 Syntax error 36457 _ACEOF 36458 if ac_fn_c_try_cpp "$LINENO"; then : 36459 36460 else 36461 # Broken: fails on valid input. 36462 continue 36463 fi 36464 rm -f conftest.err conftest.i conftest.$ac_ext 36465 36466 # OK, works on sane cases. Now check whether nonexistent headers 36467 # can be detected and how. 36468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36469 /* end confdefs.h. */ 36470 #include <ac_nonexistent.h> 36471 _ACEOF 36472 if ac_fn_c_try_cpp "$LINENO"; then : 36473 # Broken: success on invalid input. 36474 continue 36475 else 36476 # Passes both tests. 36477 ac_preproc_ok=: 36478 break 36479 fi 36480 rm -f conftest.err conftest.i conftest.$ac_ext 36481 36482 done 36483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36484 rm -f conftest.i conftest.err conftest.$ac_ext 36485 if $ac_preproc_ok; then : 36486 break 36487 fi 36488 36489 done 36490 ac_cv_prog_CPP=$CPP 36491 36492 fi 36493 CPP=$ac_cv_prog_CPP 36494 else 36495 ac_cv_prog_CPP=$CPP 36496 fi 36497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36498 $as_echo "$CPP" >&6; } 36499 ac_preproc_ok=false 36500 for ac_c_preproc_warn_flag in '' yes 36501 do 36502 # Use a header file that comes with gcc, so configuring glibc 36503 # with a fresh cross-compiler works. 36504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36505 # <limits.h> exists even on freestanding compilers. 36506 # On the NeXT, cc -E runs the code through the compiler's parser, 36507 # not just through cpp. "Syntax error" is here to catch this case. 36508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36509 /* end confdefs.h. */ 36510 #ifdef __STDC__ 36511 # include <limits.h> 36512 #else 36513 # include <assert.h> 36514 #endif 36515 Syntax error 36516 _ACEOF 36517 if ac_fn_c_try_cpp "$LINENO"; then : 36518 36519 else 36520 # Broken: fails on valid input. 36521 continue 36522 fi 36523 rm -f conftest.err conftest.i conftest.$ac_ext 36524 36525 # OK, works on sane cases. Now check whether nonexistent headers 36526 # can be detected and how. 36527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36528 /* end confdefs.h. */ 36529 #include <ac_nonexistent.h> 36530 _ACEOF 36531 if ac_fn_c_try_cpp "$LINENO"; then : 36532 # Broken: success on invalid input. 36533 continue 36534 else 36535 # Passes both tests. 36536 ac_preproc_ok=: 36537 break 36538 fi 36539 rm -f conftest.err conftest.i conftest.$ac_ext 36540 36541 done 36542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36543 rm -f conftest.i conftest.err conftest.$ac_ext 36544 if $ac_preproc_ok; then : 36545 36546 else 36547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36549 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36550 See \`config.log' for more details" "$LINENO" 5; } 36551 fi 36552 36553 ac_ext=cpp 36554 ac_cpp='$CXXCPP $CPPFLAGS' 36555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36558 36559 36560 # Only process if variable expands to non-empty 36561 36562 if test "x$CPP" != x; then 36563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36564 36565 # First separate the path from the arguments. This will split at the first 36566 # space. 36567 complete="$CPP" 36568 path="${complete%% *}" 36569 tmp="$complete EOL" 36570 arguments="${tmp#* }" 36571 36572 # Input might be given as Windows format, start by converting to 36573 # unix format. 36574 new_path=`$CYGPATH -u "$path"` 36575 36576 # Now try to locate executable using which 36577 new_path=`$WHICH "$new_path" 2> /dev/null` 36578 # bat and cmd files are not always considered executable in cygwin causing which 36579 # to not find them 36580 if test "x$new_path" = x \ 36581 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36582 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36583 new_path=`$CYGPATH -u "$path"` 36584 fi 36585 if test "x$new_path" = x; then 36586 # Oops. Which didn't find the executable. 36587 # The splitting of arguments from the executable at a space might have been incorrect, 36588 # since paths with space are more likely in Windows. Give it another try with the whole 36589 # argument. 36590 path="$complete" 36591 arguments="EOL" 36592 new_path=`$CYGPATH -u "$path"` 36593 new_path=`$WHICH "$new_path" 2> /dev/null` 36594 # bat and cmd files are not always considered executable in cygwin causing which 36595 # to not find them 36596 if test "x$new_path" = x \ 36597 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36598 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36599 new_path=`$CYGPATH -u "$path"` 36600 fi 36601 if test "x$new_path" = x; then 36602 # It's still not found. Now this is an unrecoverable error. 36603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36604 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36605 has_space=`$ECHO "$complete" | $GREP " "` 36606 if test "x$has_space" != x; then 36607 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36608 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36609 fi 36610 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36611 fi 36612 fi 36613 36614 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36615 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36616 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36617 # "foo.exe" is OK but "foo" is an error. 36618 # 36619 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36620 # It is also a way to make sure we got the proper file name for the real test later on. 36621 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36622 if test "x$test_shortpath" = x; then 36623 # Short path failed, file does not exist as specified. 36624 # Try adding .exe or .cmd 36625 if test -f "${new_path}.exe"; then 36626 input_to_shortpath="${new_path}.exe" 36627 elif test -f "${new_path}.cmd"; then 36628 input_to_shortpath="${new_path}.cmd" 36629 else 36630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36631 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36632 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36633 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36634 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36635 fi 36636 else 36637 input_to_shortpath="$new_path" 36638 fi 36639 36640 # Call helper function which possibly converts this using DOS-style short mode. 36641 # If so, the updated path is stored in $new_path. 36642 new_path="$input_to_shortpath" 36643 36644 input_path="$input_to_shortpath" 36645 # Check if we need to convert this using DOS-style short mode. If the path 36646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36647 # take no chances and rewrite it. 36648 # Note: m4 eats our [], so we need to use [ and ] instead. 36649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36650 if test "x$has_forbidden_chars" != x; then 36651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36652 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36653 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36654 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36655 # Going to short mode and back again did indeed matter. Since short mode is 36656 # case insensitive, let's make it lowercase to improve readability. 36657 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36658 # Now convert it back to Unix-style (cygpath) 36659 input_path=`$CYGPATH -u "$shortmode_path"` 36660 new_path="$input_path" 36661 fi 36662 fi 36663 36664 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36665 if test "x$test_cygdrive_prefix" = x; then 36666 # As a simple fix, exclude /usr/bin since it's not a real path. 36667 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36668 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36669 # a path prefixed by /cygdrive for fixpath to work. 36670 new_path="$CYGWIN_ROOT_PATH$input_path" 36671 fi 36672 fi 36673 36674 # remove trailing .exe if any 36675 new_path="${new_path/%.exe/}" 36676 36677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36678 36679 # First separate the path from the arguments. This will split at the first 36680 # space. 36681 complete="$CPP" 36682 path="${complete%% *}" 36683 tmp="$complete EOL" 36684 arguments="${tmp#* }" 36685 36686 # Input might be given as Windows format, start by converting to 36687 # unix format. 36688 new_path="$path" 36689 36690 windows_path="$new_path" 36691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36692 unix_path=`$CYGPATH -u "$windows_path"` 36693 new_path="$unix_path" 36694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36696 new_path="$unix_path" 36697 fi 36698 36699 36700 # Now try to locate executable using which 36701 new_path=`$WHICH "$new_path" 2> /dev/null` 36702 36703 if test "x$new_path" = x; then 36704 # Oops. Which didn't find the executable. 36705 # The splitting of arguments from the executable at a space might have been incorrect, 36706 # since paths with space are more likely in Windows. Give it another try with the whole 36707 # argument. 36708 path="$complete" 36709 arguments="EOL" 36710 new_path="$path" 36711 36712 windows_path="$new_path" 36713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36714 unix_path=`$CYGPATH -u "$windows_path"` 36715 new_path="$unix_path" 36716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36718 new_path="$unix_path" 36719 fi 36720 36721 36722 new_path=`$WHICH "$new_path" 2> /dev/null` 36723 # bat and cmd files are not always considered executable in MSYS causing which 36724 # to not find them 36725 if test "x$new_path" = x \ 36726 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36727 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36728 new_path="$path" 36729 36730 windows_path="$new_path" 36731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36732 unix_path=`$CYGPATH -u "$windows_path"` 36733 new_path="$unix_path" 36734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36736 new_path="$unix_path" 36737 fi 36738 36739 fi 36740 36741 if test "x$new_path" = x; then 36742 # It's still not found. Now this is an unrecoverable error. 36743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36744 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36745 has_space=`$ECHO "$complete" | $GREP " "` 36746 if test "x$has_space" != x; then 36747 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36748 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36749 fi 36750 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36751 fi 36752 fi 36753 36754 # Now new_path has a complete unix path to the binary 36755 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36756 # Keep paths in /bin as-is, but remove trailing .exe if any 36757 new_path="${new_path/%.exe/}" 36758 # Do not save /bin paths to all_fixpath_prefixes! 36759 else 36760 # Not in mixed or Windows style, start by that. 36761 new_path=`cmd //c echo $new_path` 36762 36763 input_path="$new_path" 36764 # Check if we need to convert this using DOS-style short mode. If the path 36765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36766 # take no chances and rewrite it. 36767 # Note: m4 eats our [], so we need to use [ and ] instead. 36768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36769 if test "x$has_forbidden_chars" != x; then 36770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36771 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36772 fi 36773 36774 # Output is in $new_path 36775 36776 windows_path="$new_path" 36777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36778 unix_path=`$CYGPATH -u "$windows_path"` 36779 new_path="$unix_path" 36780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36782 new_path="$unix_path" 36783 fi 36784 36785 # remove trailing .exe if any 36786 new_path="${new_path/%.exe/}" 36787 36788 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36789 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36790 fi 36791 36792 else 36793 # We're on a unix platform. Hooray! :) 36794 # First separate the path from the arguments. This will split at the first 36795 # space. 36796 complete="$CPP" 36797 path="${complete%% *}" 36798 tmp="$complete EOL" 36799 arguments="${tmp#* }" 36800 36801 # Cannot rely on the command "which" here since it doesn't always work. 36802 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36803 if test -z "$is_absolute_path"; then 36804 # Path to executable is not absolute. Find it. 36805 IFS_save="$IFS" 36806 IFS=: 36807 for p in $PATH; do 36808 if test -f "$p/$path" && test -x "$p/$path"; then 36809 new_path="$p/$path" 36810 break 36811 fi 36812 done 36813 IFS="$IFS_save" 36814 else 36815 # This is an absolute path, we can use it without further modifications. 36816 new_path="$path" 36817 fi 36818 36819 if test "x$new_path" = x; then 36820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36821 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36822 has_space=`$ECHO "$complete" | $GREP " "` 36823 if test "x$has_space" != x; then 36824 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36825 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36826 fi 36827 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36828 fi 36829 fi 36830 36831 # Now join together the path and the arguments once again 36832 if test "x$arguments" != xEOL; then 36833 new_complete="$new_path ${arguments% *}" 36834 else 36835 new_complete="$new_path" 36836 fi 36837 36838 if test "x$complete" != "x$new_complete"; then 36839 CPP="$new_complete" 36840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36841 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36842 fi 36843 fi 36844 36845 ac_ext=cpp 36846 ac_cpp='$CXXCPP $CPPFLAGS' 36847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36851 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36852 if test -z "$CXXCPP"; then 36853 if ${ac_cv_prog_CXXCPP+:} false; then : 36854 $as_echo_n "(cached) " >&6 36855 else 36856 # Double quotes because CXXCPP needs to be expanded 36857 for CXXCPP in "$CXX -E" "/lib/cpp" 36858 do 36859 ac_preproc_ok=false 36860 for ac_cxx_preproc_warn_flag in '' yes 36861 do 36862 # Use a header file that comes with gcc, so configuring glibc 36863 # with a fresh cross-compiler works. 36864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36865 # <limits.h> exists even on freestanding compilers. 36866 # On the NeXT, cc -E runs the code through the compiler's parser, 36867 # not just through cpp. "Syntax error" is here to catch this case. 36868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36869 /* end confdefs.h. */ 36870 #ifdef __STDC__ 36871 # include <limits.h> 36872 #else 36873 # include <assert.h> 36874 #endif 36875 Syntax error 36876 _ACEOF 36877 if ac_fn_cxx_try_cpp "$LINENO"; then : 36878 36879 else 36880 # Broken: fails on valid input. 36881 continue 36882 fi 36883 rm -f conftest.err conftest.i conftest.$ac_ext 36884 36885 # OK, works on sane cases. Now check whether nonexistent headers 36886 # can be detected and how. 36887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36888 /* end confdefs.h. */ 36889 #include <ac_nonexistent.h> 36890 _ACEOF 36891 if ac_fn_cxx_try_cpp "$LINENO"; then : 36892 # Broken: success on invalid input. 36893 continue 36894 else 36895 # Passes both tests. 36896 ac_preproc_ok=: 36897 break 36898 fi 36899 rm -f conftest.err conftest.i conftest.$ac_ext 36900 36901 done 36902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36903 rm -f conftest.i conftest.err conftest.$ac_ext 36904 if $ac_preproc_ok; then : 36905 break 36906 fi 36907 36908 done 36909 ac_cv_prog_CXXCPP=$CXXCPP 36910 36911 fi 36912 CXXCPP=$ac_cv_prog_CXXCPP 36913 else 36914 ac_cv_prog_CXXCPP=$CXXCPP 36915 fi 36916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36917 $as_echo "$CXXCPP" >&6; } 36918 ac_preproc_ok=false 36919 for ac_cxx_preproc_warn_flag in '' yes 36920 do 36921 # Use a header file that comes with gcc, so configuring glibc 36922 # with a fresh cross-compiler works. 36923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36924 # <limits.h> exists even on freestanding compilers. 36925 # On the NeXT, cc -E runs the code through the compiler's parser, 36926 # not just through cpp. "Syntax error" is here to catch this case. 36927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36928 /* end confdefs.h. */ 36929 #ifdef __STDC__ 36930 # include <limits.h> 36931 #else 36932 # include <assert.h> 36933 #endif 36934 Syntax error 36935 _ACEOF 36936 if ac_fn_cxx_try_cpp "$LINENO"; then : 36937 36938 else 36939 # Broken: fails on valid input. 36940 continue 36941 fi 36942 rm -f conftest.err conftest.i conftest.$ac_ext 36943 36944 # OK, works on sane cases. Now check whether nonexistent headers 36945 # can be detected and how. 36946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36947 /* end confdefs.h. */ 36948 #include <ac_nonexistent.h> 36949 _ACEOF 36950 if ac_fn_cxx_try_cpp "$LINENO"; then : 36951 # Broken: success on invalid input. 36952 continue 36953 else 36954 # Passes both tests. 36955 ac_preproc_ok=: 36956 break 36957 fi 36958 rm -f conftest.err conftest.i conftest.$ac_ext 36959 36960 done 36961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36962 rm -f conftest.i conftest.err conftest.$ac_ext 36963 if $ac_preproc_ok; then : 36964 36965 else 36966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36968 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36969 See \`config.log' for more details" "$LINENO" 5; } 36970 fi 36971 36972 ac_ext=cpp 36973 ac_cpp='$CXXCPP $CPPFLAGS' 36974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36977 36978 36979 # Only process if variable expands to non-empty 36980 36981 if test "x$CXXCPP" != x; then 36982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36983 36984 # First separate the path from the arguments. This will split at the first 36985 # space. 36986 complete="$CXXCPP" 36987 path="${complete%% *}" 36988 tmp="$complete EOL" 36989 arguments="${tmp#* }" 36990 36991 # Input might be given as Windows format, start by converting to 36992 # unix format. 36993 new_path=`$CYGPATH -u "$path"` 36994 36995 # Now try to locate executable using which 36996 new_path=`$WHICH "$new_path" 2> /dev/null` 36997 # bat and cmd files are not always considered executable in cygwin causing which 36998 # to not find them 36999 if test "x$new_path" = x \ 37000 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37001 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37002 new_path=`$CYGPATH -u "$path"` 37003 fi 37004 if test "x$new_path" = x; then 37005 # Oops. Which didn't find the executable. 37006 # The splitting of arguments from the executable at a space might have been incorrect, 37007 # since paths with space are more likely in Windows. Give it another try with the whole 37008 # argument. 37009 path="$complete" 37010 arguments="EOL" 37011 new_path=`$CYGPATH -u "$path"` 37012 new_path=`$WHICH "$new_path" 2> /dev/null` 37013 # bat and cmd files are not always considered executable in cygwin causing which 37014 # to not find them 37015 if test "x$new_path" = x \ 37016 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37017 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37018 new_path=`$CYGPATH -u "$path"` 37019 fi 37020 if test "x$new_path" = x; then 37021 # It's still not found. Now this is an unrecoverable error. 37022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37023 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37024 has_space=`$ECHO "$complete" | $GREP " "` 37025 if test "x$has_space" != x; then 37026 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37027 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37028 fi 37029 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37030 fi 37031 fi 37032 37033 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37034 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37035 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37036 # "foo.exe" is OK but "foo" is an error. 37037 # 37038 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37039 # It is also a way to make sure we got the proper file name for the real test later on. 37040 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37041 if test "x$test_shortpath" = x; then 37042 # Short path failed, file does not exist as specified. 37043 # Try adding .exe or .cmd 37044 if test -f "${new_path}.exe"; then 37045 input_to_shortpath="${new_path}.exe" 37046 elif test -f "${new_path}.cmd"; then 37047 input_to_shortpath="${new_path}.cmd" 37048 else 37049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 37050 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 37051 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37052 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37053 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37054 fi 37055 else 37056 input_to_shortpath="$new_path" 37057 fi 37058 37059 # Call helper function which possibly converts this using DOS-style short mode. 37060 # If so, the updated path is stored in $new_path. 37061 new_path="$input_to_shortpath" 37062 37063 input_path="$input_to_shortpath" 37064 # Check if we need to convert this using DOS-style short mode. If the path 37065 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37066 # take no chances and rewrite it. 37067 # Note: m4 eats our [], so we need to use [ and ] instead. 37068 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37069 if test "x$has_forbidden_chars" != x; then 37070 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37071 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37072 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37073 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37074 # Going to short mode and back again did indeed matter. Since short mode is 37075 # case insensitive, let's make it lowercase to improve readability. 37076 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37077 # Now convert it back to Unix-style (cygpath) 37078 input_path=`$CYGPATH -u "$shortmode_path"` 37079 new_path="$input_path" 37080 fi 37081 fi 37082 37083 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37084 if test "x$test_cygdrive_prefix" = x; then 37085 # As a simple fix, exclude /usr/bin since it's not a real path. 37086 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37087 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37088 # a path prefixed by /cygdrive for fixpath to work. 37089 new_path="$CYGWIN_ROOT_PATH$input_path" 37090 fi 37091 fi 37092 37093 # remove trailing .exe if any 37094 new_path="${new_path/%.exe/}" 37095 37096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37097 37098 # First separate the path from the arguments. This will split at the first 37099 # space. 37100 complete="$CXXCPP" 37101 path="${complete%% *}" 37102 tmp="$complete EOL" 37103 arguments="${tmp#* }" 37104 37105 # Input might be given as Windows format, start by converting to 37106 # unix format. 37107 new_path="$path" 37108 37109 windows_path="$new_path" 37110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37111 unix_path=`$CYGPATH -u "$windows_path"` 37112 new_path="$unix_path" 37113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37115 new_path="$unix_path" 37116 fi 37117 37118 37119 # Now try to locate executable using which 37120 new_path=`$WHICH "$new_path" 2> /dev/null` 37121 37122 if test "x$new_path" = x; then 37123 # Oops. Which didn't find the executable. 37124 # The splitting of arguments from the executable at a space might have been incorrect, 37125 # since paths with space are more likely in Windows. Give it another try with the whole 37126 # argument. 37127 path="$complete" 37128 arguments="EOL" 37129 new_path="$path" 37130 37131 windows_path="$new_path" 37132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37133 unix_path=`$CYGPATH -u "$windows_path"` 37134 new_path="$unix_path" 37135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37137 new_path="$unix_path" 37138 fi 37139 37140 37141 new_path=`$WHICH "$new_path" 2> /dev/null` 37142 # bat and cmd files are not always considered executable in MSYS causing which 37143 # to not find them 37144 if test "x$new_path" = x \ 37145 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37146 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37147 new_path="$path" 37148 37149 windows_path="$new_path" 37150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37151 unix_path=`$CYGPATH -u "$windows_path"` 37152 new_path="$unix_path" 37153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37155 new_path="$unix_path" 37156 fi 37157 37158 fi 37159 37160 if test "x$new_path" = x; then 37161 # It's still not found. Now this is an unrecoverable error. 37162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37163 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37164 has_space=`$ECHO "$complete" | $GREP " "` 37165 if test "x$has_space" != x; then 37166 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37167 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37168 fi 37169 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37170 fi 37171 fi 37172 37173 # Now new_path has a complete unix path to the binary 37174 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37175 # Keep paths in /bin as-is, but remove trailing .exe if any 37176 new_path="${new_path/%.exe/}" 37177 # Do not save /bin paths to all_fixpath_prefixes! 37178 else 37179 # Not in mixed or Windows style, start by that. 37180 new_path=`cmd //c echo $new_path` 37181 37182 input_path="$new_path" 37183 # Check if we need to convert this using DOS-style short mode. If the path 37184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37185 # take no chances and rewrite it. 37186 # Note: m4 eats our [], so we need to use [ and ] instead. 37187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37188 if test "x$has_forbidden_chars" != x; then 37189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37190 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37191 fi 37192 37193 # Output is in $new_path 37194 37195 windows_path="$new_path" 37196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37197 unix_path=`$CYGPATH -u "$windows_path"` 37198 new_path="$unix_path" 37199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37201 new_path="$unix_path" 37202 fi 37203 37204 # remove trailing .exe if any 37205 new_path="${new_path/%.exe/}" 37206 37207 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37208 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37209 fi 37210 37211 else 37212 # We're on a unix platform. Hooray! :) 37213 # First separate the path from the arguments. This will split at the first 37214 # space. 37215 complete="$CXXCPP" 37216 path="${complete%% *}" 37217 tmp="$complete EOL" 37218 arguments="${tmp#* }" 37219 37220 # Cannot rely on the command "which" here since it doesn't always work. 37221 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37222 if test -z "$is_absolute_path"; then 37223 # Path to executable is not absolute. Find it. 37224 IFS_save="$IFS" 37225 IFS=: 37226 for p in $PATH; do 37227 if test -f "$p/$path" && test -x "$p/$path"; then 37228 new_path="$p/$path" 37229 break 37230 fi 37231 done 37232 IFS="$IFS_save" 37233 else 37234 # This is an absolute path, we can use it without further modifications. 37235 new_path="$path" 37236 fi 37237 37238 if test "x$new_path" = x; then 37239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37240 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37241 has_space=`$ECHO "$complete" | $GREP " "` 37242 if test "x$has_space" != x; then 37243 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37244 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37245 fi 37246 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37247 fi 37248 fi 37249 37250 # Now join together the path and the arguments once again 37251 if test "x$arguments" != xEOL; then 37252 new_complete="$new_path ${arguments% *}" 37253 else 37254 new_complete="$new_path" 37255 fi 37256 37257 if test "x$complete" != "x$new_complete"; then 37258 CXXCPP="$new_complete" 37259 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37260 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37261 fi 37262 fi 37263 37264 37265 # 37266 # Setup the linker (LD) 37267 # 37268 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37269 # In the Microsoft toolchain we have a separate LD command "link". 37270 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37271 # a cygwin program for something completely different. 37272 # Extract the first word of "link", so it can be a program name with args. 37273 set dummy link; ac_word=$2 37274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37275 $as_echo_n "checking for $ac_word... " >&6; } 37276 if ${ac_cv_prog_LD+:} false; then : 37277 $as_echo_n "(cached) " >&6 37278 else 37279 if test -n "$LD"; then 37280 ac_cv_prog_LD="$LD" # Let the user override the test. 37281 else 37282 ac_prog_rejected=no 37283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37284 for as_dir in $PATH 37285 do 37286 IFS=$as_save_IFS 37287 test -z "$as_dir" && as_dir=. 37288 for ac_exec_ext in '' $ac_executable_extensions; do 37289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37290 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37291 ac_prog_rejected=yes 37292 continue 37293 fi 37294 ac_cv_prog_LD="link" 37295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37296 break 2 37297 fi 37298 done 37299 done 37300 IFS=$as_save_IFS 37301 37302 if test $ac_prog_rejected = yes; then 37303 # We found a bogon in the path, so make sure we never use it. 37304 set dummy $ac_cv_prog_LD 37305 shift 37306 if test $# != 0; then 37307 # We chose a different compiler from the bogus one. 37308 # However, it has the same basename, so the bogon will be chosen 37309 # first if we set LD to just the basename; use the full file name. 37310 shift 37311 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37312 fi 37313 fi 37314 fi 37315 fi 37316 LD=$ac_cv_prog_LD 37317 if test -n "$LD"; then 37318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37319 $as_echo "$LD" >&6; } 37320 else 37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37322 $as_echo "no" >&6; } 37323 fi 37324 37325 37326 37327 # Only process if variable expands to non-empty 37328 37329 if test "x$LD" != x; then 37330 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37331 37332 # First separate the path from the arguments. This will split at the first 37333 # space. 37334 complete="$LD" 37335 path="${complete%% *}" 37336 tmp="$complete EOL" 37337 arguments="${tmp#* }" 37338 37339 # Input might be given as Windows format, start by converting to 37340 # unix format. 37341 new_path=`$CYGPATH -u "$path"` 37342 37343 # Now try to locate executable using which 37344 new_path=`$WHICH "$new_path" 2> /dev/null` 37345 # bat and cmd files are not always considered executable in cygwin causing which 37346 # to not find them 37347 if test "x$new_path" = x \ 37348 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37349 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37350 new_path=`$CYGPATH -u "$path"` 37351 fi 37352 if test "x$new_path" = x; then 37353 # Oops. Which didn't find the executable. 37354 # The splitting of arguments from the executable at a space might have been incorrect, 37355 # since paths with space are more likely in Windows. Give it another try with the whole 37356 # argument. 37357 path="$complete" 37358 arguments="EOL" 37359 new_path=`$CYGPATH -u "$path"` 37360 new_path=`$WHICH "$new_path" 2> /dev/null` 37361 # bat and cmd files are not always considered executable in cygwin causing which 37362 # to not find them 37363 if test "x$new_path" = x \ 37364 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37365 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37366 new_path=`$CYGPATH -u "$path"` 37367 fi 37368 if test "x$new_path" = x; then 37369 # It's still not found. Now this is an unrecoverable error. 37370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37371 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37372 has_space=`$ECHO "$complete" | $GREP " "` 37373 if test "x$has_space" != x; then 37374 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37375 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37376 fi 37377 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37378 fi 37379 fi 37380 37381 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37382 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37383 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37384 # "foo.exe" is OK but "foo" is an error. 37385 # 37386 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37387 # It is also a way to make sure we got the proper file name for the real test later on. 37388 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37389 if test "x$test_shortpath" = x; then 37390 # Short path failed, file does not exist as specified. 37391 # Try adding .exe or .cmd 37392 if test -f "${new_path}.exe"; then 37393 input_to_shortpath="${new_path}.exe" 37394 elif test -f "${new_path}.cmd"; then 37395 input_to_shortpath="${new_path}.cmd" 37396 else 37397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37398 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37399 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37400 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37401 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37402 fi 37403 else 37404 input_to_shortpath="$new_path" 37405 fi 37406 37407 # Call helper function which possibly converts this using DOS-style short mode. 37408 # If so, the updated path is stored in $new_path. 37409 new_path="$input_to_shortpath" 37410 37411 input_path="$input_to_shortpath" 37412 # Check if we need to convert this using DOS-style short mode. If the path 37413 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37414 # take no chances and rewrite it. 37415 # Note: m4 eats our [], so we need to use [ and ] instead. 37416 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37417 if test "x$has_forbidden_chars" != x; then 37418 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37419 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37420 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37421 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37422 # Going to short mode and back again did indeed matter. Since short mode is 37423 # case insensitive, let's make it lowercase to improve readability. 37424 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37425 # Now convert it back to Unix-style (cygpath) 37426 input_path=`$CYGPATH -u "$shortmode_path"` 37427 new_path="$input_path" 37428 fi 37429 fi 37430 37431 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37432 if test "x$test_cygdrive_prefix" = x; then 37433 # As a simple fix, exclude /usr/bin since it's not a real path. 37434 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37435 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37436 # a path prefixed by /cygdrive for fixpath to work. 37437 new_path="$CYGWIN_ROOT_PATH$input_path" 37438 fi 37439 fi 37440 37441 # remove trailing .exe if any 37442 new_path="${new_path/%.exe/}" 37443 37444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37445 37446 # First separate the path from the arguments. This will split at the first 37447 # space. 37448 complete="$LD" 37449 path="${complete%% *}" 37450 tmp="$complete EOL" 37451 arguments="${tmp#* }" 37452 37453 # Input might be given as Windows format, start by converting to 37454 # unix format. 37455 new_path="$path" 37456 37457 windows_path="$new_path" 37458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37459 unix_path=`$CYGPATH -u "$windows_path"` 37460 new_path="$unix_path" 37461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37462 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37463 new_path="$unix_path" 37464 fi 37465 37466 37467 # Now try to locate executable using which 37468 new_path=`$WHICH "$new_path" 2> /dev/null` 37469 37470 if test "x$new_path" = x; then 37471 # Oops. Which didn't find the executable. 37472 # The splitting of arguments from the executable at a space might have been incorrect, 37473 # since paths with space are more likely in Windows. Give it another try with the whole 37474 # argument. 37475 path="$complete" 37476 arguments="EOL" 37477 new_path="$path" 37478 37479 windows_path="$new_path" 37480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37481 unix_path=`$CYGPATH -u "$windows_path"` 37482 new_path="$unix_path" 37483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37485 new_path="$unix_path" 37486 fi 37487 37488 37489 new_path=`$WHICH "$new_path" 2> /dev/null` 37490 # bat and cmd files are not always considered executable in MSYS causing which 37491 # to not find them 37492 if test "x$new_path" = x \ 37493 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37494 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37495 new_path="$path" 37496 37497 windows_path="$new_path" 37498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37499 unix_path=`$CYGPATH -u "$windows_path"` 37500 new_path="$unix_path" 37501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37503 new_path="$unix_path" 37504 fi 37505 37506 fi 37507 37508 if test "x$new_path" = x; then 37509 # It's still not found. Now this is an unrecoverable error. 37510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37511 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37512 has_space=`$ECHO "$complete" | $GREP " "` 37513 if test "x$has_space" != x; then 37514 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37515 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37516 fi 37517 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37518 fi 37519 fi 37520 37521 # Now new_path has a complete unix path to the binary 37522 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37523 # Keep paths in /bin as-is, but remove trailing .exe if any 37524 new_path="${new_path/%.exe/}" 37525 # Do not save /bin paths to all_fixpath_prefixes! 37526 else 37527 # Not in mixed or Windows style, start by that. 37528 new_path=`cmd //c echo $new_path` 37529 37530 input_path="$new_path" 37531 # Check if we need to convert this using DOS-style short mode. If the path 37532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37533 # take no chances and rewrite it. 37534 # Note: m4 eats our [], so we need to use [ and ] instead. 37535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37536 if test "x$has_forbidden_chars" != x; then 37537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37538 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37539 fi 37540 37541 # Output is in $new_path 37542 37543 windows_path="$new_path" 37544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37545 unix_path=`$CYGPATH -u "$windows_path"` 37546 new_path="$unix_path" 37547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37549 new_path="$unix_path" 37550 fi 37551 37552 # remove trailing .exe if any 37553 new_path="${new_path/%.exe/}" 37554 37555 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37556 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37557 fi 37558 37559 else 37560 # We're on a unix platform. Hooray! :) 37561 # First separate the path from the arguments. This will split at the first 37562 # space. 37563 complete="$LD" 37564 path="${complete%% *}" 37565 tmp="$complete EOL" 37566 arguments="${tmp#* }" 37567 37568 # Cannot rely on the command "which" here since it doesn't always work. 37569 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37570 if test -z "$is_absolute_path"; then 37571 # Path to executable is not absolute. Find it. 37572 IFS_save="$IFS" 37573 IFS=: 37574 for p in $PATH; do 37575 if test -f "$p/$path" && test -x "$p/$path"; then 37576 new_path="$p/$path" 37577 break 37578 fi 37579 done 37580 IFS="$IFS_save" 37581 else 37582 # This is an absolute path, we can use it without further modifications. 37583 new_path="$path" 37584 fi 37585 37586 if test "x$new_path" = x; then 37587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37588 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37589 has_space=`$ECHO "$complete" | $GREP " "` 37590 if test "x$has_space" != x; then 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37592 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37593 fi 37594 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37595 fi 37596 fi 37597 37598 # Now join together the path and the arguments once again 37599 if test "x$arguments" != xEOL; then 37600 new_complete="$new_path ${arguments% *}" 37601 else 37602 new_complete="$new_path" 37603 fi 37604 37605 if test "x$complete" != "x$new_complete"; then 37606 LD="$new_complete" 37607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37608 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37609 fi 37610 fi 37611 37612 # Verify that we indeed succeeded with this trick. 37613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37614 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37615 "$LD" --version > /dev/null 37616 if test $? -eq 0 ; then 37617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37618 $as_echo "no" >&6; } 37619 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37620 else 37621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37622 $as_echo "yes" >&6; } 37623 fi 37624 LDCXX="$LD" 37625 else 37626 # All other toolchains use the compiler to link. 37627 LD="$CC" 37628 LDCXX="$CXX" 37629 fi 37630 37631 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37632 37633 37634 # 37635 # Setup the assembler (AS) 37636 # 37637 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37638 37639 37640 # Publish this variable in the help. 37641 37642 37643 if [ -z "${AS+x}" ]; then 37644 # The variable is not set by user, try to locate tool using the code snippet 37645 for ac_prog in as 37646 do 37647 # Extract the first word of "$ac_prog", so it can be a program name with args. 37648 set dummy $ac_prog; ac_word=$2 37649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37650 $as_echo_n "checking for $ac_word... " >&6; } 37651 if ${ac_cv_path_AS+:} false; then : 37652 $as_echo_n "(cached) " >&6 37653 else 37654 case $AS in 37655 [\\/]* | ?:[\\/]*) 37656 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37657 ;; 37658 *) 37659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37660 for as_dir in $PATH 37661 do 37662 IFS=$as_save_IFS 37663 test -z "$as_dir" && as_dir=. 37664 for ac_exec_ext in '' $ac_executable_extensions; do 37665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37666 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37668 break 2 37669 fi 37670 done 37671 done 37672 IFS=$as_save_IFS 37673 37674 ;; 37675 esac 37676 fi 37677 AS=$ac_cv_path_AS 37678 if test -n "$AS"; then 37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37680 $as_echo "$AS" >&6; } 37681 else 37682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37683 $as_echo "no" >&6; } 37684 fi 37685 37686 37687 test -n "$AS" && break 37688 done 37689 37690 else 37691 # The variable is set, but is it from the command line or the environment? 37692 37693 # Try to remove the string !AS! from our list. 37694 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37695 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37696 # If it failed, the variable was not from the command line. Ignore it, 37697 # but warn the user (except for BASH, which is always set by the calling BASH). 37698 if test "xAS" != xBASH; then 37699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37700 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37701 fi 37702 # Try to locate tool using the code snippet 37703 for ac_prog in as 37704 do 37705 # Extract the first word of "$ac_prog", so it can be a program name with args. 37706 set dummy $ac_prog; ac_word=$2 37707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37708 $as_echo_n "checking for $ac_word... " >&6; } 37709 if ${ac_cv_path_AS+:} false; then : 37710 $as_echo_n "(cached) " >&6 37711 else 37712 case $AS in 37713 [\\/]* | ?:[\\/]*) 37714 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37715 ;; 37716 *) 37717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37718 for as_dir in $PATH 37719 do 37720 IFS=$as_save_IFS 37721 test -z "$as_dir" && as_dir=. 37722 for ac_exec_ext in '' $ac_executable_extensions; do 37723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37724 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37726 break 2 37727 fi 37728 done 37729 done 37730 IFS=$as_save_IFS 37731 37732 ;; 37733 esac 37734 fi 37735 AS=$ac_cv_path_AS 37736 if test -n "$AS"; then 37737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37738 $as_echo "$AS" >&6; } 37739 else 37740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37741 $as_echo "no" >&6; } 37742 fi 37743 37744 37745 test -n "$AS" && break 37746 done 37747 37748 else 37749 # If it succeeded, then it was overridden by the user. We will use it 37750 # for the tool. 37751 37752 # First remove it from the list of overridden variables, so we can test 37753 # for unknown variables in the end. 37754 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37755 37756 # Check if we try to supply an empty value 37757 if test "x$AS" = x; then 37758 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37759 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37761 $as_echo_n "checking for AS... " >&6; } 37762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37763 $as_echo "disabled" >&6; } 37764 else 37765 # Check if the provided tool contains a complete path. 37766 tool_specified="$AS" 37767 tool_basename="${tool_specified##*/}" 37768 if test "x$tool_basename" = "x$tool_specified"; then 37769 # A command without a complete path is provided, search $PATH. 37770 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37771 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37772 # Extract the first word of "$tool_basename", so it can be a program name with args. 37773 set dummy $tool_basename; ac_word=$2 37774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37775 $as_echo_n "checking for $ac_word... " >&6; } 37776 if ${ac_cv_path_AS+:} false; then : 37777 $as_echo_n "(cached) " >&6 37778 else 37779 case $AS in 37780 [\\/]* | ?:[\\/]*) 37781 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37782 ;; 37783 *) 37784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37785 for as_dir in $PATH 37786 do 37787 IFS=$as_save_IFS 37788 test -z "$as_dir" && as_dir=. 37789 for ac_exec_ext in '' $ac_executable_extensions; do 37790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37791 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37793 break 2 37794 fi 37795 done 37796 done 37797 IFS=$as_save_IFS 37798 37799 ;; 37800 esac 37801 fi 37802 AS=$ac_cv_path_AS 37803 if test -n "$AS"; then 37804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37805 $as_echo "$AS" >&6; } 37806 else 37807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37808 $as_echo "no" >&6; } 37809 fi 37810 37811 37812 if test "x$AS" = x; then 37813 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37814 fi 37815 else 37816 # Otherwise we believe it is a complete path. Use it as it is. 37817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37818 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37820 $as_echo_n "checking for AS... " >&6; } 37821 if test ! -x "$tool_specified"; then 37822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37823 $as_echo "not found" >&6; } 37824 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37825 fi 37826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37827 $as_echo "$tool_specified" >&6; } 37828 fi 37829 fi 37830 fi 37831 37832 fi 37833 37834 37835 37836 # Only process if variable expands to non-empty 37837 37838 if test "x$AS" != x; then 37839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37840 37841 # First separate the path from the arguments. This will split at the first 37842 # space. 37843 complete="$AS" 37844 path="${complete%% *}" 37845 tmp="$complete EOL" 37846 arguments="${tmp#* }" 37847 37848 # Input might be given as Windows format, start by converting to 37849 # unix format. 37850 new_path=`$CYGPATH -u "$path"` 37851 37852 # Now try to locate executable using which 37853 new_path=`$WHICH "$new_path" 2> /dev/null` 37854 # bat and cmd files are not always considered executable in cygwin causing which 37855 # to not find them 37856 if test "x$new_path" = x \ 37857 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37858 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37859 new_path=`$CYGPATH -u "$path"` 37860 fi 37861 if test "x$new_path" = x; then 37862 # Oops. Which didn't find the executable. 37863 # The splitting of arguments from the executable at a space might have been incorrect, 37864 # since paths with space are more likely in Windows. Give it another try with the whole 37865 # argument. 37866 path="$complete" 37867 arguments="EOL" 37868 new_path=`$CYGPATH -u "$path"` 37869 new_path=`$WHICH "$new_path" 2> /dev/null` 37870 # bat and cmd files are not always considered executable in cygwin causing which 37871 # to not find them 37872 if test "x$new_path" = x \ 37873 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37874 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37875 new_path=`$CYGPATH -u "$path"` 37876 fi 37877 if test "x$new_path" = x; then 37878 # It's still not found. Now this is an unrecoverable error. 37879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37880 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37881 has_space=`$ECHO "$complete" | $GREP " "` 37882 if test "x$has_space" != x; then 37883 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37885 fi 37886 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37887 fi 37888 fi 37889 37890 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37891 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37892 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37893 # "foo.exe" is OK but "foo" is an error. 37894 # 37895 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37896 # It is also a way to make sure we got the proper file name for the real test later on. 37897 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37898 if test "x$test_shortpath" = x; then 37899 # Short path failed, file does not exist as specified. 37900 # Try adding .exe or .cmd 37901 if test -f "${new_path}.exe"; then 37902 input_to_shortpath="${new_path}.exe" 37903 elif test -f "${new_path}.cmd"; then 37904 input_to_shortpath="${new_path}.cmd" 37905 else 37906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37907 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37908 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37909 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37910 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37911 fi 37912 else 37913 input_to_shortpath="$new_path" 37914 fi 37915 37916 # Call helper function which possibly converts this using DOS-style short mode. 37917 # If so, the updated path is stored in $new_path. 37918 new_path="$input_to_shortpath" 37919 37920 input_path="$input_to_shortpath" 37921 # Check if we need to convert this using DOS-style short mode. If the path 37922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37923 # take no chances and rewrite it. 37924 # Note: m4 eats our [], so we need to use [ and ] instead. 37925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37926 if test "x$has_forbidden_chars" != x; then 37927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37928 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37929 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37930 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37931 # Going to short mode and back again did indeed matter. Since short mode is 37932 # case insensitive, let's make it lowercase to improve readability. 37933 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37934 # Now convert it back to Unix-style (cygpath) 37935 input_path=`$CYGPATH -u "$shortmode_path"` 37936 new_path="$input_path" 37937 fi 37938 fi 37939 37940 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37941 if test "x$test_cygdrive_prefix" = x; then 37942 # As a simple fix, exclude /usr/bin since it's not a real path. 37943 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37944 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37945 # a path prefixed by /cygdrive for fixpath to work. 37946 new_path="$CYGWIN_ROOT_PATH$input_path" 37947 fi 37948 fi 37949 37950 # remove trailing .exe if any 37951 new_path="${new_path/%.exe/}" 37952 37953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37954 37955 # First separate the path from the arguments. This will split at the first 37956 # space. 37957 complete="$AS" 37958 path="${complete%% *}" 37959 tmp="$complete EOL" 37960 arguments="${tmp#* }" 37961 37962 # Input might be given as Windows format, start by converting to 37963 # unix format. 37964 new_path="$path" 37965 37966 windows_path="$new_path" 37967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37968 unix_path=`$CYGPATH -u "$windows_path"` 37969 new_path="$unix_path" 37970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37972 new_path="$unix_path" 37973 fi 37974 37975 37976 # Now try to locate executable using which 37977 new_path=`$WHICH "$new_path" 2> /dev/null` 37978 37979 if test "x$new_path" = x; then 37980 # Oops. Which didn't find the executable. 37981 # The splitting of arguments from the executable at a space might have been incorrect, 37982 # since paths with space are more likely in Windows. Give it another try with the whole 37983 # argument. 37984 path="$complete" 37985 arguments="EOL" 37986 new_path="$path" 37987 37988 windows_path="$new_path" 37989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37990 unix_path=`$CYGPATH -u "$windows_path"` 37991 new_path="$unix_path" 37992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37994 new_path="$unix_path" 37995 fi 37996 37997 37998 new_path=`$WHICH "$new_path" 2> /dev/null` 37999 # bat and cmd files are not always considered executable in MSYS causing which 38000 # to not find them 38001 if test "x$new_path" = x \ 38002 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38003 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38004 new_path="$path" 38005 38006 windows_path="$new_path" 38007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38008 unix_path=`$CYGPATH -u "$windows_path"` 38009 new_path="$unix_path" 38010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38012 new_path="$unix_path" 38013 fi 38014 38015 fi 38016 38017 if test "x$new_path" = x; then 38018 # It's still not found. Now this is an unrecoverable error. 38019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38020 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38021 has_space=`$ECHO "$complete" | $GREP " "` 38022 if test "x$has_space" != x; then 38023 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38024 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38025 fi 38026 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38027 fi 38028 fi 38029 38030 # Now new_path has a complete unix path to the binary 38031 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38032 # Keep paths in /bin as-is, but remove trailing .exe if any 38033 new_path="${new_path/%.exe/}" 38034 # Do not save /bin paths to all_fixpath_prefixes! 38035 else 38036 # Not in mixed or Windows style, start by that. 38037 new_path=`cmd //c echo $new_path` 38038 38039 input_path="$new_path" 38040 # Check if we need to convert this using DOS-style short mode. If the path 38041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38042 # take no chances and rewrite it. 38043 # Note: m4 eats our [], so we need to use [ and ] instead. 38044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38045 if test "x$has_forbidden_chars" != x; then 38046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38047 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38048 fi 38049 38050 # Output is in $new_path 38051 38052 windows_path="$new_path" 38053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38054 unix_path=`$CYGPATH -u "$windows_path"` 38055 new_path="$unix_path" 38056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38058 new_path="$unix_path" 38059 fi 38060 38061 # remove trailing .exe if any 38062 new_path="${new_path/%.exe/}" 38063 38064 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38065 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38066 fi 38067 38068 else 38069 # We're on a unix platform. Hooray! :) 38070 # First separate the path from the arguments. This will split at the first 38071 # space. 38072 complete="$AS" 38073 path="${complete%% *}" 38074 tmp="$complete EOL" 38075 arguments="${tmp#* }" 38076 38077 # Cannot rely on the command "which" here since it doesn't always work. 38078 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38079 if test -z "$is_absolute_path"; then 38080 # Path to executable is not absolute. Find it. 38081 IFS_save="$IFS" 38082 IFS=: 38083 for p in $PATH; do 38084 if test -f "$p/$path" && test -x "$p/$path"; then 38085 new_path="$p/$path" 38086 break 38087 fi 38088 done 38089 IFS="$IFS_save" 38090 else 38091 # This is an absolute path, we can use it without further modifications. 38092 new_path="$path" 38093 fi 38094 38095 if test "x$new_path" = x; then 38096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38097 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38098 has_space=`$ECHO "$complete" | $GREP " "` 38099 if test "x$has_space" != x; then 38100 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38101 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38102 fi 38103 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38104 fi 38105 fi 38106 38107 # Now join together the path and the arguments once again 38108 if test "x$arguments" != xEOL; then 38109 new_complete="$new_path ${arguments% *}" 38110 else 38111 new_complete="$new_path" 38112 fi 38113 38114 if test "x$complete" != "x$new_complete"; then 38115 AS="$new_complete" 38116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 38117 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 38118 fi 38119 fi 38120 38121 if test "x$AS" = x; then 38122 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 38123 fi 38124 else 38125 # FIXME: is this correct for microsoft? 38126 AS="$CC -c" 38127 fi 38128 38129 38130 # 38131 # Setup the archiver (AR) 38132 # 38133 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38134 # The corresponding ar tool is lib.exe (used to create static libraries) 38135 # Extract the first word of "lib", so it can be a program name with args. 38136 set dummy lib; ac_word=$2 38137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38138 $as_echo_n "checking for $ac_word... " >&6; } 38139 if ${ac_cv_prog_AR+:} false; then : 38140 $as_echo_n "(cached) " >&6 38141 else 38142 if test -n "$AR"; then 38143 ac_cv_prog_AR="$AR" # Let the user override the test. 38144 else 38145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38146 for as_dir in $PATH 38147 do 38148 IFS=$as_save_IFS 38149 test -z "$as_dir" && as_dir=. 38150 for ac_exec_ext in '' $ac_executable_extensions; do 38151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38152 ac_cv_prog_AR="lib" 38153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38154 break 2 38155 fi 38156 done 38157 done 38158 IFS=$as_save_IFS 38159 38160 fi 38161 fi 38162 AR=$ac_cv_prog_AR 38163 if test -n "$AR"; then 38164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38165 $as_echo "$AR" >&6; } 38166 else 38167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38168 $as_echo "no" >&6; } 38169 fi 38170 38171 38172 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38173 38174 38175 # Publish this variable in the help. 38176 38177 38178 if [ -z "${AR+x}" ]; then 38179 # The variable is not set by user, try to locate tool using the code snippet 38180 if test -n "$ac_tool_prefix"; then 38181 for ac_prog in ar gcc-ar 38182 do 38183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38186 $as_echo_n "checking for $ac_word... " >&6; } 38187 if ${ac_cv_prog_AR+:} false; then : 38188 $as_echo_n "(cached) " >&6 38189 else 38190 if test -n "$AR"; then 38191 ac_cv_prog_AR="$AR" # Let the user override the test. 38192 else 38193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38194 for as_dir in $PATH 38195 do 38196 IFS=$as_save_IFS 38197 test -z "$as_dir" && as_dir=. 38198 for ac_exec_ext in '' $ac_executable_extensions; do 38199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38200 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38202 break 2 38203 fi 38204 done 38205 done 38206 IFS=$as_save_IFS 38207 38208 fi 38209 fi 38210 AR=$ac_cv_prog_AR 38211 if test -n "$AR"; then 38212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38213 $as_echo "$AR" >&6; } 38214 else 38215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38216 $as_echo "no" >&6; } 38217 fi 38218 38219 38220 test -n "$AR" && break 38221 done 38222 fi 38223 if test -z "$AR"; then 38224 ac_ct_AR=$AR 38225 for ac_prog in ar gcc-ar 38226 do 38227 # Extract the first word of "$ac_prog", so it can be a program name with args. 38228 set dummy $ac_prog; ac_word=$2 38229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38230 $as_echo_n "checking for $ac_word... " >&6; } 38231 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38232 $as_echo_n "(cached) " >&6 38233 else 38234 if test -n "$ac_ct_AR"; then 38235 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38236 else 38237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38238 for as_dir in $PATH 38239 do 38240 IFS=$as_save_IFS 38241 test -z "$as_dir" && as_dir=. 38242 for ac_exec_ext in '' $ac_executable_extensions; do 38243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38244 ac_cv_prog_ac_ct_AR="$ac_prog" 38245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38246 break 2 38247 fi 38248 done 38249 done 38250 IFS=$as_save_IFS 38251 38252 fi 38253 fi 38254 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38255 if test -n "$ac_ct_AR"; then 38256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38257 $as_echo "$ac_ct_AR" >&6; } 38258 else 38259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38260 $as_echo "no" >&6; } 38261 fi 38262 38263 38264 test -n "$ac_ct_AR" && break 38265 done 38266 38267 if test "x$ac_ct_AR" = x; then 38268 AR="" 38269 else 38270 case $cross_compiling:$ac_tool_warned in 38271 yes:) 38272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38274 ac_tool_warned=yes ;; 38275 esac 38276 AR=$ac_ct_AR 38277 fi 38278 fi 38279 38280 else 38281 # The variable is set, but is it from the command line or the environment? 38282 38283 # Try to remove the string !AR! from our list. 38284 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38285 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38286 # If it failed, the variable was not from the command line. Ignore it, 38287 # but warn the user (except for BASH, which is always set by the calling BASH). 38288 if test "xAR" != xBASH; then 38289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38290 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38291 fi 38292 # Try to locate tool using the code snippet 38293 if test -n "$ac_tool_prefix"; then 38294 for ac_prog in ar gcc-ar 38295 do 38296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38299 $as_echo_n "checking for $ac_word... " >&6; } 38300 if ${ac_cv_prog_AR+:} false; then : 38301 $as_echo_n "(cached) " >&6 38302 else 38303 if test -n "$AR"; then 38304 ac_cv_prog_AR="$AR" # Let the user override the test. 38305 else 38306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38307 for as_dir in $PATH 38308 do 38309 IFS=$as_save_IFS 38310 test -z "$as_dir" && as_dir=. 38311 for ac_exec_ext in '' $ac_executable_extensions; do 38312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38313 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38315 break 2 38316 fi 38317 done 38318 done 38319 IFS=$as_save_IFS 38320 38321 fi 38322 fi 38323 AR=$ac_cv_prog_AR 38324 if test -n "$AR"; then 38325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38326 $as_echo "$AR" >&6; } 38327 else 38328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38329 $as_echo "no" >&6; } 38330 fi 38331 38332 38333 test -n "$AR" && break 38334 done 38335 fi 38336 if test -z "$AR"; then 38337 ac_ct_AR=$AR 38338 for ac_prog in ar gcc-ar 38339 do 38340 # Extract the first word of "$ac_prog", so it can be a program name with args. 38341 set dummy $ac_prog; ac_word=$2 38342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38343 $as_echo_n "checking for $ac_word... " >&6; } 38344 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38345 $as_echo_n "(cached) " >&6 38346 else 38347 if test -n "$ac_ct_AR"; then 38348 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38349 else 38350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38351 for as_dir in $PATH 38352 do 38353 IFS=$as_save_IFS 38354 test -z "$as_dir" && as_dir=. 38355 for ac_exec_ext in '' $ac_executable_extensions; do 38356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38357 ac_cv_prog_ac_ct_AR="$ac_prog" 38358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38359 break 2 38360 fi 38361 done 38362 done 38363 IFS=$as_save_IFS 38364 38365 fi 38366 fi 38367 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38368 if test -n "$ac_ct_AR"; then 38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38370 $as_echo "$ac_ct_AR" >&6; } 38371 else 38372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38373 $as_echo "no" >&6; } 38374 fi 38375 38376 38377 test -n "$ac_ct_AR" && break 38378 done 38379 38380 if test "x$ac_ct_AR" = x; then 38381 AR="" 38382 else 38383 case $cross_compiling:$ac_tool_warned in 38384 yes:) 38385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38387 ac_tool_warned=yes ;; 38388 esac 38389 AR=$ac_ct_AR 38390 fi 38391 fi 38392 38393 else 38394 # If it succeeded, then it was overridden by the user. We will use it 38395 # for the tool. 38396 38397 # First remove it from the list of overridden variables, so we can test 38398 # for unknown variables in the end. 38399 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38400 38401 # Check if we try to supply an empty value 38402 if test "x$AR" = x; then 38403 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38404 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38406 $as_echo_n "checking for AR... " >&6; } 38407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38408 $as_echo "disabled" >&6; } 38409 else 38410 # Check if the provided tool contains a complete path. 38411 tool_specified="$AR" 38412 tool_basename="${tool_specified##*/}" 38413 if test "x$tool_basename" = "x$tool_specified"; then 38414 # A command without a complete path is provided, search $PATH. 38415 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38416 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38417 # Extract the first word of "$tool_basename", so it can be a program name with args. 38418 set dummy $tool_basename; ac_word=$2 38419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38420 $as_echo_n "checking for $ac_word... " >&6; } 38421 if ${ac_cv_path_AR+:} false; then : 38422 $as_echo_n "(cached) " >&6 38423 else 38424 case $AR in 38425 [\\/]* | ?:[\\/]*) 38426 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38427 ;; 38428 *) 38429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38430 for as_dir in $PATH 38431 do 38432 IFS=$as_save_IFS 38433 test -z "$as_dir" && as_dir=. 38434 for ac_exec_ext in '' $ac_executable_extensions; do 38435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38436 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38438 break 2 38439 fi 38440 done 38441 done 38442 IFS=$as_save_IFS 38443 38444 ;; 38445 esac 38446 fi 38447 AR=$ac_cv_path_AR 38448 if test -n "$AR"; then 38449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38450 $as_echo "$AR" >&6; } 38451 else 38452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38453 $as_echo "no" >&6; } 38454 fi 38455 38456 38457 if test "x$AR" = x; then 38458 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38459 fi 38460 else 38461 # Otherwise we believe it is a complete path. Use it as it is. 38462 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38463 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38465 $as_echo_n "checking for AR... " >&6; } 38466 if test ! -x "$tool_specified"; then 38467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38468 $as_echo "not found" >&6; } 38469 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38470 fi 38471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38472 $as_echo "$tool_specified" >&6; } 38473 fi 38474 fi 38475 fi 38476 38477 fi 38478 38479 38480 else 38481 38482 38483 # Publish this variable in the help. 38484 38485 38486 if [ -z "${AR+x}" ]; then 38487 # The variable is not set by user, try to locate tool using the code snippet 38488 if test -n "$ac_tool_prefix"; then 38489 for ac_prog in ar 38490 do 38491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38494 $as_echo_n "checking for $ac_word... " >&6; } 38495 if ${ac_cv_prog_AR+:} false; then : 38496 $as_echo_n "(cached) " >&6 38497 else 38498 if test -n "$AR"; then 38499 ac_cv_prog_AR="$AR" # Let the user override the test. 38500 else 38501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38502 for as_dir in $PATH 38503 do 38504 IFS=$as_save_IFS 38505 test -z "$as_dir" && as_dir=. 38506 for ac_exec_ext in '' $ac_executable_extensions; do 38507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38508 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38510 break 2 38511 fi 38512 done 38513 done 38514 IFS=$as_save_IFS 38515 38516 fi 38517 fi 38518 AR=$ac_cv_prog_AR 38519 if test -n "$AR"; then 38520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38521 $as_echo "$AR" >&6; } 38522 else 38523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38524 $as_echo "no" >&6; } 38525 fi 38526 38527 38528 test -n "$AR" && break 38529 done 38530 fi 38531 if test -z "$AR"; then 38532 ac_ct_AR=$AR 38533 for ac_prog in ar 38534 do 38535 # Extract the first word of "$ac_prog", so it can be a program name with args. 38536 set dummy $ac_prog; ac_word=$2 38537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38538 $as_echo_n "checking for $ac_word... " >&6; } 38539 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38540 $as_echo_n "(cached) " >&6 38541 else 38542 if test -n "$ac_ct_AR"; then 38543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38544 else 38545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38546 for as_dir in $PATH 38547 do 38548 IFS=$as_save_IFS 38549 test -z "$as_dir" && as_dir=. 38550 for ac_exec_ext in '' $ac_executable_extensions; do 38551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38552 ac_cv_prog_ac_ct_AR="$ac_prog" 38553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38554 break 2 38555 fi 38556 done 38557 done 38558 IFS=$as_save_IFS 38559 38560 fi 38561 fi 38562 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38563 if test -n "$ac_ct_AR"; then 38564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38565 $as_echo "$ac_ct_AR" >&6; } 38566 else 38567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38568 $as_echo "no" >&6; } 38569 fi 38570 38571 38572 test -n "$ac_ct_AR" && break 38573 done 38574 38575 if test "x$ac_ct_AR" = x; then 38576 AR="" 38577 else 38578 case $cross_compiling:$ac_tool_warned in 38579 yes:) 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38582 ac_tool_warned=yes ;; 38583 esac 38584 AR=$ac_ct_AR 38585 fi 38586 fi 38587 38588 else 38589 # The variable is set, but is it from the command line or the environment? 38590 38591 # Try to remove the string !AR! from our list. 38592 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38593 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38594 # If it failed, the variable was not from the command line. Ignore it, 38595 # but warn the user (except for BASH, which is always set by the calling BASH). 38596 if test "xAR" != xBASH; then 38597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38598 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38599 fi 38600 # Try to locate tool using the code snippet 38601 if test -n "$ac_tool_prefix"; then 38602 for ac_prog in ar 38603 do 38604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38607 $as_echo_n "checking for $ac_word... " >&6; } 38608 if ${ac_cv_prog_AR+:} false; then : 38609 $as_echo_n "(cached) " >&6 38610 else 38611 if test -n "$AR"; then 38612 ac_cv_prog_AR="$AR" # Let the user override the test. 38613 else 38614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38615 for as_dir in $PATH 38616 do 38617 IFS=$as_save_IFS 38618 test -z "$as_dir" && as_dir=. 38619 for ac_exec_ext in '' $ac_executable_extensions; do 38620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38621 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38623 break 2 38624 fi 38625 done 38626 done 38627 IFS=$as_save_IFS 38628 38629 fi 38630 fi 38631 AR=$ac_cv_prog_AR 38632 if test -n "$AR"; then 38633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38634 $as_echo "$AR" >&6; } 38635 else 38636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38637 $as_echo "no" >&6; } 38638 fi 38639 38640 38641 test -n "$AR" && break 38642 done 38643 fi 38644 if test -z "$AR"; then 38645 ac_ct_AR=$AR 38646 for ac_prog in ar 38647 do 38648 # Extract the first word of "$ac_prog", so it can be a program name with args. 38649 set dummy $ac_prog; ac_word=$2 38650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38651 $as_echo_n "checking for $ac_word... " >&6; } 38652 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38653 $as_echo_n "(cached) " >&6 38654 else 38655 if test -n "$ac_ct_AR"; then 38656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38657 else 38658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38659 for as_dir in $PATH 38660 do 38661 IFS=$as_save_IFS 38662 test -z "$as_dir" && as_dir=. 38663 for ac_exec_ext in '' $ac_executable_extensions; do 38664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38665 ac_cv_prog_ac_ct_AR="$ac_prog" 38666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38667 break 2 38668 fi 38669 done 38670 done 38671 IFS=$as_save_IFS 38672 38673 fi 38674 fi 38675 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38676 if test -n "$ac_ct_AR"; then 38677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38678 $as_echo "$ac_ct_AR" >&6; } 38679 else 38680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38681 $as_echo "no" >&6; } 38682 fi 38683 38684 38685 test -n "$ac_ct_AR" && break 38686 done 38687 38688 if test "x$ac_ct_AR" = x; then 38689 AR="" 38690 else 38691 case $cross_compiling:$ac_tool_warned in 38692 yes:) 38693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38695 ac_tool_warned=yes ;; 38696 esac 38697 AR=$ac_ct_AR 38698 fi 38699 fi 38700 38701 else 38702 # If it succeeded, then it was overridden by the user. We will use it 38703 # for the tool. 38704 38705 # First remove it from the list of overridden variables, so we can test 38706 # for unknown variables in the end. 38707 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38708 38709 # Check if we try to supply an empty value 38710 if test "x$AR" = x; then 38711 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38712 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38714 $as_echo_n "checking for AR... " >&6; } 38715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38716 $as_echo "disabled" >&6; } 38717 else 38718 # Check if the provided tool contains a complete path. 38719 tool_specified="$AR" 38720 tool_basename="${tool_specified##*/}" 38721 if test "x$tool_basename" = "x$tool_specified"; then 38722 # A command without a complete path is provided, search $PATH. 38723 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38724 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38725 # Extract the first word of "$tool_basename", so it can be a program name with args. 38726 set dummy $tool_basename; ac_word=$2 38727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38728 $as_echo_n "checking for $ac_word... " >&6; } 38729 if ${ac_cv_path_AR+:} false; then : 38730 $as_echo_n "(cached) " >&6 38731 else 38732 case $AR in 38733 [\\/]* | ?:[\\/]*) 38734 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38735 ;; 38736 *) 38737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38738 for as_dir in $PATH 38739 do 38740 IFS=$as_save_IFS 38741 test -z "$as_dir" && as_dir=. 38742 for ac_exec_ext in '' $ac_executable_extensions; do 38743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38744 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38746 break 2 38747 fi 38748 done 38749 done 38750 IFS=$as_save_IFS 38751 38752 ;; 38753 esac 38754 fi 38755 AR=$ac_cv_path_AR 38756 if test -n "$AR"; then 38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38758 $as_echo "$AR" >&6; } 38759 else 38760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38761 $as_echo "no" >&6; } 38762 fi 38763 38764 38765 if test "x$AR" = x; then 38766 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38767 fi 38768 else 38769 # Otherwise we believe it is a complete path. Use it as it is. 38770 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38771 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38773 $as_echo_n "checking for AR... " >&6; } 38774 if test ! -x "$tool_specified"; then 38775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38776 $as_echo "not found" >&6; } 38777 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38778 fi 38779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38780 $as_echo "$tool_specified" >&6; } 38781 fi 38782 fi 38783 fi 38784 38785 fi 38786 38787 38788 fi 38789 38790 # Only process if variable expands to non-empty 38791 38792 if test "x$AR" != x; then 38793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38794 38795 # First separate the path from the arguments. This will split at the first 38796 # space. 38797 complete="$AR" 38798 path="${complete%% *}" 38799 tmp="$complete EOL" 38800 arguments="${tmp#* }" 38801 38802 # Input might be given as Windows format, start by converting to 38803 # unix format. 38804 new_path=`$CYGPATH -u "$path"` 38805 38806 # Now try to locate executable using which 38807 new_path=`$WHICH "$new_path" 2> /dev/null` 38808 # bat and cmd files are not always considered executable in cygwin causing which 38809 # to not find them 38810 if test "x$new_path" = x \ 38811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38813 new_path=`$CYGPATH -u "$path"` 38814 fi 38815 if test "x$new_path" = x; then 38816 # Oops. Which didn't find the executable. 38817 # The splitting of arguments from the executable at a space might have been incorrect, 38818 # since paths with space are more likely in Windows. Give it another try with the whole 38819 # argument. 38820 path="$complete" 38821 arguments="EOL" 38822 new_path=`$CYGPATH -u "$path"` 38823 new_path=`$WHICH "$new_path" 2> /dev/null` 38824 # bat and cmd files are not always considered executable in cygwin causing which 38825 # to not find them 38826 if test "x$new_path" = x \ 38827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38829 new_path=`$CYGPATH -u "$path"` 38830 fi 38831 if test "x$new_path" = x; then 38832 # It's still not found. Now this is an unrecoverable error. 38833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38834 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38835 has_space=`$ECHO "$complete" | $GREP " "` 38836 if test "x$has_space" != x; then 38837 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38838 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38839 fi 38840 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38841 fi 38842 fi 38843 38844 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38845 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38846 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38847 # "foo.exe" is OK but "foo" is an error. 38848 # 38849 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38850 # It is also a way to make sure we got the proper file name for the real test later on. 38851 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38852 if test "x$test_shortpath" = x; then 38853 # Short path failed, file does not exist as specified. 38854 # Try adding .exe or .cmd 38855 if test -f "${new_path}.exe"; then 38856 input_to_shortpath="${new_path}.exe" 38857 elif test -f "${new_path}.cmd"; then 38858 input_to_shortpath="${new_path}.cmd" 38859 else 38860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38861 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38862 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38863 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38864 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38865 fi 38866 else 38867 input_to_shortpath="$new_path" 38868 fi 38869 38870 # Call helper function which possibly converts this using DOS-style short mode. 38871 # If so, the updated path is stored in $new_path. 38872 new_path="$input_to_shortpath" 38873 38874 input_path="$input_to_shortpath" 38875 # Check if we need to convert this using DOS-style short mode. If the path 38876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38877 # take no chances and rewrite it. 38878 # Note: m4 eats our [], so we need to use [ and ] instead. 38879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38880 if test "x$has_forbidden_chars" != x; then 38881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38882 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38883 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38884 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38885 # Going to short mode and back again did indeed matter. Since short mode is 38886 # case insensitive, let's make it lowercase to improve readability. 38887 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38888 # Now convert it back to Unix-style (cygpath) 38889 input_path=`$CYGPATH -u "$shortmode_path"` 38890 new_path="$input_path" 38891 fi 38892 fi 38893 38894 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38895 if test "x$test_cygdrive_prefix" = x; then 38896 # As a simple fix, exclude /usr/bin since it's not a real path. 38897 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38898 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38899 # a path prefixed by /cygdrive for fixpath to work. 38900 new_path="$CYGWIN_ROOT_PATH$input_path" 38901 fi 38902 fi 38903 38904 # remove trailing .exe if any 38905 new_path="${new_path/%.exe/}" 38906 38907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38908 38909 # First separate the path from the arguments. This will split at the first 38910 # space. 38911 complete="$AR" 38912 path="${complete%% *}" 38913 tmp="$complete EOL" 38914 arguments="${tmp#* }" 38915 38916 # Input might be given as Windows format, start by converting to 38917 # unix format. 38918 new_path="$path" 38919 38920 windows_path="$new_path" 38921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38922 unix_path=`$CYGPATH -u "$windows_path"` 38923 new_path="$unix_path" 38924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38926 new_path="$unix_path" 38927 fi 38928 38929 38930 # Now try to locate executable using which 38931 new_path=`$WHICH "$new_path" 2> /dev/null` 38932 38933 if test "x$new_path" = x; then 38934 # Oops. Which didn't find the executable. 38935 # The splitting of arguments from the executable at a space might have been incorrect, 38936 # since paths with space are more likely in Windows. Give it another try with the whole 38937 # argument. 38938 path="$complete" 38939 arguments="EOL" 38940 new_path="$path" 38941 38942 windows_path="$new_path" 38943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38944 unix_path=`$CYGPATH -u "$windows_path"` 38945 new_path="$unix_path" 38946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38948 new_path="$unix_path" 38949 fi 38950 38951 38952 new_path=`$WHICH "$new_path" 2> /dev/null` 38953 # bat and cmd files are not always considered executable in MSYS causing which 38954 # to not find them 38955 if test "x$new_path" = x \ 38956 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38957 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38958 new_path="$path" 38959 38960 windows_path="$new_path" 38961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38962 unix_path=`$CYGPATH -u "$windows_path"` 38963 new_path="$unix_path" 38964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38966 new_path="$unix_path" 38967 fi 38968 38969 fi 38970 38971 if test "x$new_path" = x; then 38972 # It's still not found. Now this is an unrecoverable error. 38973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38974 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38975 has_space=`$ECHO "$complete" | $GREP " "` 38976 if test "x$has_space" != x; then 38977 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38978 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38979 fi 38980 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38981 fi 38982 fi 38983 38984 # Now new_path has a complete unix path to the binary 38985 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38986 # Keep paths in /bin as-is, but remove trailing .exe if any 38987 new_path="${new_path/%.exe/}" 38988 # Do not save /bin paths to all_fixpath_prefixes! 38989 else 38990 # Not in mixed or Windows style, start by that. 38991 new_path=`cmd //c echo $new_path` 38992 38993 input_path="$new_path" 38994 # Check if we need to convert this using DOS-style short mode. If the path 38995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38996 # take no chances and rewrite it. 38997 # Note: m4 eats our [], so we need to use [ and ] instead. 38998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38999 if test "x$has_forbidden_chars" != x; then 39000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39001 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39002 fi 39003 39004 # Output is in $new_path 39005 39006 windows_path="$new_path" 39007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39008 unix_path=`$CYGPATH -u "$windows_path"` 39009 new_path="$unix_path" 39010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39012 new_path="$unix_path" 39013 fi 39014 39015 # remove trailing .exe if any 39016 new_path="${new_path/%.exe/}" 39017 39018 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39019 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39020 fi 39021 39022 else 39023 # We're on a unix platform. Hooray! :) 39024 # First separate the path from the arguments. This will split at the first 39025 # space. 39026 complete="$AR" 39027 path="${complete%% *}" 39028 tmp="$complete EOL" 39029 arguments="${tmp#* }" 39030 39031 # Cannot rely on the command "which" here since it doesn't always work. 39032 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39033 if test -z "$is_absolute_path"; then 39034 # Path to executable is not absolute. Find it. 39035 IFS_save="$IFS" 39036 IFS=: 39037 for p in $PATH; do 39038 if test -f "$p/$path" && test -x "$p/$path"; then 39039 new_path="$p/$path" 39040 break 39041 fi 39042 done 39043 IFS="$IFS_save" 39044 else 39045 # This is an absolute path, we can use it without further modifications. 39046 new_path="$path" 39047 fi 39048 39049 if test "x$new_path" = x; then 39050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 39051 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 39052 has_space=`$ECHO "$complete" | $GREP " "` 39053 if test "x$has_space" != x; then 39054 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39055 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39056 fi 39057 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 39058 fi 39059 fi 39060 39061 # Now join together the path and the arguments once again 39062 if test "x$arguments" != xEOL; then 39063 new_complete="$new_path ${arguments% *}" 39064 else 39065 new_complete="$new_path" 39066 fi 39067 39068 if test "x$complete" != "x$new_complete"; then 39069 AR="$new_complete" 39070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 39071 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 39072 fi 39073 fi 39074 39075 39076 39077 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 39078 39079 39080 # Publish this variable in the help. 39081 39082 39083 if [ -z "${LIPO+x}" ]; then 39084 # The variable is not set by user, try to locate tool using the code snippet 39085 for ac_prog in lipo 39086 do 39087 # Extract the first word of "$ac_prog", so it can be a program name with args. 39088 set dummy $ac_prog; ac_word=$2 39089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39090 $as_echo_n "checking for $ac_word... " >&6; } 39091 if ${ac_cv_path_LIPO+:} false; then : 39092 $as_echo_n "(cached) " >&6 39093 else 39094 case $LIPO in 39095 [\\/]* | ?:[\\/]*) 39096 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39097 ;; 39098 *) 39099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39100 for as_dir in $PATH 39101 do 39102 IFS=$as_save_IFS 39103 test -z "$as_dir" && as_dir=. 39104 for ac_exec_ext in '' $ac_executable_extensions; do 39105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39106 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39108 break 2 39109 fi 39110 done 39111 done 39112 IFS=$as_save_IFS 39113 39114 ;; 39115 esac 39116 fi 39117 LIPO=$ac_cv_path_LIPO 39118 if test -n "$LIPO"; then 39119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39120 $as_echo "$LIPO" >&6; } 39121 else 39122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39123 $as_echo "no" >&6; } 39124 fi 39125 39126 39127 test -n "$LIPO" && break 39128 done 39129 39130 else 39131 # The variable is set, but is it from the command line or the environment? 39132 39133 # Try to remove the string !LIPO! from our list. 39134 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 39135 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39136 # If it failed, the variable was not from the command line. Ignore it, 39137 # but warn the user (except for BASH, which is always set by the calling BASH). 39138 if test "xLIPO" != xBASH; then 39139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 39140 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 39141 fi 39142 # Try to locate tool using the code snippet 39143 for ac_prog in lipo 39144 do 39145 # Extract the first word of "$ac_prog", so it can be a program name with args. 39146 set dummy $ac_prog; ac_word=$2 39147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39148 $as_echo_n "checking for $ac_word... " >&6; } 39149 if ${ac_cv_path_LIPO+:} false; then : 39150 $as_echo_n "(cached) " >&6 39151 else 39152 case $LIPO in 39153 [\\/]* | ?:[\\/]*) 39154 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39155 ;; 39156 *) 39157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39158 for as_dir in $PATH 39159 do 39160 IFS=$as_save_IFS 39161 test -z "$as_dir" && as_dir=. 39162 for ac_exec_ext in '' $ac_executable_extensions; do 39163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39164 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39166 break 2 39167 fi 39168 done 39169 done 39170 IFS=$as_save_IFS 39171 39172 ;; 39173 esac 39174 fi 39175 LIPO=$ac_cv_path_LIPO 39176 if test -n "$LIPO"; then 39177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39178 $as_echo "$LIPO" >&6; } 39179 else 39180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39181 $as_echo "no" >&6; } 39182 fi 39183 39184 39185 test -n "$LIPO" && break 39186 done 39187 39188 else 39189 # If it succeeded, then it was overridden by the user. We will use it 39190 # for the tool. 39191 39192 # First remove it from the list of overridden variables, so we can test 39193 # for unknown variables in the end. 39194 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39195 39196 # Check if we try to supply an empty value 39197 if test "x$LIPO" = x; then 39198 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39199 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39201 $as_echo_n "checking for LIPO... " >&6; } 39202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39203 $as_echo "disabled" >&6; } 39204 else 39205 # Check if the provided tool contains a complete path. 39206 tool_specified="$LIPO" 39207 tool_basename="${tool_specified##*/}" 39208 if test "x$tool_basename" = "x$tool_specified"; then 39209 # A command without a complete path is provided, search $PATH. 39210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39211 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39212 # Extract the first word of "$tool_basename", so it can be a program name with args. 39213 set dummy $tool_basename; ac_word=$2 39214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39215 $as_echo_n "checking for $ac_word... " >&6; } 39216 if ${ac_cv_path_LIPO+:} false; then : 39217 $as_echo_n "(cached) " >&6 39218 else 39219 case $LIPO in 39220 [\\/]* | ?:[\\/]*) 39221 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39222 ;; 39223 *) 39224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39225 for as_dir in $PATH 39226 do 39227 IFS=$as_save_IFS 39228 test -z "$as_dir" && as_dir=. 39229 for ac_exec_ext in '' $ac_executable_extensions; do 39230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39231 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39233 break 2 39234 fi 39235 done 39236 done 39237 IFS=$as_save_IFS 39238 39239 ;; 39240 esac 39241 fi 39242 LIPO=$ac_cv_path_LIPO 39243 if test -n "$LIPO"; then 39244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39245 $as_echo "$LIPO" >&6; } 39246 else 39247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39248 $as_echo "no" >&6; } 39249 fi 39250 39251 39252 if test "x$LIPO" = x; then 39253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39254 fi 39255 else 39256 # Otherwise we believe it is a complete path. Use it as it is. 39257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39258 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39260 $as_echo_n "checking for LIPO... " >&6; } 39261 if test ! -x "$tool_specified"; then 39262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39263 $as_echo "not found" >&6; } 39264 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39265 fi 39266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39267 $as_echo "$tool_specified" >&6; } 39268 fi 39269 fi 39270 fi 39271 39272 fi 39273 39274 39275 39276 # Only process if variable expands to non-empty 39277 39278 if test "x$LIPO" != x; then 39279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39280 39281 # First separate the path from the arguments. This will split at the first 39282 # space. 39283 complete="$LIPO" 39284 path="${complete%% *}" 39285 tmp="$complete EOL" 39286 arguments="${tmp#* }" 39287 39288 # Input might be given as Windows format, start by converting to 39289 # unix format. 39290 new_path=`$CYGPATH -u "$path"` 39291 39292 # Now try to locate executable using which 39293 new_path=`$WHICH "$new_path" 2> /dev/null` 39294 # bat and cmd files are not always considered executable in cygwin causing which 39295 # to not find them 39296 if test "x$new_path" = x \ 39297 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39298 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39299 new_path=`$CYGPATH -u "$path"` 39300 fi 39301 if test "x$new_path" = x; then 39302 # Oops. Which didn't find the executable. 39303 # The splitting of arguments from the executable at a space might have been incorrect, 39304 # since paths with space are more likely in Windows. Give it another try with the whole 39305 # argument. 39306 path="$complete" 39307 arguments="EOL" 39308 new_path=`$CYGPATH -u "$path"` 39309 new_path=`$WHICH "$new_path" 2> /dev/null` 39310 # bat and cmd files are not always considered executable in cygwin causing which 39311 # to not find them 39312 if test "x$new_path" = x \ 39313 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39314 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39315 new_path=`$CYGPATH -u "$path"` 39316 fi 39317 if test "x$new_path" = x; then 39318 # It's still not found. Now this is an unrecoverable error. 39319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39320 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39321 has_space=`$ECHO "$complete" | $GREP " "` 39322 if test "x$has_space" != x; then 39323 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39324 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39325 fi 39326 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39327 fi 39328 fi 39329 39330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39333 # "foo.exe" is OK but "foo" is an error. 39334 # 39335 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39336 # It is also a way to make sure we got the proper file name for the real test later on. 39337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39338 if test "x$test_shortpath" = x; then 39339 # Short path failed, file does not exist as specified. 39340 # Try adding .exe or .cmd 39341 if test -f "${new_path}.exe"; then 39342 input_to_shortpath="${new_path}.exe" 39343 elif test -f "${new_path}.cmd"; then 39344 input_to_shortpath="${new_path}.cmd" 39345 else 39346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39347 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39348 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39349 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39350 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39351 fi 39352 else 39353 input_to_shortpath="$new_path" 39354 fi 39355 39356 # Call helper function which possibly converts this using DOS-style short mode. 39357 # If so, the updated path is stored in $new_path. 39358 new_path="$input_to_shortpath" 39359 39360 input_path="$input_to_shortpath" 39361 # Check if we need to convert this using DOS-style short mode. If the path 39362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39363 # take no chances and rewrite it. 39364 # Note: m4 eats our [], so we need to use [ and ] instead. 39365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39366 if test "x$has_forbidden_chars" != x; then 39367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39368 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39369 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39370 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39371 # Going to short mode and back again did indeed matter. Since short mode is 39372 # case insensitive, let's make it lowercase to improve readability. 39373 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39374 # Now convert it back to Unix-style (cygpath) 39375 input_path=`$CYGPATH -u "$shortmode_path"` 39376 new_path="$input_path" 39377 fi 39378 fi 39379 39380 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39381 if test "x$test_cygdrive_prefix" = x; then 39382 # As a simple fix, exclude /usr/bin since it's not a real path. 39383 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39384 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39385 # a path prefixed by /cygdrive for fixpath to work. 39386 new_path="$CYGWIN_ROOT_PATH$input_path" 39387 fi 39388 fi 39389 39390 # remove trailing .exe if any 39391 new_path="${new_path/%.exe/}" 39392 39393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39394 39395 # First separate the path from the arguments. This will split at the first 39396 # space. 39397 complete="$LIPO" 39398 path="${complete%% *}" 39399 tmp="$complete EOL" 39400 arguments="${tmp#* }" 39401 39402 # Input might be given as Windows format, start by converting to 39403 # unix format. 39404 new_path="$path" 39405 39406 windows_path="$new_path" 39407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39408 unix_path=`$CYGPATH -u "$windows_path"` 39409 new_path="$unix_path" 39410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39411 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39412 new_path="$unix_path" 39413 fi 39414 39415 39416 # Now try to locate executable using which 39417 new_path=`$WHICH "$new_path" 2> /dev/null` 39418 39419 if test "x$new_path" = x; then 39420 # Oops. Which didn't find the executable. 39421 # The splitting of arguments from the executable at a space might have been incorrect, 39422 # since paths with space are more likely in Windows. Give it another try with the whole 39423 # argument. 39424 path="$complete" 39425 arguments="EOL" 39426 new_path="$path" 39427 39428 windows_path="$new_path" 39429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39430 unix_path=`$CYGPATH -u "$windows_path"` 39431 new_path="$unix_path" 39432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39434 new_path="$unix_path" 39435 fi 39436 39437 39438 new_path=`$WHICH "$new_path" 2> /dev/null` 39439 # bat and cmd files are not always considered executable in MSYS causing which 39440 # to not find them 39441 if test "x$new_path" = x \ 39442 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39443 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39444 new_path="$path" 39445 39446 windows_path="$new_path" 39447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39448 unix_path=`$CYGPATH -u "$windows_path"` 39449 new_path="$unix_path" 39450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39452 new_path="$unix_path" 39453 fi 39454 39455 fi 39456 39457 if test "x$new_path" = x; then 39458 # It's still not found. Now this is an unrecoverable error. 39459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39460 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39461 has_space=`$ECHO "$complete" | $GREP " "` 39462 if test "x$has_space" != x; then 39463 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39464 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39465 fi 39466 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39467 fi 39468 fi 39469 39470 # Now new_path has a complete unix path to the binary 39471 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39472 # Keep paths in /bin as-is, but remove trailing .exe if any 39473 new_path="${new_path/%.exe/}" 39474 # Do not save /bin paths to all_fixpath_prefixes! 39475 else 39476 # Not in mixed or Windows style, start by that. 39477 new_path=`cmd //c echo $new_path` 39478 39479 input_path="$new_path" 39480 # Check if we need to convert this using DOS-style short mode. If the path 39481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39482 # take no chances and rewrite it. 39483 # Note: m4 eats our [], so we need to use [ and ] instead. 39484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39485 if test "x$has_forbidden_chars" != x; then 39486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39487 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39488 fi 39489 39490 # Output is in $new_path 39491 39492 windows_path="$new_path" 39493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39494 unix_path=`$CYGPATH -u "$windows_path"` 39495 new_path="$unix_path" 39496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39498 new_path="$unix_path" 39499 fi 39500 39501 # remove trailing .exe if any 39502 new_path="${new_path/%.exe/}" 39503 39504 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39505 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39506 fi 39507 39508 else 39509 # We're on a unix platform. Hooray! :) 39510 # First separate the path from the arguments. This will split at the first 39511 # space. 39512 complete="$LIPO" 39513 path="${complete%% *}" 39514 tmp="$complete EOL" 39515 arguments="${tmp#* }" 39516 39517 # Cannot rely on the command "which" here since it doesn't always work. 39518 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39519 if test -z "$is_absolute_path"; then 39520 # Path to executable is not absolute. Find it. 39521 IFS_save="$IFS" 39522 IFS=: 39523 for p in $PATH; do 39524 if test -f "$p/$path" && test -x "$p/$path"; then 39525 new_path="$p/$path" 39526 break 39527 fi 39528 done 39529 IFS="$IFS_save" 39530 else 39531 # This is an absolute path, we can use it without further modifications. 39532 new_path="$path" 39533 fi 39534 39535 if test "x$new_path" = x; then 39536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39537 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39538 has_space=`$ECHO "$complete" | $GREP " "` 39539 if test "x$has_space" != x; then 39540 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39541 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39542 fi 39543 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39544 fi 39545 fi 39546 39547 # Now join together the path and the arguments once again 39548 if test "x$arguments" != xEOL; then 39549 new_complete="$new_path ${arguments% *}" 39550 else 39551 new_complete="$new_path" 39552 fi 39553 39554 if test "x$complete" != "x$new_complete"; then 39555 LIPO="$new_complete" 39556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39557 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39558 fi 39559 fi 39560 39561 fi 39562 39563 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39564 # Extract the first word of "mt", so it can be a program name with args. 39565 set dummy mt; ac_word=$2 39566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39567 $as_echo_n "checking for $ac_word... " >&6; } 39568 if ${ac_cv_prog_MT+:} false; then : 39569 $as_echo_n "(cached) " >&6 39570 else 39571 if test -n "$MT"; then 39572 ac_cv_prog_MT="$MT" # Let the user override the test. 39573 else 39574 ac_prog_rejected=no 39575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39576 for as_dir in $PATH 39577 do 39578 IFS=$as_save_IFS 39579 test -z "$as_dir" && as_dir=. 39580 for ac_exec_ext in '' $ac_executable_extensions; do 39581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 39583 ac_prog_rejected=yes 39584 continue 39585 fi 39586 ac_cv_prog_MT="mt" 39587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39588 break 2 39589 fi 39590 done 39591 done 39592 IFS=$as_save_IFS 39593 39594 if test $ac_prog_rejected = yes; then 39595 # We found a bogon in the path, so make sure we never use it. 39596 set dummy $ac_cv_prog_MT 39597 shift 39598 if test $# != 0; then 39599 # We chose a different compiler from the bogus one. 39600 # However, it has the same basename, so the bogon will be chosen 39601 # first if we set MT to just the basename; use the full file name. 39602 shift 39603 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 39604 fi 39605 fi 39606 fi 39607 fi 39608 MT=$ac_cv_prog_MT 39609 if test -n "$MT"; then 39610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 39611 $as_echo "$MT" >&6; } 39612 else 39613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39614 $as_echo "no" >&6; } 39615 fi 39616 39617 39618 39619 # Only process if variable expands to non-empty 39620 39621 if test "x$MT" != x; then 39622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39623 39624 # First separate the path from the arguments. This will split at the first 39625 # space. 39626 complete="$MT" 39627 path="${complete%% *}" 39628 tmp="$complete EOL" 39629 arguments="${tmp#* }" 39630 39631 # Input might be given as Windows format, start by converting to 39632 # unix format. 39633 new_path=`$CYGPATH -u "$path"` 39634 39635 # Now try to locate executable using which 39636 new_path=`$WHICH "$new_path" 2> /dev/null` 39637 # bat and cmd files are not always considered executable in cygwin causing which 39638 # to not find them 39639 if test "x$new_path" = x \ 39640 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39641 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39642 new_path=`$CYGPATH -u "$path"` 39643 fi 39644 if test "x$new_path" = x; then 39645 # Oops. Which didn't find the executable. 39646 # The splitting of arguments from the executable at a space might have been incorrect, 39647 # since paths with space are more likely in Windows. Give it another try with the whole 39648 # argument. 39649 path="$complete" 39650 arguments="EOL" 39651 new_path=`$CYGPATH -u "$path"` 39652 new_path=`$WHICH "$new_path" 2> /dev/null` 39653 # bat and cmd files are not always considered executable in cygwin causing which 39654 # to not find them 39655 if test "x$new_path" = x \ 39656 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39657 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39658 new_path=`$CYGPATH -u "$path"` 39659 fi 39660 if test "x$new_path" = x; then 39661 # It's still not found. Now this is an unrecoverable error. 39662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39663 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39664 has_space=`$ECHO "$complete" | $GREP " "` 39665 if test "x$has_space" != x; then 39666 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39667 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39668 fi 39669 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39670 fi 39671 fi 39672 39673 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39674 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39675 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39676 # "foo.exe" is OK but "foo" is an error. 39677 # 39678 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39679 # It is also a way to make sure we got the proper file name for the real test later on. 39680 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39681 if test "x$test_shortpath" = x; then 39682 # Short path failed, file does not exist as specified. 39683 # Try adding .exe or .cmd 39684 if test -f "${new_path}.exe"; then 39685 input_to_shortpath="${new_path}.exe" 39686 elif test -f "${new_path}.cmd"; then 39687 input_to_shortpath="${new_path}.cmd" 39688 else 39689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 39690 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 39691 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39692 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39693 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39694 fi 39695 else 39696 input_to_shortpath="$new_path" 39697 fi 39698 39699 # Call helper function which possibly converts this using DOS-style short mode. 39700 # If so, the updated path is stored in $new_path. 39701 new_path="$input_to_shortpath" 39702 39703 input_path="$input_to_shortpath" 39704 # Check if we need to convert this using DOS-style short mode. If the path 39705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39706 # take no chances and rewrite it. 39707 # Note: m4 eats our [], so we need to use [ and ] instead. 39708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39709 if test "x$has_forbidden_chars" != x; then 39710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39711 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39712 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39713 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39714 # Going to short mode and back again did indeed matter. Since short mode is 39715 # case insensitive, let's make it lowercase to improve readability. 39716 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39717 # Now convert it back to Unix-style (cygpath) 39718 input_path=`$CYGPATH -u "$shortmode_path"` 39719 new_path="$input_path" 39720 fi 39721 fi 39722 39723 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39724 if test "x$test_cygdrive_prefix" = x; then 39725 # As a simple fix, exclude /usr/bin since it's not a real path. 39726 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39727 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39728 # a path prefixed by /cygdrive for fixpath to work. 39729 new_path="$CYGWIN_ROOT_PATH$input_path" 39730 fi 39731 fi 39732 39733 # remove trailing .exe if any 39734 new_path="${new_path/%.exe/}" 39735 39736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39737 39738 # First separate the path from the arguments. This will split at the first 39739 # space. 39740 complete="$MT" 39741 path="${complete%% *}" 39742 tmp="$complete EOL" 39743 arguments="${tmp#* }" 39744 39745 # Input might be given as Windows format, start by converting to 39746 # unix format. 39747 new_path="$path" 39748 39749 windows_path="$new_path" 39750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39751 unix_path=`$CYGPATH -u "$windows_path"` 39752 new_path="$unix_path" 39753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39754 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39755 new_path="$unix_path" 39756 fi 39757 39758 39759 # Now try to locate executable using which 39760 new_path=`$WHICH "$new_path" 2> /dev/null` 39761 39762 if test "x$new_path" = x; then 39763 # Oops. Which didn't find the executable. 39764 # The splitting of arguments from the executable at a space might have been incorrect, 39765 # since paths with space are more likely in Windows. Give it another try with the whole 39766 # argument. 39767 path="$complete" 39768 arguments="EOL" 39769 new_path="$path" 39770 39771 windows_path="$new_path" 39772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39773 unix_path=`$CYGPATH -u "$windows_path"` 39774 new_path="$unix_path" 39775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39777 new_path="$unix_path" 39778 fi 39779 39780 39781 new_path=`$WHICH "$new_path" 2> /dev/null` 39782 # bat and cmd files are not always considered executable in MSYS causing which 39783 # to not find them 39784 if test "x$new_path" = x \ 39785 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39786 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39787 new_path="$path" 39788 39789 windows_path="$new_path" 39790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39791 unix_path=`$CYGPATH -u "$windows_path"` 39792 new_path="$unix_path" 39793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39795 new_path="$unix_path" 39796 fi 39797 39798 fi 39799 39800 if test "x$new_path" = x; then 39801 # It's still not found. Now this is an unrecoverable error. 39802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39803 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39804 has_space=`$ECHO "$complete" | $GREP " "` 39805 if test "x$has_space" != x; then 39806 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39807 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39808 fi 39809 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39810 fi 39811 fi 39812 39813 # Now new_path has a complete unix path to the binary 39814 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39815 # Keep paths in /bin as-is, but remove trailing .exe if any 39816 new_path="${new_path/%.exe/}" 39817 # Do not save /bin paths to all_fixpath_prefixes! 39818 else 39819 # Not in mixed or Windows style, start by that. 39820 new_path=`cmd //c echo $new_path` 39821 39822 input_path="$new_path" 39823 # Check if we need to convert this using DOS-style short mode. If the path 39824 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39825 # take no chances and rewrite it. 39826 # Note: m4 eats our [], so we need to use [ and ] instead. 39827 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39828 if test "x$has_forbidden_chars" != x; then 39829 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39830 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39831 fi 39832 39833 # Output is in $new_path 39834 39835 windows_path="$new_path" 39836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39837 unix_path=`$CYGPATH -u "$windows_path"` 39838 new_path="$unix_path" 39839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39841 new_path="$unix_path" 39842 fi 39843 39844 # remove trailing .exe if any 39845 new_path="${new_path/%.exe/}" 39846 39847 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39848 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39849 fi 39850 39851 else 39852 # We're on a unix platform. Hooray! :) 39853 # First separate the path from the arguments. This will split at the first 39854 # space. 39855 complete="$MT" 39856 path="${complete%% *}" 39857 tmp="$complete EOL" 39858 arguments="${tmp#* }" 39859 39860 # Cannot rely on the command "which" here since it doesn't always work. 39861 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39862 if test -z "$is_absolute_path"; then 39863 # Path to executable is not absolute. Find it. 39864 IFS_save="$IFS" 39865 IFS=: 39866 for p in $PATH; do 39867 if test -f "$p/$path" && test -x "$p/$path"; then 39868 new_path="$p/$path" 39869 break 39870 fi 39871 done 39872 IFS="$IFS_save" 39873 else 39874 # This is an absolute path, we can use it without further modifications. 39875 new_path="$path" 39876 fi 39877 39878 if test "x$new_path" = x; then 39879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39880 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39881 has_space=`$ECHO "$complete" | $GREP " "` 39882 if test "x$has_space" != x; then 39883 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39884 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39885 fi 39886 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39887 fi 39888 fi 39889 39890 # Now join together the path and the arguments once again 39891 if test "x$arguments" != xEOL; then 39892 new_complete="$new_path ${arguments% *}" 39893 else 39894 new_complete="$new_path" 39895 fi 39896 39897 if test "x$complete" != "x$new_complete"; then 39898 MT="$new_complete" 39899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 39900 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 39901 fi 39902 fi 39903 39904 # Setup the resource compiler (RC) 39905 # Extract the first word of "rc", so it can be a program name with args. 39906 set dummy rc; ac_word=$2 39907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39908 $as_echo_n "checking for $ac_word... " >&6; } 39909 if ${ac_cv_prog_RC+:} false; then : 39910 $as_echo_n "(cached) " >&6 39911 else 39912 if test -n "$RC"; then 39913 ac_cv_prog_RC="$RC" # Let the user override the test. 39914 else 39915 ac_prog_rejected=no 39916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39917 for as_dir in $PATH 39918 do 39919 IFS=$as_save_IFS 39920 test -z "$as_dir" && as_dir=. 39921 for ac_exec_ext in '' $ac_executable_extensions; do 39922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 39924 ac_prog_rejected=yes 39925 continue 39926 fi 39927 ac_cv_prog_RC="rc" 39928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39929 break 2 39930 fi 39931 done 39932 done 39933 IFS=$as_save_IFS 39934 39935 if test $ac_prog_rejected = yes; then 39936 # We found a bogon in the path, so make sure we never use it. 39937 set dummy $ac_cv_prog_RC 39938 shift 39939 if test $# != 0; then 39940 # We chose a different compiler from the bogus one. 39941 # However, it has the same basename, so the bogon will be chosen 39942 # first if we set RC to just the basename; use the full file name. 39943 shift 39944 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 39945 fi 39946 fi 39947 fi 39948 fi 39949 RC=$ac_cv_prog_RC 39950 if test -n "$RC"; then 39951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 39952 $as_echo "$RC" >&6; } 39953 else 39954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39955 $as_echo "no" >&6; } 39956 fi 39957 39958 39959 39960 # Only process if variable expands to non-empty 39961 39962 if test "x$RC" != x; then 39963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39964 39965 # First separate the path from the arguments. This will split at the first 39966 # space. 39967 complete="$RC" 39968 path="${complete%% *}" 39969 tmp="$complete EOL" 39970 arguments="${tmp#* }" 39971 39972 # Input might be given as Windows format, start by converting to 39973 # unix format. 39974 new_path=`$CYGPATH -u "$path"` 39975 39976 # Now try to locate executable using which 39977 new_path=`$WHICH "$new_path" 2> /dev/null` 39978 # bat and cmd files are not always considered executable in cygwin causing which 39979 # to not find them 39980 if test "x$new_path" = x \ 39981 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39982 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39983 new_path=`$CYGPATH -u "$path"` 39984 fi 39985 if test "x$new_path" = x; then 39986 # Oops. Which didn't find the executable. 39987 # The splitting of arguments from the executable at a space might have been incorrect, 39988 # since paths with space are more likely in Windows. Give it another try with the whole 39989 # argument. 39990 path="$complete" 39991 arguments="EOL" 39992 new_path=`$CYGPATH -u "$path"` 39993 new_path=`$WHICH "$new_path" 2> /dev/null` 39994 # bat and cmd files are not always considered executable in cygwin causing which 39995 # to not find them 39996 if test "x$new_path" = x \ 39997 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39998 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39999 new_path=`$CYGPATH -u "$path"` 40000 fi 40001 if test "x$new_path" = x; then 40002 # It's still not found. Now this is an unrecoverable error. 40003 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40004 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40005 has_space=`$ECHO "$complete" | $GREP " "` 40006 if test "x$has_space" != x; then 40007 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40008 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40009 fi 40010 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40011 fi 40012 fi 40013 40014 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40015 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40016 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40017 # "foo.exe" is OK but "foo" is an error. 40018 # 40019 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40020 # It is also a way to make sure we got the proper file name for the real test later on. 40021 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40022 if test "x$test_shortpath" = x; then 40023 # Short path failed, file does not exist as specified. 40024 # Try adding .exe or .cmd 40025 if test -f "${new_path}.exe"; then 40026 input_to_shortpath="${new_path}.exe" 40027 elif test -f "${new_path}.cmd"; then 40028 input_to_shortpath="${new_path}.cmd" 40029 else 40030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40031 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40032 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40033 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40034 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40035 fi 40036 else 40037 input_to_shortpath="$new_path" 40038 fi 40039 40040 # Call helper function which possibly converts this using DOS-style short mode. 40041 # If so, the updated path is stored in $new_path. 40042 new_path="$input_to_shortpath" 40043 40044 input_path="$input_to_shortpath" 40045 # Check if we need to convert this using DOS-style short mode. If the path 40046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40047 # take no chances and rewrite it. 40048 # Note: m4 eats our [], so we need to use [ and ] instead. 40049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40050 if test "x$has_forbidden_chars" != x; then 40051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40052 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40053 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40054 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40055 # Going to short mode and back again did indeed matter. Since short mode is 40056 # case insensitive, let's make it lowercase to improve readability. 40057 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40058 # Now convert it back to Unix-style (cygpath) 40059 input_path=`$CYGPATH -u "$shortmode_path"` 40060 new_path="$input_path" 40061 fi 40062 fi 40063 40064 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40065 if test "x$test_cygdrive_prefix" = x; then 40066 # As a simple fix, exclude /usr/bin since it's not a real path. 40067 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40068 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40069 # a path prefixed by /cygdrive for fixpath to work. 40070 new_path="$CYGWIN_ROOT_PATH$input_path" 40071 fi 40072 fi 40073 40074 # remove trailing .exe if any 40075 new_path="${new_path/%.exe/}" 40076 40077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40078 40079 # First separate the path from the arguments. This will split at the first 40080 # space. 40081 complete="$RC" 40082 path="${complete%% *}" 40083 tmp="$complete EOL" 40084 arguments="${tmp#* }" 40085 40086 # Input might be given as Windows format, start by converting to 40087 # unix format. 40088 new_path="$path" 40089 40090 windows_path="$new_path" 40091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40092 unix_path=`$CYGPATH -u "$windows_path"` 40093 new_path="$unix_path" 40094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40096 new_path="$unix_path" 40097 fi 40098 40099 40100 # Now try to locate executable using which 40101 new_path=`$WHICH "$new_path" 2> /dev/null` 40102 40103 if test "x$new_path" = x; then 40104 # Oops. Which didn't find the executable. 40105 # The splitting of arguments from the executable at a space might have been incorrect, 40106 # since paths with space are more likely in Windows. Give it another try with the whole 40107 # argument. 40108 path="$complete" 40109 arguments="EOL" 40110 new_path="$path" 40111 40112 windows_path="$new_path" 40113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40114 unix_path=`$CYGPATH -u "$windows_path"` 40115 new_path="$unix_path" 40116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40117 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40118 new_path="$unix_path" 40119 fi 40120 40121 40122 new_path=`$WHICH "$new_path" 2> /dev/null` 40123 # bat and cmd files are not always considered executable in MSYS causing which 40124 # to not find them 40125 if test "x$new_path" = x \ 40126 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40127 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40128 new_path="$path" 40129 40130 windows_path="$new_path" 40131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40132 unix_path=`$CYGPATH -u "$windows_path"` 40133 new_path="$unix_path" 40134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40135 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40136 new_path="$unix_path" 40137 fi 40138 40139 fi 40140 40141 if test "x$new_path" = x; then 40142 # It's still not found. Now this is an unrecoverable error. 40143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40144 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40145 has_space=`$ECHO "$complete" | $GREP " "` 40146 if test "x$has_space" != x; then 40147 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40148 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40149 fi 40150 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40151 fi 40152 fi 40153 40154 # Now new_path has a complete unix path to the binary 40155 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40156 # Keep paths in /bin as-is, but remove trailing .exe if any 40157 new_path="${new_path/%.exe/}" 40158 # Do not save /bin paths to all_fixpath_prefixes! 40159 else 40160 # Not in mixed or Windows style, start by that. 40161 new_path=`cmd //c echo $new_path` 40162 40163 input_path="$new_path" 40164 # Check if we need to convert this using DOS-style short mode. If the path 40165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40166 # take no chances and rewrite it. 40167 # Note: m4 eats our [], so we need to use [ and ] instead. 40168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40169 if test "x$has_forbidden_chars" != x; then 40170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40171 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40172 fi 40173 40174 # Output is in $new_path 40175 40176 windows_path="$new_path" 40177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40178 unix_path=`$CYGPATH -u "$windows_path"` 40179 new_path="$unix_path" 40180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40181 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40182 new_path="$unix_path" 40183 fi 40184 40185 # remove trailing .exe if any 40186 new_path="${new_path/%.exe/}" 40187 40188 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40189 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40190 fi 40191 40192 else 40193 # We're on a unix platform. Hooray! :) 40194 # First separate the path from the arguments. This will split at the first 40195 # space. 40196 complete="$RC" 40197 path="${complete%% *}" 40198 tmp="$complete EOL" 40199 arguments="${tmp#* }" 40200 40201 # Cannot rely on the command "which" here since it doesn't always work. 40202 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40203 if test -z "$is_absolute_path"; then 40204 # Path to executable is not absolute. Find it. 40205 IFS_save="$IFS" 40206 IFS=: 40207 for p in $PATH; do 40208 if test -f "$p/$path" && test -x "$p/$path"; then 40209 new_path="$p/$path" 40210 break 40211 fi 40212 done 40213 IFS="$IFS_save" 40214 else 40215 # This is an absolute path, we can use it without further modifications. 40216 new_path="$path" 40217 fi 40218 40219 if test "x$new_path" = x; then 40220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40221 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40222 has_space=`$ECHO "$complete" | $GREP " "` 40223 if test "x$has_space" != x; then 40224 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40225 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40226 fi 40227 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40228 fi 40229 fi 40230 40231 # Now join together the path and the arguments once again 40232 if test "x$arguments" != xEOL; then 40233 new_complete="$new_path ${arguments% *}" 40234 else 40235 new_complete="$new_path" 40236 fi 40237 40238 if test "x$complete" != "x$new_complete"; then 40239 RC="$new_complete" 40240 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 40241 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 40242 fi 40243 fi 40244 40245 # Extract the first word of "dumpbin", so it can be a program name with args. 40246 set dummy dumpbin; ac_word=$2 40247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40248 $as_echo_n "checking for $ac_word... " >&6; } 40249 if ${ac_cv_prog_DUMPBIN+:} false; then : 40250 $as_echo_n "(cached) " >&6 40251 else 40252 if test -n "$DUMPBIN"; then 40253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 40254 else 40255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40256 for as_dir in $PATH 40257 do 40258 IFS=$as_save_IFS 40259 test -z "$as_dir" && as_dir=. 40260 for ac_exec_ext in '' $ac_executable_extensions; do 40261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40262 ac_cv_prog_DUMPBIN="dumpbin" 40263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40264 break 2 40265 fi 40266 done 40267 done 40268 IFS=$as_save_IFS 40269 40270 fi 40271 fi 40272 DUMPBIN=$ac_cv_prog_DUMPBIN 40273 if test -n "$DUMPBIN"; then 40274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 40275 $as_echo "$DUMPBIN" >&6; } 40276 else 40277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40278 $as_echo "no" >&6; } 40279 fi 40280 40281 40282 40283 # Only process if variable expands to non-empty 40284 40285 if test "x$DUMPBIN" != x; then 40286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40287 40288 # First separate the path from the arguments. This will split at the first 40289 # space. 40290 complete="$DUMPBIN" 40291 path="${complete%% *}" 40292 tmp="$complete EOL" 40293 arguments="${tmp#* }" 40294 40295 # Input might be given as Windows format, start by converting to 40296 # unix format. 40297 new_path=`$CYGPATH -u "$path"` 40298 40299 # Now try to locate executable using which 40300 new_path=`$WHICH "$new_path" 2> /dev/null` 40301 # bat and cmd files are not always considered executable in cygwin causing which 40302 # to not find them 40303 if test "x$new_path" = x \ 40304 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40305 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40306 new_path=`$CYGPATH -u "$path"` 40307 fi 40308 if test "x$new_path" = x; then 40309 # Oops. Which didn't find the executable. 40310 # The splitting of arguments from the executable at a space might have been incorrect, 40311 # since paths with space are more likely in Windows. Give it another try with the whole 40312 # argument. 40313 path="$complete" 40314 arguments="EOL" 40315 new_path=`$CYGPATH -u "$path"` 40316 new_path=`$WHICH "$new_path" 2> /dev/null` 40317 # bat and cmd files are not always considered executable in cygwin causing which 40318 # to not find them 40319 if test "x$new_path" = x \ 40320 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40321 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40322 new_path=`$CYGPATH -u "$path"` 40323 fi 40324 if test "x$new_path" = x; then 40325 # It's still not found. Now this is an unrecoverable error. 40326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40327 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40328 has_space=`$ECHO "$complete" | $GREP " "` 40329 if test "x$has_space" != x; then 40330 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40331 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40332 fi 40333 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40334 fi 40335 fi 40336 40337 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40338 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40339 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40340 # "foo.exe" is OK but "foo" is an error. 40341 # 40342 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40343 # It is also a way to make sure we got the proper file name for the real test later on. 40344 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40345 if test "x$test_shortpath" = x; then 40346 # Short path failed, file does not exist as specified. 40347 # Try adding .exe or .cmd 40348 if test -f "${new_path}.exe"; then 40349 input_to_shortpath="${new_path}.exe" 40350 elif test -f "${new_path}.cmd"; then 40351 input_to_shortpath="${new_path}.cmd" 40352 else 40353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 40354 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 40355 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40356 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40357 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40358 fi 40359 else 40360 input_to_shortpath="$new_path" 40361 fi 40362 40363 # Call helper function which possibly converts this using DOS-style short mode. 40364 # If so, the updated path is stored in $new_path. 40365 new_path="$input_to_shortpath" 40366 40367 input_path="$input_to_shortpath" 40368 # Check if we need to convert this using DOS-style short mode. If the path 40369 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40370 # take no chances and rewrite it. 40371 # Note: m4 eats our [], so we need to use [ and ] instead. 40372 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40373 if test "x$has_forbidden_chars" != x; then 40374 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40375 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40376 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40377 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40378 # Going to short mode and back again did indeed matter. Since short mode is 40379 # case insensitive, let's make it lowercase to improve readability. 40380 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40381 # Now convert it back to Unix-style (cygpath) 40382 input_path=`$CYGPATH -u "$shortmode_path"` 40383 new_path="$input_path" 40384 fi 40385 fi 40386 40387 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40388 if test "x$test_cygdrive_prefix" = x; then 40389 # As a simple fix, exclude /usr/bin since it's not a real path. 40390 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40391 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40392 # a path prefixed by /cygdrive for fixpath to work. 40393 new_path="$CYGWIN_ROOT_PATH$input_path" 40394 fi 40395 fi 40396 40397 # remove trailing .exe if any 40398 new_path="${new_path/%.exe/}" 40399 40400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40401 40402 # First separate the path from the arguments. This will split at the first 40403 # space. 40404 complete="$DUMPBIN" 40405 path="${complete%% *}" 40406 tmp="$complete EOL" 40407 arguments="${tmp#* }" 40408 40409 # Input might be given as Windows format, start by converting to 40410 # unix format. 40411 new_path="$path" 40412 40413 windows_path="$new_path" 40414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40415 unix_path=`$CYGPATH -u "$windows_path"` 40416 new_path="$unix_path" 40417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40418 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40419 new_path="$unix_path" 40420 fi 40421 40422 40423 # Now try to locate executable using which 40424 new_path=`$WHICH "$new_path" 2> /dev/null` 40425 40426 if test "x$new_path" = x; then 40427 # Oops. Which didn't find the executable. 40428 # The splitting of arguments from the executable at a space might have been incorrect, 40429 # since paths with space are more likely in Windows. Give it another try with the whole 40430 # argument. 40431 path="$complete" 40432 arguments="EOL" 40433 new_path="$path" 40434 40435 windows_path="$new_path" 40436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40437 unix_path=`$CYGPATH -u "$windows_path"` 40438 new_path="$unix_path" 40439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40441 new_path="$unix_path" 40442 fi 40443 40444 40445 new_path=`$WHICH "$new_path" 2> /dev/null` 40446 # bat and cmd files are not always considered executable in MSYS causing which 40447 # to not find them 40448 if test "x$new_path" = x \ 40449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40451 new_path="$path" 40452 40453 windows_path="$new_path" 40454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40455 unix_path=`$CYGPATH -u "$windows_path"` 40456 new_path="$unix_path" 40457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40459 new_path="$unix_path" 40460 fi 40461 40462 fi 40463 40464 if test "x$new_path" = x; then 40465 # It's still not found. Now this is an unrecoverable error. 40466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40467 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40468 has_space=`$ECHO "$complete" | $GREP " "` 40469 if test "x$has_space" != x; then 40470 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40471 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40472 fi 40473 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40474 fi 40475 fi 40476 40477 # Now new_path has a complete unix path to the binary 40478 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40479 # Keep paths in /bin as-is, but remove trailing .exe if any 40480 new_path="${new_path/%.exe/}" 40481 # Do not save /bin paths to all_fixpath_prefixes! 40482 else 40483 # Not in mixed or Windows style, start by that. 40484 new_path=`cmd //c echo $new_path` 40485 40486 input_path="$new_path" 40487 # Check if we need to convert this using DOS-style short mode. If the path 40488 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40489 # take no chances and rewrite it. 40490 # Note: m4 eats our [], so we need to use [ and ] instead. 40491 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40492 if test "x$has_forbidden_chars" != x; then 40493 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40494 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40495 fi 40496 40497 # Output is in $new_path 40498 40499 windows_path="$new_path" 40500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40501 unix_path=`$CYGPATH -u "$windows_path"` 40502 new_path="$unix_path" 40503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40505 new_path="$unix_path" 40506 fi 40507 40508 # remove trailing .exe if any 40509 new_path="${new_path/%.exe/}" 40510 40511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40513 fi 40514 40515 else 40516 # We're on a unix platform. Hooray! :) 40517 # First separate the path from the arguments. This will split at the first 40518 # space. 40519 complete="$DUMPBIN" 40520 path="${complete%% *}" 40521 tmp="$complete EOL" 40522 arguments="${tmp#* }" 40523 40524 # Cannot rely on the command "which" here since it doesn't always work. 40525 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40526 if test -z "$is_absolute_path"; then 40527 # Path to executable is not absolute. Find it. 40528 IFS_save="$IFS" 40529 IFS=: 40530 for p in $PATH; do 40531 if test -f "$p/$path" && test -x "$p/$path"; then 40532 new_path="$p/$path" 40533 break 40534 fi 40535 done 40536 IFS="$IFS_save" 40537 else 40538 # This is an absolute path, we can use it without further modifications. 40539 new_path="$path" 40540 fi 40541 40542 if test "x$new_path" = x; then 40543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40544 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40545 has_space=`$ECHO "$complete" | $GREP " "` 40546 if test "x$has_space" != x; then 40547 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40548 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40549 fi 40550 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40551 fi 40552 fi 40553 40554 # Now join together the path and the arguments once again 40555 if test "x$arguments" != xEOL; then 40556 new_complete="$new_path ${arguments% *}" 40557 else 40558 new_complete="$new_path" 40559 fi 40560 40561 if test "x$complete" != "x$new_complete"; then 40562 DUMPBIN="$new_complete" 40563 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 40564 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 40565 fi 40566 fi 40567 40568 # We need to check for 'msbuild.exe' because at the place where we expect to 40569 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 40570 # won't find the 'msbuild.exe' executable in that case (and the 40571 # 'ac_executable_extensions' is unusable due to performance reasons). 40572 # Notice that we intentionally don't fix up the path to MSBUILD because we 40573 # will call it in a DOS shell during freetype detection on Windows (see 40574 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 40575 # Extract the first word of "msbuild.exe", so it can be a program name with args. 40576 set dummy msbuild.exe; ac_word=$2 40577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40578 $as_echo_n "checking for $ac_word... " >&6; } 40579 if ${ac_cv_prog_MSBUILD+:} false; then : 40580 $as_echo_n "(cached) " >&6 40581 else 40582 if test -n "$MSBUILD"; then 40583 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 40584 else 40585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40586 for as_dir in $PATH 40587 do 40588 IFS=$as_save_IFS 40589 test -z "$as_dir" && as_dir=. 40590 for ac_exec_ext in '' $ac_executable_extensions; do 40591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40592 ac_cv_prog_MSBUILD="msbuild.exe" 40593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40594 break 2 40595 fi 40596 done 40597 done 40598 IFS=$as_save_IFS 40599 40600 fi 40601 fi 40602 MSBUILD=$ac_cv_prog_MSBUILD 40603 if test -n "$MSBUILD"; then 40604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 40605 $as_echo "$MSBUILD" >&6; } 40606 else 40607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40608 $as_echo "no" >&6; } 40609 fi 40610 40611 40612 fi 40613 40614 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40615 40616 40617 # Publish this variable in the help. 40618 40619 40620 if [ -z "${STRIP+x}" ]; then 40621 # The variable is not set by user, try to locate tool using the code snippet 40622 for ac_prog in strip 40623 do 40624 # Extract the first word of "$ac_prog", so it can be a program name with args. 40625 set dummy $ac_prog; ac_word=$2 40626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40627 $as_echo_n "checking for $ac_word... " >&6; } 40628 if ${ac_cv_path_STRIP+:} false; then : 40629 $as_echo_n "(cached) " >&6 40630 else 40631 case $STRIP in 40632 [\\/]* | ?:[\\/]*) 40633 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40634 ;; 40635 *) 40636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40637 for as_dir in $PATH 40638 do 40639 IFS=$as_save_IFS 40640 test -z "$as_dir" && as_dir=. 40641 for ac_exec_ext in '' $ac_executable_extensions; do 40642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40643 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40645 break 2 40646 fi 40647 done 40648 done 40649 IFS=$as_save_IFS 40650 40651 ;; 40652 esac 40653 fi 40654 STRIP=$ac_cv_path_STRIP 40655 if test -n "$STRIP"; then 40656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40657 $as_echo "$STRIP" >&6; } 40658 else 40659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40660 $as_echo "no" >&6; } 40661 fi 40662 40663 40664 test -n "$STRIP" && break 40665 done 40666 40667 else 40668 # The variable is set, but is it from the command line or the environment? 40669 40670 # Try to remove the string !STRIP! from our list. 40671 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40672 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40673 # If it failed, the variable was not from the command line. Ignore it, 40674 # but warn the user (except for BASH, which is always set by the calling BASH). 40675 if test "xSTRIP" != xBASH; then 40676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40677 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40678 fi 40679 # Try to locate tool using the code snippet 40680 for ac_prog in strip 40681 do 40682 # Extract the first word of "$ac_prog", so it can be a program name with args. 40683 set dummy $ac_prog; ac_word=$2 40684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40685 $as_echo_n "checking for $ac_word... " >&6; } 40686 if ${ac_cv_path_STRIP+:} false; then : 40687 $as_echo_n "(cached) " >&6 40688 else 40689 case $STRIP in 40690 [\\/]* | ?:[\\/]*) 40691 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40692 ;; 40693 *) 40694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40695 for as_dir in $PATH 40696 do 40697 IFS=$as_save_IFS 40698 test -z "$as_dir" && as_dir=. 40699 for ac_exec_ext in '' $ac_executable_extensions; do 40700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40701 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40703 break 2 40704 fi 40705 done 40706 done 40707 IFS=$as_save_IFS 40708 40709 ;; 40710 esac 40711 fi 40712 STRIP=$ac_cv_path_STRIP 40713 if test -n "$STRIP"; then 40714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40715 $as_echo "$STRIP" >&6; } 40716 else 40717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40718 $as_echo "no" >&6; } 40719 fi 40720 40721 40722 test -n "$STRIP" && break 40723 done 40724 40725 else 40726 # If it succeeded, then it was overridden by the user. We will use it 40727 # for the tool. 40728 40729 # First remove it from the list of overridden variables, so we can test 40730 # for unknown variables in the end. 40731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40732 40733 # Check if we try to supply an empty value 40734 if test "x$STRIP" = x; then 40735 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40736 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40738 $as_echo_n "checking for STRIP... " >&6; } 40739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40740 $as_echo "disabled" >&6; } 40741 else 40742 # Check if the provided tool contains a complete path. 40743 tool_specified="$STRIP" 40744 tool_basename="${tool_specified##*/}" 40745 if test "x$tool_basename" = "x$tool_specified"; then 40746 # A command without a complete path is provided, search $PATH. 40747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40748 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40749 # Extract the first word of "$tool_basename", so it can be a program name with args. 40750 set dummy $tool_basename; ac_word=$2 40751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40752 $as_echo_n "checking for $ac_word... " >&6; } 40753 if ${ac_cv_path_STRIP+:} false; then : 40754 $as_echo_n "(cached) " >&6 40755 else 40756 case $STRIP in 40757 [\\/]* | ?:[\\/]*) 40758 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40759 ;; 40760 *) 40761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40762 for as_dir in $PATH 40763 do 40764 IFS=$as_save_IFS 40765 test -z "$as_dir" && as_dir=. 40766 for ac_exec_ext in '' $ac_executable_extensions; do 40767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40768 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40770 break 2 40771 fi 40772 done 40773 done 40774 IFS=$as_save_IFS 40775 40776 ;; 40777 esac 40778 fi 40779 STRIP=$ac_cv_path_STRIP 40780 if test -n "$STRIP"; then 40781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40782 $as_echo "$STRIP" >&6; } 40783 else 40784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40785 $as_echo "no" >&6; } 40786 fi 40787 40788 40789 if test "x$STRIP" = x; then 40790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40791 fi 40792 else 40793 # Otherwise we believe it is a complete path. Use it as it is. 40794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40795 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40797 $as_echo_n "checking for STRIP... " >&6; } 40798 if test ! -x "$tool_specified"; then 40799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40800 $as_echo "not found" >&6; } 40801 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40802 fi 40803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40804 $as_echo "$tool_specified" >&6; } 40805 fi 40806 fi 40807 fi 40808 40809 fi 40810 40811 40812 40813 # Only process if variable expands to non-empty 40814 40815 if test "x$STRIP" != x; then 40816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40817 40818 # First separate the path from the arguments. This will split at the first 40819 # space. 40820 complete="$STRIP" 40821 path="${complete%% *}" 40822 tmp="$complete EOL" 40823 arguments="${tmp#* }" 40824 40825 # Input might be given as Windows format, start by converting to 40826 # unix format. 40827 new_path=`$CYGPATH -u "$path"` 40828 40829 # Now try to locate executable using which 40830 new_path=`$WHICH "$new_path" 2> /dev/null` 40831 # bat and cmd files are not always considered executable in cygwin causing which 40832 # to not find them 40833 if test "x$new_path" = x \ 40834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40836 new_path=`$CYGPATH -u "$path"` 40837 fi 40838 if test "x$new_path" = x; then 40839 # Oops. Which didn't find the executable. 40840 # The splitting of arguments from the executable at a space might have been incorrect, 40841 # since paths with space are more likely in Windows. Give it another try with the whole 40842 # argument. 40843 path="$complete" 40844 arguments="EOL" 40845 new_path=`$CYGPATH -u "$path"` 40846 new_path=`$WHICH "$new_path" 2> /dev/null` 40847 # bat and cmd files are not always considered executable in cygwin causing which 40848 # to not find them 40849 if test "x$new_path" = x \ 40850 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40851 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40852 new_path=`$CYGPATH -u "$path"` 40853 fi 40854 if test "x$new_path" = x; then 40855 # It's still not found. Now this is an unrecoverable error. 40856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40857 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40858 has_space=`$ECHO "$complete" | $GREP " "` 40859 if test "x$has_space" != x; then 40860 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40861 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40862 fi 40863 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40864 fi 40865 fi 40866 40867 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40868 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40869 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40870 # "foo.exe" is OK but "foo" is an error. 40871 # 40872 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40873 # It is also a way to make sure we got the proper file name for the real test later on. 40874 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40875 if test "x$test_shortpath" = x; then 40876 # Short path failed, file does not exist as specified. 40877 # Try adding .exe or .cmd 40878 if test -f "${new_path}.exe"; then 40879 input_to_shortpath="${new_path}.exe" 40880 elif test -f "${new_path}.cmd"; then 40881 input_to_shortpath="${new_path}.cmd" 40882 else 40883 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40884 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40885 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40886 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40887 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40888 fi 40889 else 40890 input_to_shortpath="$new_path" 40891 fi 40892 40893 # Call helper function which possibly converts this using DOS-style short mode. 40894 # If so, the updated path is stored in $new_path. 40895 new_path="$input_to_shortpath" 40896 40897 input_path="$input_to_shortpath" 40898 # Check if we need to convert this using DOS-style short mode. If the path 40899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40900 # take no chances and rewrite it. 40901 # Note: m4 eats our [], so we need to use [ and ] instead. 40902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40903 if test "x$has_forbidden_chars" != x; then 40904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40905 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40906 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40907 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40908 # Going to short mode and back again did indeed matter. Since short mode is 40909 # case insensitive, let's make it lowercase to improve readability. 40910 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40911 # Now convert it back to Unix-style (cygpath) 40912 input_path=`$CYGPATH -u "$shortmode_path"` 40913 new_path="$input_path" 40914 fi 40915 fi 40916 40917 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40918 if test "x$test_cygdrive_prefix" = x; then 40919 # As a simple fix, exclude /usr/bin since it's not a real path. 40920 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40921 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40922 # a path prefixed by /cygdrive for fixpath to work. 40923 new_path="$CYGWIN_ROOT_PATH$input_path" 40924 fi 40925 fi 40926 40927 # remove trailing .exe if any 40928 new_path="${new_path/%.exe/}" 40929 40930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40931 40932 # First separate the path from the arguments. This will split at the first 40933 # space. 40934 complete="$STRIP" 40935 path="${complete%% *}" 40936 tmp="$complete EOL" 40937 arguments="${tmp#* }" 40938 40939 # Input might be given as Windows format, start by converting to 40940 # unix format. 40941 new_path="$path" 40942 40943 windows_path="$new_path" 40944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40945 unix_path=`$CYGPATH -u "$windows_path"` 40946 new_path="$unix_path" 40947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40949 new_path="$unix_path" 40950 fi 40951 40952 40953 # Now try to locate executable using which 40954 new_path=`$WHICH "$new_path" 2> /dev/null` 40955 40956 if test "x$new_path" = x; then 40957 # Oops. Which didn't find the executable. 40958 # The splitting of arguments from the executable at a space might have been incorrect, 40959 # since paths with space are more likely in Windows. Give it another try with the whole 40960 # argument. 40961 path="$complete" 40962 arguments="EOL" 40963 new_path="$path" 40964 40965 windows_path="$new_path" 40966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40967 unix_path=`$CYGPATH -u "$windows_path"` 40968 new_path="$unix_path" 40969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40971 new_path="$unix_path" 40972 fi 40973 40974 40975 new_path=`$WHICH "$new_path" 2> /dev/null` 40976 # bat and cmd files are not always considered executable in MSYS causing which 40977 # to not find them 40978 if test "x$new_path" = x \ 40979 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40980 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40981 new_path="$path" 40982 40983 windows_path="$new_path" 40984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40985 unix_path=`$CYGPATH -u "$windows_path"` 40986 new_path="$unix_path" 40987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40989 new_path="$unix_path" 40990 fi 40991 40992 fi 40993 40994 if test "x$new_path" = x; then 40995 # It's still not found. Now this is an unrecoverable error. 40996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40997 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40998 has_space=`$ECHO "$complete" | $GREP " "` 40999 if test "x$has_space" != x; then 41000 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41001 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41002 fi 41003 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41004 fi 41005 fi 41006 41007 # Now new_path has a complete unix path to the binary 41008 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41009 # Keep paths in /bin as-is, but remove trailing .exe if any 41010 new_path="${new_path/%.exe/}" 41011 # Do not save /bin paths to all_fixpath_prefixes! 41012 else 41013 # Not in mixed or Windows style, start by that. 41014 new_path=`cmd //c echo $new_path` 41015 41016 input_path="$new_path" 41017 # Check if we need to convert this using DOS-style short mode. If the path 41018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41019 # take no chances and rewrite it. 41020 # Note: m4 eats our [], so we need to use [ and ] instead. 41021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41022 if test "x$has_forbidden_chars" != x; then 41023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41024 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41025 fi 41026 41027 # Output is in $new_path 41028 41029 windows_path="$new_path" 41030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41031 unix_path=`$CYGPATH -u "$windows_path"` 41032 new_path="$unix_path" 41033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41035 new_path="$unix_path" 41036 fi 41037 41038 # remove trailing .exe if any 41039 new_path="${new_path/%.exe/}" 41040 41041 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41042 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41043 fi 41044 41045 else 41046 # We're on a unix platform. Hooray! :) 41047 # First separate the path from the arguments. This will split at the first 41048 # space. 41049 complete="$STRIP" 41050 path="${complete%% *}" 41051 tmp="$complete EOL" 41052 arguments="${tmp#* }" 41053 41054 # Cannot rely on the command "which" here since it doesn't always work. 41055 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41056 if test -z "$is_absolute_path"; then 41057 # Path to executable is not absolute. Find it. 41058 IFS_save="$IFS" 41059 IFS=: 41060 for p in $PATH; do 41061 if test -f "$p/$path" && test -x "$p/$path"; then 41062 new_path="$p/$path" 41063 break 41064 fi 41065 done 41066 IFS="$IFS_save" 41067 else 41068 # This is an absolute path, we can use it without further modifications. 41069 new_path="$path" 41070 fi 41071 41072 if test "x$new_path" = x; then 41073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41074 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41075 has_space=`$ECHO "$complete" | $GREP " "` 41076 if test "x$has_space" != x; then 41077 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41078 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41079 fi 41080 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41081 fi 41082 fi 41083 41084 # Now join together the path and the arguments once again 41085 if test "x$arguments" != xEOL; then 41086 new_complete="$new_path ${arguments% *}" 41087 else 41088 new_complete="$new_path" 41089 fi 41090 41091 if test "x$complete" != "x$new_complete"; then 41092 STRIP="$new_complete" 41093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41094 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41095 fi 41096 fi 41097 41098 41099 41100 # Publish this variable in the help. 41101 41102 41103 if [ -z "${NM+x}" ]; then 41104 # The variable is not set by user, try to locate tool using the code snippet 41105 for ac_prog in nm 41106 do 41107 # Extract the first word of "$ac_prog", so it can be a program name with args. 41108 set dummy $ac_prog; ac_word=$2 41109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41110 $as_echo_n "checking for $ac_word... " >&6; } 41111 if ${ac_cv_path_NM+:} false; then : 41112 $as_echo_n "(cached) " >&6 41113 else 41114 case $NM in 41115 [\\/]* | ?:[\\/]*) 41116 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41117 ;; 41118 *) 41119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41120 for as_dir in $PATH 41121 do 41122 IFS=$as_save_IFS 41123 test -z "$as_dir" && as_dir=. 41124 for ac_exec_ext in '' $ac_executable_extensions; do 41125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41126 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41128 break 2 41129 fi 41130 done 41131 done 41132 IFS=$as_save_IFS 41133 41134 ;; 41135 esac 41136 fi 41137 NM=$ac_cv_path_NM 41138 if test -n "$NM"; then 41139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41140 $as_echo "$NM" >&6; } 41141 else 41142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41143 $as_echo "no" >&6; } 41144 fi 41145 41146 41147 test -n "$NM" && break 41148 done 41149 41150 else 41151 # The variable is set, but is it from the command line or the environment? 41152 41153 # Try to remove the string !NM! from our list. 41154 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41155 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41156 # If it failed, the variable was not from the command line. Ignore it, 41157 # but warn the user (except for BASH, which is always set by the calling BASH). 41158 if test "xNM" != xBASH; then 41159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41160 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41161 fi 41162 # Try to locate tool using the code snippet 41163 for ac_prog in nm 41164 do 41165 # Extract the first word of "$ac_prog", so it can be a program name with args. 41166 set dummy $ac_prog; ac_word=$2 41167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41168 $as_echo_n "checking for $ac_word... " >&6; } 41169 if ${ac_cv_path_NM+:} false; then : 41170 $as_echo_n "(cached) " >&6 41171 else 41172 case $NM in 41173 [\\/]* | ?:[\\/]*) 41174 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41175 ;; 41176 *) 41177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41178 for as_dir in $PATH 41179 do 41180 IFS=$as_save_IFS 41181 test -z "$as_dir" && as_dir=. 41182 for ac_exec_ext in '' $ac_executable_extensions; do 41183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41184 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41186 break 2 41187 fi 41188 done 41189 done 41190 IFS=$as_save_IFS 41191 41192 ;; 41193 esac 41194 fi 41195 NM=$ac_cv_path_NM 41196 if test -n "$NM"; then 41197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41198 $as_echo "$NM" >&6; } 41199 else 41200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41201 $as_echo "no" >&6; } 41202 fi 41203 41204 41205 test -n "$NM" && break 41206 done 41207 41208 else 41209 # If it succeeded, then it was overridden by the user. We will use it 41210 # for the tool. 41211 41212 # First remove it from the list of overridden variables, so we can test 41213 # for unknown variables in the end. 41214 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41215 41216 # Check if we try to supply an empty value 41217 if test "x$NM" = x; then 41218 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41219 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41221 $as_echo_n "checking for NM... " >&6; } 41222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41223 $as_echo "disabled" >&6; } 41224 else 41225 # Check if the provided tool contains a complete path. 41226 tool_specified="$NM" 41227 tool_basename="${tool_specified##*/}" 41228 if test "x$tool_basename" = "x$tool_specified"; then 41229 # A command without a complete path is provided, search $PATH. 41230 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41231 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41232 # Extract the first word of "$tool_basename", so it can be a program name with args. 41233 set dummy $tool_basename; ac_word=$2 41234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41235 $as_echo_n "checking for $ac_word... " >&6; } 41236 if ${ac_cv_path_NM+:} false; then : 41237 $as_echo_n "(cached) " >&6 41238 else 41239 case $NM in 41240 [\\/]* | ?:[\\/]*) 41241 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41242 ;; 41243 *) 41244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41245 for as_dir in $PATH 41246 do 41247 IFS=$as_save_IFS 41248 test -z "$as_dir" && as_dir=. 41249 for ac_exec_ext in '' $ac_executable_extensions; do 41250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41251 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41253 break 2 41254 fi 41255 done 41256 done 41257 IFS=$as_save_IFS 41258 41259 ;; 41260 esac 41261 fi 41262 NM=$ac_cv_path_NM 41263 if test -n "$NM"; then 41264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41265 $as_echo "$NM" >&6; } 41266 else 41267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41268 $as_echo "no" >&6; } 41269 fi 41270 41271 41272 if test "x$NM" = x; then 41273 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41274 fi 41275 else 41276 # Otherwise we believe it is a complete path. Use it as it is. 41277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41278 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41280 $as_echo_n "checking for NM... " >&6; } 41281 if test ! -x "$tool_specified"; then 41282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41283 $as_echo "not found" >&6; } 41284 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41285 fi 41286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41287 $as_echo "$tool_specified" >&6; } 41288 fi 41289 fi 41290 fi 41291 41292 fi 41293 41294 41295 41296 # Only process if variable expands to non-empty 41297 41298 if test "x$NM" != x; then 41299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41300 41301 # First separate the path from the arguments. This will split at the first 41302 # space. 41303 complete="$NM" 41304 path="${complete%% *}" 41305 tmp="$complete EOL" 41306 arguments="${tmp#* }" 41307 41308 # Input might be given as Windows format, start by converting to 41309 # unix format. 41310 new_path=`$CYGPATH -u "$path"` 41311 41312 # Now try to locate executable using which 41313 new_path=`$WHICH "$new_path" 2> /dev/null` 41314 # bat and cmd files are not always considered executable in cygwin causing which 41315 # to not find them 41316 if test "x$new_path" = x \ 41317 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41318 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41319 new_path=`$CYGPATH -u "$path"` 41320 fi 41321 if test "x$new_path" = x; then 41322 # Oops. Which didn't find the executable. 41323 # The splitting of arguments from the executable at a space might have been incorrect, 41324 # since paths with space are more likely in Windows. Give it another try with the whole 41325 # argument. 41326 path="$complete" 41327 arguments="EOL" 41328 new_path=`$CYGPATH -u "$path"` 41329 new_path=`$WHICH "$new_path" 2> /dev/null` 41330 # bat and cmd files are not always considered executable in cygwin causing which 41331 # to not find them 41332 if test "x$new_path" = x \ 41333 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41334 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41335 new_path=`$CYGPATH -u "$path"` 41336 fi 41337 if test "x$new_path" = x; then 41338 # It's still not found. Now this is an unrecoverable error. 41339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41340 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41341 has_space=`$ECHO "$complete" | $GREP " "` 41342 if test "x$has_space" != x; then 41343 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41344 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41345 fi 41346 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41347 fi 41348 fi 41349 41350 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41351 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41352 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41353 # "foo.exe" is OK but "foo" is an error. 41354 # 41355 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41356 # It is also a way to make sure we got the proper file name for the real test later on. 41357 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41358 if test "x$test_shortpath" = x; then 41359 # Short path failed, file does not exist as specified. 41360 # Try adding .exe or .cmd 41361 if test -f "${new_path}.exe"; then 41362 input_to_shortpath="${new_path}.exe" 41363 elif test -f "${new_path}.cmd"; then 41364 input_to_shortpath="${new_path}.cmd" 41365 else 41366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 41367 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 41368 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41369 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41370 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41371 fi 41372 else 41373 input_to_shortpath="$new_path" 41374 fi 41375 41376 # Call helper function which possibly converts this using DOS-style short mode. 41377 # If so, the updated path is stored in $new_path. 41378 new_path="$input_to_shortpath" 41379 41380 input_path="$input_to_shortpath" 41381 # Check if we need to convert this using DOS-style short mode. If the path 41382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41383 # take no chances and rewrite it. 41384 # Note: m4 eats our [], so we need to use [ and ] instead. 41385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41386 if test "x$has_forbidden_chars" != x; then 41387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41388 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41389 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41390 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41391 # Going to short mode and back again did indeed matter. Since short mode is 41392 # case insensitive, let's make it lowercase to improve readability. 41393 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41394 # Now convert it back to Unix-style (cygpath) 41395 input_path=`$CYGPATH -u "$shortmode_path"` 41396 new_path="$input_path" 41397 fi 41398 fi 41399 41400 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41401 if test "x$test_cygdrive_prefix" = x; then 41402 # As a simple fix, exclude /usr/bin since it's not a real path. 41403 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41404 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41405 # a path prefixed by /cygdrive for fixpath to work. 41406 new_path="$CYGWIN_ROOT_PATH$input_path" 41407 fi 41408 fi 41409 41410 # remove trailing .exe if any 41411 new_path="${new_path/%.exe/}" 41412 41413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41414 41415 # First separate the path from the arguments. This will split at the first 41416 # space. 41417 complete="$NM" 41418 path="${complete%% *}" 41419 tmp="$complete EOL" 41420 arguments="${tmp#* }" 41421 41422 # Input might be given as Windows format, start by converting to 41423 # unix format. 41424 new_path="$path" 41425 41426 windows_path="$new_path" 41427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41428 unix_path=`$CYGPATH -u "$windows_path"` 41429 new_path="$unix_path" 41430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41432 new_path="$unix_path" 41433 fi 41434 41435 41436 # Now try to locate executable using which 41437 new_path=`$WHICH "$new_path" 2> /dev/null` 41438 41439 if test "x$new_path" = x; then 41440 # Oops. Which didn't find the executable. 41441 # The splitting of arguments from the executable at a space might have been incorrect, 41442 # since paths with space are more likely in Windows. Give it another try with the whole 41443 # argument. 41444 path="$complete" 41445 arguments="EOL" 41446 new_path="$path" 41447 41448 windows_path="$new_path" 41449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41450 unix_path=`$CYGPATH -u "$windows_path"` 41451 new_path="$unix_path" 41452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41454 new_path="$unix_path" 41455 fi 41456 41457 41458 new_path=`$WHICH "$new_path" 2> /dev/null` 41459 # bat and cmd files are not always considered executable in MSYS causing which 41460 # to not find them 41461 if test "x$new_path" = x \ 41462 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41463 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41464 new_path="$path" 41465 41466 windows_path="$new_path" 41467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41468 unix_path=`$CYGPATH -u "$windows_path"` 41469 new_path="$unix_path" 41470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41472 new_path="$unix_path" 41473 fi 41474 41475 fi 41476 41477 if test "x$new_path" = x; then 41478 # It's still not found. Now this is an unrecoverable error. 41479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41480 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41481 has_space=`$ECHO "$complete" | $GREP " "` 41482 if test "x$has_space" != x; then 41483 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41485 fi 41486 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41487 fi 41488 fi 41489 41490 # Now new_path has a complete unix path to the binary 41491 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41492 # Keep paths in /bin as-is, but remove trailing .exe if any 41493 new_path="${new_path/%.exe/}" 41494 # Do not save /bin paths to all_fixpath_prefixes! 41495 else 41496 # Not in mixed or Windows style, start by that. 41497 new_path=`cmd //c echo $new_path` 41498 41499 input_path="$new_path" 41500 # Check if we need to convert this using DOS-style short mode. If the path 41501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41502 # take no chances and rewrite it. 41503 # Note: m4 eats our [], so we need to use [ and ] instead. 41504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41505 if test "x$has_forbidden_chars" != x; then 41506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41508 fi 41509 41510 # Output is in $new_path 41511 41512 windows_path="$new_path" 41513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41514 unix_path=`$CYGPATH -u "$windows_path"` 41515 new_path="$unix_path" 41516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41518 new_path="$unix_path" 41519 fi 41520 41521 # remove trailing .exe if any 41522 new_path="${new_path/%.exe/}" 41523 41524 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41525 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41526 fi 41527 41528 else 41529 # We're on a unix platform. Hooray! :) 41530 # First separate the path from the arguments. This will split at the first 41531 # space. 41532 complete="$NM" 41533 path="${complete%% *}" 41534 tmp="$complete EOL" 41535 arguments="${tmp#* }" 41536 41537 # Cannot rely on the command "which" here since it doesn't always work. 41538 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41539 if test -z "$is_absolute_path"; then 41540 # Path to executable is not absolute. Find it. 41541 IFS_save="$IFS" 41542 IFS=: 41543 for p in $PATH; do 41544 if test -f "$p/$path" && test -x "$p/$path"; then 41545 new_path="$p/$path" 41546 break 41547 fi 41548 done 41549 IFS="$IFS_save" 41550 else 41551 # This is an absolute path, we can use it without further modifications. 41552 new_path="$path" 41553 fi 41554 41555 if test "x$new_path" = x; then 41556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41557 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41558 has_space=`$ECHO "$complete" | $GREP " "` 41559 if test "x$has_space" != x; then 41560 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41561 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41562 fi 41563 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41564 fi 41565 fi 41566 41567 # Now join together the path and the arguments once again 41568 if test "x$arguments" != xEOL; then 41569 new_complete="$new_path ${arguments% *}" 41570 else 41571 new_complete="$new_path" 41572 fi 41573 41574 if test "x$complete" != "x$new_complete"; then 41575 NM="$new_complete" 41576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41577 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41578 fi 41579 fi 41580 41581 41582 41583 # Publish this variable in the help. 41584 41585 41586 if [ -z "${GNM+x}" ]; then 41587 # The variable is not set by user, try to locate tool using the code snippet 41588 for ac_prog in gnm 41589 do 41590 # Extract the first word of "$ac_prog", so it can be a program name with args. 41591 set dummy $ac_prog; ac_word=$2 41592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41593 $as_echo_n "checking for $ac_word... " >&6; } 41594 if ${ac_cv_path_GNM+:} false; then : 41595 $as_echo_n "(cached) " >&6 41596 else 41597 case $GNM in 41598 [\\/]* | ?:[\\/]*) 41599 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41600 ;; 41601 *) 41602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41603 for as_dir in $PATH 41604 do 41605 IFS=$as_save_IFS 41606 test -z "$as_dir" && as_dir=. 41607 for ac_exec_ext in '' $ac_executable_extensions; do 41608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41609 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41611 break 2 41612 fi 41613 done 41614 done 41615 IFS=$as_save_IFS 41616 41617 ;; 41618 esac 41619 fi 41620 GNM=$ac_cv_path_GNM 41621 if test -n "$GNM"; then 41622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41623 $as_echo "$GNM" >&6; } 41624 else 41625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41626 $as_echo "no" >&6; } 41627 fi 41628 41629 41630 test -n "$GNM" && break 41631 done 41632 41633 else 41634 # The variable is set, but is it from the command line or the environment? 41635 41636 # Try to remove the string !GNM! from our list. 41637 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 41638 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41639 # If it failed, the variable was not from the command line. Ignore it, 41640 # but warn the user (except for BASH, which is always set by the calling BASH). 41641 if test "xGNM" != xBASH; then 41642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 41643 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 41644 fi 41645 # Try to locate tool using the code snippet 41646 for ac_prog in gnm 41647 do 41648 # Extract the first word of "$ac_prog", so it can be a program name with args. 41649 set dummy $ac_prog; ac_word=$2 41650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41651 $as_echo_n "checking for $ac_word... " >&6; } 41652 if ${ac_cv_path_GNM+:} false; then : 41653 $as_echo_n "(cached) " >&6 41654 else 41655 case $GNM in 41656 [\\/]* | ?:[\\/]*) 41657 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41658 ;; 41659 *) 41660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41661 for as_dir in $PATH 41662 do 41663 IFS=$as_save_IFS 41664 test -z "$as_dir" && as_dir=. 41665 for ac_exec_ext in '' $ac_executable_extensions; do 41666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41667 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41669 break 2 41670 fi 41671 done 41672 done 41673 IFS=$as_save_IFS 41674 41675 ;; 41676 esac 41677 fi 41678 GNM=$ac_cv_path_GNM 41679 if test -n "$GNM"; then 41680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41681 $as_echo "$GNM" >&6; } 41682 else 41683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41684 $as_echo "no" >&6; } 41685 fi 41686 41687 41688 test -n "$GNM" && break 41689 done 41690 41691 else 41692 # If it succeeded, then it was overridden by the user. We will use it 41693 # for the tool. 41694 41695 # First remove it from the list of overridden variables, so we can test 41696 # for unknown variables in the end. 41697 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41698 41699 # Check if we try to supply an empty value 41700 if test "x$GNM" = x; then 41701 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 41702 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 41703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41704 $as_echo_n "checking for GNM... " >&6; } 41705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41706 $as_echo "disabled" >&6; } 41707 else 41708 # Check if the provided tool contains a complete path. 41709 tool_specified="$GNM" 41710 tool_basename="${tool_specified##*/}" 41711 if test "x$tool_basename" = "x$tool_specified"; then 41712 # A command without a complete path is provided, search $PATH. 41713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 41714 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 41715 # Extract the first word of "$tool_basename", so it can be a program name with args. 41716 set dummy $tool_basename; ac_word=$2 41717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41718 $as_echo_n "checking for $ac_word... " >&6; } 41719 if ${ac_cv_path_GNM+:} false; then : 41720 $as_echo_n "(cached) " >&6 41721 else 41722 case $GNM in 41723 [\\/]* | ?:[\\/]*) 41724 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41725 ;; 41726 *) 41727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41728 for as_dir in $PATH 41729 do 41730 IFS=$as_save_IFS 41731 test -z "$as_dir" && as_dir=. 41732 for ac_exec_ext in '' $ac_executable_extensions; do 41733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41734 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41736 break 2 41737 fi 41738 done 41739 done 41740 IFS=$as_save_IFS 41741 41742 ;; 41743 esac 41744 fi 41745 GNM=$ac_cv_path_GNM 41746 if test -n "$GNM"; then 41747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41748 $as_echo "$GNM" >&6; } 41749 else 41750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41751 $as_echo "no" >&6; } 41752 fi 41753 41754 41755 if test "x$GNM" = x; then 41756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41757 fi 41758 else 41759 # Otherwise we believe it is a complete path. Use it as it is. 41760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 41761 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 41762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41763 $as_echo_n "checking for GNM... " >&6; } 41764 if test ! -x "$tool_specified"; then 41765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41766 $as_echo "not found" >&6; } 41767 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 41768 fi 41769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41770 $as_echo "$tool_specified" >&6; } 41771 fi 41772 fi 41773 fi 41774 41775 fi 41776 41777 41778 41779 # Only process if variable expands to non-empty 41780 41781 if test "x$GNM" != x; then 41782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41783 41784 # First separate the path from the arguments. This will split at the first 41785 # space. 41786 complete="$GNM" 41787 path="${complete%% *}" 41788 tmp="$complete EOL" 41789 arguments="${tmp#* }" 41790 41791 # Input might be given as Windows format, start by converting to 41792 # unix format. 41793 new_path=`$CYGPATH -u "$path"` 41794 41795 # Now try to locate executable using which 41796 new_path=`$WHICH "$new_path" 2> /dev/null` 41797 # bat and cmd files are not always considered executable in cygwin causing which 41798 # to not find them 41799 if test "x$new_path" = x \ 41800 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41801 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41802 new_path=`$CYGPATH -u "$path"` 41803 fi 41804 if test "x$new_path" = x; then 41805 # Oops. Which didn't find the executable. 41806 # The splitting of arguments from the executable at a space might have been incorrect, 41807 # since paths with space are more likely in Windows. Give it another try with the whole 41808 # argument. 41809 path="$complete" 41810 arguments="EOL" 41811 new_path=`$CYGPATH -u "$path"` 41812 new_path=`$WHICH "$new_path" 2> /dev/null` 41813 # bat and cmd files are not always considered executable in cygwin causing which 41814 # to not find them 41815 if test "x$new_path" = x \ 41816 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41817 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41818 new_path=`$CYGPATH -u "$path"` 41819 fi 41820 if test "x$new_path" = x; then 41821 # It's still not found. Now this is an unrecoverable error. 41822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41823 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41824 has_space=`$ECHO "$complete" | $GREP " "` 41825 if test "x$has_space" != x; then 41826 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41827 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41828 fi 41829 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41830 fi 41831 fi 41832 41833 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41834 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41835 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41836 # "foo.exe" is OK but "foo" is an error. 41837 # 41838 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41839 # It is also a way to make sure we got the proper file name for the real test later on. 41840 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41841 if test "x$test_shortpath" = x; then 41842 # Short path failed, file does not exist as specified. 41843 # Try adding .exe or .cmd 41844 if test -f "${new_path}.exe"; then 41845 input_to_shortpath="${new_path}.exe" 41846 elif test -f "${new_path}.cmd"; then 41847 input_to_shortpath="${new_path}.cmd" 41848 else 41849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 41850 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 41851 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41852 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41853 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41854 fi 41855 else 41856 input_to_shortpath="$new_path" 41857 fi 41858 41859 # Call helper function which possibly converts this using DOS-style short mode. 41860 # If so, the updated path is stored in $new_path. 41861 new_path="$input_to_shortpath" 41862 41863 input_path="$input_to_shortpath" 41864 # Check if we need to convert this using DOS-style short mode. If the path 41865 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41866 # take no chances and rewrite it. 41867 # Note: m4 eats our [], so we need to use [ and ] instead. 41868 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41869 if test "x$has_forbidden_chars" != x; then 41870 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41871 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41872 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41873 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41874 # Going to short mode and back again did indeed matter. Since short mode is 41875 # case insensitive, let's make it lowercase to improve readability. 41876 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41877 # Now convert it back to Unix-style (cygpath) 41878 input_path=`$CYGPATH -u "$shortmode_path"` 41879 new_path="$input_path" 41880 fi 41881 fi 41882 41883 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41884 if test "x$test_cygdrive_prefix" = x; then 41885 # As a simple fix, exclude /usr/bin since it's not a real path. 41886 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41887 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41888 # a path prefixed by /cygdrive for fixpath to work. 41889 new_path="$CYGWIN_ROOT_PATH$input_path" 41890 fi 41891 fi 41892 41893 # remove trailing .exe if any 41894 new_path="${new_path/%.exe/}" 41895 41896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41897 41898 # First separate the path from the arguments. This will split at the first 41899 # space. 41900 complete="$GNM" 41901 path="${complete%% *}" 41902 tmp="$complete EOL" 41903 arguments="${tmp#* }" 41904 41905 # Input might be given as Windows format, start by converting to 41906 # unix format. 41907 new_path="$path" 41908 41909 windows_path="$new_path" 41910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41911 unix_path=`$CYGPATH -u "$windows_path"` 41912 new_path="$unix_path" 41913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41915 new_path="$unix_path" 41916 fi 41917 41918 41919 # Now try to locate executable using which 41920 new_path=`$WHICH "$new_path" 2> /dev/null` 41921 41922 if test "x$new_path" = x; then 41923 # Oops. Which didn't find the executable. 41924 # The splitting of arguments from the executable at a space might have been incorrect, 41925 # since paths with space are more likely in Windows. Give it another try with the whole 41926 # argument. 41927 path="$complete" 41928 arguments="EOL" 41929 new_path="$path" 41930 41931 windows_path="$new_path" 41932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41933 unix_path=`$CYGPATH -u "$windows_path"` 41934 new_path="$unix_path" 41935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41937 new_path="$unix_path" 41938 fi 41939 41940 41941 new_path=`$WHICH "$new_path" 2> /dev/null` 41942 # bat and cmd files are not always considered executable in MSYS causing which 41943 # to not find them 41944 if test "x$new_path" = x \ 41945 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41946 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41947 new_path="$path" 41948 41949 windows_path="$new_path" 41950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41951 unix_path=`$CYGPATH -u "$windows_path"` 41952 new_path="$unix_path" 41953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41955 new_path="$unix_path" 41956 fi 41957 41958 fi 41959 41960 if test "x$new_path" = x; then 41961 # It's still not found. Now this is an unrecoverable error. 41962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41963 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41964 has_space=`$ECHO "$complete" | $GREP " "` 41965 if test "x$has_space" != x; then 41966 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41967 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41968 fi 41969 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41970 fi 41971 fi 41972 41973 # Now new_path has a complete unix path to the binary 41974 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41975 # Keep paths in /bin as-is, but remove trailing .exe if any 41976 new_path="${new_path/%.exe/}" 41977 # Do not save /bin paths to all_fixpath_prefixes! 41978 else 41979 # Not in mixed or Windows style, start by that. 41980 new_path=`cmd //c echo $new_path` 41981 41982 input_path="$new_path" 41983 # Check if we need to convert this using DOS-style short mode. If the path 41984 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41985 # take no chances and rewrite it. 41986 # Note: m4 eats our [], so we need to use [ and ] instead. 41987 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41988 if test "x$has_forbidden_chars" != x; then 41989 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41990 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41991 fi 41992 41993 # Output is in $new_path 41994 41995 windows_path="$new_path" 41996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41997 unix_path=`$CYGPATH -u "$windows_path"` 41998 new_path="$unix_path" 41999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42001 new_path="$unix_path" 42002 fi 42003 42004 # remove trailing .exe if any 42005 new_path="${new_path/%.exe/}" 42006 42007 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42008 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42009 fi 42010 42011 else 42012 # We're on a unix platform. Hooray! :) 42013 # First separate the path from the arguments. This will split at the first 42014 # space. 42015 complete="$GNM" 42016 path="${complete%% *}" 42017 tmp="$complete EOL" 42018 arguments="${tmp#* }" 42019 42020 # Cannot rely on the command "which" here since it doesn't always work. 42021 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42022 if test -z "$is_absolute_path"; then 42023 # Path to executable is not absolute. Find it. 42024 IFS_save="$IFS" 42025 IFS=: 42026 for p in $PATH; do 42027 if test -f "$p/$path" && test -x "$p/$path"; then 42028 new_path="$p/$path" 42029 break 42030 fi 42031 done 42032 IFS="$IFS_save" 42033 else 42034 # This is an absolute path, we can use it without further modifications. 42035 new_path="$path" 42036 fi 42037 42038 if test "x$new_path" = x; then 42039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42040 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42041 has_space=`$ECHO "$complete" | $GREP " "` 42042 if test "x$has_space" != x; then 42043 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42044 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42045 fi 42046 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42047 fi 42048 fi 42049 42050 # Now join together the path and the arguments once again 42051 if test "x$arguments" != xEOL; then 42052 new_complete="$new_path ${arguments% *}" 42053 else 42054 new_complete="$new_path" 42055 fi 42056 42057 if test "x$complete" != "x$new_complete"; then 42058 GNM="$new_complete" 42059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42060 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42061 fi 42062 fi 42063 42064 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42065 # FIXME: we should unify this with the solaris case above. 42066 42067 42068 # Publish this variable in the help. 42069 42070 42071 if [ -z "${STRIP+x}" ]; then 42072 # The variable is not set by user, try to locate tool using the code snippet 42073 if test -n "$ac_tool_prefix"; then 42074 for ac_prog in strip 42075 do 42076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42079 $as_echo_n "checking for $ac_word... " >&6; } 42080 if ${ac_cv_prog_STRIP+:} false; then : 42081 $as_echo_n "(cached) " >&6 42082 else 42083 if test -n "$STRIP"; then 42084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42085 else 42086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42087 for as_dir in $PATH 42088 do 42089 IFS=$as_save_IFS 42090 test -z "$as_dir" && as_dir=. 42091 for ac_exec_ext in '' $ac_executable_extensions; do 42092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42093 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42095 break 2 42096 fi 42097 done 42098 done 42099 IFS=$as_save_IFS 42100 42101 fi 42102 fi 42103 STRIP=$ac_cv_prog_STRIP 42104 if test -n "$STRIP"; then 42105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42106 $as_echo "$STRIP" >&6; } 42107 else 42108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42109 $as_echo "no" >&6; } 42110 fi 42111 42112 42113 test -n "$STRIP" && break 42114 done 42115 fi 42116 if test -z "$STRIP"; then 42117 ac_ct_STRIP=$STRIP 42118 for ac_prog in strip 42119 do 42120 # Extract the first word of "$ac_prog", so it can be a program name with args. 42121 set dummy $ac_prog; ac_word=$2 42122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42123 $as_echo_n "checking for $ac_word... " >&6; } 42124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42125 $as_echo_n "(cached) " >&6 42126 else 42127 if test -n "$ac_ct_STRIP"; then 42128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42129 else 42130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42131 for as_dir in $PATH 42132 do 42133 IFS=$as_save_IFS 42134 test -z "$as_dir" && as_dir=. 42135 for ac_exec_ext in '' $ac_executable_extensions; do 42136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42137 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42139 break 2 42140 fi 42141 done 42142 done 42143 IFS=$as_save_IFS 42144 42145 fi 42146 fi 42147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42148 if test -n "$ac_ct_STRIP"; then 42149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42150 $as_echo "$ac_ct_STRIP" >&6; } 42151 else 42152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42153 $as_echo "no" >&6; } 42154 fi 42155 42156 42157 test -n "$ac_ct_STRIP" && break 42158 done 42159 42160 if test "x$ac_ct_STRIP" = x; then 42161 STRIP="" 42162 else 42163 case $cross_compiling:$ac_tool_warned in 42164 yes:) 42165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42167 ac_tool_warned=yes ;; 42168 esac 42169 STRIP=$ac_ct_STRIP 42170 fi 42171 fi 42172 42173 else 42174 # The variable is set, but is it from the command line or the environment? 42175 42176 # Try to remove the string !STRIP! from our list. 42177 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 42178 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42179 # If it failed, the variable was not from the command line. Ignore it, 42180 # but warn the user (except for BASH, which is always set by the calling BASH). 42181 if test "xSTRIP" != xBASH; then 42182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 42183 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 42184 fi 42185 # Try to locate tool using the code snippet 42186 if test -n "$ac_tool_prefix"; then 42187 for ac_prog in strip 42188 do 42189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42192 $as_echo_n "checking for $ac_word... " >&6; } 42193 if ${ac_cv_prog_STRIP+:} false; then : 42194 $as_echo_n "(cached) " >&6 42195 else 42196 if test -n "$STRIP"; then 42197 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42198 else 42199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42200 for as_dir in $PATH 42201 do 42202 IFS=$as_save_IFS 42203 test -z "$as_dir" && as_dir=. 42204 for ac_exec_ext in '' $ac_executable_extensions; do 42205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42206 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42208 break 2 42209 fi 42210 done 42211 done 42212 IFS=$as_save_IFS 42213 42214 fi 42215 fi 42216 STRIP=$ac_cv_prog_STRIP 42217 if test -n "$STRIP"; then 42218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42219 $as_echo "$STRIP" >&6; } 42220 else 42221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42222 $as_echo "no" >&6; } 42223 fi 42224 42225 42226 test -n "$STRIP" && break 42227 done 42228 fi 42229 if test -z "$STRIP"; then 42230 ac_ct_STRIP=$STRIP 42231 for ac_prog in strip 42232 do 42233 # Extract the first word of "$ac_prog", so it can be a program name with args. 42234 set dummy $ac_prog; ac_word=$2 42235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42236 $as_echo_n "checking for $ac_word... " >&6; } 42237 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42238 $as_echo_n "(cached) " >&6 42239 else 42240 if test -n "$ac_ct_STRIP"; then 42241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42242 else 42243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42244 for as_dir in $PATH 42245 do 42246 IFS=$as_save_IFS 42247 test -z "$as_dir" && as_dir=. 42248 for ac_exec_ext in '' $ac_executable_extensions; do 42249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42250 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42252 break 2 42253 fi 42254 done 42255 done 42256 IFS=$as_save_IFS 42257 42258 fi 42259 fi 42260 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42261 if test -n "$ac_ct_STRIP"; then 42262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42263 $as_echo "$ac_ct_STRIP" >&6; } 42264 else 42265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42266 $as_echo "no" >&6; } 42267 fi 42268 42269 42270 test -n "$ac_ct_STRIP" && break 42271 done 42272 42273 if test "x$ac_ct_STRIP" = x; then 42274 STRIP="" 42275 else 42276 case $cross_compiling:$ac_tool_warned in 42277 yes:) 42278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42280 ac_tool_warned=yes ;; 42281 esac 42282 STRIP=$ac_ct_STRIP 42283 fi 42284 fi 42285 42286 else 42287 # If it succeeded, then it was overridden by the user. We will use it 42288 # for the tool. 42289 42290 # First remove it from the list of overridden variables, so we can test 42291 # for unknown variables in the end. 42292 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42293 42294 # Check if we try to supply an empty value 42295 if test "x$STRIP" = x; then 42296 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 42297 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 42298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42299 $as_echo_n "checking for STRIP... " >&6; } 42300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42301 $as_echo "disabled" >&6; } 42302 else 42303 # Check if the provided tool contains a complete path. 42304 tool_specified="$STRIP" 42305 tool_basename="${tool_specified##*/}" 42306 if test "x$tool_basename" = "x$tool_specified"; then 42307 # A command without a complete path is provided, search $PATH. 42308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 42309 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 42310 # Extract the first word of "$tool_basename", so it can be a program name with args. 42311 set dummy $tool_basename; ac_word=$2 42312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42313 $as_echo_n "checking for $ac_word... " >&6; } 42314 if ${ac_cv_path_STRIP+:} false; then : 42315 $as_echo_n "(cached) " >&6 42316 else 42317 case $STRIP in 42318 [\\/]* | ?:[\\/]*) 42319 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 42320 ;; 42321 *) 42322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42323 for as_dir in $PATH 42324 do 42325 IFS=$as_save_IFS 42326 test -z "$as_dir" && as_dir=. 42327 for ac_exec_ext in '' $ac_executable_extensions; do 42328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42329 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 42330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42331 break 2 42332 fi 42333 done 42334 done 42335 IFS=$as_save_IFS 42336 42337 ;; 42338 esac 42339 fi 42340 STRIP=$ac_cv_path_STRIP 42341 if test -n "$STRIP"; then 42342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42343 $as_echo "$STRIP" >&6; } 42344 else 42345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42346 $as_echo "no" >&6; } 42347 fi 42348 42349 42350 if test "x$STRIP" = x; then 42351 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42352 fi 42353 else 42354 # Otherwise we believe it is a complete path. Use it as it is. 42355 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 42356 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 42357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42358 $as_echo_n "checking for STRIP... " >&6; } 42359 if test ! -x "$tool_specified"; then 42360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42361 $as_echo "not found" >&6; } 42362 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 42363 fi 42364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42365 $as_echo "$tool_specified" >&6; } 42366 fi 42367 fi 42368 fi 42369 42370 fi 42371 42372 42373 42374 # Only process if variable expands to non-empty 42375 42376 if test "x$STRIP" != x; then 42377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42378 42379 # First separate the path from the arguments. This will split at the first 42380 # space. 42381 complete="$STRIP" 42382 path="${complete%% *}" 42383 tmp="$complete EOL" 42384 arguments="${tmp#* }" 42385 42386 # Input might be given as Windows format, start by converting to 42387 # unix format. 42388 new_path=`$CYGPATH -u "$path"` 42389 42390 # Now try to locate executable using which 42391 new_path=`$WHICH "$new_path" 2> /dev/null` 42392 # bat and cmd files are not always considered executable in cygwin causing which 42393 # to not find them 42394 if test "x$new_path" = x \ 42395 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42396 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42397 new_path=`$CYGPATH -u "$path"` 42398 fi 42399 if test "x$new_path" = x; then 42400 # Oops. Which didn't find the executable. 42401 # The splitting of arguments from the executable at a space might have been incorrect, 42402 # since paths with space are more likely in Windows. Give it another try with the whole 42403 # argument. 42404 path="$complete" 42405 arguments="EOL" 42406 new_path=`$CYGPATH -u "$path"` 42407 new_path=`$WHICH "$new_path" 2> /dev/null` 42408 # bat and cmd files are not always considered executable in cygwin causing which 42409 # to not find them 42410 if test "x$new_path" = x \ 42411 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42412 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42413 new_path=`$CYGPATH -u "$path"` 42414 fi 42415 if test "x$new_path" = x; then 42416 # It's still not found. Now this is an unrecoverable error. 42417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42418 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42419 has_space=`$ECHO "$complete" | $GREP " "` 42420 if test "x$has_space" != x; then 42421 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42422 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42423 fi 42424 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42425 fi 42426 fi 42427 42428 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42429 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42430 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42431 # "foo.exe" is OK but "foo" is an error. 42432 # 42433 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42434 # It is also a way to make sure we got the proper file name for the real test later on. 42435 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42436 if test "x$test_shortpath" = x; then 42437 # Short path failed, file does not exist as specified. 42438 # Try adding .exe or .cmd 42439 if test -f "${new_path}.exe"; then 42440 input_to_shortpath="${new_path}.exe" 42441 elif test -f "${new_path}.cmd"; then 42442 input_to_shortpath="${new_path}.cmd" 42443 else 42444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 42445 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 42446 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42447 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42448 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42449 fi 42450 else 42451 input_to_shortpath="$new_path" 42452 fi 42453 42454 # Call helper function which possibly converts this using DOS-style short mode. 42455 # If so, the updated path is stored in $new_path. 42456 new_path="$input_to_shortpath" 42457 42458 input_path="$input_to_shortpath" 42459 # Check if we need to convert this using DOS-style short mode. If the path 42460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42461 # take no chances and rewrite it. 42462 # Note: m4 eats our [], so we need to use [ and ] instead. 42463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42464 if test "x$has_forbidden_chars" != x; then 42465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42466 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42467 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42468 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42469 # Going to short mode and back again did indeed matter. Since short mode is 42470 # case insensitive, let's make it lowercase to improve readability. 42471 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42472 # Now convert it back to Unix-style (cygpath) 42473 input_path=`$CYGPATH -u "$shortmode_path"` 42474 new_path="$input_path" 42475 fi 42476 fi 42477 42478 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42479 if test "x$test_cygdrive_prefix" = x; then 42480 # As a simple fix, exclude /usr/bin since it's not a real path. 42481 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42482 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42483 # a path prefixed by /cygdrive for fixpath to work. 42484 new_path="$CYGWIN_ROOT_PATH$input_path" 42485 fi 42486 fi 42487 42488 # remove trailing .exe if any 42489 new_path="${new_path/%.exe/}" 42490 42491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42492 42493 # First separate the path from the arguments. This will split at the first 42494 # space. 42495 complete="$STRIP" 42496 path="${complete%% *}" 42497 tmp="$complete EOL" 42498 arguments="${tmp#* }" 42499 42500 # Input might be given as Windows format, start by converting to 42501 # unix format. 42502 new_path="$path" 42503 42504 windows_path="$new_path" 42505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42506 unix_path=`$CYGPATH -u "$windows_path"` 42507 new_path="$unix_path" 42508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42510 new_path="$unix_path" 42511 fi 42512 42513 42514 # Now try to locate executable using which 42515 new_path=`$WHICH "$new_path" 2> /dev/null` 42516 42517 if test "x$new_path" = x; then 42518 # Oops. Which didn't find the executable. 42519 # The splitting of arguments from the executable at a space might have been incorrect, 42520 # since paths with space are more likely in Windows. Give it another try with the whole 42521 # argument. 42522 path="$complete" 42523 arguments="EOL" 42524 new_path="$path" 42525 42526 windows_path="$new_path" 42527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42528 unix_path=`$CYGPATH -u "$windows_path"` 42529 new_path="$unix_path" 42530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42532 new_path="$unix_path" 42533 fi 42534 42535 42536 new_path=`$WHICH "$new_path" 2> /dev/null` 42537 # bat and cmd files are not always considered executable in MSYS causing which 42538 # to not find them 42539 if test "x$new_path" = x \ 42540 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42541 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42542 new_path="$path" 42543 42544 windows_path="$new_path" 42545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42546 unix_path=`$CYGPATH -u "$windows_path"` 42547 new_path="$unix_path" 42548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42550 new_path="$unix_path" 42551 fi 42552 42553 fi 42554 42555 if test "x$new_path" = x; then 42556 # It's still not found. Now this is an unrecoverable error. 42557 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42558 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42559 has_space=`$ECHO "$complete" | $GREP " "` 42560 if test "x$has_space" != x; then 42561 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42562 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42563 fi 42564 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42565 fi 42566 fi 42567 42568 # Now new_path has a complete unix path to the binary 42569 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42570 # Keep paths in /bin as-is, but remove trailing .exe if any 42571 new_path="${new_path/%.exe/}" 42572 # Do not save /bin paths to all_fixpath_prefixes! 42573 else 42574 # Not in mixed or Windows style, start by that. 42575 new_path=`cmd //c echo $new_path` 42576 42577 input_path="$new_path" 42578 # Check if we need to convert this using DOS-style short mode. If the path 42579 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42580 # take no chances and rewrite it. 42581 # Note: m4 eats our [], so we need to use [ and ] instead. 42582 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42583 if test "x$has_forbidden_chars" != x; then 42584 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42585 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42586 fi 42587 42588 # Output is in $new_path 42589 42590 windows_path="$new_path" 42591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42592 unix_path=`$CYGPATH -u "$windows_path"` 42593 new_path="$unix_path" 42594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42595 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42596 new_path="$unix_path" 42597 fi 42598 42599 # remove trailing .exe if any 42600 new_path="${new_path/%.exe/}" 42601 42602 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42603 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42604 fi 42605 42606 else 42607 # We're on a unix platform. Hooray! :) 42608 # First separate the path from the arguments. This will split at the first 42609 # space. 42610 complete="$STRIP" 42611 path="${complete%% *}" 42612 tmp="$complete EOL" 42613 arguments="${tmp#* }" 42614 42615 # Cannot rely on the command "which" here since it doesn't always work. 42616 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42617 if test -z "$is_absolute_path"; then 42618 # Path to executable is not absolute. Find it. 42619 IFS_save="$IFS" 42620 IFS=: 42621 for p in $PATH; do 42622 if test -f "$p/$path" && test -x "$p/$path"; then 42623 new_path="$p/$path" 42624 break 42625 fi 42626 done 42627 IFS="$IFS_save" 42628 else 42629 # This is an absolute path, we can use it without further modifications. 42630 new_path="$path" 42631 fi 42632 42633 if test "x$new_path" = x; then 42634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42635 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42636 has_space=`$ECHO "$complete" | $GREP " "` 42637 if test "x$has_space" != x; then 42638 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42639 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42640 fi 42641 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42642 fi 42643 fi 42644 42645 # Now join together the path and the arguments once again 42646 if test "x$arguments" != xEOL; then 42647 new_complete="$new_path ${arguments% *}" 42648 else 42649 new_complete="$new_path" 42650 fi 42651 42652 if test "x$complete" != "x$new_complete"; then 42653 STRIP="$new_complete" 42654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 42655 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 42656 fi 42657 fi 42658 42659 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42660 42661 42662 # Publish this variable in the help. 42663 42664 42665 if [ -z "${NM+x}" ]; then 42666 # The variable is not set by user, try to locate tool using the code snippet 42667 if test -n "$ac_tool_prefix"; then 42668 for ac_prog in nm gcc-nm 42669 do 42670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42673 $as_echo_n "checking for $ac_word... " >&6; } 42674 if ${ac_cv_prog_NM+:} false; then : 42675 $as_echo_n "(cached) " >&6 42676 else 42677 if test -n "$NM"; then 42678 ac_cv_prog_NM="$NM" # Let the user override the test. 42679 else 42680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42681 for as_dir in $PATH 42682 do 42683 IFS=$as_save_IFS 42684 test -z "$as_dir" && as_dir=. 42685 for ac_exec_ext in '' $ac_executable_extensions; do 42686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42687 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42689 break 2 42690 fi 42691 done 42692 done 42693 IFS=$as_save_IFS 42694 42695 fi 42696 fi 42697 NM=$ac_cv_prog_NM 42698 if test -n "$NM"; then 42699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42700 $as_echo "$NM" >&6; } 42701 else 42702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42703 $as_echo "no" >&6; } 42704 fi 42705 42706 42707 test -n "$NM" && break 42708 done 42709 fi 42710 if test -z "$NM"; then 42711 ac_ct_NM=$NM 42712 for ac_prog in nm gcc-nm 42713 do 42714 # Extract the first word of "$ac_prog", so it can be a program name with args. 42715 set dummy $ac_prog; ac_word=$2 42716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42717 $as_echo_n "checking for $ac_word... " >&6; } 42718 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42719 $as_echo_n "(cached) " >&6 42720 else 42721 if test -n "$ac_ct_NM"; then 42722 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42723 else 42724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42725 for as_dir in $PATH 42726 do 42727 IFS=$as_save_IFS 42728 test -z "$as_dir" && as_dir=. 42729 for ac_exec_ext in '' $ac_executable_extensions; do 42730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42731 ac_cv_prog_ac_ct_NM="$ac_prog" 42732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42733 break 2 42734 fi 42735 done 42736 done 42737 IFS=$as_save_IFS 42738 42739 fi 42740 fi 42741 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42742 if test -n "$ac_ct_NM"; then 42743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42744 $as_echo "$ac_ct_NM" >&6; } 42745 else 42746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42747 $as_echo "no" >&6; } 42748 fi 42749 42750 42751 test -n "$ac_ct_NM" && break 42752 done 42753 42754 if test "x$ac_ct_NM" = x; then 42755 NM="" 42756 else 42757 case $cross_compiling:$ac_tool_warned in 42758 yes:) 42759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42761 ac_tool_warned=yes ;; 42762 esac 42763 NM=$ac_ct_NM 42764 fi 42765 fi 42766 42767 else 42768 # The variable is set, but is it from the command line or the environment? 42769 42770 # Try to remove the string !NM! from our list. 42771 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42772 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42773 # If it failed, the variable was not from the command line. Ignore it, 42774 # but warn the user (except for BASH, which is always set by the calling BASH). 42775 if test "xNM" != xBASH; then 42776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42777 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42778 fi 42779 # Try to locate tool using the code snippet 42780 if test -n "$ac_tool_prefix"; then 42781 for ac_prog in nm gcc-nm 42782 do 42783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42786 $as_echo_n "checking for $ac_word... " >&6; } 42787 if ${ac_cv_prog_NM+:} false; then : 42788 $as_echo_n "(cached) " >&6 42789 else 42790 if test -n "$NM"; then 42791 ac_cv_prog_NM="$NM" # Let the user override the test. 42792 else 42793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42794 for as_dir in $PATH 42795 do 42796 IFS=$as_save_IFS 42797 test -z "$as_dir" && as_dir=. 42798 for ac_exec_ext in '' $ac_executable_extensions; do 42799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42800 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42802 break 2 42803 fi 42804 done 42805 done 42806 IFS=$as_save_IFS 42807 42808 fi 42809 fi 42810 NM=$ac_cv_prog_NM 42811 if test -n "$NM"; then 42812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42813 $as_echo "$NM" >&6; } 42814 else 42815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42816 $as_echo "no" >&6; } 42817 fi 42818 42819 42820 test -n "$NM" && break 42821 done 42822 fi 42823 if test -z "$NM"; then 42824 ac_ct_NM=$NM 42825 for ac_prog in nm gcc-nm 42826 do 42827 # Extract the first word of "$ac_prog", so it can be a program name with args. 42828 set dummy $ac_prog; ac_word=$2 42829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42830 $as_echo_n "checking for $ac_word... " >&6; } 42831 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42832 $as_echo_n "(cached) " >&6 42833 else 42834 if test -n "$ac_ct_NM"; then 42835 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42836 else 42837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42838 for as_dir in $PATH 42839 do 42840 IFS=$as_save_IFS 42841 test -z "$as_dir" && as_dir=. 42842 for ac_exec_ext in '' $ac_executable_extensions; do 42843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42844 ac_cv_prog_ac_ct_NM="$ac_prog" 42845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42846 break 2 42847 fi 42848 done 42849 done 42850 IFS=$as_save_IFS 42851 42852 fi 42853 fi 42854 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42855 if test -n "$ac_ct_NM"; then 42856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42857 $as_echo "$ac_ct_NM" >&6; } 42858 else 42859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42860 $as_echo "no" >&6; } 42861 fi 42862 42863 42864 test -n "$ac_ct_NM" && break 42865 done 42866 42867 if test "x$ac_ct_NM" = x; then 42868 NM="" 42869 else 42870 case $cross_compiling:$ac_tool_warned in 42871 yes:) 42872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42874 ac_tool_warned=yes ;; 42875 esac 42876 NM=$ac_ct_NM 42877 fi 42878 fi 42879 42880 else 42881 # If it succeeded, then it was overridden by the user. We will use it 42882 # for the tool. 42883 42884 # First remove it from the list of overridden variables, so we can test 42885 # for unknown variables in the end. 42886 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42887 42888 # Check if we try to supply an empty value 42889 if test "x$NM" = x; then 42890 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42891 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42893 $as_echo_n "checking for NM... " >&6; } 42894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42895 $as_echo "disabled" >&6; } 42896 else 42897 # Check if the provided tool contains a complete path. 42898 tool_specified="$NM" 42899 tool_basename="${tool_specified##*/}" 42900 if test "x$tool_basename" = "x$tool_specified"; then 42901 # A command without a complete path is provided, search $PATH. 42902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42903 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42904 # Extract the first word of "$tool_basename", so it can be a program name with args. 42905 set dummy $tool_basename; ac_word=$2 42906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42907 $as_echo_n "checking for $ac_word... " >&6; } 42908 if ${ac_cv_path_NM+:} false; then : 42909 $as_echo_n "(cached) " >&6 42910 else 42911 case $NM in 42912 [\\/]* | ?:[\\/]*) 42913 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42914 ;; 42915 *) 42916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42917 for as_dir in $PATH 42918 do 42919 IFS=$as_save_IFS 42920 test -z "$as_dir" && as_dir=. 42921 for ac_exec_ext in '' $ac_executable_extensions; do 42922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42923 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42925 break 2 42926 fi 42927 done 42928 done 42929 IFS=$as_save_IFS 42930 42931 ;; 42932 esac 42933 fi 42934 NM=$ac_cv_path_NM 42935 if test -n "$NM"; then 42936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42937 $as_echo "$NM" >&6; } 42938 else 42939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42940 $as_echo "no" >&6; } 42941 fi 42942 42943 42944 if test "x$NM" = x; then 42945 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42946 fi 42947 else 42948 # Otherwise we believe it is a complete path. Use it as it is. 42949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42950 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42952 $as_echo_n "checking for NM... " >&6; } 42953 if test ! -x "$tool_specified"; then 42954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42955 $as_echo "not found" >&6; } 42956 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42957 fi 42958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42959 $as_echo "$tool_specified" >&6; } 42960 fi 42961 fi 42962 fi 42963 42964 fi 42965 42966 42967 else 42968 42969 42970 # Publish this variable in the help. 42971 42972 42973 if [ -z "${NM+x}" ]; then 42974 # The variable is not set by user, try to locate tool using the code snippet 42975 if test -n "$ac_tool_prefix"; then 42976 for ac_prog in nm 42977 do 42978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42981 $as_echo_n "checking for $ac_word... " >&6; } 42982 if ${ac_cv_prog_NM+:} false; then : 42983 $as_echo_n "(cached) " >&6 42984 else 42985 if test -n "$NM"; then 42986 ac_cv_prog_NM="$NM" # Let the user override the test. 42987 else 42988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42989 for as_dir in $PATH 42990 do 42991 IFS=$as_save_IFS 42992 test -z "$as_dir" && as_dir=. 42993 for ac_exec_ext in '' $ac_executable_extensions; do 42994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42995 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42997 break 2 42998 fi 42999 done 43000 done 43001 IFS=$as_save_IFS 43002 43003 fi 43004 fi 43005 NM=$ac_cv_prog_NM 43006 if test -n "$NM"; then 43007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43008 $as_echo "$NM" >&6; } 43009 else 43010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43011 $as_echo "no" >&6; } 43012 fi 43013 43014 43015 test -n "$NM" && break 43016 done 43017 fi 43018 if test -z "$NM"; then 43019 ac_ct_NM=$NM 43020 for ac_prog in nm 43021 do 43022 # Extract the first word of "$ac_prog", so it can be a program name with args. 43023 set dummy $ac_prog; ac_word=$2 43024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43025 $as_echo_n "checking for $ac_word... " >&6; } 43026 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43027 $as_echo_n "(cached) " >&6 43028 else 43029 if test -n "$ac_ct_NM"; then 43030 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43031 else 43032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43033 for as_dir in $PATH 43034 do 43035 IFS=$as_save_IFS 43036 test -z "$as_dir" && as_dir=. 43037 for ac_exec_ext in '' $ac_executable_extensions; do 43038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43039 ac_cv_prog_ac_ct_NM="$ac_prog" 43040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43041 break 2 43042 fi 43043 done 43044 done 43045 IFS=$as_save_IFS 43046 43047 fi 43048 fi 43049 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43050 if test -n "$ac_ct_NM"; then 43051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43052 $as_echo "$ac_ct_NM" >&6; } 43053 else 43054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43055 $as_echo "no" >&6; } 43056 fi 43057 43058 43059 test -n "$ac_ct_NM" && break 43060 done 43061 43062 if test "x$ac_ct_NM" = x; then 43063 NM="" 43064 else 43065 case $cross_compiling:$ac_tool_warned in 43066 yes:) 43067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43069 ac_tool_warned=yes ;; 43070 esac 43071 NM=$ac_ct_NM 43072 fi 43073 fi 43074 43075 else 43076 # The variable is set, but is it from the command line or the environment? 43077 43078 # Try to remove the string !NM! from our list. 43079 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43080 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43081 # If it failed, the variable was not from the command line. Ignore it, 43082 # but warn the user (except for BASH, which is always set by the calling BASH). 43083 if test "xNM" != xBASH; then 43084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43085 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43086 fi 43087 # Try to locate tool using the code snippet 43088 if test -n "$ac_tool_prefix"; then 43089 for ac_prog in nm 43090 do 43091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43094 $as_echo_n "checking for $ac_word... " >&6; } 43095 if ${ac_cv_prog_NM+:} false; then : 43096 $as_echo_n "(cached) " >&6 43097 else 43098 if test -n "$NM"; then 43099 ac_cv_prog_NM="$NM" # Let the user override the test. 43100 else 43101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43102 for as_dir in $PATH 43103 do 43104 IFS=$as_save_IFS 43105 test -z "$as_dir" && as_dir=. 43106 for ac_exec_ext in '' $ac_executable_extensions; do 43107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43108 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43110 break 2 43111 fi 43112 done 43113 done 43114 IFS=$as_save_IFS 43115 43116 fi 43117 fi 43118 NM=$ac_cv_prog_NM 43119 if test -n "$NM"; then 43120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43121 $as_echo "$NM" >&6; } 43122 else 43123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43124 $as_echo "no" >&6; } 43125 fi 43126 43127 43128 test -n "$NM" && break 43129 done 43130 fi 43131 if test -z "$NM"; then 43132 ac_ct_NM=$NM 43133 for ac_prog in nm 43134 do 43135 # Extract the first word of "$ac_prog", so it can be a program name with args. 43136 set dummy $ac_prog; ac_word=$2 43137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43138 $as_echo_n "checking for $ac_word... " >&6; } 43139 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43140 $as_echo_n "(cached) " >&6 43141 else 43142 if test -n "$ac_ct_NM"; then 43143 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43144 else 43145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43146 for as_dir in $PATH 43147 do 43148 IFS=$as_save_IFS 43149 test -z "$as_dir" && as_dir=. 43150 for ac_exec_ext in '' $ac_executable_extensions; do 43151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43152 ac_cv_prog_ac_ct_NM="$ac_prog" 43153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43154 break 2 43155 fi 43156 done 43157 done 43158 IFS=$as_save_IFS 43159 43160 fi 43161 fi 43162 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43163 if test -n "$ac_ct_NM"; then 43164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43165 $as_echo "$ac_ct_NM" >&6; } 43166 else 43167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43168 $as_echo "no" >&6; } 43169 fi 43170 43171 43172 test -n "$ac_ct_NM" && break 43173 done 43174 43175 if test "x$ac_ct_NM" = x; then 43176 NM="" 43177 else 43178 case $cross_compiling:$ac_tool_warned in 43179 yes:) 43180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43182 ac_tool_warned=yes ;; 43183 esac 43184 NM=$ac_ct_NM 43185 fi 43186 fi 43187 43188 else 43189 # If it succeeded, then it was overridden by the user. We will use it 43190 # for the tool. 43191 43192 # First remove it from the list of overridden variables, so we can test 43193 # for unknown variables in the end. 43194 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43195 43196 # Check if we try to supply an empty value 43197 if test "x$NM" = x; then 43198 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43199 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43201 $as_echo_n "checking for NM... " >&6; } 43202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43203 $as_echo "disabled" >&6; } 43204 else 43205 # Check if the provided tool contains a complete path. 43206 tool_specified="$NM" 43207 tool_basename="${tool_specified##*/}" 43208 if test "x$tool_basename" = "x$tool_specified"; then 43209 # A command without a complete path is provided, search $PATH. 43210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43211 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43212 # Extract the first word of "$tool_basename", so it can be a program name with args. 43213 set dummy $tool_basename; ac_word=$2 43214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43215 $as_echo_n "checking for $ac_word... " >&6; } 43216 if ${ac_cv_path_NM+:} false; then : 43217 $as_echo_n "(cached) " >&6 43218 else 43219 case $NM in 43220 [\\/]* | ?:[\\/]*) 43221 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43222 ;; 43223 *) 43224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43225 for as_dir in $PATH 43226 do 43227 IFS=$as_save_IFS 43228 test -z "$as_dir" && as_dir=. 43229 for ac_exec_ext in '' $ac_executable_extensions; do 43230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43231 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43233 break 2 43234 fi 43235 done 43236 done 43237 IFS=$as_save_IFS 43238 43239 ;; 43240 esac 43241 fi 43242 NM=$ac_cv_path_NM 43243 if test -n "$NM"; then 43244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43245 $as_echo "$NM" >&6; } 43246 else 43247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43248 $as_echo "no" >&6; } 43249 fi 43250 43251 43252 if test "x$NM" = x; then 43253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43254 fi 43255 else 43256 # Otherwise we believe it is a complete path. Use it as it is. 43257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43258 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43260 $as_echo_n "checking for NM... " >&6; } 43261 if test ! -x "$tool_specified"; then 43262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43263 $as_echo "not found" >&6; } 43264 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43265 fi 43266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43267 $as_echo "$tool_specified" >&6; } 43268 fi 43269 fi 43270 fi 43271 43272 fi 43273 43274 43275 fi 43276 43277 # Only process if variable expands to non-empty 43278 43279 if test "x$NM" != x; then 43280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43281 43282 # First separate the path from the arguments. This will split at the first 43283 # space. 43284 complete="$NM" 43285 path="${complete%% *}" 43286 tmp="$complete EOL" 43287 arguments="${tmp#* }" 43288 43289 # Input might be given as Windows format, start by converting to 43290 # unix format. 43291 new_path=`$CYGPATH -u "$path"` 43292 43293 # Now try to locate executable using which 43294 new_path=`$WHICH "$new_path" 2> /dev/null` 43295 # bat and cmd files are not always considered executable in cygwin causing which 43296 # to not find them 43297 if test "x$new_path" = x \ 43298 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43299 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43300 new_path=`$CYGPATH -u "$path"` 43301 fi 43302 if test "x$new_path" = x; then 43303 # Oops. Which didn't find the executable. 43304 # The splitting of arguments from the executable at a space might have been incorrect, 43305 # since paths with space are more likely in Windows. Give it another try with the whole 43306 # argument. 43307 path="$complete" 43308 arguments="EOL" 43309 new_path=`$CYGPATH -u "$path"` 43310 new_path=`$WHICH "$new_path" 2> /dev/null` 43311 # bat and cmd files are not always considered executable in cygwin causing which 43312 # to not find them 43313 if test "x$new_path" = x \ 43314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43316 new_path=`$CYGPATH -u "$path"` 43317 fi 43318 if test "x$new_path" = x; then 43319 # It's still not found. Now this is an unrecoverable error. 43320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43321 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43322 has_space=`$ECHO "$complete" | $GREP " "` 43323 if test "x$has_space" != x; then 43324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43326 fi 43327 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43328 fi 43329 fi 43330 43331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43334 # "foo.exe" is OK but "foo" is an error. 43335 # 43336 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43337 # It is also a way to make sure we got the proper file name for the real test later on. 43338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43339 if test "x$test_shortpath" = x; then 43340 # Short path failed, file does not exist as specified. 43341 # Try adding .exe or .cmd 43342 if test -f "${new_path}.exe"; then 43343 input_to_shortpath="${new_path}.exe" 43344 elif test -f "${new_path}.cmd"; then 43345 input_to_shortpath="${new_path}.cmd" 43346 else 43347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 43348 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 43349 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43350 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43351 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43352 fi 43353 else 43354 input_to_shortpath="$new_path" 43355 fi 43356 43357 # Call helper function which possibly converts this using DOS-style short mode. 43358 # If so, the updated path is stored in $new_path. 43359 new_path="$input_to_shortpath" 43360 43361 input_path="$input_to_shortpath" 43362 # Check if we need to convert this using DOS-style short mode. If the path 43363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43364 # take no chances and rewrite it. 43365 # Note: m4 eats our [], so we need to use [ and ] instead. 43366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43367 if test "x$has_forbidden_chars" != x; then 43368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43372 # Going to short mode and back again did indeed matter. Since short mode is 43373 # case insensitive, let's make it lowercase to improve readability. 43374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43375 # Now convert it back to Unix-style (cygpath) 43376 input_path=`$CYGPATH -u "$shortmode_path"` 43377 new_path="$input_path" 43378 fi 43379 fi 43380 43381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43382 if test "x$test_cygdrive_prefix" = x; then 43383 # As a simple fix, exclude /usr/bin since it's not a real path. 43384 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43386 # a path prefixed by /cygdrive for fixpath to work. 43387 new_path="$CYGWIN_ROOT_PATH$input_path" 43388 fi 43389 fi 43390 43391 # remove trailing .exe if any 43392 new_path="${new_path/%.exe/}" 43393 43394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43395 43396 # First separate the path from the arguments. This will split at the first 43397 # space. 43398 complete="$NM" 43399 path="${complete%% *}" 43400 tmp="$complete EOL" 43401 arguments="${tmp#* }" 43402 43403 # Input might be given as Windows format, start by converting to 43404 # unix format. 43405 new_path="$path" 43406 43407 windows_path="$new_path" 43408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43409 unix_path=`$CYGPATH -u "$windows_path"` 43410 new_path="$unix_path" 43411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43413 new_path="$unix_path" 43414 fi 43415 43416 43417 # Now try to locate executable using which 43418 new_path=`$WHICH "$new_path" 2> /dev/null` 43419 43420 if test "x$new_path" = x; then 43421 # Oops. Which didn't find the executable. 43422 # The splitting of arguments from the executable at a space might have been incorrect, 43423 # since paths with space are more likely in Windows. Give it another try with the whole 43424 # argument. 43425 path="$complete" 43426 arguments="EOL" 43427 new_path="$path" 43428 43429 windows_path="$new_path" 43430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43431 unix_path=`$CYGPATH -u "$windows_path"` 43432 new_path="$unix_path" 43433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43435 new_path="$unix_path" 43436 fi 43437 43438 43439 new_path=`$WHICH "$new_path" 2> /dev/null` 43440 # bat and cmd files are not always considered executable in MSYS causing which 43441 # to not find them 43442 if test "x$new_path" = x \ 43443 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43444 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43445 new_path="$path" 43446 43447 windows_path="$new_path" 43448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43449 unix_path=`$CYGPATH -u "$windows_path"` 43450 new_path="$unix_path" 43451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43453 new_path="$unix_path" 43454 fi 43455 43456 fi 43457 43458 if test "x$new_path" = x; then 43459 # It's still not found. Now this is an unrecoverable error. 43460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43461 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43462 has_space=`$ECHO "$complete" | $GREP " "` 43463 if test "x$has_space" != x; then 43464 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43465 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43466 fi 43467 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43468 fi 43469 fi 43470 43471 # Now new_path has a complete unix path to the binary 43472 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43473 # Keep paths in /bin as-is, but remove trailing .exe if any 43474 new_path="${new_path/%.exe/}" 43475 # Do not save /bin paths to all_fixpath_prefixes! 43476 else 43477 # Not in mixed or Windows style, start by that. 43478 new_path=`cmd //c echo $new_path` 43479 43480 input_path="$new_path" 43481 # Check if we need to convert this using DOS-style short mode. If the path 43482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43483 # take no chances and rewrite it. 43484 # Note: m4 eats our [], so we need to use [ and ] instead. 43485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43486 if test "x$has_forbidden_chars" != x; then 43487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43489 fi 43490 43491 # Output is in $new_path 43492 43493 windows_path="$new_path" 43494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43495 unix_path=`$CYGPATH -u "$windows_path"` 43496 new_path="$unix_path" 43497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43499 new_path="$unix_path" 43500 fi 43501 43502 # remove trailing .exe if any 43503 new_path="${new_path/%.exe/}" 43504 43505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43507 fi 43508 43509 else 43510 # We're on a unix platform. Hooray! :) 43511 # First separate the path from the arguments. This will split at the first 43512 # space. 43513 complete="$NM" 43514 path="${complete%% *}" 43515 tmp="$complete EOL" 43516 arguments="${tmp#* }" 43517 43518 # Cannot rely on the command "which" here since it doesn't always work. 43519 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43520 if test -z "$is_absolute_path"; then 43521 # Path to executable is not absolute. Find it. 43522 IFS_save="$IFS" 43523 IFS=: 43524 for p in $PATH; do 43525 if test -f "$p/$path" && test -x "$p/$path"; then 43526 new_path="$p/$path" 43527 break 43528 fi 43529 done 43530 IFS="$IFS_save" 43531 else 43532 # This is an absolute path, we can use it without further modifications. 43533 new_path="$path" 43534 fi 43535 43536 if test "x$new_path" = x; then 43537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43538 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43539 has_space=`$ECHO "$complete" | $GREP " "` 43540 if test "x$has_space" != x; then 43541 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43542 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43543 fi 43544 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43545 fi 43546 fi 43547 43548 # Now join together the path and the arguments once again 43549 if test "x$arguments" != xEOL; then 43550 new_complete="$new_path ${arguments% *}" 43551 else 43552 new_complete="$new_path" 43553 fi 43554 43555 if test "x$complete" != "x$new_complete"; then 43556 NM="$new_complete" 43557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 43558 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 43559 fi 43560 fi 43561 43562 GNM="$NM" 43563 43564 fi 43565 43566 # objcopy is used for moving debug symbols to separate files when 43567 # full debug symbols are enabled. 43568 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43569 43570 43571 # Publish this variable in the help. 43572 43573 43574 if [ -z "${OBJCOPY+x}" ]; then 43575 # The variable is not set by user, try to locate tool using the code snippet 43576 if test -n "$ac_tool_prefix"; then 43577 for ac_prog in gobjcopy objcopy 43578 do 43579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43582 $as_echo_n "checking for $ac_word... " >&6; } 43583 if ${ac_cv_prog_OBJCOPY+:} false; then : 43584 $as_echo_n "(cached) " >&6 43585 else 43586 if test -n "$OBJCOPY"; then 43587 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43588 else 43589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43590 for as_dir in $PATH 43591 do 43592 IFS=$as_save_IFS 43593 test -z "$as_dir" && as_dir=. 43594 for ac_exec_ext in '' $ac_executable_extensions; do 43595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43596 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43598 break 2 43599 fi 43600 done 43601 done 43602 IFS=$as_save_IFS 43603 43604 fi 43605 fi 43606 OBJCOPY=$ac_cv_prog_OBJCOPY 43607 if test -n "$OBJCOPY"; then 43608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43609 $as_echo "$OBJCOPY" >&6; } 43610 else 43611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43612 $as_echo "no" >&6; } 43613 fi 43614 43615 43616 test -n "$OBJCOPY" && break 43617 done 43618 fi 43619 if test -z "$OBJCOPY"; then 43620 ac_ct_OBJCOPY=$OBJCOPY 43621 for ac_prog in gobjcopy objcopy 43622 do 43623 # Extract the first word of "$ac_prog", so it can be a program name with args. 43624 set dummy $ac_prog; ac_word=$2 43625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43626 $as_echo_n "checking for $ac_word... " >&6; } 43627 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43628 $as_echo_n "(cached) " >&6 43629 else 43630 if test -n "$ac_ct_OBJCOPY"; then 43631 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43632 else 43633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43634 for as_dir in $PATH 43635 do 43636 IFS=$as_save_IFS 43637 test -z "$as_dir" && as_dir=. 43638 for ac_exec_ext in '' $ac_executable_extensions; do 43639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43640 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43642 break 2 43643 fi 43644 done 43645 done 43646 IFS=$as_save_IFS 43647 43648 fi 43649 fi 43650 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43651 if test -n "$ac_ct_OBJCOPY"; then 43652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43653 $as_echo "$ac_ct_OBJCOPY" >&6; } 43654 else 43655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43656 $as_echo "no" >&6; } 43657 fi 43658 43659 43660 test -n "$ac_ct_OBJCOPY" && break 43661 done 43662 43663 if test "x$ac_ct_OBJCOPY" = x; then 43664 OBJCOPY="" 43665 else 43666 case $cross_compiling:$ac_tool_warned in 43667 yes:) 43668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43670 ac_tool_warned=yes ;; 43671 esac 43672 OBJCOPY=$ac_ct_OBJCOPY 43673 fi 43674 fi 43675 43676 else 43677 # The variable is set, but is it from the command line or the environment? 43678 43679 # Try to remove the string !OBJCOPY! from our list. 43680 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 43681 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43682 # If it failed, the variable was not from the command line. Ignore it, 43683 # but warn the user (except for BASH, which is always set by the calling BASH). 43684 if test "xOBJCOPY" != xBASH; then 43685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 43686 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 43687 fi 43688 # Try to locate tool using the code snippet 43689 if test -n "$ac_tool_prefix"; then 43690 for ac_prog in gobjcopy objcopy 43691 do 43692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43695 $as_echo_n "checking for $ac_word... " >&6; } 43696 if ${ac_cv_prog_OBJCOPY+:} false; then : 43697 $as_echo_n "(cached) " >&6 43698 else 43699 if test -n "$OBJCOPY"; then 43700 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43701 else 43702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43703 for as_dir in $PATH 43704 do 43705 IFS=$as_save_IFS 43706 test -z "$as_dir" && as_dir=. 43707 for ac_exec_ext in '' $ac_executable_extensions; do 43708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43709 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43711 break 2 43712 fi 43713 done 43714 done 43715 IFS=$as_save_IFS 43716 43717 fi 43718 fi 43719 OBJCOPY=$ac_cv_prog_OBJCOPY 43720 if test -n "$OBJCOPY"; then 43721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43722 $as_echo "$OBJCOPY" >&6; } 43723 else 43724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43725 $as_echo "no" >&6; } 43726 fi 43727 43728 43729 test -n "$OBJCOPY" && break 43730 done 43731 fi 43732 if test -z "$OBJCOPY"; then 43733 ac_ct_OBJCOPY=$OBJCOPY 43734 for ac_prog in gobjcopy objcopy 43735 do 43736 # Extract the first word of "$ac_prog", so it can be a program name with args. 43737 set dummy $ac_prog; ac_word=$2 43738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43739 $as_echo_n "checking for $ac_word... " >&6; } 43740 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43741 $as_echo_n "(cached) " >&6 43742 else 43743 if test -n "$ac_ct_OBJCOPY"; then 43744 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43745 else 43746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43747 for as_dir in $PATH 43748 do 43749 IFS=$as_save_IFS 43750 test -z "$as_dir" && as_dir=. 43751 for ac_exec_ext in '' $ac_executable_extensions; do 43752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43753 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43755 break 2 43756 fi 43757 done 43758 done 43759 IFS=$as_save_IFS 43760 43761 fi 43762 fi 43763 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43764 if test -n "$ac_ct_OBJCOPY"; then 43765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43766 $as_echo "$ac_ct_OBJCOPY" >&6; } 43767 else 43768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43769 $as_echo "no" >&6; } 43770 fi 43771 43772 43773 test -n "$ac_ct_OBJCOPY" && break 43774 done 43775 43776 if test "x$ac_ct_OBJCOPY" = x; then 43777 OBJCOPY="" 43778 else 43779 case $cross_compiling:$ac_tool_warned in 43780 yes:) 43781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43783 ac_tool_warned=yes ;; 43784 esac 43785 OBJCOPY=$ac_ct_OBJCOPY 43786 fi 43787 fi 43788 43789 else 43790 # If it succeeded, then it was overridden by the user. We will use it 43791 # for the tool. 43792 43793 # First remove it from the list of overridden variables, so we can test 43794 # for unknown variables in the end. 43795 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43796 43797 # Check if we try to supply an empty value 43798 if test "x$OBJCOPY" = x; then 43799 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 43800 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 43801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43802 $as_echo_n "checking for OBJCOPY... " >&6; } 43803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43804 $as_echo "disabled" >&6; } 43805 else 43806 # Check if the provided tool contains a complete path. 43807 tool_specified="$OBJCOPY" 43808 tool_basename="${tool_specified##*/}" 43809 if test "x$tool_basename" = "x$tool_specified"; then 43810 # A command without a complete path is provided, search $PATH. 43811 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 43812 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 43813 # Extract the first word of "$tool_basename", so it can be a program name with args. 43814 set dummy $tool_basename; ac_word=$2 43815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43816 $as_echo_n "checking for $ac_word... " >&6; } 43817 if ${ac_cv_path_OBJCOPY+:} false; then : 43818 $as_echo_n "(cached) " >&6 43819 else 43820 case $OBJCOPY in 43821 [\\/]* | ?:[\\/]*) 43822 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 43823 ;; 43824 *) 43825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43826 for as_dir in $PATH 43827 do 43828 IFS=$as_save_IFS 43829 test -z "$as_dir" && as_dir=. 43830 for ac_exec_ext in '' $ac_executable_extensions; do 43831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43832 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 43833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43834 break 2 43835 fi 43836 done 43837 done 43838 IFS=$as_save_IFS 43839 43840 ;; 43841 esac 43842 fi 43843 OBJCOPY=$ac_cv_path_OBJCOPY 43844 if test -n "$OBJCOPY"; then 43845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43846 $as_echo "$OBJCOPY" >&6; } 43847 else 43848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43849 $as_echo "no" >&6; } 43850 fi 43851 43852 43853 if test "x$OBJCOPY" = x; then 43854 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43855 fi 43856 else 43857 # Otherwise we believe it is a complete path. Use it as it is. 43858 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 43859 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 43860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43861 $as_echo_n "checking for OBJCOPY... " >&6; } 43862 if test ! -x "$tool_specified"; then 43863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43864 $as_echo "not found" >&6; } 43865 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 43866 fi 43867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43868 $as_echo "$tool_specified" >&6; } 43869 fi 43870 fi 43871 fi 43872 43873 fi 43874 43875 43876 # Only call fixup if objcopy was found. 43877 if test -n "$OBJCOPY"; then 43878 43879 # Only process if variable expands to non-empty 43880 43881 if test "x$OBJCOPY" != x; then 43882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43883 43884 # First separate the path from the arguments. This will split at the first 43885 # space. 43886 complete="$OBJCOPY" 43887 path="${complete%% *}" 43888 tmp="$complete EOL" 43889 arguments="${tmp#* }" 43890 43891 # Input might be given as Windows format, start by converting to 43892 # unix format. 43893 new_path=`$CYGPATH -u "$path"` 43894 43895 # Now try to locate executable using which 43896 new_path=`$WHICH "$new_path" 2> /dev/null` 43897 # bat and cmd files are not always considered executable in cygwin causing which 43898 # to not find them 43899 if test "x$new_path" = x \ 43900 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43901 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43902 new_path=`$CYGPATH -u "$path"` 43903 fi 43904 if test "x$new_path" = x; then 43905 # Oops. Which didn't find the executable. 43906 # The splitting of arguments from the executable at a space might have been incorrect, 43907 # since paths with space are more likely in Windows. Give it another try with the whole 43908 # argument. 43909 path="$complete" 43910 arguments="EOL" 43911 new_path=`$CYGPATH -u "$path"` 43912 new_path=`$WHICH "$new_path" 2> /dev/null` 43913 # bat and cmd files are not always considered executable in cygwin causing which 43914 # to not find them 43915 if test "x$new_path" = x \ 43916 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43917 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43918 new_path=`$CYGPATH -u "$path"` 43919 fi 43920 if test "x$new_path" = x; then 43921 # It's still not found. Now this is an unrecoverable error. 43922 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43923 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43924 has_space=`$ECHO "$complete" | $GREP " "` 43925 if test "x$has_space" != x; then 43926 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43927 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43928 fi 43929 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43930 fi 43931 fi 43932 43933 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43934 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43935 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43936 # "foo.exe" is OK but "foo" is an error. 43937 # 43938 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43939 # It is also a way to make sure we got the proper file name for the real test later on. 43940 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43941 if test "x$test_shortpath" = x; then 43942 # Short path failed, file does not exist as specified. 43943 # Try adding .exe or .cmd 43944 if test -f "${new_path}.exe"; then 43945 input_to_shortpath="${new_path}.exe" 43946 elif test -f "${new_path}.cmd"; then 43947 input_to_shortpath="${new_path}.cmd" 43948 else 43949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 43950 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 43951 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43952 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43953 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43954 fi 43955 else 43956 input_to_shortpath="$new_path" 43957 fi 43958 43959 # Call helper function which possibly converts this using DOS-style short mode. 43960 # If so, the updated path is stored in $new_path. 43961 new_path="$input_to_shortpath" 43962 43963 input_path="$input_to_shortpath" 43964 # Check if we need to convert this using DOS-style short mode. If the path 43965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43966 # take no chances and rewrite it. 43967 # Note: m4 eats our [], so we need to use [ and ] instead. 43968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43969 if test "x$has_forbidden_chars" != x; then 43970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43971 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43972 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43973 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43974 # Going to short mode and back again did indeed matter. Since short mode is 43975 # case insensitive, let's make it lowercase to improve readability. 43976 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43977 # Now convert it back to Unix-style (cygpath) 43978 input_path=`$CYGPATH -u "$shortmode_path"` 43979 new_path="$input_path" 43980 fi 43981 fi 43982 43983 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43984 if test "x$test_cygdrive_prefix" = x; then 43985 # As a simple fix, exclude /usr/bin since it's not a real path. 43986 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43987 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43988 # a path prefixed by /cygdrive for fixpath to work. 43989 new_path="$CYGWIN_ROOT_PATH$input_path" 43990 fi 43991 fi 43992 43993 # remove trailing .exe if any 43994 new_path="${new_path/%.exe/}" 43995 43996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43997 43998 # First separate the path from the arguments. This will split at the first 43999 # space. 44000 complete="$OBJCOPY" 44001 path="${complete%% *}" 44002 tmp="$complete EOL" 44003 arguments="${tmp#* }" 44004 44005 # Input might be given as Windows format, start by converting to 44006 # unix format. 44007 new_path="$path" 44008 44009 windows_path="$new_path" 44010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44011 unix_path=`$CYGPATH -u "$windows_path"` 44012 new_path="$unix_path" 44013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44015 new_path="$unix_path" 44016 fi 44017 44018 44019 # Now try to locate executable using which 44020 new_path=`$WHICH "$new_path" 2> /dev/null` 44021 44022 if test "x$new_path" = x; then 44023 # Oops. Which didn't find the executable. 44024 # The splitting of arguments from the executable at a space might have been incorrect, 44025 # since paths with space are more likely in Windows. Give it another try with the whole 44026 # argument. 44027 path="$complete" 44028 arguments="EOL" 44029 new_path="$path" 44030 44031 windows_path="$new_path" 44032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44033 unix_path=`$CYGPATH -u "$windows_path"` 44034 new_path="$unix_path" 44035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44037 new_path="$unix_path" 44038 fi 44039 44040 44041 new_path=`$WHICH "$new_path" 2> /dev/null` 44042 # bat and cmd files are not always considered executable in MSYS causing which 44043 # to not find them 44044 if test "x$new_path" = x \ 44045 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44046 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44047 new_path="$path" 44048 44049 windows_path="$new_path" 44050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44051 unix_path=`$CYGPATH -u "$windows_path"` 44052 new_path="$unix_path" 44053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44055 new_path="$unix_path" 44056 fi 44057 44058 fi 44059 44060 if test "x$new_path" = x; then 44061 # It's still not found. Now this is an unrecoverable error. 44062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44063 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44064 has_space=`$ECHO "$complete" | $GREP " "` 44065 if test "x$has_space" != x; then 44066 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44067 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44068 fi 44069 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44070 fi 44071 fi 44072 44073 # Now new_path has a complete unix path to the binary 44074 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44075 # Keep paths in /bin as-is, but remove trailing .exe if any 44076 new_path="${new_path/%.exe/}" 44077 # Do not save /bin paths to all_fixpath_prefixes! 44078 else 44079 # Not in mixed or Windows style, start by that. 44080 new_path=`cmd //c echo $new_path` 44081 44082 input_path="$new_path" 44083 # Check if we need to convert this using DOS-style short mode. If the path 44084 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44085 # take no chances and rewrite it. 44086 # Note: m4 eats our [], so we need to use [ and ] instead. 44087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44088 if test "x$has_forbidden_chars" != x; then 44089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44090 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44091 fi 44092 44093 # Output is in $new_path 44094 44095 windows_path="$new_path" 44096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44097 unix_path=`$CYGPATH -u "$windows_path"` 44098 new_path="$unix_path" 44099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44101 new_path="$unix_path" 44102 fi 44103 44104 # remove trailing .exe if any 44105 new_path="${new_path/%.exe/}" 44106 44107 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44108 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44109 fi 44110 44111 else 44112 # We're on a unix platform. Hooray! :) 44113 # First separate the path from the arguments. This will split at the first 44114 # space. 44115 complete="$OBJCOPY" 44116 path="${complete%% *}" 44117 tmp="$complete EOL" 44118 arguments="${tmp#* }" 44119 44120 # Cannot rely on the command "which" here since it doesn't always work. 44121 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44122 if test -z "$is_absolute_path"; then 44123 # Path to executable is not absolute. Find it. 44124 IFS_save="$IFS" 44125 IFS=: 44126 for p in $PATH; do 44127 if test -f "$p/$path" && test -x "$p/$path"; then 44128 new_path="$p/$path" 44129 break 44130 fi 44131 done 44132 IFS="$IFS_save" 44133 else 44134 # This is an absolute path, we can use it without further modifications. 44135 new_path="$path" 44136 fi 44137 44138 if test "x$new_path" = x; then 44139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44140 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44141 has_space=`$ECHO "$complete" | $GREP " "` 44142 if test "x$has_space" != x; then 44143 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44144 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44145 fi 44146 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44147 fi 44148 fi 44149 44150 # Now join together the path and the arguments once again 44151 if test "x$arguments" != xEOL; then 44152 new_complete="$new_path ${arguments% *}" 44153 else 44154 new_complete="$new_path" 44155 fi 44156 44157 if test "x$complete" != "x$new_complete"; then 44158 OBJCOPY="$new_complete" 44159 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 44160 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 44161 fi 44162 fi 44163 44164 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 44165 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 44166 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 44167 # - version number is last blank separate word on first line 44168 # - version number formats that have been seen: 44169 # - <major>.<minor> 44170 # - <major>.<minor>.<micro> 44171 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 44172 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 44173 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 44174 -e 's/.* //' \ 44175 -e '/^[01]\./b bad' \ 44176 -e '/^2\./{' \ 44177 -e ' s/^2\.//' \ 44178 -e ' /^[0-9]$/b bad' \ 44179 -e ' /^[0-9]\./b bad' \ 44180 -e ' /^1[0-9]$/b bad' \ 44181 -e ' /^1[0-9]\./b bad' \ 44182 -e ' /^20\./b bad' \ 44183 -e ' /^21\.0$/b bad' \ 44184 -e ' /^21\.0\./b bad' \ 44185 -e '}' \ 44186 -e ':good' \ 44187 -e 's/.*/VALID_VERSION/p' \ 44188 -e 'q' \ 44189 -e ':bad' \ 44190 -e 's/.*/BAD_VERSION/p' \ 44191 -e 'q'` 44192 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 44193 OBJCOPY= 44194 { $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 44195 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 44196 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 44197 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 44198 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 44199 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 44200 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 44201 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 44202 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 44203 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 44204 fi 44205 fi 44206 fi 44207 fi 44208 44209 44210 44211 # Publish this variable in the help. 44212 44213 44214 if [ -z "${OBJDUMP+x}" ]; then 44215 # The variable is not set by user, try to locate tool using the code snippet 44216 if test -n "$ac_tool_prefix"; then 44217 for ac_prog in gobjdump objdump 44218 do 44219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44222 $as_echo_n "checking for $ac_word... " >&6; } 44223 if ${ac_cv_prog_OBJDUMP+:} false; then : 44224 $as_echo_n "(cached) " >&6 44225 else 44226 if test -n "$OBJDUMP"; then 44227 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44228 else 44229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44230 for as_dir in $PATH 44231 do 44232 IFS=$as_save_IFS 44233 test -z "$as_dir" && as_dir=. 44234 for ac_exec_ext in '' $ac_executable_extensions; do 44235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44236 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44238 break 2 44239 fi 44240 done 44241 done 44242 IFS=$as_save_IFS 44243 44244 fi 44245 fi 44246 OBJDUMP=$ac_cv_prog_OBJDUMP 44247 if test -n "$OBJDUMP"; then 44248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44249 $as_echo "$OBJDUMP" >&6; } 44250 else 44251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44252 $as_echo "no" >&6; } 44253 fi 44254 44255 44256 test -n "$OBJDUMP" && break 44257 done 44258 fi 44259 if test -z "$OBJDUMP"; then 44260 ac_ct_OBJDUMP=$OBJDUMP 44261 for ac_prog in gobjdump objdump 44262 do 44263 # Extract the first word of "$ac_prog", so it can be a program name with args. 44264 set dummy $ac_prog; ac_word=$2 44265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44266 $as_echo_n "checking for $ac_word... " >&6; } 44267 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44268 $as_echo_n "(cached) " >&6 44269 else 44270 if test -n "$ac_ct_OBJDUMP"; then 44271 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44272 else 44273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44274 for as_dir in $PATH 44275 do 44276 IFS=$as_save_IFS 44277 test -z "$as_dir" && as_dir=. 44278 for ac_exec_ext in '' $ac_executable_extensions; do 44279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44280 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44282 break 2 44283 fi 44284 done 44285 done 44286 IFS=$as_save_IFS 44287 44288 fi 44289 fi 44290 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44291 if test -n "$ac_ct_OBJDUMP"; then 44292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44293 $as_echo "$ac_ct_OBJDUMP" >&6; } 44294 else 44295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44296 $as_echo "no" >&6; } 44297 fi 44298 44299 44300 test -n "$ac_ct_OBJDUMP" && break 44301 done 44302 44303 if test "x$ac_ct_OBJDUMP" = x; then 44304 OBJDUMP="" 44305 else 44306 case $cross_compiling:$ac_tool_warned in 44307 yes:) 44308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44310 ac_tool_warned=yes ;; 44311 esac 44312 OBJDUMP=$ac_ct_OBJDUMP 44313 fi 44314 fi 44315 44316 else 44317 # The variable is set, but is it from the command line or the environment? 44318 44319 # Try to remove the string !OBJDUMP! from our list. 44320 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 44321 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44322 # If it failed, the variable was not from the command line. Ignore it, 44323 # but warn the user (except for BASH, which is always set by the calling BASH). 44324 if test "xOBJDUMP" != xBASH; then 44325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 44326 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 44327 fi 44328 # Try to locate tool using the code snippet 44329 if test -n "$ac_tool_prefix"; then 44330 for ac_prog in gobjdump objdump 44331 do 44332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44335 $as_echo_n "checking for $ac_word... " >&6; } 44336 if ${ac_cv_prog_OBJDUMP+:} false; then : 44337 $as_echo_n "(cached) " >&6 44338 else 44339 if test -n "$OBJDUMP"; then 44340 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44341 else 44342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44343 for as_dir in $PATH 44344 do 44345 IFS=$as_save_IFS 44346 test -z "$as_dir" && as_dir=. 44347 for ac_exec_ext in '' $ac_executable_extensions; do 44348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44349 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44351 break 2 44352 fi 44353 done 44354 done 44355 IFS=$as_save_IFS 44356 44357 fi 44358 fi 44359 OBJDUMP=$ac_cv_prog_OBJDUMP 44360 if test -n "$OBJDUMP"; then 44361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44362 $as_echo "$OBJDUMP" >&6; } 44363 else 44364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44365 $as_echo "no" >&6; } 44366 fi 44367 44368 44369 test -n "$OBJDUMP" && break 44370 done 44371 fi 44372 if test -z "$OBJDUMP"; then 44373 ac_ct_OBJDUMP=$OBJDUMP 44374 for ac_prog in gobjdump objdump 44375 do 44376 # Extract the first word of "$ac_prog", so it can be a program name with args. 44377 set dummy $ac_prog; ac_word=$2 44378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44379 $as_echo_n "checking for $ac_word... " >&6; } 44380 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44381 $as_echo_n "(cached) " >&6 44382 else 44383 if test -n "$ac_ct_OBJDUMP"; then 44384 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44385 else 44386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44387 for as_dir in $PATH 44388 do 44389 IFS=$as_save_IFS 44390 test -z "$as_dir" && as_dir=. 44391 for ac_exec_ext in '' $ac_executable_extensions; do 44392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44393 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44395 break 2 44396 fi 44397 done 44398 done 44399 IFS=$as_save_IFS 44400 44401 fi 44402 fi 44403 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44404 if test -n "$ac_ct_OBJDUMP"; then 44405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44406 $as_echo "$ac_ct_OBJDUMP" >&6; } 44407 else 44408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44409 $as_echo "no" >&6; } 44410 fi 44411 44412 44413 test -n "$ac_ct_OBJDUMP" && break 44414 done 44415 44416 if test "x$ac_ct_OBJDUMP" = x; then 44417 OBJDUMP="" 44418 else 44419 case $cross_compiling:$ac_tool_warned in 44420 yes:) 44421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44423 ac_tool_warned=yes ;; 44424 esac 44425 OBJDUMP=$ac_ct_OBJDUMP 44426 fi 44427 fi 44428 44429 else 44430 # If it succeeded, then it was overridden by the user. We will use it 44431 # for the tool. 44432 44433 # First remove it from the list of overridden variables, so we can test 44434 # for unknown variables in the end. 44435 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44436 44437 # Check if we try to supply an empty value 44438 if test "x$OBJDUMP" = x; then 44439 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 44440 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 44441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44442 $as_echo_n "checking for OBJDUMP... " >&6; } 44443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44444 $as_echo "disabled" >&6; } 44445 else 44446 # Check if the provided tool contains a complete path. 44447 tool_specified="$OBJDUMP" 44448 tool_basename="${tool_specified##*/}" 44449 if test "x$tool_basename" = "x$tool_specified"; then 44450 # A command without a complete path is provided, search $PATH. 44451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 44452 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 44453 # Extract the first word of "$tool_basename", so it can be a program name with args. 44454 set dummy $tool_basename; ac_word=$2 44455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44456 $as_echo_n "checking for $ac_word... " >&6; } 44457 if ${ac_cv_path_OBJDUMP+:} false; then : 44458 $as_echo_n "(cached) " >&6 44459 else 44460 case $OBJDUMP in 44461 [\\/]* | ?:[\\/]*) 44462 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 44463 ;; 44464 *) 44465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44466 for as_dir in $PATH 44467 do 44468 IFS=$as_save_IFS 44469 test -z "$as_dir" && as_dir=. 44470 for ac_exec_ext in '' $ac_executable_extensions; do 44471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44472 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 44473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44474 break 2 44475 fi 44476 done 44477 done 44478 IFS=$as_save_IFS 44479 44480 ;; 44481 esac 44482 fi 44483 OBJDUMP=$ac_cv_path_OBJDUMP 44484 if test -n "$OBJDUMP"; then 44485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44486 $as_echo "$OBJDUMP" >&6; } 44487 else 44488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44489 $as_echo "no" >&6; } 44490 fi 44491 44492 44493 if test "x$OBJDUMP" = x; then 44494 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44495 fi 44496 else 44497 # Otherwise we believe it is a complete path. Use it as it is. 44498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 44499 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 44500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44501 $as_echo_n "checking for OBJDUMP... " >&6; } 44502 if test ! -x "$tool_specified"; then 44503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44504 $as_echo "not found" >&6; } 44505 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 44506 fi 44507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44508 $as_echo "$tool_specified" >&6; } 44509 fi 44510 fi 44511 fi 44512 44513 fi 44514 44515 44516 if test "x$OBJDUMP" != x; then 44517 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 44518 # bails if argument is missing. 44519 44520 # Only process if variable expands to non-empty 44521 44522 if test "x$OBJDUMP" != x; then 44523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44524 44525 # First separate the path from the arguments. This will split at the first 44526 # space. 44527 complete="$OBJDUMP" 44528 path="${complete%% *}" 44529 tmp="$complete EOL" 44530 arguments="${tmp#* }" 44531 44532 # Input might be given as Windows format, start by converting to 44533 # unix format. 44534 new_path=`$CYGPATH -u "$path"` 44535 44536 # Now try to locate executable using which 44537 new_path=`$WHICH "$new_path" 2> /dev/null` 44538 # bat and cmd files are not always considered executable in cygwin causing which 44539 # to not find them 44540 if test "x$new_path" = x \ 44541 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44542 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44543 new_path=`$CYGPATH -u "$path"` 44544 fi 44545 if test "x$new_path" = x; then 44546 # Oops. Which didn't find the executable. 44547 # The splitting of arguments from the executable at a space might have been incorrect, 44548 # since paths with space are more likely in Windows. Give it another try with the whole 44549 # argument. 44550 path="$complete" 44551 arguments="EOL" 44552 new_path=`$CYGPATH -u "$path"` 44553 new_path=`$WHICH "$new_path" 2> /dev/null` 44554 # bat and cmd files are not always considered executable in cygwin causing which 44555 # to not find them 44556 if test "x$new_path" = x \ 44557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44559 new_path=`$CYGPATH -u "$path"` 44560 fi 44561 if test "x$new_path" = x; then 44562 # It's still not found. Now this is an unrecoverable error. 44563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44564 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44565 has_space=`$ECHO "$complete" | $GREP " "` 44566 if test "x$has_space" != x; then 44567 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44568 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44569 fi 44570 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44571 fi 44572 fi 44573 44574 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44575 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44576 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44577 # "foo.exe" is OK but "foo" is an error. 44578 # 44579 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44580 # It is also a way to make sure we got the proper file name for the real test later on. 44581 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44582 if test "x$test_shortpath" = x; then 44583 # Short path failed, file does not exist as specified. 44584 # Try adding .exe or .cmd 44585 if test -f "${new_path}.exe"; then 44586 input_to_shortpath="${new_path}.exe" 44587 elif test -f "${new_path}.cmd"; then 44588 input_to_shortpath="${new_path}.cmd" 44589 else 44590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 44591 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 44592 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44593 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44594 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44595 fi 44596 else 44597 input_to_shortpath="$new_path" 44598 fi 44599 44600 # Call helper function which possibly converts this using DOS-style short mode. 44601 # If so, the updated path is stored in $new_path. 44602 new_path="$input_to_shortpath" 44603 44604 input_path="$input_to_shortpath" 44605 # Check if we need to convert this using DOS-style short mode. If the path 44606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44607 # take no chances and rewrite it. 44608 # Note: m4 eats our [], so we need to use [ and ] instead. 44609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44610 if test "x$has_forbidden_chars" != x; then 44611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44615 # Going to short mode and back again did indeed matter. Since short mode is 44616 # case insensitive, let's make it lowercase to improve readability. 44617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44618 # Now convert it back to Unix-style (cygpath) 44619 input_path=`$CYGPATH -u "$shortmode_path"` 44620 new_path="$input_path" 44621 fi 44622 fi 44623 44624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44625 if test "x$test_cygdrive_prefix" = x; then 44626 # As a simple fix, exclude /usr/bin since it's not a real path. 44627 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44629 # a path prefixed by /cygdrive for fixpath to work. 44630 new_path="$CYGWIN_ROOT_PATH$input_path" 44631 fi 44632 fi 44633 44634 # remove trailing .exe if any 44635 new_path="${new_path/%.exe/}" 44636 44637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44638 44639 # First separate the path from the arguments. This will split at the first 44640 # space. 44641 complete="$OBJDUMP" 44642 path="${complete%% *}" 44643 tmp="$complete EOL" 44644 arguments="${tmp#* }" 44645 44646 # Input might be given as Windows format, start by converting to 44647 # unix format. 44648 new_path="$path" 44649 44650 windows_path="$new_path" 44651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44652 unix_path=`$CYGPATH -u "$windows_path"` 44653 new_path="$unix_path" 44654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44656 new_path="$unix_path" 44657 fi 44658 44659 44660 # Now try to locate executable using which 44661 new_path=`$WHICH "$new_path" 2> /dev/null` 44662 44663 if test "x$new_path" = x; then 44664 # Oops. Which didn't find the executable. 44665 # The splitting of arguments from the executable at a space might have been incorrect, 44666 # since paths with space are more likely in Windows. Give it another try with the whole 44667 # argument. 44668 path="$complete" 44669 arguments="EOL" 44670 new_path="$path" 44671 44672 windows_path="$new_path" 44673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44674 unix_path=`$CYGPATH -u "$windows_path"` 44675 new_path="$unix_path" 44676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44678 new_path="$unix_path" 44679 fi 44680 44681 44682 new_path=`$WHICH "$new_path" 2> /dev/null` 44683 # bat and cmd files are not always considered executable in MSYS causing which 44684 # to not find them 44685 if test "x$new_path" = x \ 44686 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44687 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44688 new_path="$path" 44689 44690 windows_path="$new_path" 44691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44692 unix_path=`$CYGPATH -u "$windows_path"` 44693 new_path="$unix_path" 44694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44696 new_path="$unix_path" 44697 fi 44698 44699 fi 44700 44701 if test "x$new_path" = x; then 44702 # It's still not found. Now this is an unrecoverable error. 44703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44704 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44705 has_space=`$ECHO "$complete" | $GREP " "` 44706 if test "x$has_space" != x; then 44707 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44708 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44709 fi 44710 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44711 fi 44712 fi 44713 44714 # Now new_path has a complete unix path to the binary 44715 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44716 # Keep paths in /bin as-is, but remove trailing .exe if any 44717 new_path="${new_path/%.exe/}" 44718 # Do not save /bin paths to all_fixpath_prefixes! 44719 else 44720 # Not in mixed or Windows style, start by that. 44721 new_path=`cmd //c echo $new_path` 44722 44723 input_path="$new_path" 44724 # Check if we need to convert this using DOS-style short mode. If the path 44725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44726 # take no chances and rewrite it. 44727 # Note: m4 eats our [], so we need to use [ and ] instead. 44728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44729 if test "x$has_forbidden_chars" != x; then 44730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44731 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44732 fi 44733 44734 # Output is in $new_path 44735 44736 windows_path="$new_path" 44737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44738 unix_path=`$CYGPATH -u "$windows_path"` 44739 new_path="$unix_path" 44740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44742 new_path="$unix_path" 44743 fi 44744 44745 # remove trailing .exe if any 44746 new_path="${new_path/%.exe/}" 44747 44748 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44749 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44750 fi 44751 44752 else 44753 # We're on a unix platform. Hooray! :) 44754 # First separate the path from the arguments. This will split at the first 44755 # space. 44756 complete="$OBJDUMP" 44757 path="${complete%% *}" 44758 tmp="$complete EOL" 44759 arguments="${tmp#* }" 44760 44761 # Cannot rely on the command "which" here since it doesn't always work. 44762 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44763 if test -z "$is_absolute_path"; then 44764 # Path to executable is not absolute. Find it. 44765 IFS_save="$IFS" 44766 IFS=: 44767 for p in $PATH; do 44768 if test -f "$p/$path" && test -x "$p/$path"; then 44769 new_path="$p/$path" 44770 break 44771 fi 44772 done 44773 IFS="$IFS_save" 44774 else 44775 # This is an absolute path, we can use it without further modifications. 44776 new_path="$path" 44777 fi 44778 44779 if test "x$new_path" = x; then 44780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44781 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44782 has_space=`$ECHO "$complete" | $GREP " "` 44783 if test "x$has_space" != x; then 44784 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44785 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44786 fi 44787 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44788 fi 44789 fi 44790 44791 # Now join together the path and the arguments once again 44792 if test "x$arguments" != xEOL; then 44793 new_complete="$new_path ${arguments% *}" 44794 else 44795 new_complete="$new_path" 44796 fi 44797 44798 if test "x$complete" != "x$new_complete"; then 44799 OBJDUMP="$new_complete" 44800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 44801 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 44802 fi 44803 fi 44804 44805 fi 44806 44807 44808 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 44809 # to remain in place. Otherwise the compiler will not work in some siutations 44810 # in later configure checks. 44811 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 44812 PATH="$OLD_PATH" 44813 fi 44814 44815 # Restore the flags to the user specified values. 44816 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 44817 CFLAGS="$ORG_CFLAGS" 44818 CXXFLAGS="$ORG_CXXFLAGS" 44819 44820 44821 # Finally do some processing after the detection phase 44822 44823 if test "x$COMPILE_TYPE" = "xcross"; then 44824 # Now we need to find a C/C++ compiler that can build executables for the 44825 # build platform. We can't use the AC_PROG_CC macro, since it can only be 44826 # used once. Also, we need to do this without adding a tools dir to the 44827 # path, otherwise we might pick up cross-compilers which don't use standard 44828 # naming. 44829 44830 OLDPATH="$PATH" 44831 44832 44833 # Check whether --with-build-devkit was given. 44834 if test "${with_build_devkit+set}" = set; then : 44835 withval=$with_build_devkit; 44836 fi 44837 44838 if test "x$with_build_devkit" = "xyes"; then 44839 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 44840 elif test -n "$with_build_devkit"; then 44841 if test ! -d "$with_build_devkit"; then 44842 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 44843 else 44844 44845 # Only process if variable expands to non-empty 44846 44847 if test "x$with_build_devkit" != x; then 44848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44849 44850 # Input might be given as Windows format, start by converting to 44851 # unix format. 44852 path="$with_build_devkit" 44853 new_path=`$CYGPATH -u "$path"` 44854 44855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44858 # "foo.exe" is OK but "foo" is an error. 44859 # 44860 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44861 # It is also a way to make sure we got the proper file name for the real test later on. 44862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44863 if test "x$test_shortpath" = x; then 44864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44865 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44866 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 44867 fi 44868 44869 # Call helper function which possibly converts this using DOS-style short mode. 44870 # If so, the updated path is stored in $new_path. 44871 44872 input_path="$new_path" 44873 # Check if we need to convert this using DOS-style short mode. If the path 44874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44875 # take no chances and rewrite it. 44876 # Note: m4 eats our [], so we need to use [ and ] instead. 44877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44878 if test "x$has_forbidden_chars" != x; then 44879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44880 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44881 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44882 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44883 # Going to short mode and back again did indeed matter. Since short mode is 44884 # case insensitive, let's make it lowercase to improve readability. 44885 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44886 # Now convert it back to Unix-style (cygpath) 44887 input_path=`$CYGPATH -u "$shortmode_path"` 44888 new_path="$input_path" 44889 fi 44890 fi 44891 44892 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44893 if test "x$test_cygdrive_prefix" = x; then 44894 # As a simple fix, exclude /usr/bin since it's not a real path. 44895 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44896 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44897 # a path prefixed by /cygdrive for fixpath to work. 44898 new_path="$CYGWIN_ROOT_PATH$input_path" 44899 fi 44900 fi 44901 44902 44903 if test "x$path" != "x$new_path"; then 44904 with_build_devkit="$new_path" 44905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44906 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44907 fi 44908 44909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44910 44911 path="$with_build_devkit" 44912 has_colon=`$ECHO $path | $GREP ^.:` 44913 new_path="$path" 44914 if test "x$has_colon" = x; then 44915 # Not in mixed or Windows style, start by that. 44916 new_path=`cmd //c echo $path` 44917 fi 44918 44919 44920 input_path="$new_path" 44921 # Check if we need to convert this using DOS-style short mode. If the path 44922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44923 # take no chances and rewrite it. 44924 # Note: m4 eats our [], so we need to use [ and ] instead. 44925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44926 if test "x$has_forbidden_chars" != x; then 44927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44929 fi 44930 44931 44932 windows_path="$new_path" 44933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44934 unix_path=`$CYGPATH -u "$windows_path"` 44935 new_path="$unix_path" 44936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44938 new_path="$unix_path" 44939 fi 44940 44941 if test "x$path" != "x$new_path"; then 44942 with_build_devkit="$new_path" 44943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44944 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44945 fi 44946 44947 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44948 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44949 44950 else 44951 # We're on a unix platform. Hooray! :) 44952 path="$with_build_devkit" 44953 has_space=`$ECHO "$path" | $GREP " "` 44954 if test "x$has_space" != x; then 44955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44956 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44957 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44958 fi 44959 44960 # Use eval to expand a potential ~ 44961 eval path="$path" 44962 if test ! -f "$path" && test ! -d "$path"; then 44963 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 44964 fi 44965 44966 if test -d "$path"; then 44967 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 44968 else 44969 dir="`$DIRNAME "$path"`" 44970 base="`$BASENAME "$path"`" 44971 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 44972 fi 44973 fi 44974 fi 44975 44976 BUILD_DEVKIT_ROOT="$with_build_devkit" 44977 # Check for a meta data info file in the root of the devkit 44978 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 44979 # Process devkit.info so that existing devkit variables are not 44980 # modified by this 44981 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 44982 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 44983 -e "s/\$host/\$build/g" \ 44984 $BUILD_DEVKIT_ROOT/devkit.info \ 44985 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44986 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44987 # This potentially sets the following: 44988 # A descriptive name of the devkit 44989 44990 if test "x$BUILD_DEVKIT_NAME" = x; then 44991 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 44992 fi 44993 44994 # Corresponds to --with-extra-path 44995 44996 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 44997 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 44998 fi 44999 45000 # Corresponds to --with-toolchain-path 45001 45002 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45003 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45004 fi 45005 45006 # Corresponds to --with-sysroot 45007 45008 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45009 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45010 fi 45011 45012 # Skip the Window specific parts 45013 fi 45014 45015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45016 $as_echo_n "checking for build platform devkit... " >&6; } 45017 if test "x$BUILD_DEVKIT_NAME" != x; then 45018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45019 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45020 else 45021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45022 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45023 fi 45024 45025 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45026 45027 if test "x$BUILD_SYSROOT" != "x"; then 45028 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45029 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45030 # Solaris Studio does not have a concept of sysroot. Instead we must 45031 # make sure the default include and lib dirs are appended to each 45032 # compile and link command line. Must also add -I-xbuiltin to enable 45033 # inlining of system functions and intrinsics. 45034 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45035 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45036 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45037 fi 45038 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45039 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45040 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45041 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45042 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45043 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45044 fi 45045 # The global CFLAGS and LDFLAGS variables need these for configure to function 45046 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45047 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45048 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45049 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45050 fi 45051 45052 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45053 # We also need -iframework<path>/System/Library/Frameworks 45054 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45055 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45056 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45057 # set this here so it doesn't have to be peppered throughout the forest 45058 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45059 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45060 fi 45061 45062 45063 45064 45065 45066 # Fallback default of just /bin if DEVKIT_PATH is not defined 45067 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45068 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45069 fi 45070 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45071 fi 45072 fi 45073 45074 # FIXME: we should list the discovered compilers as an exclude pattern! 45075 # If we do that, we can do this detection before POST_DETECTION, and still 45076 # find the build compilers in the tools dir, if needed. 45077 45078 45079 45080 # Publish this variable in the help. 45081 45082 45083 if [ -z "${BUILD_CC+x}" ]; then 45084 # The variable is not set by user, try to locate tool using the code snippet 45085 for ac_prog in cl cc gcc 45086 do 45087 # Extract the first word of "$ac_prog", so it can be a program name with args. 45088 set dummy $ac_prog; ac_word=$2 45089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45090 $as_echo_n "checking for $ac_word... " >&6; } 45091 if ${ac_cv_path_BUILD_CC+:} false; then : 45092 $as_echo_n "(cached) " >&6 45093 else 45094 case $BUILD_CC in 45095 [\\/]* | ?:[\\/]*) 45096 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45097 ;; 45098 *) 45099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45100 for as_dir in $PATH 45101 do 45102 IFS=$as_save_IFS 45103 test -z "$as_dir" && as_dir=. 45104 for ac_exec_ext in '' $ac_executable_extensions; do 45105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45106 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45108 break 2 45109 fi 45110 done 45111 done 45112 IFS=$as_save_IFS 45113 45114 ;; 45115 esac 45116 fi 45117 BUILD_CC=$ac_cv_path_BUILD_CC 45118 if test -n "$BUILD_CC"; then 45119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45120 $as_echo "$BUILD_CC" >&6; } 45121 else 45122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45123 $as_echo "no" >&6; } 45124 fi 45125 45126 45127 test -n "$BUILD_CC" && break 45128 done 45129 45130 else 45131 # The variable is set, but is it from the command line or the environment? 45132 45133 # Try to remove the string !BUILD_CC! from our list. 45134 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45135 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45136 # If it failed, the variable was not from the command line. Ignore it, 45137 # but warn the user (except for BASH, which is always set by the calling BASH). 45138 if test "xBUILD_CC" != xBASH; then 45139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45140 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45141 fi 45142 # Try to locate tool using the code snippet 45143 for ac_prog in cl cc gcc 45144 do 45145 # Extract the first word of "$ac_prog", so it can be a program name with args. 45146 set dummy $ac_prog; ac_word=$2 45147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45148 $as_echo_n "checking for $ac_word... " >&6; } 45149 if ${ac_cv_path_BUILD_CC+:} false; then : 45150 $as_echo_n "(cached) " >&6 45151 else 45152 case $BUILD_CC in 45153 [\\/]* | ?:[\\/]*) 45154 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45155 ;; 45156 *) 45157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45158 for as_dir in $PATH 45159 do 45160 IFS=$as_save_IFS 45161 test -z "$as_dir" && as_dir=. 45162 for ac_exec_ext in '' $ac_executable_extensions; do 45163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45164 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45166 break 2 45167 fi 45168 done 45169 done 45170 IFS=$as_save_IFS 45171 45172 ;; 45173 esac 45174 fi 45175 BUILD_CC=$ac_cv_path_BUILD_CC 45176 if test -n "$BUILD_CC"; then 45177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45178 $as_echo "$BUILD_CC" >&6; } 45179 else 45180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45181 $as_echo "no" >&6; } 45182 fi 45183 45184 45185 test -n "$BUILD_CC" && break 45186 done 45187 45188 else 45189 # If it succeeded, then it was overridden by the user. We will use it 45190 # for the tool. 45191 45192 # First remove it from the list of overridden variables, so we can test 45193 # for unknown variables in the end. 45194 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45195 45196 # Check if we try to supply an empty value 45197 if test "x$BUILD_CC" = x; then 45198 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 45199 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 45200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45201 $as_echo_n "checking for BUILD_CC... " >&6; } 45202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45203 $as_echo "disabled" >&6; } 45204 else 45205 # Check if the provided tool contains a complete path. 45206 tool_specified="$BUILD_CC" 45207 tool_basename="${tool_specified##*/}" 45208 if test "x$tool_basename" = "x$tool_specified"; then 45209 # A command without a complete path is provided, search $PATH. 45210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 45211 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 45212 # Extract the first word of "$tool_basename", so it can be a program name with args. 45213 set dummy $tool_basename; ac_word=$2 45214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45215 $as_echo_n "checking for $ac_word... " >&6; } 45216 if ${ac_cv_path_BUILD_CC+:} false; then : 45217 $as_echo_n "(cached) " >&6 45218 else 45219 case $BUILD_CC in 45220 [\\/]* | ?:[\\/]*) 45221 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45222 ;; 45223 *) 45224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45225 for as_dir in $PATH 45226 do 45227 IFS=$as_save_IFS 45228 test -z "$as_dir" && as_dir=. 45229 for ac_exec_ext in '' $ac_executable_extensions; do 45230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45231 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45233 break 2 45234 fi 45235 done 45236 done 45237 IFS=$as_save_IFS 45238 45239 ;; 45240 esac 45241 fi 45242 BUILD_CC=$ac_cv_path_BUILD_CC 45243 if test -n "$BUILD_CC"; then 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45245 $as_echo "$BUILD_CC" >&6; } 45246 else 45247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45248 $as_echo "no" >&6; } 45249 fi 45250 45251 45252 if test "x$BUILD_CC" = x; then 45253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45254 fi 45255 else 45256 # Otherwise we believe it is a complete path. Use it as it is. 45257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 45258 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 45259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45260 $as_echo_n "checking for BUILD_CC... " >&6; } 45261 if test ! -x "$tool_specified"; then 45262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45263 $as_echo "not found" >&6; } 45264 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 45265 fi 45266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45267 $as_echo "$tool_specified" >&6; } 45268 fi 45269 fi 45270 fi 45271 45272 fi 45273 45274 45275 45276 if test "x$BUILD_CC" = x; then 45277 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 45278 fi 45279 45280 45281 45282 # Only process if variable expands to non-empty 45283 45284 if test "x$BUILD_CC" != x; then 45285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45286 45287 # First separate the path from the arguments. This will split at the first 45288 # space. 45289 complete="$BUILD_CC" 45290 path="${complete%% *}" 45291 tmp="$complete EOL" 45292 arguments="${tmp#* }" 45293 45294 # Input might be given as Windows format, start by converting to 45295 # unix format. 45296 new_path=`$CYGPATH -u "$path"` 45297 45298 # Now try to locate executable using which 45299 new_path=`$WHICH "$new_path" 2> /dev/null` 45300 # bat and cmd files are not always considered executable in cygwin causing which 45301 # to not find them 45302 if test "x$new_path" = x \ 45303 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45304 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45305 new_path=`$CYGPATH -u "$path"` 45306 fi 45307 if test "x$new_path" = x; then 45308 # Oops. Which didn't find the executable. 45309 # The splitting of arguments from the executable at a space might have been incorrect, 45310 # since paths with space are more likely in Windows. Give it another try with the whole 45311 # argument. 45312 path="$complete" 45313 arguments="EOL" 45314 new_path=`$CYGPATH -u "$path"` 45315 new_path=`$WHICH "$new_path" 2> /dev/null` 45316 # bat and cmd files are not always considered executable in cygwin causing which 45317 # to not find them 45318 if test "x$new_path" = x \ 45319 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45320 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45321 new_path=`$CYGPATH -u "$path"` 45322 fi 45323 if test "x$new_path" = x; then 45324 # It's still not found. Now this is an unrecoverable error. 45325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45326 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45327 has_space=`$ECHO "$complete" | $GREP " "` 45328 if test "x$has_space" != x; then 45329 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45330 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45331 fi 45332 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45333 fi 45334 fi 45335 45336 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45337 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45338 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45339 # "foo.exe" is OK but "foo" is an error. 45340 # 45341 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45342 # It is also a way to make sure we got the proper file name for the real test later on. 45343 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45344 if test "x$test_shortpath" = x; then 45345 # Short path failed, file does not exist as specified. 45346 # Try adding .exe or .cmd 45347 if test -f "${new_path}.exe"; then 45348 input_to_shortpath="${new_path}.exe" 45349 elif test -f "${new_path}.cmd"; then 45350 input_to_shortpath="${new_path}.cmd" 45351 else 45352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 45353 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 45354 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45355 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45356 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45357 fi 45358 else 45359 input_to_shortpath="$new_path" 45360 fi 45361 45362 # Call helper function which possibly converts this using DOS-style short mode. 45363 # If so, the updated path is stored in $new_path. 45364 new_path="$input_to_shortpath" 45365 45366 input_path="$input_to_shortpath" 45367 # Check if we need to convert this using DOS-style short mode. If the path 45368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45369 # take no chances and rewrite it. 45370 # Note: m4 eats our [], so we need to use [ and ] instead. 45371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45372 if test "x$has_forbidden_chars" != x; then 45373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45377 # Going to short mode and back again did indeed matter. Since short mode is 45378 # case insensitive, let's make it lowercase to improve readability. 45379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45380 # Now convert it back to Unix-style (cygpath) 45381 input_path=`$CYGPATH -u "$shortmode_path"` 45382 new_path="$input_path" 45383 fi 45384 fi 45385 45386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45387 if test "x$test_cygdrive_prefix" = x; then 45388 # As a simple fix, exclude /usr/bin since it's not a real path. 45389 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45391 # a path prefixed by /cygdrive for fixpath to work. 45392 new_path="$CYGWIN_ROOT_PATH$input_path" 45393 fi 45394 fi 45395 45396 # remove trailing .exe if any 45397 new_path="${new_path/%.exe/}" 45398 45399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45400 45401 # First separate the path from the arguments. This will split at the first 45402 # space. 45403 complete="$BUILD_CC" 45404 path="${complete%% *}" 45405 tmp="$complete EOL" 45406 arguments="${tmp#* }" 45407 45408 # Input might be given as Windows format, start by converting to 45409 # unix format. 45410 new_path="$path" 45411 45412 windows_path="$new_path" 45413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45414 unix_path=`$CYGPATH -u "$windows_path"` 45415 new_path="$unix_path" 45416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45418 new_path="$unix_path" 45419 fi 45420 45421 45422 # Now try to locate executable using which 45423 new_path=`$WHICH "$new_path" 2> /dev/null` 45424 45425 if test "x$new_path" = x; then 45426 # Oops. Which didn't find the executable. 45427 # The splitting of arguments from the executable at a space might have been incorrect, 45428 # since paths with space are more likely in Windows. Give it another try with the whole 45429 # argument. 45430 path="$complete" 45431 arguments="EOL" 45432 new_path="$path" 45433 45434 windows_path="$new_path" 45435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45436 unix_path=`$CYGPATH -u "$windows_path"` 45437 new_path="$unix_path" 45438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45440 new_path="$unix_path" 45441 fi 45442 45443 45444 new_path=`$WHICH "$new_path" 2> /dev/null` 45445 # bat and cmd files are not always considered executable in MSYS causing which 45446 # to not find them 45447 if test "x$new_path" = x \ 45448 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45449 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45450 new_path="$path" 45451 45452 windows_path="$new_path" 45453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45454 unix_path=`$CYGPATH -u "$windows_path"` 45455 new_path="$unix_path" 45456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45458 new_path="$unix_path" 45459 fi 45460 45461 fi 45462 45463 if test "x$new_path" = x; then 45464 # It's still not found. Now this is an unrecoverable error. 45465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45466 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45467 has_space=`$ECHO "$complete" | $GREP " "` 45468 if test "x$has_space" != x; then 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45470 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45471 fi 45472 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45473 fi 45474 fi 45475 45476 # Now new_path has a complete unix path to the binary 45477 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45478 # Keep paths in /bin as-is, but remove trailing .exe if any 45479 new_path="${new_path/%.exe/}" 45480 # Do not save /bin paths to all_fixpath_prefixes! 45481 else 45482 # Not in mixed or Windows style, start by that. 45483 new_path=`cmd //c echo $new_path` 45484 45485 input_path="$new_path" 45486 # Check if we need to convert this using DOS-style short mode. If the path 45487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45488 # take no chances and rewrite it. 45489 # Note: m4 eats our [], so we need to use [ and ] instead. 45490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45491 if test "x$has_forbidden_chars" != x; then 45492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45493 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45494 fi 45495 45496 # Output is in $new_path 45497 45498 windows_path="$new_path" 45499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45500 unix_path=`$CYGPATH -u "$windows_path"` 45501 new_path="$unix_path" 45502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45504 new_path="$unix_path" 45505 fi 45506 45507 # remove trailing .exe if any 45508 new_path="${new_path/%.exe/}" 45509 45510 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45511 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45512 fi 45513 45514 else 45515 # We're on a unix platform. Hooray! :) 45516 # First separate the path from the arguments. This will split at the first 45517 # space. 45518 complete="$BUILD_CC" 45519 path="${complete%% *}" 45520 tmp="$complete EOL" 45521 arguments="${tmp#* }" 45522 45523 # Cannot rely on the command "which" here since it doesn't always work. 45524 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45525 if test -z "$is_absolute_path"; then 45526 # Path to executable is not absolute. Find it. 45527 IFS_save="$IFS" 45528 IFS=: 45529 for p in $PATH; do 45530 if test -f "$p/$path" && test -x "$p/$path"; then 45531 new_path="$p/$path" 45532 break 45533 fi 45534 done 45535 IFS="$IFS_save" 45536 else 45537 # This is an absolute path, we can use it without further modifications. 45538 new_path="$path" 45539 fi 45540 45541 if test "x$new_path" = x; then 45542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45543 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45544 has_space=`$ECHO "$complete" | $GREP " "` 45545 if test "x$has_space" != x; then 45546 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45547 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45548 fi 45549 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45550 fi 45551 fi 45552 45553 # Now join together the path and the arguments once again 45554 if test "x$arguments" != xEOL; then 45555 new_complete="$new_path ${arguments% *}" 45556 else 45557 new_complete="$new_path" 45558 fi 45559 45560 if test "x$complete" != "x$new_complete"; then 45561 BUILD_CC="$new_complete" 45562 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 45563 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 45564 fi 45565 fi 45566 45567 45568 45569 45570 # Publish this variable in the help. 45571 45572 45573 if [ -z "${BUILD_CXX+x}" ]; then 45574 # The variable is not set by user, try to locate tool using the code snippet 45575 for ac_prog in cl CC g++ 45576 do 45577 # Extract the first word of "$ac_prog", so it can be a program name with args. 45578 set dummy $ac_prog; ac_word=$2 45579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45580 $as_echo_n "checking for $ac_word... " >&6; } 45581 if ${ac_cv_path_BUILD_CXX+:} false; then : 45582 $as_echo_n "(cached) " >&6 45583 else 45584 case $BUILD_CXX in 45585 [\\/]* | ?:[\\/]*) 45586 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45587 ;; 45588 *) 45589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45590 for as_dir in $PATH 45591 do 45592 IFS=$as_save_IFS 45593 test -z "$as_dir" && as_dir=. 45594 for ac_exec_ext in '' $ac_executable_extensions; do 45595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45596 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45598 break 2 45599 fi 45600 done 45601 done 45602 IFS=$as_save_IFS 45603 45604 ;; 45605 esac 45606 fi 45607 BUILD_CXX=$ac_cv_path_BUILD_CXX 45608 if test -n "$BUILD_CXX"; then 45609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45610 $as_echo "$BUILD_CXX" >&6; } 45611 else 45612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45613 $as_echo "no" >&6; } 45614 fi 45615 45616 45617 test -n "$BUILD_CXX" && break 45618 done 45619 45620 else 45621 # The variable is set, but is it from the command line or the environment? 45622 45623 # Try to remove the string !BUILD_CXX! from our list. 45624 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 45625 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45626 # If it failed, the variable was not from the command line. Ignore it, 45627 # but warn the user (except for BASH, which is always set by the calling BASH). 45628 if test "xBUILD_CXX" != xBASH; then 45629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 45630 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 45631 fi 45632 # Try to locate tool using the code snippet 45633 for ac_prog in cl CC g++ 45634 do 45635 # Extract the first word of "$ac_prog", so it can be a program name with args. 45636 set dummy $ac_prog; ac_word=$2 45637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45638 $as_echo_n "checking for $ac_word... " >&6; } 45639 if ${ac_cv_path_BUILD_CXX+:} false; then : 45640 $as_echo_n "(cached) " >&6 45641 else 45642 case $BUILD_CXX in 45643 [\\/]* | ?:[\\/]*) 45644 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45645 ;; 45646 *) 45647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45648 for as_dir in $PATH 45649 do 45650 IFS=$as_save_IFS 45651 test -z "$as_dir" && as_dir=. 45652 for ac_exec_ext in '' $ac_executable_extensions; do 45653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45654 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45656 break 2 45657 fi 45658 done 45659 done 45660 IFS=$as_save_IFS 45661 45662 ;; 45663 esac 45664 fi 45665 BUILD_CXX=$ac_cv_path_BUILD_CXX 45666 if test -n "$BUILD_CXX"; then 45667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45668 $as_echo "$BUILD_CXX" >&6; } 45669 else 45670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45671 $as_echo "no" >&6; } 45672 fi 45673 45674 45675 test -n "$BUILD_CXX" && break 45676 done 45677 45678 else 45679 # If it succeeded, then it was overridden by the user. We will use it 45680 # for the tool. 45681 45682 # First remove it from the list of overridden variables, so we can test 45683 # for unknown variables in the end. 45684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45685 45686 # Check if we try to supply an empty value 45687 if test "x$BUILD_CXX" = x; then 45688 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 45689 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 45690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45691 $as_echo_n "checking for BUILD_CXX... " >&6; } 45692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45693 $as_echo "disabled" >&6; } 45694 else 45695 # Check if the provided tool contains a complete path. 45696 tool_specified="$BUILD_CXX" 45697 tool_basename="${tool_specified##*/}" 45698 if test "x$tool_basename" = "x$tool_specified"; then 45699 # A command without a complete path is provided, search $PATH. 45700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 45701 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 45702 # Extract the first word of "$tool_basename", so it can be a program name with args. 45703 set dummy $tool_basename; ac_word=$2 45704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45705 $as_echo_n "checking for $ac_word... " >&6; } 45706 if ${ac_cv_path_BUILD_CXX+:} false; then : 45707 $as_echo_n "(cached) " >&6 45708 else 45709 case $BUILD_CXX in 45710 [\\/]* | ?:[\\/]*) 45711 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45712 ;; 45713 *) 45714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45715 for as_dir in $PATH 45716 do 45717 IFS=$as_save_IFS 45718 test -z "$as_dir" && as_dir=. 45719 for ac_exec_ext in '' $ac_executable_extensions; do 45720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45721 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45723 break 2 45724 fi 45725 done 45726 done 45727 IFS=$as_save_IFS 45728 45729 ;; 45730 esac 45731 fi 45732 BUILD_CXX=$ac_cv_path_BUILD_CXX 45733 if test -n "$BUILD_CXX"; then 45734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45735 $as_echo "$BUILD_CXX" >&6; } 45736 else 45737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45738 $as_echo "no" >&6; } 45739 fi 45740 45741 45742 if test "x$BUILD_CXX" = x; then 45743 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45744 fi 45745 else 45746 # Otherwise we believe it is a complete path. Use it as it is. 45747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 45748 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 45749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45750 $as_echo_n "checking for BUILD_CXX... " >&6; } 45751 if test ! -x "$tool_specified"; then 45752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45753 $as_echo "not found" >&6; } 45754 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 45755 fi 45756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45757 $as_echo "$tool_specified" >&6; } 45758 fi 45759 fi 45760 fi 45761 45762 fi 45763 45764 45765 45766 if test "x$BUILD_CXX" = x; then 45767 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 45768 fi 45769 45770 45771 45772 # Only process if variable expands to non-empty 45773 45774 if test "x$BUILD_CXX" != x; then 45775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45776 45777 # First separate the path from the arguments. This will split at the first 45778 # space. 45779 complete="$BUILD_CXX" 45780 path="${complete%% *}" 45781 tmp="$complete EOL" 45782 arguments="${tmp#* }" 45783 45784 # Input might be given as Windows format, start by converting to 45785 # unix format. 45786 new_path=`$CYGPATH -u "$path"` 45787 45788 # Now try to locate executable using which 45789 new_path=`$WHICH "$new_path" 2> /dev/null` 45790 # bat and cmd files are not always considered executable in cygwin causing which 45791 # to not find them 45792 if test "x$new_path" = x \ 45793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45795 new_path=`$CYGPATH -u "$path"` 45796 fi 45797 if test "x$new_path" = x; then 45798 # Oops. Which didn't find the executable. 45799 # The splitting of arguments from the executable at a space might have been incorrect, 45800 # since paths with space are more likely in Windows. Give it another try with the whole 45801 # argument. 45802 path="$complete" 45803 arguments="EOL" 45804 new_path=`$CYGPATH -u "$path"` 45805 new_path=`$WHICH "$new_path" 2> /dev/null` 45806 # bat and cmd files are not always considered executable in cygwin causing which 45807 # to not find them 45808 if test "x$new_path" = x \ 45809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45811 new_path=`$CYGPATH -u "$path"` 45812 fi 45813 if test "x$new_path" = x; then 45814 # It's still not found. Now this is an unrecoverable error. 45815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45816 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45817 has_space=`$ECHO "$complete" | $GREP " "` 45818 if test "x$has_space" != x; then 45819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45821 fi 45822 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45823 fi 45824 fi 45825 45826 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45827 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45828 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45829 # "foo.exe" is OK but "foo" is an error. 45830 # 45831 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45832 # It is also a way to make sure we got the proper file name for the real test later on. 45833 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45834 if test "x$test_shortpath" = x; then 45835 # Short path failed, file does not exist as specified. 45836 # Try adding .exe or .cmd 45837 if test -f "${new_path}.exe"; then 45838 input_to_shortpath="${new_path}.exe" 45839 elif test -f "${new_path}.cmd"; then 45840 input_to_shortpath="${new_path}.cmd" 45841 else 45842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 45843 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 45844 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45845 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45846 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45847 fi 45848 else 45849 input_to_shortpath="$new_path" 45850 fi 45851 45852 # Call helper function which possibly converts this using DOS-style short mode. 45853 # If so, the updated path is stored in $new_path. 45854 new_path="$input_to_shortpath" 45855 45856 input_path="$input_to_shortpath" 45857 # Check if we need to convert this using DOS-style short mode. If the path 45858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45859 # take no chances and rewrite it. 45860 # Note: m4 eats our [], so we need to use [ and ] instead. 45861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45862 if test "x$has_forbidden_chars" != x; then 45863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45867 # Going to short mode and back again did indeed matter. Since short mode is 45868 # case insensitive, let's make it lowercase to improve readability. 45869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45870 # Now convert it back to Unix-style (cygpath) 45871 input_path=`$CYGPATH -u "$shortmode_path"` 45872 new_path="$input_path" 45873 fi 45874 fi 45875 45876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45877 if test "x$test_cygdrive_prefix" = x; then 45878 # As a simple fix, exclude /usr/bin since it's not a real path. 45879 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45881 # a path prefixed by /cygdrive for fixpath to work. 45882 new_path="$CYGWIN_ROOT_PATH$input_path" 45883 fi 45884 fi 45885 45886 # remove trailing .exe if any 45887 new_path="${new_path/%.exe/}" 45888 45889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45890 45891 # First separate the path from the arguments. This will split at the first 45892 # space. 45893 complete="$BUILD_CXX" 45894 path="${complete%% *}" 45895 tmp="$complete EOL" 45896 arguments="${tmp#* }" 45897 45898 # Input might be given as Windows format, start by converting to 45899 # unix format. 45900 new_path="$path" 45901 45902 windows_path="$new_path" 45903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45904 unix_path=`$CYGPATH -u "$windows_path"` 45905 new_path="$unix_path" 45906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45908 new_path="$unix_path" 45909 fi 45910 45911 45912 # Now try to locate executable using which 45913 new_path=`$WHICH "$new_path" 2> /dev/null` 45914 45915 if test "x$new_path" = x; then 45916 # Oops. Which didn't find the executable. 45917 # The splitting of arguments from the executable at a space might have been incorrect, 45918 # since paths with space are more likely in Windows. Give it another try with the whole 45919 # argument. 45920 path="$complete" 45921 arguments="EOL" 45922 new_path="$path" 45923 45924 windows_path="$new_path" 45925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45926 unix_path=`$CYGPATH -u "$windows_path"` 45927 new_path="$unix_path" 45928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45930 new_path="$unix_path" 45931 fi 45932 45933 45934 new_path=`$WHICH "$new_path" 2> /dev/null` 45935 # bat and cmd files are not always considered executable in MSYS causing which 45936 # to not find them 45937 if test "x$new_path" = x \ 45938 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45939 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45940 new_path="$path" 45941 45942 windows_path="$new_path" 45943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45944 unix_path=`$CYGPATH -u "$windows_path"` 45945 new_path="$unix_path" 45946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45948 new_path="$unix_path" 45949 fi 45950 45951 fi 45952 45953 if test "x$new_path" = x; then 45954 # It's still not found. Now this is an unrecoverable error. 45955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45956 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45957 has_space=`$ECHO "$complete" | $GREP " "` 45958 if test "x$has_space" != x; then 45959 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45961 fi 45962 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45963 fi 45964 fi 45965 45966 # Now new_path has a complete unix path to the binary 45967 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45968 # Keep paths in /bin as-is, but remove trailing .exe if any 45969 new_path="${new_path/%.exe/}" 45970 # Do not save /bin paths to all_fixpath_prefixes! 45971 else 45972 # Not in mixed or Windows style, start by that. 45973 new_path=`cmd //c echo $new_path` 45974 45975 input_path="$new_path" 45976 # Check if we need to convert this using DOS-style short mode. If the path 45977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45978 # take no chances and rewrite it. 45979 # Note: m4 eats our [], so we need to use [ and ] instead. 45980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45981 if test "x$has_forbidden_chars" != x; then 45982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45984 fi 45985 45986 # Output is in $new_path 45987 45988 windows_path="$new_path" 45989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45990 unix_path=`$CYGPATH -u "$windows_path"` 45991 new_path="$unix_path" 45992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45994 new_path="$unix_path" 45995 fi 45996 45997 # remove trailing .exe if any 45998 new_path="${new_path/%.exe/}" 45999 46000 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46001 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46002 fi 46003 46004 else 46005 # We're on a unix platform. Hooray! :) 46006 # First separate the path from the arguments. This will split at the first 46007 # space. 46008 complete="$BUILD_CXX" 46009 path="${complete%% *}" 46010 tmp="$complete EOL" 46011 arguments="${tmp#* }" 46012 46013 # Cannot rely on the command "which" here since it doesn't always work. 46014 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46015 if test -z "$is_absolute_path"; then 46016 # Path to executable is not absolute. Find it. 46017 IFS_save="$IFS" 46018 IFS=: 46019 for p in $PATH; do 46020 if test -f "$p/$path" && test -x "$p/$path"; then 46021 new_path="$p/$path" 46022 break 46023 fi 46024 done 46025 IFS="$IFS_save" 46026 else 46027 # This is an absolute path, we can use it without further modifications. 46028 new_path="$path" 46029 fi 46030 46031 if test "x$new_path" = x; then 46032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46033 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46034 has_space=`$ECHO "$complete" | $GREP " "` 46035 if test "x$has_space" != x; then 46036 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46037 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46038 fi 46039 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46040 fi 46041 fi 46042 46043 # Now join together the path and the arguments once again 46044 if test "x$arguments" != xEOL; then 46045 new_complete="$new_path ${arguments% *}" 46046 else 46047 new_complete="$new_path" 46048 fi 46049 46050 if test "x$complete" != "x$new_complete"; then 46051 BUILD_CXX="$new_complete" 46052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46053 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46054 fi 46055 fi 46056 46057 46058 46059 # Publish this variable in the help. 46060 46061 46062 if [ -z "${BUILD_NM+x}" ]; then 46063 # The variable is not set by user, try to locate tool using the code snippet 46064 for ac_prog in nm gcc-nm 46065 do 46066 # Extract the first word of "$ac_prog", so it can be a program name with args. 46067 set dummy $ac_prog; ac_word=$2 46068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46069 $as_echo_n "checking for $ac_word... " >&6; } 46070 if ${ac_cv_path_BUILD_NM+:} false; then : 46071 $as_echo_n "(cached) " >&6 46072 else 46073 case $BUILD_NM in 46074 [\\/]* | ?:[\\/]*) 46075 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46076 ;; 46077 *) 46078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46079 for as_dir in $PATH 46080 do 46081 IFS=$as_save_IFS 46082 test -z "$as_dir" && as_dir=. 46083 for ac_exec_ext in '' $ac_executable_extensions; do 46084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46085 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46087 break 2 46088 fi 46089 done 46090 done 46091 IFS=$as_save_IFS 46092 46093 ;; 46094 esac 46095 fi 46096 BUILD_NM=$ac_cv_path_BUILD_NM 46097 if test -n "$BUILD_NM"; then 46098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46099 $as_echo "$BUILD_NM" >&6; } 46100 else 46101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46102 $as_echo "no" >&6; } 46103 fi 46104 46105 46106 test -n "$BUILD_NM" && break 46107 done 46108 46109 else 46110 # The variable is set, but is it from the command line or the environment? 46111 46112 # Try to remove the string !BUILD_NM! from our list. 46113 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46114 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46115 # If it failed, the variable was not from the command line. Ignore it, 46116 # but warn the user (except for BASH, which is always set by the calling BASH). 46117 if test "xBUILD_NM" != xBASH; then 46118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46119 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46120 fi 46121 # Try to locate tool using the code snippet 46122 for ac_prog in nm gcc-nm 46123 do 46124 # Extract the first word of "$ac_prog", so it can be a program name with args. 46125 set dummy $ac_prog; ac_word=$2 46126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46127 $as_echo_n "checking for $ac_word... " >&6; } 46128 if ${ac_cv_path_BUILD_NM+:} false; then : 46129 $as_echo_n "(cached) " >&6 46130 else 46131 case $BUILD_NM in 46132 [\\/]* | ?:[\\/]*) 46133 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46134 ;; 46135 *) 46136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46137 for as_dir in $PATH 46138 do 46139 IFS=$as_save_IFS 46140 test -z "$as_dir" && as_dir=. 46141 for ac_exec_ext in '' $ac_executable_extensions; do 46142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46143 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46145 break 2 46146 fi 46147 done 46148 done 46149 IFS=$as_save_IFS 46150 46151 ;; 46152 esac 46153 fi 46154 BUILD_NM=$ac_cv_path_BUILD_NM 46155 if test -n "$BUILD_NM"; then 46156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46157 $as_echo "$BUILD_NM" >&6; } 46158 else 46159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46160 $as_echo "no" >&6; } 46161 fi 46162 46163 46164 test -n "$BUILD_NM" && break 46165 done 46166 46167 else 46168 # If it succeeded, then it was overridden by the user. We will use it 46169 # for the tool. 46170 46171 # First remove it from the list of overridden variables, so we can test 46172 # for unknown variables in the end. 46173 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46174 46175 # Check if we try to supply an empty value 46176 if test "x$BUILD_NM" = x; then 46177 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 46178 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 46179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46180 $as_echo_n "checking for BUILD_NM... " >&6; } 46181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46182 $as_echo "disabled" >&6; } 46183 else 46184 # Check if the provided tool contains a complete path. 46185 tool_specified="$BUILD_NM" 46186 tool_basename="${tool_specified##*/}" 46187 if test "x$tool_basename" = "x$tool_specified"; then 46188 # A command without a complete path is provided, search $PATH. 46189 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 46190 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 46191 # Extract the first word of "$tool_basename", so it can be a program name with args. 46192 set dummy $tool_basename; ac_word=$2 46193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46194 $as_echo_n "checking for $ac_word... " >&6; } 46195 if ${ac_cv_path_BUILD_NM+:} false; then : 46196 $as_echo_n "(cached) " >&6 46197 else 46198 case $BUILD_NM in 46199 [\\/]* | ?:[\\/]*) 46200 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46201 ;; 46202 *) 46203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46204 for as_dir in $PATH 46205 do 46206 IFS=$as_save_IFS 46207 test -z "$as_dir" && as_dir=. 46208 for ac_exec_ext in '' $ac_executable_extensions; do 46209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46210 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46212 break 2 46213 fi 46214 done 46215 done 46216 IFS=$as_save_IFS 46217 46218 ;; 46219 esac 46220 fi 46221 BUILD_NM=$ac_cv_path_BUILD_NM 46222 if test -n "$BUILD_NM"; then 46223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46224 $as_echo "$BUILD_NM" >&6; } 46225 else 46226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46227 $as_echo "no" >&6; } 46228 fi 46229 46230 46231 if test "x$BUILD_NM" = x; then 46232 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46233 fi 46234 else 46235 # Otherwise we believe it is a complete path. Use it as it is. 46236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 46237 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 46238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46239 $as_echo_n "checking for BUILD_NM... " >&6; } 46240 if test ! -x "$tool_specified"; then 46241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46242 $as_echo "not found" >&6; } 46243 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 46244 fi 46245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46246 $as_echo "$tool_specified" >&6; } 46247 fi 46248 fi 46249 fi 46250 46251 fi 46252 46253 46254 46255 # Only process if variable expands to non-empty 46256 46257 if test "x$BUILD_NM" != x; then 46258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46259 46260 # First separate the path from the arguments. This will split at the first 46261 # space. 46262 complete="$BUILD_NM" 46263 path="${complete%% *}" 46264 tmp="$complete EOL" 46265 arguments="${tmp#* }" 46266 46267 # Input might be given as Windows format, start by converting to 46268 # unix format. 46269 new_path=`$CYGPATH -u "$path"` 46270 46271 # Now try to locate executable using which 46272 new_path=`$WHICH "$new_path" 2> /dev/null` 46273 # bat and cmd files are not always considered executable in cygwin causing which 46274 # to not find them 46275 if test "x$new_path" = x \ 46276 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46277 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46278 new_path=`$CYGPATH -u "$path"` 46279 fi 46280 if test "x$new_path" = x; then 46281 # Oops. Which didn't find the executable. 46282 # The splitting of arguments from the executable at a space might have been incorrect, 46283 # since paths with space are more likely in Windows. Give it another try with the whole 46284 # argument. 46285 path="$complete" 46286 arguments="EOL" 46287 new_path=`$CYGPATH -u "$path"` 46288 new_path=`$WHICH "$new_path" 2> /dev/null` 46289 # bat and cmd files are not always considered executable in cygwin causing which 46290 # to not find them 46291 if test "x$new_path" = x \ 46292 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46293 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46294 new_path=`$CYGPATH -u "$path"` 46295 fi 46296 if test "x$new_path" = x; then 46297 # It's still not found. Now this is an unrecoverable error. 46298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46299 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46300 has_space=`$ECHO "$complete" | $GREP " "` 46301 if test "x$has_space" != x; then 46302 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46303 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46304 fi 46305 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46306 fi 46307 fi 46308 46309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46312 # "foo.exe" is OK but "foo" is an error. 46313 # 46314 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46315 # It is also a way to make sure we got the proper file name for the real test later on. 46316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46317 if test "x$test_shortpath" = x; then 46318 # Short path failed, file does not exist as specified. 46319 # Try adding .exe or .cmd 46320 if test -f "${new_path}.exe"; then 46321 input_to_shortpath="${new_path}.exe" 46322 elif test -f "${new_path}.cmd"; then 46323 input_to_shortpath="${new_path}.cmd" 46324 else 46325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 46326 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 46327 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46328 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46329 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46330 fi 46331 else 46332 input_to_shortpath="$new_path" 46333 fi 46334 46335 # Call helper function which possibly converts this using DOS-style short mode. 46336 # If so, the updated path is stored in $new_path. 46337 new_path="$input_to_shortpath" 46338 46339 input_path="$input_to_shortpath" 46340 # Check if we need to convert this using DOS-style short mode. If the path 46341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46342 # take no chances and rewrite it. 46343 # Note: m4 eats our [], so we need to use [ and ] instead. 46344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46345 if test "x$has_forbidden_chars" != x; then 46346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46350 # Going to short mode and back again did indeed matter. Since short mode is 46351 # case insensitive, let's make it lowercase to improve readability. 46352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46353 # Now convert it back to Unix-style (cygpath) 46354 input_path=`$CYGPATH -u "$shortmode_path"` 46355 new_path="$input_path" 46356 fi 46357 fi 46358 46359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46360 if test "x$test_cygdrive_prefix" = x; then 46361 # As a simple fix, exclude /usr/bin since it's not a real path. 46362 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46364 # a path prefixed by /cygdrive for fixpath to work. 46365 new_path="$CYGWIN_ROOT_PATH$input_path" 46366 fi 46367 fi 46368 46369 # remove trailing .exe if any 46370 new_path="${new_path/%.exe/}" 46371 46372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46373 46374 # First separate the path from the arguments. This will split at the first 46375 # space. 46376 complete="$BUILD_NM" 46377 path="${complete%% *}" 46378 tmp="$complete EOL" 46379 arguments="${tmp#* }" 46380 46381 # Input might be given as Windows format, start by converting to 46382 # unix format. 46383 new_path="$path" 46384 46385 windows_path="$new_path" 46386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46387 unix_path=`$CYGPATH -u "$windows_path"` 46388 new_path="$unix_path" 46389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46391 new_path="$unix_path" 46392 fi 46393 46394 46395 # Now try to locate executable using which 46396 new_path=`$WHICH "$new_path" 2> /dev/null` 46397 46398 if test "x$new_path" = x; then 46399 # Oops. Which didn't find the executable. 46400 # The splitting of arguments from the executable at a space might have been incorrect, 46401 # since paths with space are more likely in Windows. Give it another try with the whole 46402 # argument. 46403 path="$complete" 46404 arguments="EOL" 46405 new_path="$path" 46406 46407 windows_path="$new_path" 46408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46409 unix_path=`$CYGPATH -u "$windows_path"` 46410 new_path="$unix_path" 46411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46413 new_path="$unix_path" 46414 fi 46415 46416 46417 new_path=`$WHICH "$new_path" 2> /dev/null` 46418 # bat and cmd files are not always considered executable in MSYS causing which 46419 # to not find them 46420 if test "x$new_path" = x \ 46421 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46422 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46423 new_path="$path" 46424 46425 windows_path="$new_path" 46426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46427 unix_path=`$CYGPATH -u "$windows_path"` 46428 new_path="$unix_path" 46429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46431 new_path="$unix_path" 46432 fi 46433 46434 fi 46435 46436 if test "x$new_path" = x; then 46437 # It's still not found. Now this is an unrecoverable error. 46438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46439 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46440 has_space=`$ECHO "$complete" | $GREP " "` 46441 if test "x$has_space" != x; then 46442 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46443 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46444 fi 46445 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46446 fi 46447 fi 46448 46449 # Now new_path has a complete unix path to the binary 46450 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46451 # Keep paths in /bin as-is, but remove trailing .exe if any 46452 new_path="${new_path/%.exe/}" 46453 # Do not save /bin paths to all_fixpath_prefixes! 46454 else 46455 # Not in mixed or Windows style, start by that. 46456 new_path=`cmd //c echo $new_path` 46457 46458 input_path="$new_path" 46459 # Check if we need to convert this using DOS-style short mode. If the path 46460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46461 # take no chances and rewrite it. 46462 # Note: m4 eats our [], so we need to use [ and ] instead. 46463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46464 if test "x$has_forbidden_chars" != x; then 46465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46466 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46467 fi 46468 46469 # Output is in $new_path 46470 46471 windows_path="$new_path" 46472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46473 unix_path=`$CYGPATH -u "$windows_path"` 46474 new_path="$unix_path" 46475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46477 new_path="$unix_path" 46478 fi 46479 46480 # remove trailing .exe if any 46481 new_path="${new_path/%.exe/}" 46482 46483 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46484 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46485 fi 46486 46487 else 46488 # We're on a unix platform. Hooray! :) 46489 # First separate the path from the arguments. This will split at the first 46490 # space. 46491 complete="$BUILD_NM" 46492 path="${complete%% *}" 46493 tmp="$complete EOL" 46494 arguments="${tmp#* }" 46495 46496 # Cannot rely on the command "which" here since it doesn't always work. 46497 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46498 if test -z "$is_absolute_path"; then 46499 # Path to executable is not absolute. Find it. 46500 IFS_save="$IFS" 46501 IFS=: 46502 for p in $PATH; do 46503 if test -f "$p/$path" && test -x "$p/$path"; then 46504 new_path="$p/$path" 46505 break 46506 fi 46507 done 46508 IFS="$IFS_save" 46509 else 46510 # This is an absolute path, we can use it without further modifications. 46511 new_path="$path" 46512 fi 46513 46514 if test "x$new_path" = x; then 46515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46516 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46517 has_space=`$ECHO "$complete" | $GREP " "` 46518 if test "x$has_space" != x; then 46519 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46520 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46521 fi 46522 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46523 fi 46524 fi 46525 46526 # Now join together the path and the arguments once again 46527 if test "x$arguments" != xEOL; then 46528 new_complete="$new_path ${arguments% *}" 46529 else 46530 new_complete="$new_path" 46531 fi 46532 46533 if test "x$complete" != "x$new_complete"; then 46534 BUILD_NM="$new_complete" 46535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 46536 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 46537 fi 46538 fi 46539 46540 46541 46542 # Publish this variable in the help. 46543 46544 46545 if [ -z "${BUILD_AR+x}" ]; then 46546 # The variable is not set by user, try to locate tool using the code snippet 46547 for ac_prog in ar gcc-ar 46548 do 46549 # Extract the first word of "$ac_prog", so it can be a program name with args. 46550 set dummy $ac_prog; ac_word=$2 46551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46552 $as_echo_n "checking for $ac_word... " >&6; } 46553 if ${ac_cv_path_BUILD_AR+:} false; then : 46554 $as_echo_n "(cached) " >&6 46555 else 46556 case $BUILD_AR in 46557 [\\/]* | ?:[\\/]*) 46558 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46559 ;; 46560 *) 46561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46562 for as_dir in $PATH 46563 do 46564 IFS=$as_save_IFS 46565 test -z "$as_dir" && as_dir=. 46566 for ac_exec_ext in '' $ac_executable_extensions; do 46567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46568 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46570 break 2 46571 fi 46572 done 46573 done 46574 IFS=$as_save_IFS 46575 46576 ;; 46577 esac 46578 fi 46579 BUILD_AR=$ac_cv_path_BUILD_AR 46580 if test -n "$BUILD_AR"; then 46581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46582 $as_echo "$BUILD_AR" >&6; } 46583 else 46584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46585 $as_echo "no" >&6; } 46586 fi 46587 46588 46589 test -n "$BUILD_AR" && break 46590 done 46591 46592 else 46593 # The variable is set, but is it from the command line or the environment? 46594 46595 # Try to remove the string !BUILD_AR! from our list. 46596 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 46597 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46598 # If it failed, the variable was not from the command line. Ignore it, 46599 # but warn the user (except for BASH, which is always set by the calling BASH). 46600 if test "xBUILD_AR" != xBASH; then 46601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 46602 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 46603 fi 46604 # Try to locate tool using the code snippet 46605 for ac_prog in ar gcc-ar 46606 do 46607 # Extract the first word of "$ac_prog", so it can be a program name with args. 46608 set dummy $ac_prog; ac_word=$2 46609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46610 $as_echo_n "checking for $ac_word... " >&6; } 46611 if ${ac_cv_path_BUILD_AR+:} false; then : 46612 $as_echo_n "(cached) " >&6 46613 else 46614 case $BUILD_AR in 46615 [\\/]* | ?:[\\/]*) 46616 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46617 ;; 46618 *) 46619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46620 for as_dir in $PATH 46621 do 46622 IFS=$as_save_IFS 46623 test -z "$as_dir" && as_dir=. 46624 for ac_exec_ext in '' $ac_executable_extensions; do 46625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46626 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46628 break 2 46629 fi 46630 done 46631 done 46632 IFS=$as_save_IFS 46633 46634 ;; 46635 esac 46636 fi 46637 BUILD_AR=$ac_cv_path_BUILD_AR 46638 if test -n "$BUILD_AR"; then 46639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46640 $as_echo "$BUILD_AR" >&6; } 46641 else 46642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46643 $as_echo "no" >&6; } 46644 fi 46645 46646 46647 test -n "$BUILD_AR" && break 46648 done 46649 46650 else 46651 # If it succeeded, then it was overridden by the user. We will use it 46652 # for the tool. 46653 46654 # First remove it from the list of overridden variables, so we can test 46655 # for unknown variables in the end. 46656 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46657 46658 # Check if we try to supply an empty value 46659 if test "x$BUILD_AR" = x; then 46660 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 46661 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 46662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46663 $as_echo_n "checking for BUILD_AR... " >&6; } 46664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46665 $as_echo "disabled" >&6; } 46666 else 46667 # Check if the provided tool contains a complete path. 46668 tool_specified="$BUILD_AR" 46669 tool_basename="${tool_specified##*/}" 46670 if test "x$tool_basename" = "x$tool_specified"; then 46671 # A command without a complete path is provided, search $PATH. 46672 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 46673 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 46674 # Extract the first word of "$tool_basename", so it can be a program name with args. 46675 set dummy $tool_basename; ac_word=$2 46676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46677 $as_echo_n "checking for $ac_word... " >&6; } 46678 if ${ac_cv_path_BUILD_AR+:} false; then : 46679 $as_echo_n "(cached) " >&6 46680 else 46681 case $BUILD_AR in 46682 [\\/]* | ?:[\\/]*) 46683 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46684 ;; 46685 *) 46686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46687 for as_dir in $PATH 46688 do 46689 IFS=$as_save_IFS 46690 test -z "$as_dir" && as_dir=. 46691 for ac_exec_ext in '' $ac_executable_extensions; do 46692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46693 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46695 break 2 46696 fi 46697 done 46698 done 46699 IFS=$as_save_IFS 46700 46701 ;; 46702 esac 46703 fi 46704 BUILD_AR=$ac_cv_path_BUILD_AR 46705 if test -n "$BUILD_AR"; then 46706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46707 $as_echo "$BUILD_AR" >&6; } 46708 else 46709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46710 $as_echo "no" >&6; } 46711 fi 46712 46713 46714 if test "x$BUILD_AR" = x; then 46715 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46716 fi 46717 else 46718 # Otherwise we believe it is a complete path. Use it as it is. 46719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 46720 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 46721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46722 $as_echo_n "checking for BUILD_AR... " >&6; } 46723 if test ! -x "$tool_specified"; then 46724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46725 $as_echo "not found" >&6; } 46726 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 46727 fi 46728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46729 $as_echo "$tool_specified" >&6; } 46730 fi 46731 fi 46732 fi 46733 46734 fi 46735 46736 46737 46738 # Only process if variable expands to non-empty 46739 46740 if test "x$BUILD_AR" != x; then 46741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46742 46743 # First separate the path from the arguments. This will split at the first 46744 # space. 46745 complete="$BUILD_AR" 46746 path="${complete%% *}" 46747 tmp="$complete EOL" 46748 arguments="${tmp#* }" 46749 46750 # Input might be given as Windows format, start by converting to 46751 # unix format. 46752 new_path=`$CYGPATH -u "$path"` 46753 46754 # Now try to locate executable using which 46755 new_path=`$WHICH "$new_path" 2> /dev/null` 46756 # bat and cmd files are not always considered executable in cygwin causing which 46757 # to not find them 46758 if test "x$new_path" = x \ 46759 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46760 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46761 new_path=`$CYGPATH -u "$path"` 46762 fi 46763 if test "x$new_path" = x; then 46764 # Oops. Which didn't find the executable. 46765 # The splitting of arguments from the executable at a space might have been incorrect, 46766 # since paths with space are more likely in Windows. Give it another try with the whole 46767 # argument. 46768 path="$complete" 46769 arguments="EOL" 46770 new_path=`$CYGPATH -u "$path"` 46771 new_path=`$WHICH "$new_path" 2> /dev/null` 46772 # bat and cmd files are not always considered executable in cygwin causing which 46773 # to not find them 46774 if test "x$new_path" = x \ 46775 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46776 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46777 new_path=`$CYGPATH -u "$path"` 46778 fi 46779 if test "x$new_path" = x; then 46780 # It's still not found. Now this is an unrecoverable error. 46781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46782 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46783 has_space=`$ECHO "$complete" | $GREP " "` 46784 if test "x$has_space" != x; then 46785 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46786 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46787 fi 46788 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46789 fi 46790 fi 46791 46792 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46793 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46794 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46795 # "foo.exe" is OK but "foo" is an error. 46796 # 46797 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46798 # It is also a way to make sure we got the proper file name for the real test later on. 46799 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46800 if test "x$test_shortpath" = x; then 46801 # Short path failed, file does not exist as specified. 46802 # Try adding .exe or .cmd 46803 if test -f "${new_path}.exe"; then 46804 input_to_shortpath="${new_path}.exe" 46805 elif test -f "${new_path}.cmd"; then 46806 input_to_shortpath="${new_path}.cmd" 46807 else 46808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 46809 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 46810 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46811 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46812 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46813 fi 46814 else 46815 input_to_shortpath="$new_path" 46816 fi 46817 46818 # Call helper function which possibly converts this using DOS-style short mode. 46819 # If so, the updated path is stored in $new_path. 46820 new_path="$input_to_shortpath" 46821 46822 input_path="$input_to_shortpath" 46823 # Check if we need to convert this using DOS-style short mode. If the path 46824 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46825 # take no chances and rewrite it. 46826 # Note: m4 eats our [], so we need to use [ and ] instead. 46827 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46828 if test "x$has_forbidden_chars" != x; then 46829 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46830 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46831 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46832 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46833 # Going to short mode and back again did indeed matter. Since short mode is 46834 # case insensitive, let's make it lowercase to improve readability. 46835 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46836 # Now convert it back to Unix-style (cygpath) 46837 input_path=`$CYGPATH -u "$shortmode_path"` 46838 new_path="$input_path" 46839 fi 46840 fi 46841 46842 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46843 if test "x$test_cygdrive_prefix" = x; then 46844 # As a simple fix, exclude /usr/bin since it's not a real path. 46845 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46846 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46847 # a path prefixed by /cygdrive for fixpath to work. 46848 new_path="$CYGWIN_ROOT_PATH$input_path" 46849 fi 46850 fi 46851 46852 # remove trailing .exe if any 46853 new_path="${new_path/%.exe/}" 46854 46855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46856 46857 # First separate the path from the arguments. This will split at the first 46858 # space. 46859 complete="$BUILD_AR" 46860 path="${complete%% *}" 46861 tmp="$complete EOL" 46862 arguments="${tmp#* }" 46863 46864 # Input might be given as Windows format, start by converting to 46865 # unix format. 46866 new_path="$path" 46867 46868 windows_path="$new_path" 46869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46870 unix_path=`$CYGPATH -u "$windows_path"` 46871 new_path="$unix_path" 46872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46873 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46874 new_path="$unix_path" 46875 fi 46876 46877 46878 # Now try to locate executable using which 46879 new_path=`$WHICH "$new_path" 2> /dev/null` 46880 46881 if test "x$new_path" = x; then 46882 # Oops. Which didn't find the executable. 46883 # The splitting of arguments from the executable at a space might have been incorrect, 46884 # since paths with space are more likely in Windows. Give it another try with the whole 46885 # argument. 46886 path="$complete" 46887 arguments="EOL" 46888 new_path="$path" 46889 46890 windows_path="$new_path" 46891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46892 unix_path=`$CYGPATH -u "$windows_path"` 46893 new_path="$unix_path" 46894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46896 new_path="$unix_path" 46897 fi 46898 46899 46900 new_path=`$WHICH "$new_path" 2> /dev/null` 46901 # bat and cmd files are not always considered executable in MSYS causing which 46902 # to not find them 46903 if test "x$new_path" = x \ 46904 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46905 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46906 new_path="$path" 46907 46908 windows_path="$new_path" 46909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46910 unix_path=`$CYGPATH -u "$windows_path"` 46911 new_path="$unix_path" 46912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46913 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46914 new_path="$unix_path" 46915 fi 46916 46917 fi 46918 46919 if test "x$new_path" = x; then 46920 # It's still not found. Now this is an unrecoverable error. 46921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46922 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46923 has_space=`$ECHO "$complete" | $GREP " "` 46924 if test "x$has_space" != x; then 46925 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46926 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46927 fi 46928 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46929 fi 46930 fi 46931 46932 # Now new_path has a complete unix path to the binary 46933 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46934 # Keep paths in /bin as-is, but remove trailing .exe if any 46935 new_path="${new_path/%.exe/}" 46936 # Do not save /bin paths to all_fixpath_prefixes! 46937 else 46938 # Not in mixed or Windows style, start by that. 46939 new_path=`cmd //c echo $new_path` 46940 46941 input_path="$new_path" 46942 # Check if we need to convert this using DOS-style short mode. If the path 46943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46944 # take no chances and rewrite it. 46945 # Note: m4 eats our [], so we need to use [ and ] instead. 46946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46947 if test "x$has_forbidden_chars" != x; then 46948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46949 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46950 fi 46951 46952 # Output is in $new_path 46953 46954 windows_path="$new_path" 46955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46956 unix_path=`$CYGPATH -u "$windows_path"` 46957 new_path="$unix_path" 46958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46960 new_path="$unix_path" 46961 fi 46962 46963 # remove trailing .exe if any 46964 new_path="${new_path/%.exe/}" 46965 46966 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46967 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46968 fi 46969 46970 else 46971 # We're on a unix platform. Hooray! :) 46972 # First separate the path from the arguments. This will split at the first 46973 # space. 46974 complete="$BUILD_AR" 46975 path="${complete%% *}" 46976 tmp="$complete EOL" 46977 arguments="${tmp#* }" 46978 46979 # Cannot rely on the command "which" here since it doesn't always work. 46980 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46981 if test -z "$is_absolute_path"; then 46982 # Path to executable is not absolute. Find it. 46983 IFS_save="$IFS" 46984 IFS=: 46985 for p in $PATH; do 46986 if test -f "$p/$path" && test -x "$p/$path"; then 46987 new_path="$p/$path" 46988 break 46989 fi 46990 done 46991 IFS="$IFS_save" 46992 else 46993 # This is an absolute path, we can use it without further modifications. 46994 new_path="$path" 46995 fi 46996 46997 if test "x$new_path" = x; then 46998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46999 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47000 has_space=`$ECHO "$complete" | $GREP " "` 47001 if test "x$has_space" != x; then 47002 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47003 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47004 fi 47005 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47006 fi 47007 fi 47008 47009 # Now join together the path and the arguments once again 47010 if test "x$arguments" != xEOL; then 47011 new_complete="$new_path ${arguments% *}" 47012 else 47013 new_complete="$new_path" 47014 fi 47015 47016 if test "x$complete" != "x$new_complete"; then 47017 BUILD_AR="$new_complete" 47018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47019 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47020 fi 47021 fi 47022 47023 47024 47025 # Publish this variable in the help. 47026 47027 47028 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47029 # The variable is not set by user, try to locate tool using the code snippet 47030 for ac_prog in objcopy 47031 do 47032 # Extract the first word of "$ac_prog", so it can be a program name with args. 47033 set dummy $ac_prog; ac_word=$2 47034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47035 $as_echo_n "checking for $ac_word... " >&6; } 47036 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47037 $as_echo_n "(cached) " >&6 47038 else 47039 case $BUILD_OBJCOPY in 47040 [\\/]* | ?:[\\/]*) 47041 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47042 ;; 47043 *) 47044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47045 for as_dir in $PATH 47046 do 47047 IFS=$as_save_IFS 47048 test -z "$as_dir" && as_dir=. 47049 for ac_exec_ext in '' $ac_executable_extensions; do 47050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47051 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47053 break 2 47054 fi 47055 done 47056 done 47057 IFS=$as_save_IFS 47058 47059 ;; 47060 esac 47061 fi 47062 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47063 if test -n "$BUILD_OBJCOPY"; then 47064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47065 $as_echo "$BUILD_OBJCOPY" >&6; } 47066 else 47067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47068 $as_echo "no" >&6; } 47069 fi 47070 47071 47072 test -n "$BUILD_OBJCOPY" && break 47073 done 47074 47075 else 47076 # The variable is set, but is it from the command line or the environment? 47077 47078 # Try to remove the string !BUILD_OBJCOPY! from our list. 47079 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47080 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47081 # If it failed, the variable was not from the command line. Ignore it, 47082 # but warn the user (except for BASH, which is always set by the calling BASH). 47083 if test "xBUILD_OBJCOPY" != xBASH; then 47084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47085 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47086 fi 47087 # Try to locate tool using the code snippet 47088 for ac_prog in objcopy 47089 do 47090 # Extract the first word of "$ac_prog", so it can be a program name with args. 47091 set dummy $ac_prog; ac_word=$2 47092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47093 $as_echo_n "checking for $ac_word... " >&6; } 47094 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47095 $as_echo_n "(cached) " >&6 47096 else 47097 case $BUILD_OBJCOPY in 47098 [\\/]* | ?:[\\/]*) 47099 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47100 ;; 47101 *) 47102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47103 for as_dir in $PATH 47104 do 47105 IFS=$as_save_IFS 47106 test -z "$as_dir" && as_dir=. 47107 for ac_exec_ext in '' $ac_executable_extensions; do 47108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47109 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47111 break 2 47112 fi 47113 done 47114 done 47115 IFS=$as_save_IFS 47116 47117 ;; 47118 esac 47119 fi 47120 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47121 if test -n "$BUILD_OBJCOPY"; then 47122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47123 $as_echo "$BUILD_OBJCOPY" >&6; } 47124 else 47125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47126 $as_echo "no" >&6; } 47127 fi 47128 47129 47130 test -n "$BUILD_OBJCOPY" && break 47131 done 47132 47133 else 47134 # If it succeeded, then it was overridden by the user. We will use it 47135 # for the tool. 47136 47137 # First remove it from the list of overridden variables, so we can test 47138 # for unknown variables in the end. 47139 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47140 47141 # Check if we try to supply an empty value 47142 if test "x$BUILD_OBJCOPY" = x; then 47143 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47144 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47146 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47148 $as_echo "disabled" >&6; } 47149 else 47150 # Check if the provided tool contains a complete path. 47151 tool_specified="$BUILD_OBJCOPY" 47152 tool_basename="${tool_specified##*/}" 47153 if test "x$tool_basename" = "x$tool_specified"; then 47154 # A command without a complete path is provided, search $PATH. 47155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 47156 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 47157 # Extract the first word of "$tool_basename", so it can be a program name with args. 47158 set dummy $tool_basename; ac_word=$2 47159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47160 $as_echo_n "checking for $ac_word... " >&6; } 47161 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47162 $as_echo_n "(cached) " >&6 47163 else 47164 case $BUILD_OBJCOPY in 47165 [\\/]* | ?:[\\/]*) 47166 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47167 ;; 47168 *) 47169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47170 for as_dir in $PATH 47171 do 47172 IFS=$as_save_IFS 47173 test -z "$as_dir" && as_dir=. 47174 for ac_exec_ext in '' $ac_executable_extensions; do 47175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47176 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47178 break 2 47179 fi 47180 done 47181 done 47182 IFS=$as_save_IFS 47183 47184 ;; 47185 esac 47186 fi 47187 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47188 if test -n "$BUILD_OBJCOPY"; then 47189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47190 $as_echo "$BUILD_OBJCOPY" >&6; } 47191 else 47192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47193 $as_echo "no" >&6; } 47194 fi 47195 47196 47197 if test "x$BUILD_OBJCOPY" = x; then 47198 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47199 fi 47200 else 47201 # Otherwise we believe it is a complete path. Use it as it is. 47202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 47203 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 47204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47205 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47206 if test ! -x "$tool_specified"; then 47207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47208 $as_echo "not found" >&6; } 47209 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 47210 fi 47211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47212 $as_echo "$tool_specified" >&6; } 47213 fi 47214 fi 47215 fi 47216 47217 fi 47218 47219 47220 47221 # Only process if variable expands to non-empty 47222 47223 if test "x$BUILD_OBJCOPY" != x; then 47224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47225 47226 # First separate the path from the arguments. This will split at the first 47227 # space. 47228 complete="$BUILD_OBJCOPY" 47229 path="${complete%% *}" 47230 tmp="$complete EOL" 47231 arguments="${tmp#* }" 47232 47233 # Input might be given as Windows format, start by converting to 47234 # unix format. 47235 new_path=`$CYGPATH -u "$path"` 47236 47237 # Now try to locate executable using which 47238 new_path=`$WHICH "$new_path" 2> /dev/null` 47239 # bat and cmd files are not always considered executable in cygwin causing which 47240 # to not find them 47241 if test "x$new_path" = x \ 47242 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47243 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47244 new_path=`$CYGPATH -u "$path"` 47245 fi 47246 if test "x$new_path" = x; then 47247 # Oops. Which didn't find the executable. 47248 # The splitting of arguments from the executable at a space might have been incorrect, 47249 # since paths with space are more likely in Windows. Give it another try with the whole 47250 # argument. 47251 path="$complete" 47252 arguments="EOL" 47253 new_path=`$CYGPATH -u "$path"` 47254 new_path=`$WHICH "$new_path" 2> /dev/null` 47255 # bat and cmd files are not always considered executable in cygwin causing which 47256 # to not find them 47257 if test "x$new_path" = x \ 47258 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47259 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47260 new_path=`$CYGPATH -u "$path"` 47261 fi 47262 if test "x$new_path" = x; then 47263 # It's still not found. Now this is an unrecoverable error. 47264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47265 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47266 has_space=`$ECHO "$complete" | $GREP " "` 47267 if test "x$has_space" != x; then 47268 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47269 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47270 fi 47271 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47272 fi 47273 fi 47274 47275 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47276 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47277 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47278 # "foo.exe" is OK but "foo" is an error. 47279 # 47280 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47281 # It is also a way to make sure we got the proper file name for the real test later on. 47282 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47283 if test "x$test_shortpath" = x; then 47284 # Short path failed, file does not exist as specified. 47285 # Try adding .exe or .cmd 47286 if test -f "${new_path}.exe"; then 47287 input_to_shortpath="${new_path}.exe" 47288 elif test -f "${new_path}.cmd"; then 47289 input_to_shortpath="${new_path}.cmd" 47290 else 47291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 47292 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 47293 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47294 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47295 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47296 fi 47297 else 47298 input_to_shortpath="$new_path" 47299 fi 47300 47301 # Call helper function which possibly converts this using DOS-style short mode. 47302 # If so, the updated path is stored in $new_path. 47303 new_path="$input_to_shortpath" 47304 47305 input_path="$input_to_shortpath" 47306 # Check if we need to convert this using DOS-style short mode. If the path 47307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47308 # take no chances and rewrite it. 47309 # Note: m4 eats our [], so we need to use [ and ] instead. 47310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47311 if test "x$has_forbidden_chars" != x; then 47312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47313 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47314 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47315 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47316 # Going to short mode and back again did indeed matter. Since short mode is 47317 # case insensitive, let's make it lowercase to improve readability. 47318 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47319 # Now convert it back to Unix-style (cygpath) 47320 input_path=`$CYGPATH -u "$shortmode_path"` 47321 new_path="$input_path" 47322 fi 47323 fi 47324 47325 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47326 if test "x$test_cygdrive_prefix" = x; then 47327 # As a simple fix, exclude /usr/bin since it's not a real path. 47328 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47329 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47330 # a path prefixed by /cygdrive for fixpath to work. 47331 new_path="$CYGWIN_ROOT_PATH$input_path" 47332 fi 47333 fi 47334 47335 # remove trailing .exe if any 47336 new_path="${new_path/%.exe/}" 47337 47338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47339 47340 # First separate the path from the arguments. This will split at the first 47341 # space. 47342 complete="$BUILD_OBJCOPY" 47343 path="${complete%% *}" 47344 tmp="$complete EOL" 47345 arguments="${tmp#* }" 47346 47347 # Input might be given as Windows format, start by converting to 47348 # unix format. 47349 new_path="$path" 47350 47351 windows_path="$new_path" 47352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47353 unix_path=`$CYGPATH -u "$windows_path"` 47354 new_path="$unix_path" 47355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47356 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47357 new_path="$unix_path" 47358 fi 47359 47360 47361 # Now try to locate executable using which 47362 new_path=`$WHICH "$new_path" 2> /dev/null` 47363 47364 if test "x$new_path" = x; then 47365 # Oops. Which didn't find the executable. 47366 # The splitting of arguments from the executable at a space might have been incorrect, 47367 # since paths with space are more likely in Windows. Give it another try with the whole 47368 # argument. 47369 path="$complete" 47370 arguments="EOL" 47371 new_path="$path" 47372 47373 windows_path="$new_path" 47374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47375 unix_path=`$CYGPATH -u "$windows_path"` 47376 new_path="$unix_path" 47377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47379 new_path="$unix_path" 47380 fi 47381 47382 47383 new_path=`$WHICH "$new_path" 2> /dev/null` 47384 # bat and cmd files are not always considered executable in MSYS causing which 47385 # to not find them 47386 if test "x$new_path" = x \ 47387 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47388 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47389 new_path="$path" 47390 47391 windows_path="$new_path" 47392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47393 unix_path=`$CYGPATH -u "$windows_path"` 47394 new_path="$unix_path" 47395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47397 new_path="$unix_path" 47398 fi 47399 47400 fi 47401 47402 if test "x$new_path" = x; then 47403 # It's still not found. Now this is an unrecoverable error. 47404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47405 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47406 has_space=`$ECHO "$complete" | $GREP " "` 47407 if test "x$has_space" != x; then 47408 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47409 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47410 fi 47411 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47412 fi 47413 fi 47414 47415 # Now new_path has a complete unix path to the binary 47416 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47417 # Keep paths in /bin as-is, but remove trailing .exe if any 47418 new_path="${new_path/%.exe/}" 47419 # Do not save /bin paths to all_fixpath_prefixes! 47420 else 47421 # Not in mixed or Windows style, start by that. 47422 new_path=`cmd //c echo $new_path` 47423 47424 input_path="$new_path" 47425 # Check if we need to convert this using DOS-style short mode. If the path 47426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47427 # take no chances and rewrite it. 47428 # Note: m4 eats our [], so we need to use [ and ] instead. 47429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47430 if test "x$has_forbidden_chars" != x; then 47431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47433 fi 47434 47435 # Output is in $new_path 47436 47437 windows_path="$new_path" 47438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47439 unix_path=`$CYGPATH -u "$windows_path"` 47440 new_path="$unix_path" 47441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47443 new_path="$unix_path" 47444 fi 47445 47446 # remove trailing .exe if any 47447 new_path="${new_path/%.exe/}" 47448 47449 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47450 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47451 fi 47452 47453 else 47454 # We're on a unix platform. Hooray! :) 47455 # First separate the path from the arguments. This will split at the first 47456 # space. 47457 complete="$BUILD_OBJCOPY" 47458 path="${complete%% *}" 47459 tmp="$complete EOL" 47460 arguments="${tmp#* }" 47461 47462 # Cannot rely on the command "which" here since it doesn't always work. 47463 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47464 if test -z "$is_absolute_path"; then 47465 # Path to executable is not absolute. Find it. 47466 IFS_save="$IFS" 47467 IFS=: 47468 for p in $PATH; do 47469 if test -f "$p/$path" && test -x "$p/$path"; then 47470 new_path="$p/$path" 47471 break 47472 fi 47473 done 47474 IFS="$IFS_save" 47475 else 47476 # This is an absolute path, we can use it without further modifications. 47477 new_path="$path" 47478 fi 47479 47480 if test "x$new_path" = x; then 47481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47482 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47483 has_space=`$ECHO "$complete" | $GREP " "` 47484 if test "x$has_space" != x; then 47485 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47486 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47487 fi 47488 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47489 fi 47490 fi 47491 47492 # Now join together the path and the arguments once again 47493 if test "x$arguments" != xEOL; then 47494 new_complete="$new_path ${arguments% *}" 47495 else 47496 new_complete="$new_path" 47497 fi 47498 47499 if test "x$complete" != "x$new_complete"; then 47500 BUILD_OBJCOPY="$new_complete" 47501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 47502 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 47503 fi 47504 fi 47505 47506 47507 47508 # Publish this variable in the help. 47509 47510 47511 if [ -z "${BUILD_STRIP+x}" ]; then 47512 # The variable is not set by user, try to locate tool using the code snippet 47513 for ac_prog in strip 47514 do 47515 # Extract the first word of "$ac_prog", so it can be a program name with args. 47516 set dummy $ac_prog; ac_word=$2 47517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47518 $as_echo_n "checking for $ac_word... " >&6; } 47519 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47520 $as_echo_n "(cached) " >&6 47521 else 47522 case $BUILD_STRIP in 47523 [\\/]* | ?:[\\/]*) 47524 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47525 ;; 47526 *) 47527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47528 for as_dir in $PATH 47529 do 47530 IFS=$as_save_IFS 47531 test -z "$as_dir" && as_dir=. 47532 for ac_exec_ext in '' $ac_executable_extensions; do 47533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47534 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47536 break 2 47537 fi 47538 done 47539 done 47540 IFS=$as_save_IFS 47541 47542 ;; 47543 esac 47544 fi 47545 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47546 if test -n "$BUILD_STRIP"; then 47547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47548 $as_echo "$BUILD_STRIP" >&6; } 47549 else 47550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47551 $as_echo "no" >&6; } 47552 fi 47553 47554 47555 test -n "$BUILD_STRIP" && break 47556 done 47557 47558 else 47559 # The variable is set, but is it from the command line or the environment? 47560 47561 # Try to remove the string !BUILD_STRIP! from our list. 47562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 47563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47564 # If it failed, the variable was not from the command line. Ignore it, 47565 # but warn the user (except for BASH, which is always set by the calling BASH). 47566 if test "xBUILD_STRIP" != xBASH; then 47567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 47568 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 47569 fi 47570 # Try to locate tool using the code snippet 47571 for ac_prog in strip 47572 do 47573 # Extract the first word of "$ac_prog", so it can be a program name with args. 47574 set dummy $ac_prog; ac_word=$2 47575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47576 $as_echo_n "checking for $ac_word... " >&6; } 47577 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47578 $as_echo_n "(cached) " >&6 47579 else 47580 case $BUILD_STRIP in 47581 [\\/]* | ?:[\\/]*) 47582 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47583 ;; 47584 *) 47585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47586 for as_dir in $PATH 47587 do 47588 IFS=$as_save_IFS 47589 test -z "$as_dir" && as_dir=. 47590 for ac_exec_ext in '' $ac_executable_extensions; do 47591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47592 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47594 break 2 47595 fi 47596 done 47597 done 47598 IFS=$as_save_IFS 47599 47600 ;; 47601 esac 47602 fi 47603 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47604 if test -n "$BUILD_STRIP"; then 47605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47606 $as_echo "$BUILD_STRIP" >&6; } 47607 else 47608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47609 $as_echo "no" >&6; } 47610 fi 47611 47612 47613 test -n "$BUILD_STRIP" && break 47614 done 47615 47616 else 47617 # If it succeeded, then it was overridden by the user. We will use it 47618 # for the tool. 47619 47620 # First remove it from the list of overridden variables, so we can test 47621 # for unknown variables in the end. 47622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47623 47624 # Check if we try to supply an empty value 47625 if test "x$BUILD_STRIP" = x; then 47626 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 47627 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 47628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47629 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47631 $as_echo "disabled" >&6; } 47632 else 47633 # Check if the provided tool contains a complete path. 47634 tool_specified="$BUILD_STRIP" 47635 tool_basename="${tool_specified##*/}" 47636 if test "x$tool_basename" = "x$tool_specified"; then 47637 # A command without a complete path is provided, search $PATH. 47638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 47639 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 47640 # Extract the first word of "$tool_basename", so it can be a program name with args. 47641 set dummy $tool_basename; ac_word=$2 47642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47643 $as_echo_n "checking for $ac_word... " >&6; } 47644 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47645 $as_echo_n "(cached) " >&6 47646 else 47647 case $BUILD_STRIP in 47648 [\\/]* | ?:[\\/]*) 47649 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47650 ;; 47651 *) 47652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47653 for as_dir in $PATH 47654 do 47655 IFS=$as_save_IFS 47656 test -z "$as_dir" && as_dir=. 47657 for ac_exec_ext in '' $ac_executable_extensions; do 47658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47659 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47661 break 2 47662 fi 47663 done 47664 done 47665 IFS=$as_save_IFS 47666 47667 ;; 47668 esac 47669 fi 47670 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47671 if test -n "$BUILD_STRIP"; then 47672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47673 $as_echo "$BUILD_STRIP" >&6; } 47674 else 47675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47676 $as_echo "no" >&6; } 47677 fi 47678 47679 47680 if test "x$BUILD_STRIP" = x; then 47681 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47682 fi 47683 else 47684 # Otherwise we believe it is a complete path. Use it as it is. 47685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 47686 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 47687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47688 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47689 if test ! -x "$tool_specified"; then 47690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47691 $as_echo "not found" >&6; } 47692 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 47693 fi 47694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47695 $as_echo "$tool_specified" >&6; } 47696 fi 47697 fi 47698 fi 47699 47700 fi 47701 47702 47703 47704 # Only process if variable expands to non-empty 47705 47706 if test "x$BUILD_STRIP" != x; then 47707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47708 47709 # First separate the path from the arguments. This will split at the first 47710 # space. 47711 complete="$BUILD_STRIP" 47712 path="${complete%% *}" 47713 tmp="$complete EOL" 47714 arguments="${tmp#* }" 47715 47716 # Input might be given as Windows format, start by converting to 47717 # unix format. 47718 new_path=`$CYGPATH -u "$path"` 47719 47720 # Now try to locate executable using which 47721 new_path=`$WHICH "$new_path" 2> /dev/null` 47722 # bat and cmd files are not always considered executable in cygwin causing which 47723 # to not find them 47724 if test "x$new_path" = x \ 47725 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47726 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47727 new_path=`$CYGPATH -u "$path"` 47728 fi 47729 if test "x$new_path" = x; then 47730 # Oops. Which didn't find the executable. 47731 # The splitting of arguments from the executable at a space might have been incorrect, 47732 # since paths with space are more likely in Windows. Give it another try with the whole 47733 # argument. 47734 path="$complete" 47735 arguments="EOL" 47736 new_path=`$CYGPATH -u "$path"` 47737 new_path=`$WHICH "$new_path" 2> /dev/null` 47738 # bat and cmd files are not always considered executable in cygwin causing which 47739 # to not find them 47740 if test "x$new_path" = x \ 47741 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47742 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47743 new_path=`$CYGPATH -u "$path"` 47744 fi 47745 if test "x$new_path" = x; then 47746 # It's still not found. Now this is an unrecoverable error. 47747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47748 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47749 has_space=`$ECHO "$complete" | $GREP " "` 47750 if test "x$has_space" != x; then 47751 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47752 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47753 fi 47754 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47755 fi 47756 fi 47757 47758 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47759 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47760 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47761 # "foo.exe" is OK but "foo" is an error. 47762 # 47763 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47764 # It is also a way to make sure we got the proper file name for the real test later on. 47765 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47766 if test "x$test_shortpath" = x; then 47767 # Short path failed, file does not exist as specified. 47768 # Try adding .exe or .cmd 47769 if test -f "${new_path}.exe"; then 47770 input_to_shortpath="${new_path}.exe" 47771 elif test -f "${new_path}.cmd"; then 47772 input_to_shortpath="${new_path}.cmd" 47773 else 47774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 47775 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 47776 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47777 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47778 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47779 fi 47780 else 47781 input_to_shortpath="$new_path" 47782 fi 47783 47784 # Call helper function which possibly converts this using DOS-style short mode. 47785 # If so, the updated path is stored in $new_path. 47786 new_path="$input_to_shortpath" 47787 47788 input_path="$input_to_shortpath" 47789 # Check if we need to convert this using DOS-style short mode. If the path 47790 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47791 # take no chances and rewrite it. 47792 # Note: m4 eats our [], so we need to use [ and ] instead. 47793 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47794 if test "x$has_forbidden_chars" != x; then 47795 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47796 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47797 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47798 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47799 # Going to short mode and back again did indeed matter. Since short mode is 47800 # case insensitive, let's make it lowercase to improve readability. 47801 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47802 # Now convert it back to Unix-style (cygpath) 47803 input_path=`$CYGPATH -u "$shortmode_path"` 47804 new_path="$input_path" 47805 fi 47806 fi 47807 47808 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47809 if test "x$test_cygdrive_prefix" = x; then 47810 # As a simple fix, exclude /usr/bin since it's not a real path. 47811 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47812 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47813 # a path prefixed by /cygdrive for fixpath to work. 47814 new_path="$CYGWIN_ROOT_PATH$input_path" 47815 fi 47816 fi 47817 47818 # remove trailing .exe if any 47819 new_path="${new_path/%.exe/}" 47820 47821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47822 47823 # First separate the path from the arguments. This will split at the first 47824 # space. 47825 complete="$BUILD_STRIP" 47826 path="${complete%% *}" 47827 tmp="$complete EOL" 47828 arguments="${tmp#* }" 47829 47830 # Input might be given as Windows format, start by converting to 47831 # unix format. 47832 new_path="$path" 47833 47834 windows_path="$new_path" 47835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47836 unix_path=`$CYGPATH -u "$windows_path"` 47837 new_path="$unix_path" 47838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47840 new_path="$unix_path" 47841 fi 47842 47843 47844 # Now try to locate executable using which 47845 new_path=`$WHICH "$new_path" 2> /dev/null` 47846 47847 if test "x$new_path" = x; then 47848 # Oops. Which didn't find the executable. 47849 # The splitting of arguments from the executable at a space might have been incorrect, 47850 # since paths with space are more likely in Windows. Give it another try with the whole 47851 # argument. 47852 path="$complete" 47853 arguments="EOL" 47854 new_path="$path" 47855 47856 windows_path="$new_path" 47857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47858 unix_path=`$CYGPATH -u "$windows_path"` 47859 new_path="$unix_path" 47860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47862 new_path="$unix_path" 47863 fi 47864 47865 47866 new_path=`$WHICH "$new_path" 2> /dev/null` 47867 # bat and cmd files are not always considered executable in MSYS causing which 47868 # to not find them 47869 if test "x$new_path" = x \ 47870 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47871 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47872 new_path="$path" 47873 47874 windows_path="$new_path" 47875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47876 unix_path=`$CYGPATH -u "$windows_path"` 47877 new_path="$unix_path" 47878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47879 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47880 new_path="$unix_path" 47881 fi 47882 47883 fi 47884 47885 if test "x$new_path" = x; then 47886 # It's still not found. Now this is an unrecoverable error. 47887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47888 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47889 has_space=`$ECHO "$complete" | $GREP " "` 47890 if test "x$has_space" != x; then 47891 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47892 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47893 fi 47894 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47895 fi 47896 fi 47897 47898 # Now new_path has a complete unix path to the binary 47899 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47900 # Keep paths in /bin as-is, but remove trailing .exe if any 47901 new_path="${new_path/%.exe/}" 47902 # Do not save /bin paths to all_fixpath_prefixes! 47903 else 47904 # Not in mixed or Windows style, start by that. 47905 new_path=`cmd //c echo $new_path` 47906 47907 input_path="$new_path" 47908 # Check if we need to convert this using DOS-style short mode. If the path 47909 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47910 # take no chances and rewrite it. 47911 # Note: m4 eats our [], so we need to use [ and ] instead. 47912 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47913 if test "x$has_forbidden_chars" != x; then 47914 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47915 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47916 fi 47917 47918 # Output is in $new_path 47919 47920 windows_path="$new_path" 47921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47922 unix_path=`$CYGPATH -u "$windows_path"` 47923 new_path="$unix_path" 47924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47926 new_path="$unix_path" 47927 fi 47928 47929 # remove trailing .exe if any 47930 new_path="${new_path/%.exe/}" 47931 47932 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47933 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47934 fi 47935 47936 else 47937 # We're on a unix platform. Hooray! :) 47938 # First separate the path from the arguments. This will split at the first 47939 # space. 47940 complete="$BUILD_STRIP" 47941 path="${complete%% *}" 47942 tmp="$complete EOL" 47943 arguments="${tmp#* }" 47944 47945 # Cannot rely on the command "which" here since it doesn't always work. 47946 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47947 if test -z "$is_absolute_path"; then 47948 # Path to executable is not absolute. Find it. 47949 IFS_save="$IFS" 47950 IFS=: 47951 for p in $PATH; do 47952 if test -f "$p/$path" && test -x "$p/$path"; then 47953 new_path="$p/$path" 47954 break 47955 fi 47956 done 47957 IFS="$IFS_save" 47958 else 47959 # This is an absolute path, we can use it without further modifications. 47960 new_path="$path" 47961 fi 47962 47963 if test "x$new_path" = x; then 47964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47965 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47966 has_space=`$ECHO "$complete" | $GREP " "` 47967 if test "x$has_space" != x; then 47968 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47969 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47970 fi 47971 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47972 fi 47973 fi 47974 47975 # Now join together the path and the arguments once again 47976 if test "x$arguments" != xEOL; then 47977 new_complete="$new_path ${arguments% *}" 47978 else 47979 new_complete="$new_path" 47980 fi 47981 47982 if test "x$complete" != "x$new_complete"; then 47983 BUILD_STRIP="$new_complete" 47984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 47985 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 47986 fi 47987 fi 47988 47989 # Assume the C compiler is the assembler 47990 BUILD_AS="$BUILD_CC -c" 47991 # Just like for the target compiler, use the compiler as linker 47992 BUILD_LD="$BUILD_CC" 47993 BUILD_LDCXX="$BUILD_CXX" 47994 47995 PATH="$OLDPATH" 47996 47997 47998 COMPILER=$BUILD_CC 47999 COMPILER_NAME=BuildC 48000 48001 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48002 # cc -V output typically looks like 48003 # cc: Sun C 5.12 Linux_i386 2011/11/16 48004 # or 48005 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48006 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48007 # Check that this is likely to be the Solaris Studio cc. 48008 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48009 if test $? -ne 0; then 48010 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48011 { $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 48012 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48013 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48014 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48015 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48016 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48017 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48018 fi 48019 # Remove usage instructions (if present), and 48020 # collapse compiler output into a single line 48021 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48022 $SED -e 's/ *[Uu]sage:.*//'` 48023 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48024 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48025 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48026 # xlc -qversion output typically looks like 48027 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48028 # Version: 11.01.0000.0015 48029 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48030 # Check that this is likely to be the IBM XL C compiler. 48031 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48032 if test $? -ne 0; then 48033 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48034 { $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 48035 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48036 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48037 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48038 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48039 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48040 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48041 fi 48042 # Collapse compiler output into a single line 48043 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48044 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48045 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48046 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48047 # There is no specific version flag, but all output starts with a version string. 48048 # First line typically looks something like: 48049 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48050 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48051 # Check that this is likely to be Microsoft CL.EXE. 48052 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48053 if test $? -ne 0; then 48054 { $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 48055 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48056 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48057 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48058 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48059 fi 48060 # Collapse compiler output into a single line 48061 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48062 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48063 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48064 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48065 # gcc --version output typically looks like 48066 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48067 # Copyright (C) 2013 Free Software Foundation, Inc. 48068 # This is free software; see the source for copying conditions. There is NO 48069 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48070 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48071 # Check that this is likely to be GCC. 48072 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48073 if test $? -ne 0; then 48074 { $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 48075 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48076 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48077 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48078 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48079 fi 48080 # Remove Copyright and legalese from version string, and 48081 # collapse into a single line 48082 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48083 $SED -e 's/ *Copyright .*//'` 48084 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48085 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48086 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48087 # clang --version output typically looks like 48088 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48089 # clang version 3.3 (tags/RELEASE_33/final) 48090 # or 48091 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48092 # Target: x86_64-pc-linux-gnu 48093 # Thread model: posix 48094 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48095 # Check that this is likely to be clang 48096 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48097 if test $? -ne 0; then 48098 { $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 48099 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48100 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48101 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48102 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48103 fi 48104 # Collapse compiler output into a single line 48105 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48106 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48107 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48108 else 48109 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48110 fi 48111 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48112 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48113 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48114 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48115 48116 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48117 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48118 48119 48120 COMPILER=$BUILD_CXX 48121 COMPILER_NAME=BuildC++ 48122 48123 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48124 # cc -V output typically looks like 48125 # cc: Sun C 5.12 Linux_i386 2011/11/16 48126 # or 48127 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48128 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48129 # Check that this is likely to be the Solaris Studio cc. 48130 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48131 if test $? -ne 0; then 48132 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48133 { $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 48134 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48135 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48136 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48137 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48138 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48139 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48140 fi 48141 # Remove usage instructions (if present), and 48142 # collapse compiler output into a single line 48143 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48144 $SED -e 's/ *[Uu]sage:.*//'` 48145 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48146 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48147 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48148 # xlc -qversion output typically looks like 48149 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48150 # Version: 11.01.0000.0015 48151 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48152 # Check that this is likely to be the IBM XL C compiler. 48153 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48154 if test $? -ne 0; then 48155 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48156 { $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 48157 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48158 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48159 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48160 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48161 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48162 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48163 fi 48164 # Collapse compiler output into a single line 48165 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48166 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48167 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48168 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48169 # There is no specific version flag, but all output starts with a version string. 48170 # First line typically looks something like: 48171 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48172 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48173 # Check that this is likely to be Microsoft CL.EXE. 48174 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48175 if test $? -ne 0; then 48176 { $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 48177 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48178 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48179 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48180 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48181 fi 48182 # Collapse compiler output into a single line 48183 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48184 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48185 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48186 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48187 # gcc --version output typically looks like 48188 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48189 # Copyright (C) 2013 Free Software Foundation, Inc. 48190 # This is free software; see the source for copying conditions. There is NO 48191 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48192 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48193 # Check that this is likely to be GCC. 48194 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48195 if test $? -ne 0; then 48196 { $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 48197 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48198 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48199 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48200 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48201 fi 48202 # Remove Copyright and legalese from version string, and 48203 # collapse into a single line 48204 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48205 $SED -e 's/ *Copyright .*//'` 48206 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48207 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48208 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48209 # clang --version output typically looks like 48210 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48211 # clang version 3.3 (tags/RELEASE_33/final) 48212 # or 48213 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48214 # Target: x86_64-pc-linux-gnu 48215 # Thread model: posix 48216 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48217 # Check that this is likely to be clang 48218 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48219 if test $? -ne 0; then 48220 { $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 48221 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48222 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48223 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48224 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48225 fi 48226 # Collapse compiler output into a single line 48227 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48228 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48229 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48230 else 48231 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48232 fi 48233 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48234 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48235 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48236 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 48237 48238 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48239 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48240 48241 48242 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 48243 { $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 48244 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 48245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48246 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48247 fi 48248 48249 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48250 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48251 { $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 48252 $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;} 48253 fi 48254 48255 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48256 { $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 48257 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48258 fi 48259 48260 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 48261 48262 else 48263 # If we are not cross compiling, use the normal target compilers for 48264 # building the build platform executables. 48265 BUILD_CC="$CC" 48266 BUILD_CXX="$CXX" 48267 BUILD_LD="$LD" 48268 BUILD_LDCXX="$LDCXX" 48269 BUILD_NM="$NM" 48270 BUILD_AS="$AS" 48271 BUILD_OBJCOPY="$OBJCOPY" 48272 BUILD_STRIP="$STRIP" 48273 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 48274 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 48275 BUILD_AR="$AR" 48276 48277 48278 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 48279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 48280 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 48281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48282 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48283 fi 48284 48285 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48286 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48287 { $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 48288 $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;} 48289 fi 48290 48291 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48292 { $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 48293 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48294 fi 48295 48296 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 48297 48298 fi 48299 48300 48301 48302 48303 48304 48305 48306 48307 48308 48309 48310 48311 48312 48313 # The package path is used only on macosx? 48314 # FIXME: clean this up, and/or move it elsewhere. 48315 PACKAGE_PATH=/opt/local 48316 48317 48318 # Check for extra potential brokenness. 48319 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48320 # On Windows, double-check that we got the right compiler. 48321 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48322 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 48323 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 48324 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 48325 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 48326 fi 48327 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 48328 if test "x$COMPILER_CPU_TEST" != "xx64"; then 48329 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 48330 fi 48331 fi 48332 fi 48333 48334 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48335 # If this is a --hash-style=gnu system, use --hash-style=both, why? 48336 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 48337 # This is later checked when setting flags. 48338 48339 # "-Og" suppported for GCC 4.8 and later 48340 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 48341 48342 48343 48344 48345 48346 48347 48348 48349 48350 48351 48352 48353 48354 48355 48356 48357 48358 48359 48360 48361 48362 48363 48364 48365 48366 48367 48368 48369 48370 48371 48372 48373 48374 48375 48376 48377 48378 48379 48380 48381 48382 48383 48384 48385 48386 48387 48388 # Execute function body 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 # Execute function body 48438 48439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48440 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48441 supports=yes 48442 48443 saved_cflags="$CFLAGS" 48444 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 48445 ac_ext=c 48446 ac_cpp='$CPP $CPPFLAGS' 48447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48449 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48450 48451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48452 /* end confdefs.h. */ 48453 int i; 48454 _ACEOF 48455 if ac_fn_c_try_compile "$LINENO"; then : 48456 48457 else 48458 supports=no 48459 fi 48460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48461 ac_ext=cpp 48462 ac_cpp='$CXXCPP $CPPFLAGS' 48463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48466 48467 CFLAGS="$saved_cflags" 48468 48469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48470 $as_echo "$supports" >&6; } 48471 if test "x$supports" = "xyes" ; then 48472 : 48473 C_COMP_SUPPORTS="yes" 48474 else 48475 : 48476 C_COMP_SUPPORTS="no" 48477 fi 48478 48479 48480 48481 48482 48483 48484 48485 48486 48487 48488 48489 48490 48491 48492 48493 48494 48495 48496 48497 48498 48499 48500 48501 48502 48503 48504 48505 48506 48507 48508 48509 48510 48511 48512 48513 48514 48515 48516 48517 48518 48519 48520 48521 48522 48523 48524 48525 48526 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 48537 # Execute function body 48538 48539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48540 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48541 supports=yes 48542 48543 saved_cxxflags="$CXXFLAGS" 48544 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 48545 ac_ext=cpp 48546 ac_cpp='$CXXCPP $CPPFLAGS' 48547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48550 48551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48552 /* end confdefs.h. */ 48553 int i; 48554 _ACEOF 48555 if ac_fn_cxx_try_compile "$LINENO"; then : 48556 48557 else 48558 supports=no 48559 fi 48560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48561 ac_ext=cpp 48562 ac_cpp='$CXXCPP $CPPFLAGS' 48563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48566 48567 CXXFLAGS="$saved_cxxflags" 48568 48569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48570 $as_echo "$supports" >&6; } 48571 if test "x$supports" = "xyes" ; then 48572 : 48573 CXX_COMP_SUPPORTS="yes" 48574 else 48575 : 48576 CXX_COMP_SUPPORTS="no" 48577 fi 48578 48579 48580 48581 48582 48583 48584 48585 48586 48587 48588 48589 48590 48591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48592 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48593 supports=no 48594 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 48595 48596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48597 $as_echo "$supports" >&6; } 48598 if test "x$supports" = "xyes" ; then 48599 : 48600 HAS_CFLAG_OPTIMIZE_DEBUG=true 48601 else 48602 : 48603 HAS_CFLAG_OPTIMIZE_DEBUG=false 48604 fi 48605 48606 48607 48608 48609 48610 48611 48612 # "-z relro" supported in GNU binutils 2.17 and later 48613 LINKER_RELRO_FLAG="-Wl,-z,relro" 48614 48615 48616 48617 48618 48619 48620 48621 48622 48623 48624 48625 48626 48627 48628 48629 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 # Execute function body 48662 48663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 48664 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 48665 supports=yes 48666 48667 saved_ldflags="$LDFLAGS" 48668 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 48669 ac_ext=c 48670 ac_cpp='$CPP $CPPFLAGS' 48671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48673 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48674 48675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48676 /* end confdefs.h. */ 48677 48678 int 48679 main () 48680 { 48681 48682 ; 48683 return 0; 48684 } 48685 _ACEOF 48686 if ac_fn_c_try_link "$LINENO"; then : 48687 48688 else 48689 supports=no 48690 fi 48691 rm -f core conftest.err conftest.$ac_objext \ 48692 conftest$ac_exeext conftest.$ac_ext 48693 ac_ext=cpp 48694 ac_cpp='$CXXCPP $CPPFLAGS' 48695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48698 48699 LDFLAGS="$saved_ldflags" 48700 48701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48702 $as_echo "$supports" >&6; } 48703 if test "x$supports" = "xyes" ; then 48704 : 48705 HAS_LINKER_RELRO=true 48706 else 48707 : 48708 HAS_LINKER_RELRO=false 48709 fi 48710 48711 48712 48713 48714 48715 48716 48717 48718 48719 48720 48721 48722 48723 # "-z now" supported in GNU binutils 2.11 and later 48724 LINKER_NOW_FLAG="-Wl,-z,now" 48725 48726 48727 48728 48729 48730 48731 48732 48733 48734 48735 48736 48737 48738 48739 48740 48741 48742 48743 48744 48745 48746 48747 48748 48749 48750 48751 48752 48753 48754 48755 48756 48757 48758 48759 48760 48761 48762 48763 48764 48765 48766 48767 48768 48769 48770 48771 48772 # Execute function body 48773 48774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 48775 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 48776 supports=yes 48777 48778 saved_ldflags="$LDFLAGS" 48779 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 48780 ac_ext=c 48781 ac_cpp='$CPP $CPPFLAGS' 48782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48784 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48785 48786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48787 /* end confdefs.h. */ 48788 48789 int 48790 main () 48791 { 48792 48793 ; 48794 return 0; 48795 } 48796 _ACEOF 48797 if ac_fn_c_try_link "$LINENO"; then : 48798 48799 else 48800 supports=no 48801 fi 48802 rm -f core conftest.err conftest.$ac_objext \ 48803 conftest$ac_exeext conftest.$ac_ext 48804 ac_ext=cpp 48805 ac_cpp='$CXXCPP $CPPFLAGS' 48806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48809 48810 LDFLAGS="$saved_ldflags" 48811 48812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48813 $as_echo "$supports" >&6; } 48814 if test "x$supports" = "xyes" ; then 48815 : 48816 HAS_LINKER_NOW=true 48817 else 48818 : 48819 HAS_LINKER_NOW=false 48820 fi 48821 48822 48823 48824 48825 48826 48827 48828 48829 48830 48831 48832 48833 fi 48834 48835 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 48836 # in executable.' 48837 USING_BROKEN_SUSE_LD=no 48838 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 48839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 48840 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 48841 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 48842 $ECHO "int main() { }" > main.c 48843 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 48844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48845 $as_echo "no" >&6; } 48846 USING_BROKEN_SUSE_LD=no 48847 else 48848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48849 $as_echo "yes" >&6; } 48850 USING_BROKEN_SUSE_LD=yes 48851 fi 48852 $RM version-script.map main.c a.out 48853 fi 48854 48855 48856 # Setup hotspot lecagy names for toolchains 48857 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 48858 if test "x$TOOLCHAIN_TYPE" = xclang; then 48859 HOTSPOT_TOOLCHAIN_TYPE=gcc 48860 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48861 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 48862 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48863 HOTSPOT_TOOLCHAIN_TYPE=visCPP 48864 fi 48865 48866 48867 48868 # Setup the JTReg Regression Test Harness. 48869 48870 48871 # Check whether --with-jtreg was given. 48872 if test "${with_jtreg+set}" = set; then : 48873 withval=$with_jtreg; 48874 fi 48875 48876 48877 if test "x$with_jtreg" = xno; then 48878 # jtreg disabled 48879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48880 $as_echo_n "checking for jtreg test harness... " >&6; } 48881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 48882 $as_echo "no, disabled" >&6; } 48883 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 48884 # An explicit path is specified, use it. 48885 JT_HOME="$with_jtreg" 48886 48887 # Only process if variable expands to non-empty 48888 48889 if test "x$JT_HOME" != x; then 48890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48891 48892 # Input might be given as Windows format, start by converting to 48893 # unix format. 48894 path="$JT_HOME" 48895 new_path=`$CYGPATH -u "$path"` 48896 48897 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48898 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48899 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48900 # "foo.exe" is OK but "foo" is an error. 48901 # 48902 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48903 # It is also a way to make sure we got the proper file name for the real test later on. 48904 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48905 if test "x$test_shortpath" = x; then 48906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48907 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48908 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 48909 fi 48910 48911 # Call helper function which possibly converts this using DOS-style short mode. 48912 # If so, the updated path is stored in $new_path. 48913 48914 input_path="$new_path" 48915 # Check if we need to convert this using DOS-style short mode. If the path 48916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48917 # take no chances and rewrite it. 48918 # Note: m4 eats our [], so we need to use [ and ] instead. 48919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48920 if test "x$has_forbidden_chars" != x; then 48921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48922 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48923 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48924 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48925 # Going to short mode and back again did indeed matter. Since short mode is 48926 # case insensitive, let's make it lowercase to improve readability. 48927 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48928 # Now convert it back to Unix-style (cygpath) 48929 input_path=`$CYGPATH -u "$shortmode_path"` 48930 new_path="$input_path" 48931 fi 48932 fi 48933 48934 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48935 if test "x$test_cygdrive_prefix" = x; then 48936 # As a simple fix, exclude /usr/bin since it's not a real path. 48937 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48938 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48939 # a path prefixed by /cygdrive for fixpath to work. 48940 new_path="$CYGWIN_ROOT_PATH$input_path" 48941 fi 48942 fi 48943 48944 48945 if test "x$path" != "x$new_path"; then 48946 JT_HOME="$new_path" 48947 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48948 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48949 fi 48950 48951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48952 48953 path="$JT_HOME" 48954 has_colon=`$ECHO $path | $GREP ^.:` 48955 new_path="$path" 48956 if test "x$has_colon" = x; then 48957 # Not in mixed or Windows style, start by that. 48958 new_path=`cmd //c echo $path` 48959 fi 48960 48961 48962 input_path="$new_path" 48963 # Check if we need to convert this using DOS-style short mode. If the path 48964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48965 # take no chances and rewrite it. 48966 # Note: m4 eats our [], so we need to use [ and ] instead. 48967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48968 if test "x$has_forbidden_chars" != x; then 48969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48970 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48971 fi 48972 48973 48974 windows_path="$new_path" 48975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48976 unix_path=`$CYGPATH -u "$windows_path"` 48977 new_path="$unix_path" 48978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48980 new_path="$unix_path" 48981 fi 48982 48983 if test "x$path" != "x$new_path"; then 48984 JT_HOME="$new_path" 48985 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48986 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48987 fi 48988 48989 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48990 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48991 48992 else 48993 # We're on a unix platform. Hooray! :) 48994 path="$JT_HOME" 48995 has_space=`$ECHO "$path" | $GREP " "` 48996 if test "x$has_space" != x; then 48997 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48998 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48999 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49000 fi 49001 49002 # Use eval to expand a potential ~ 49003 eval path="$path" 49004 if test ! -f "$path" && test ! -d "$path"; then 49005 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49006 fi 49007 49008 if test -d "$path"; then 49009 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49010 else 49011 dir="`$DIRNAME "$path"`" 49012 base="`$BASENAME "$path"`" 49013 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49014 fi 49015 fi 49016 fi 49017 49018 if test ! -d "$JT_HOME"; then 49019 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 49020 fi 49021 49022 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49023 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 49024 fi 49025 49026 JTREGEXE="$JT_HOME/bin/jtreg" 49027 if test ! -x "$JTREGEXE"; then 49028 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 49029 fi 49030 49031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49032 $as_echo_n "checking for jtreg test harness... " >&6; } 49033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49034 $as_echo "$JT_HOME" >&6; } 49035 else 49036 # Try to locate jtreg 49037 if test "x$JT_HOME" != x; then 49038 # JT_HOME set in environment, use it 49039 if test ! -d "$JT_HOME"; then 49040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 49041 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 49042 JT_HOME= 49043 else 49044 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 49046 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 49047 JT_HOME= 49048 elif test ! -x "$JT_HOME/bin/jtreg"; then 49049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 49050 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 49051 JT_HOME= 49052 else 49053 JTREGEXE="$JT_HOME/bin/jtreg" 49054 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 49055 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 49056 fi 49057 fi 49058 fi 49059 49060 if test "x$JT_HOME" = x; then 49061 # JT_HOME is not set in environment, or was deemed invalid. 49062 # Try to find jtreg on path 49063 49064 49065 # Publish this variable in the help. 49066 49067 49068 if [ -z "${JTREGEXE+x}" ]; then 49069 # The variable is not set by user, try to locate tool using the code snippet 49070 for ac_prog in jtreg 49071 do 49072 # Extract the first word of "$ac_prog", so it can be a program name with args. 49073 set dummy $ac_prog; ac_word=$2 49074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49075 $as_echo_n "checking for $ac_word... " >&6; } 49076 if ${ac_cv_path_JTREGEXE+:} false; then : 49077 $as_echo_n "(cached) " >&6 49078 else 49079 case $JTREGEXE in 49080 [\\/]* | ?:[\\/]*) 49081 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49082 ;; 49083 *) 49084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49085 for as_dir in $PATH 49086 do 49087 IFS=$as_save_IFS 49088 test -z "$as_dir" && as_dir=. 49089 for ac_exec_ext in '' $ac_executable_extensions; do 49090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49091 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49093 break 2 49094 fi 49095 done 49096 done 49097 IFS=$as_save_IFS 49098 49099 ;; 49100 esac 49101 fi 49102 JTREGEXE=$ac_cv_path_JTREGEXE 49103 if test -n "$JTREGEXE"; then 49104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49105 $as_echo "$JTREGEXE" >&6; } 49106 else 49107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49108 $as_echo "no" >&6; } 49109 fi 49110 49111 49112 test -n "$JTREGEXE" && break 49113 done 49114 49115 else 49116 # The variable is set, but is it from the command line or the environment? 49117 49118 # Try to remove the string !JTREGEXE! from our list. 49119 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49120 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49121 # If it failed, the variable was not from the command line. Ignore it, 49122 # but warn the user (except for BASH, which is always set by the calling BASH). 49123 if test "xJTREGEXE" != xBASH; then 49124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49125 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49126 fi 49127 # Try to locate tool using the code snippet 49128 for ac_prog in jtreg 49129 do 49130 # Extract the first word of "$ac_prog", so it can be a program name with args. 49131 set dummy $ac_prog; ac_word=$2 49132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49133 $as_echo_n "checking for $ac_word... " >&6; } 49134 if ${ac_cv_path_JTREGEXE+:} false; then : 49135 $as_echo_n "(cached) " >&6 49136 else 49137 case $JTREGEXE in 49138 [\\/]* | ?:[\\/]*) 49139 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49140 ;; 49141 *) 49142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49143 for as_dir in $PATH 49144 do 49145 IFS=$as_save_IFS 49146 test -z "$as_dir" && as_dir=. 49147 for ac_exec_ext in '' $ac_executable_extensions; do 49148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49149 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49151 break 2 49152 fi 49153 done 49154 done 49155 IFS=$as_save_IFS 49156 49157 ;; 49158 esac 49159 fi 49160 JTREGEXE=$ac_cv_path_JTREGEXE 49161 if test -n "$JTREGEXE"; then 49162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49163 $as_echo "$JTREGEXE" >&6; } 49164 else 49165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49166 $as_echo "no" >&6; } 49167 fi 49168 49169 49170 test -n "$JTREGEXE" && break 49171 done 49172 49173 else 49174 # If it succeeded, then it was overridden by the user. We will use it 49175 # for the tool. 49176 49177 # First remove it from the list of overridden variables, so we can test 49178 # for unknown variables in the end. 49179 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 49180 49181 # Check if we try to supply an empty value 49182 if test "x$JTREGEXE" = x; then 49183 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 49184 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 49185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49186 $as_echo_n "checking for JTREGEXE... " >&6; } 49187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 49188 $as_echo "disabled" >&6; } 49189 else 49190 # Check if the provided tool contains a complete path. 49191 tool_specified="$JTREGEXE" 49192 tool_basename="${tool_specified##*/}" 49193 if test "x$tool_basename" = "x$tool_specified"; then 49194 # A command without a complete path is provided, search $PATH. 49195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 49196 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 49197 # Extract the first word of "$tool_basename", so it can be a program name with args. 49198 set dummy $tool_basename; ac_word=$2 49199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49200 $as_echo_n "checking for $ac_word... " >&6; } 49201 if ${ac_cv_path_JTREGEXE+:} false; then : 49202 $as_echo_n "(cached) " >&6 49203 else 49204 case $JTREGEXE in 49205 [\\/]* | ?:[\\/]*) 49206 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49207 ;; 49208 *) 49209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49210 for as_dir in $PATH 49211 do 49212 IFS=$as_save_IFS 49213 test -z "$as_dir" && as_dir=. 49214 for ac_exec_ext in '' $ac_executable_extensions; do 49215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49216 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49218 break 2 49219 fi 49220 done 49221 done 49222 IFS=$as_save_IFS 49223 49224 ;; 49225 esac 49226 fi 49227 JTREGEXE=$ac_cv_path_JTREGEXE 49228 if test -n "$JTREGEXE"; then 49229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49230 $as_echo "$JTREGEXE" >&6; } 49231 else 49232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49233 $as_echo "no" >&6; } 49234 fi 49235 49236 49237 if test "x$JTREGEXE" = x; then 49238 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 49239 fi 49240 else 49241 # Otherwise we believe it is a complete path. Use it as it is. 49242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 49243 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 49244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49245 $as_echo_n "checking for JTREGEXE... " >&6; } 49246 if test ! -x "$tool_specified"; then 49247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 49248 $as_echo "not found" >&6; } 49249 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 49250 fi 49251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 49252 $as_echo "$tool_specified" >&6; } 49253 fi 49254 fi 49255 fi 49256 49257 fi 49258 49259 49260 if test "x$JTREGEXE" != x; then 49261 # That's good, now try to derive JT_HOME 49262 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 49263 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 49265 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 49266 JT_HOME= 49267 JTREGEXE= 49268 else 49269 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 49270 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 49271 fi 49272 fi 49273 fi 49274 49275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49276 $as_echo_n "checking for jtreg test harness... " >&6; } 49277 if test "x$JT_HOME" != x; then 49278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49279 $as_echo "$JT_HOME" >&6; } 49280 else 49281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 49282 $as_echo "no, not found" >&6; } 49283 49284 if test "x$with_jtreg" = xyes; then 49285 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 49286 fi 49287 fi 49288 fi 49289 49290 49291 # Only process if variable expands to non-empty 49292 49293 if test "x$JTREGEXE" != x; then 49294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49295 49296 # First separate the path from the arguments. This will split at the first 49297 # space. 49298 complete="$JTREGEXE" 49299 path="${complete%% *}" 49300 tmp="$complete EOL" 49301 arguments="${tmp#* }" 49302 49303 # Input might be given as Windows format, start by converting to 49304 # unix format. 49305 new_path=`$CYGPATH -u "$path"` 49306 49307 # Now try to locate executable using which 49308 new_path=`$WHICH "$new_path" 2> /dev/null` 49309 # bat and cmd files are not always considered executable in cygwin causing which 49310 # to not find them 49311 if test "x$new_path" = x \ 49312 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49313 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49314 new_path=`$CYGPATH -u "$path"` 49315 fi 49316 if test "x$new_path" = x; then 49317 # Oops. Which didn't find the executable. 49318 # The splitting of arguments from the executable at a space might have been incorrect, 49319 # since paths with space are more likely in Windows. Give it another try with the whole 49320 # argument. 49321 path="$complete" 49322 arguments="EOL" 49323 new_path=`$CYGPATH -u "$path"` 49324 new_path=`$WHICH "$new_path" 2> /dev/null` 49325 # bat and cmd files are not always considered executable in cygwin causing which 49326 # to not find them 49327 if test "x$new_path" = x \ 49328 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49329 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49330 new_path=`$CYGPATH -u "$path"` 49331 fi 49332 if test "x$new_path" = x; then 49333 # It's still not found. Now this is an unrecoverable error. 49334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49335 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49336 has_space=`$ECHO "$complete" | $GREP " "` 49337 if test "x$has_space" != x; then 49338 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49339 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49340 fi 49341 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49342 fi 49343 fi 49344 49345 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49346 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49347 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49348 # "foo.exe" is OK but "foo" is an error. 49349 # 49350 # This test is therefore slightly more accurate than "test -f" to check for file presence. 49351 # It is also a way to make sure we got the proper file name for the real test later on. 49352 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49353 if test "x$test_shortpath" = x; then 49354 # Short path failed, file does not exist as specified. 49355 # Try adding .exe or .cmd 49356 if test -f "${new_path}.exe"; then 49357 input_to_shortpath="${new_path}.exe" 49358 elif test -f "${new_path}.cmd"; then 49359 input_to_shortpath="${new_path}.cmd" 49360 else 49361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 49362 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 49363 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 49364 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 49365 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49366 fi 49367 else 49368 input_to_shortpath="$new_path" 49369 fi 49370 49371 # Call helper function which possibly converts this using DOS-style short mode. 49372 # If so, the updated path is stored in $new_path. 49373 new_path="$input_to_shortpath" 49374 49375 input_path="$input_to_shortpath" 49376 # Check if we need to convert this using DOS-style short mode. If the path 49377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49378 # take no chances and rewrite it. 49379 # Note: m4 eats our [], so we need to use [ and ] instead. 49380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49381 if test "x$has_forbidden_chars" != x; then 49382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49383 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49384 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49385 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49386 # Going to short mode and back again did indeed matter. Since short mode is 49387 # case insensitive, let's make it lowercase to improve readability. 49388 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49389 # Now convert it back to Unix-style (cygpath) 49390 input_path=`$CYGPATH -u "$shortmode_path"` 49391 new_path="$input_path" 49392 fi 49393 fi 49394 49395 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49396 if test "x$test_cygdrive_prefix" = x; then 49397 # As a simple fix, exclude /usr/bin since it's not a real path. 49398 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 49399 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49400 # a path prefixed by /cygdrive for fixpath to work. 49401 new_path="$CYGWIN_ROOT_PATH$input_path" 49402 fi 49403 fi 49404 49405 # remove trailing .exe if any 49406 new_path="${new_path/%.exe/}" 49407 49408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49409 49410 # First separate the path from the arguments. This will split at the first 49411 # space. 49412 complete="$JTREGEXE" 49413 path="${complete%% *}" 49414 tmp="$complete EOL" 49415 arguments="${tmp#* }" 49416 49417 # Input might be given as Windows format, start by converting to 49418 # unix format. 49419 new_path="$path" 49420 49421 windows_path="$new_path" 49422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49423 unix_path=`$CYGPATH -u "$windows_path"` 49424 new_path="$unix_path" 49425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49427 new_path="$unix_path" 49428 fi 49429 49430 49431 # Now try to locate executable using which 49432 new_path=`$WHICH "$new_path" 2> /dev/null` 49433 49434 if test "x$new_path" = x; then 49435 # Oops. Which didn't find the executable. 49436 # The splitting of arguments from the executable at a space might have been incorrect, 49437 # since paths with space are more likely in Windows. Give it another try with the whole 49438 # argument. 49439 path="$complete" 49440 arguments="EOL" 49441 new_path="$path" 49442 49443 windows_path="$new_path" 49444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49445 unix_path=`$CYGPATH -u "$windows_path"` 49446 new_path="$unix_path" 49447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49449 new_path="$unix_path" 49450 fi 49451 49452 49453 new_path=`$WHICH "$new_path" 2> /dev/null` 49454 # bat and cmd files are not always considered executable in MSYS causing which 49455 # to not find them 49456 if test "x$new_path" = x \ 49457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49459 new_path="$path" 49460 49461 windows_path="$new_path" 49462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49463 unix_path=`$CYGPATH -u "$windows_path"` 49464 new_path="$unix_path" 49465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49467 new_path="$unix_path" 49468 fi 49469 49470 fi 49471 49472 if test "x$new_path" = x; then 49473 # It's still not found. Now this is an unrecoverable error. 49474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49475 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49476 has_space=`$ECHO "$complete" | $GREP " "` 49477 if test "x$has_space" != x; then 49478 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49479 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49480 fi 49481 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49482 fi 49483 fi 49484 49485 # Now new_path has a complete unix path to the binary 49486 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 49487 # Keep paths in /bin as-is, but remove trailing .exe if any 49488 new_path="${new_path/%.exe/}" 49489 # Do not save /bin paths to all_fixpath_prefixes! 49490 else 49491 # Not in mixed or Windows style, start by that. 49492 new_path=`cmd //c echo $new_path` 49493 49494 input_path="$new_path" 49495 # Check if we need to convert this using DOS-style short mode. If the path 49496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49497 # take no chances and rewrite it. 49498 # Note: m4 eats our [], so we need to use [ and ] instead. 49499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49500 if test "x$has_forbidden_chars" != x; then 49501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49502 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49503 fi 49504 49505 # Output is in $new_path 49506 49507 windows_path="$new_path" 49508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49509 unix_path=`$CYGPATH -u "$windows_path"` 49510 new_path="$unix_path" 49511 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49512 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49513 new_path="$unix_path" 49514 fi 49515 49516 # remove trailing .exe if any 49517 new_path="${new_path/%.exe/}" 49518 49519 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49520 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49521 fi 49522 49523 else 49524 # We're on a unix platform. Hooray! :) 49525 # First separate the path from the arguments. This will split at the first 49526 # space. 49527 complete="$JTREGEXE" 49528 path="${complete%% *}" 49529 tmp="$complete EOL" 49530 arguments="${tmp#* }" 49531 49532 # Cannot rely on the command "which" here since it doesn't always work. 49533 is_absolute_path=`$ECHO "$path" | $GREP ^/` 49534 if test -z "$is_absolute_path"; then 49535 # Path to executable is not absolute. Find it. 49536 IFS_save="$IFS" 49537 IFS=: 49538 for p in $PATH; do 49539 if test -f "$p/$path" && test -x "$p/$path"; then 49540 new_path="$p/$path" 49541 break 49542 fi 49543 done 49544 IFS="$IFS_save" 49545 else 49546 # This is an absolute path, we can use it without further modifications. 49547 new_path="$path" 49548 fi 49549 49550 if test "x$new_path" = x; then 49551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49552 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49553 has_space=`$ECHO "$complete" | $GREP " "` 49554 if test "x$has_space" != x; then 49555 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 49556 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 49557 fi 49558 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49559 fi 49560 fi 49561 49562 # Now join together the path and the arguments once again 49563 if test "x$arguments" != xEOL; then 49564 new_complete="$new_path ${arguments% *}" 49565 else 49566 new_complete="$new_path" 49567 fi 49568 49569 if test "x$complete" != "x$new_complete"; then 49570 JTREGEXE="$new_complete" 49571 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 49572 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 49573 fi 49574 fi 49575 49576 49577 # Only process if variable expands to non-empty 49578 49579 if test "x$JT_HOME" != x; then 49580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49581 49582 # Input might be given as Windows format, start by converting to 49583 # unix format. 49584 path="$JT_HOME" 49585 new_path=`$CYGPATH -u "$path"` 49586 49587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49590 # "foo.exe" is OK but "foo" is an error. 49591 # 49592 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49593 # It is also a way to make sure we got the proper file name for the real test later on. 49594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49595 if test "x$test_shortpath" = x; then 49596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49597 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49598 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49599 fi 49600 49601 # Call helper function which possibly converts this using DOS-style short mode. 49602 # If so, the updated path is stored in $new_path. 49603 49604 input_path="$new_path" 49605 # Check if we need to convert this using DOS-style short mode. If the path 49606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49607 # take no chances and rewrite it. 49608 # Note: m4 eats our [], so we need to use [ and ] instead. 49609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49610 if test "x$has_forbidden_chars" != x; then 49611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49615 # Going to short mode and back again did indeed matter. Since short mode is 49616 # case insensitive, let's make it lowercase to improve readability. 49617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49618 # Now convert it back to Unix-style (cygpath) 49619 input_path=`$CYGPATH -u "$shortmode_path"` 49620 new_path="$input_path" 49621 fi 49622 fi 49623 49624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49625 if test "x$test_cygdrive_prefix" = x; then 49626 # As a simple fix, exclude /usr/bin since it's not a real path. 49627 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49629 # a path prefixed by /cygdrive for fixpath to work. 49630 new_path="$CYGWIN_ROOT_PATH$input_path" 49631 fi 49632 fi 49633 49634 49635 if test "x$path" != "x$new_path"; then 49636 JT_HOME="$new_path" 49637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49638 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49639 fi 49640 49641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49642 49643 path="$JT_HOME" 49644 has_colon=`$ECHO $path | $GREP ^.:` 49645 new_path="$path" 49646 if test "x$has_colon" = x; then 49647 # Not in mixed or Windows style, start by that. 49648 new_path=`cmd //c echo $path` 49649 fi 49650 49651 49652 input_path="$new_path" 49653 # Check if we need to convert this using DOS-style short mode. If the path 49654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49655 # take no chances and rewrite it. 49656 # Note: m4 eats our [], so we need to use [ and ] instead. 49657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49658 if test "x$has_forbidden_chars" != x; then 49659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49661 fi 49662 49663 49664 windows_path="$new_path" 49665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49666 unix_path=`$CYGPATH -u "$windows_path"` 49667 new_path="$unix_path" 49668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49670 new_path="$unix_path" 49671 fi 49672 49673 if test "x$path" != "x$new_path"; then 49674 JT_HOME="$new_path" 49675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49676 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49677 fi 49678 49679 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49680 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49681 49682 else 49683 # We're on a unix platform. Hooray! :) 49684 path="$JT_HOME" 49685 has_space=`$ECHO "$path" | $GREP " "` 49686 if test "x$has_space" != x; then 49687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49688 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49689 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49690 fi 49691 49692 # Use eval to expand a potential ~ 49693 eval path="$path" 49694 if test ! -f "$path" && test ! -d "$path"; then 49695 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49696 fi 49697 49698 if test -d "$path"; then 49699 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49700 else 49701 dir="`$DIRNAME "$path"`" 49702 base="`$BASENAME "$path"`" 49703 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49704 fi 49705 fi 49706 fi 49707 49708 49709 49710 49711 49712 # Setup Jib dependency tool 49713 49714 49715 # Check whether --with-jib was given. 49716 if test "${with_jib+set}" = set; then : 49717 withval=$with_jib; 49718 fi 49719 49720 49721 if test "x$with_jib" = xno || test "x$with_jib" = x; then 49722 # jib disabled 49723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49724 $as_echo_n "checking for jib... " >&6; } 49725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49726 $as_echo "no" >&6; } 49727 elif test "x$with_jib" = xyes; then 49728 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 49729 else 49730 JIB_HOME="${with_jib}" 49731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49732 $as_echo_n "checking for jib... " >&6; } 49733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 49734 $as_echo "${JIB_HOME}" >&6; } 49735 if test ! -d "${JIB_HOME}"; then 49736 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 49737 fi 49738 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 49739 if test ! -f "${JIB_JAR}"; then 49740 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 49741 fi 49742 fi 49743 49744 49745 49746 49747 49748 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 49749 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 49750 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 49751 # commands produced by the link step (currently AIX only) 49752 if test "x$TOOLCHAIN_TYPE" = xxlc; then 49753 COMPILER_TARGET_BITS_FLAG="-q" 49754 COMPILER_COMMAND_FILE_FLAG="-f" 49755 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 49756 else 49757 COMPILER_TARGET_BITS_FLAG="-m" 49758 COMPILER_COMMAND_FILE_FLAG="@" 49759 COMPILER_BINDCMD_FILE_FLAG="" 49760 49761 # The solstudio linker does not support @-files. 49762 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49763 COMPILER_COMMAND_FILE_FLAG= 49764 fi 49765 49766 # Check if @file is supported by gcc 49767 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 49769 $as_echo_n "checking if @file is supported by gcc... " >&6; } 49770 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 49771 $ECHO "" "--version" > command.file 49772 if $CXX @command.file 2>&5 >&5; then 49773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49774 $as_echo "yes" >&6; } 49775 COMPILER_COMMAND_FILE_FLAG="@" 49776 else 49777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49778 $as_echo "no" >&6; } 49779 COMPILER_COMMAND_FILE_FLAG= 49780 fi 49781 $RM command.file 49782 fi 49783 fi 49784 49785 49786 49787 49788 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 49789 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49790 ARFLAGS="-r" 49791 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49792 ARFLAGS="-X64" 49793 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 49794 # lib.exe is used as AR to create static libraries. 49795 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 49796 else 49797 ARFLAGS="" 49798 fi 49799 49800 49801 ## Setup strip. 49802 # FIXME: should this really be per platform, or should it be per toolchain type? 49803 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 49804 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 49805 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49806 STRIPFLAGS="-g" 49807 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 49808 STRIPFLAGS="-x" 49809 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 49810 STRIPFLAGS="-S" 49811 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49812 STRIPFLAGS="-X32_64" 49813 fi 49814 49815 49816 49817 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49818 CC_OUT_OPTION=-Fo 49819 EXE_OUT_OPTION=-out: 49820 LD_OUT_OPTION=-out: 49821 AR_OUT_OPTION=-out: 49822 else 49823 # The option used to specify the target .o,.a or .so file. 49824 # When compiling, how to specify the to be created object file. 49825 CC_OUT_OPTION='-o$(SPACE)' 49826 # When linking, how to specify the to be created executable. 49827 EXE_OUT_OPTION='-o$(SPACE)' 49828 # When linking, how to specify the to be created dynamically linkable library. 49829 LD_OUT_OPTION='-o$(SPACE)' 49830 # When archiving, how to specify the to be create static archive for object files. 49831 AR_OUT_OPTION='rcs$(SPACE)' 49832 fi 49833 49834 49835 49836 49837 49838 # On Windows, we need to set RC flags. 49839 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49840 RC_FLAGS="-nologo -l0x409" 49841 JVM_RCFLAGS="-nologo" 49842 if test "x$DEBUG_LEVEL" = xrelease; then 49843 RC_FLAGS="$RC_FLAGS -DNDEBUG" 49844 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 49845 fi 49846 49847 # The version variables used to create RC_FLAGS may be overridden 49848 # in a custom configure script, or possibly the command line. 49849 # Let those variables be expanded at make time in spec.gmk. 49850 # The \$ are escaped to the shell, and the $(...) variables 49851 # are evaluated by make. 49852 RC_FLAGS="$RC_FLAGS \ 49853 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 49854 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 49855 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 49856 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 49857 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 49858 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 49859 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 49860 49861 JVM_RCFLAGS="$JVM_RCFLAGS \ 49862 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 49863 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 49864 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 49865 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 49866 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 49867 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 49868 -D\"HS_FNAME=jvm.dll\" \ 49869 -D\"HS_INTERNAL_NAME=jvm\"" 49870 fi 49871 49872 49873 49874 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49875 # silence copyright notice and other headers. 49876 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 49877 fi 49878 49879 49880 # Now we can test some aspects on the target using configure macros. 49881 49882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 49883 $as_echo_n "checking for ANSI C header files... " >&6; } 49884 if ${ac_cv_header_stdc+:} false; then : 49885 $as_echo_n "(cached) " >&6 49886 else 49887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49888 /* end confdefs.h. */ 49889 #include <stdlib.h> 49890 #include <stdarg.h> 49891 #include <string.h> 49892 #include <float.h> 49893 49894 int 49895 main () 49896 { 49897 49898 ; 49899 return 0; 49900 } 49901 _ACEOF 49902 if ac_fn_cxx_try_compile "$LINENO"; then : 49903 ac_cv_header_stdc=yes 49904 else 49905 ac_cv_header_stdc=no 49906 fi 49907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49908 49909 if test $ac_cv_header_stdc = yes; then 49910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 49911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49912 /* end confdefs.h. */ 49913 #include <string.h> 49914 49915 _ACEOF 49916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49917 $EGREP "memchr" >/dev/null 2>&1; then : 49918 49919 else 49920 ac_cv_header_stdc=no 49921 fi 49922 rm -f conftest* 49923 49924 fi 49925 49926 if test $ac_cv_header_stdc = yes; then 49927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 49928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49929 /* end confdefs.h. */ 49930 #include <stdlib.h> 49931 49932 _ACEOF 49933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49934 $EGREP "free" >/dev/null 2>&1; then : 49935 49936 else 49937 ac_cv_header_stdc=no 49938 fi 49939 rm -f conftest* 49940 49941 fi 49942 49943 if test $ac_cv_header_stdc = yes; then 49944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 49945 if test "$cross_compiling" = yes; then : 49946 : 49947 else 49948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49949 /* end confdefs.h. */ 49950 #include <ctype.h> 49951 #include <stdlib.h> 49952 #if ((' ' & 0x0FF) == 0x020) 49953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 49954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 49955 #else 49956 # define ISLOWER(c) \ 49957 (('a' <= (c) && (c) <= 'i') \ 49958 || ('j' <= (c) && (c) <= 'r') \ 49959 || ('s' <= (c) && (c) <= 'z')) 49960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 49961 #endif 49962 49963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 49964 int 49965 main () 49966 { 49967 int i; 49968 for (i = 0; i < 256; i++) 49969 if (XOR (islower (i), ISLOWER (i)) 49970 || toupper (i) != TOUPPER (i)) 49971 return 2; 49972 return 0; 49973 } 49974 _ACEOF 49975 if ac_fn_cxx_try_run "$LINENO"; then : 49976 49977 else 49978 ac_cv_header_stdc=no 49979 fi 49980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49981 conftest.$ac_objext conftest.beam conftest.$ac_ext 49982 fi 49983 49984 fi 49985 fi 49986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 49987 $as_echo "$ac_cv_header_stdc" >&6; } 49988 if test $ac_cv_header_stdc = yes; then 49989 49990 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 49991 49992 fi 49993 49994 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 49995 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 49996 inttypes.h stdint.h unistd.h 49997 do : 49998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 49999 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 50000 " 50001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 50002 cat >>confdefs.h <<_ACEOF 50003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 50004 _ACEOF 50005 50006 fi 50007 50008 done 50009 50010 50011 50012 ############################################################################### 50013 # 50014 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 50015 # (The JVM can use 32 or 64 bit Java pointers but that decision 50016 # is made at runtime.) 50017 # 50018 50019 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 50020 # Always specify -m flag on Solaris 50021 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 50022 50023 # When we add flags to the "official" CFLAGS etc, we need to 50024 # keep track of these additions in ADDED_CFLAGS etc. These 50025 # will later be checked to make sure only controlled additions 50026 # have been made to CFLAGS etc. 50027 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50028 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50029 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50030 50031 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50032 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50033 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50034 50035 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50036 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50037 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50038 50039 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50040 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50041 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50042 50043 elif test "x$COMPILE_TYPE" = xreduced; then 50044 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 50045 # Specify -m if running reduced on unix platforms 50046 50047 # When we add flags to the "official" CFLAGS etc, we need to 50048 # keep track of these additions in ADDED_CFLAGS etc. These 50049 # will later be checked to make sure only controlled additions 50050 # have been made to CFLAGS etc. 50051 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50052 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50053 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50054 50055 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50056 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50057 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50058 50059 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50060 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50061 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50062 50063 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50064 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50065 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50066 50067 fi 50068 fi 50069 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50070 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50071 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50072 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50073 fi 50074 50075 # Make compilation sanity check 50076 for ac_header in stdio.h 50077 do : 50078 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 50079 if test "x$ac_cv_header_stdio_h" = xyes; then : 50080 cat >>confdefs.h <<_ACEOF 50081 #define HAVE_STDIO_H 1 50082 _ACEOF 50083 50084 else 50085 50086 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 50087 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 50088 if test "x$COMPILE_TYPE" = xreduced; then 50089 50090 # Print a helpful message on how to acquire the necessary build dependency. 50091 # reduced is the help tag: freetype, cups, alsa etc 50092 MISSING_DEPENDENCY=reduced 50093 50094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50095 cygwin_help $MISSING_DEPENDENCY 50096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50097 msys_help $MISSING_DEPENDENCY 50098 else 50099 PKGHANDLER_COMMAND= 50100 50101 case $PKGHANDLER in 50102 apt-get) 50103 apt_help $MISSING_DEPENDENCY ;; 50104 yum) 50105 yum_help $MISSING_DEPENDENCY ;; 50106 brew) 50107 brew_help $MISSING_DEPENDENCY ;; 50108 port) 50109 port_help $MISSING_DEPENDENCY ;; 50110 pkgutil) 50111 pkgutil_help $MISSING_DEPENDENCY ;; 50112 pkgadd) 50113 pkgadd_help $MISSING_DEPENDENCY ;; 50114 esac 50115 50116 if test "x$PKGHANDLER_COMMAND" != x; then 50117 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50118 fi 50119 fi 50120 50121 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50122 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50123 elif test "x$COMPILE_TYPE" = xcross; then 50124 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50125 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50126 fi 50127 as_fn_error $? "Cannot continue." "$LINENO" 5 50128 50129 fi 50130 50131 done 50132 50133 50134 # The cast to long int works around a bug in the HP C Compiler 50135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50137 # This bug is HP SR number 8606223364. 50138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50139 $as_echo_n "checking size of int *... " >&6; } 50140 if ${ac_cv_sizeof_int_p+:} false; then : 50141 $as_echo_n "(cached) " >&6 50142 else 50143 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50144 50145 else 50146 if test "$ac_cv_type_int_p" = yes; then 50147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50149 as_fn_error 77 "cannot compute sizeof (int *) 50150 See \`config.log' for more details" "$LINENO" 5; } 50151 else 50152 ac_cv_sizeof_int_p=0 50153 fi 50154 fi 50155 50156 fi 50157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50158 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50159 50160 50161 50162 cat >>confdefs.h <<_ACEOF 50163 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50164 _ACEOF 50165 50166 50167 50168 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 50169 if test "x$ac_cv_sizeof_int_p" = x; then 50170 # The test failed, lets stick to the assumed value. 50171 { $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 50172 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 50173 else 50174 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50175 50176 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50177 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 50178 # Let's try to implicitely set the compilers target architecture and retry the test 50179 { $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 50180 $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;} 50181 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 50182 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 50183 50184 # When we add flags to the "official" CFLAGS etc, we need to 50185 # keep track of these additions in ADDED_CFLAGS etc. These 50186 # will later be checked to make sure only controlled additions 50187 # have been made to CFLAGS etc. 50188 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50189 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50190 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50191 50192 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50193 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50194 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50195 50196 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50197 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50198 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50199 50200 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50201 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50202 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50203 50204 50205 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 50206 unset ac_cv_sizeof_int_p 50207 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 50208 cat >>confdefs.h <<_ACEOF 50209 #undef SIZEOF_INT_P 50210 _ACEOF 50211 50212 # The cast to long int works around a bug in the HP C Compiler 50213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50215 # This bug is HP SR number 8606223364. 50216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50217 $as_echo_n "checking size of int *... " >&6; } 50218 if ${ac_cv_sizeof_int_p+:} false; then : 50219 $as_echo_n "(cached) " >&6 50220 else 50221 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50222 50223 else 50224 if test "$ac_cv_type_int_p" = yes; then 50225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50227 as_fn_error 77 "cannot compute sizeof (int *) 50228 See \`config.log' for more details" "$LINENO" 5; } 50229 else 50230 ac_cv_sizeof_int_p=0 50231 fi 50232 fi 50233 50234 fi 50235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50236 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50237 50238 50239 50240 cat >>confdefs.h <<_ACEOF 50241 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50242 _ACEOF 50243 50244 50245 50246 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50247 50248 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50249 { $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 50250 $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;} 50251 if test "x$COMPILE_TYPE" = xreduced; then 50252 50253 # Print a helpful message on how to acquire the necessary build dependency. 50254 # reduced is the help tag: freetype, cups, alsa etc 50255 MISSING_DEPENDENCY=reduced 50256 50257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50258 cygwin_help $MISSING_DEPENDENCY 50259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50260 msys_help $MISSING_DEPENDENCY 50261 else 50262 PKGHANDLER_COMMAND= 50263 50264 case $PKGHANDLER in 50265 apt-get) 50266 apt_help $MISSING_DEPENDENCY ;; 50267 yum) 50268 yum_help $MISSING_DEPENDENCY ;; 50269 brew) 50270 brew_help $MISSING_DEPENDENCY ;; 50271 port) 50272 port_help $MISSING_DEPENDENCY ;; 50273 pkgutil) 50274 pkgutil_help $MISSING_DEPENDENCY ;; 50275 pkgadd) 50276 pkgadd_help $MISSING_DEPENDENCY ;; 50277 esac 50278 50279 if test "x$PKGHANDLER_COMMAND" != x; then 50280 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50281 fi 50282 fi 50283 50284 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50285 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50286 elif test "x$COMPILE_TYPE" = xcross; then 50287 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50288 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50289 fi 50290 as_fn_error $? "Cannot continue." "$LINENO" 5 50291 fi 50292 fi 50293 fi 50294 50295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 50296 $as_echo_n "checking for target address size... " >&6; } 50297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 50298 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 50299 50300 50301 ############################################################################### 50302 # 50303 # Is the target little of big endian? 50304 # 50305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 50306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 50307 if ${ac_cv_c_bigendian+:} false; then : 50308 $as_echo_n "(cached) " >&6 50309 else 50310 ac_cv_c_bigendian=unknown 50311 # See if we're dealing with a universal compiler. 50312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50313 /* end confdefs.h. */ 50314 #ifndef __APPLE_CC__ 50315 not a universal capable compiler 50316 #endif 50317 typedef int dummy; 50318 50319 _ACEOF 50320 if ac_fn_cxx_try_compile "$LINENO"; then : 50321 50322 # Check for potential -arch flags. It is not universal unless 50323 # there are at least two -arch flags with different values. 50324 ac_arch= 50325 ac_prev= 50326 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 50327 if test -n "$ac_prev"; then 50328 case $ac_word in 50329 i?86 | x86_64 | ppc | ppc64) 50330 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 50331 ac_arch=$ac_word 50332 else 50333 ac_cv_c_bigendian=universal 50334 break 50335 fi 50336 ;; 50337 esac 50338 ac_prev= 50339 elif test "x$ac_word" = "x-arch"; then 50340 ac_prev=arch 50341 fi 50342 done 50343 fi 50344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50345 if test $ac_cv_c_bigendian = unknown; then 50346 # See if sys/param.h defines the BYTE_ORDER macro. 50347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50348 /* end confdefs.h. */ 50349 #include <sys/types.h> 50350 #include <sys/param.h> 50351 50352 int 50353 main () 50354 { 50355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 50356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 50357 && LITTLE_ENDIAN) 50358 bogus endian macros 50359 #endif 50360 50361 ; 50362 return 0; 50363 } 50364 _ACEOF 50365 if ac_fn_cxx_try_compile "$LINENO"; then : 50366 # It does; now see whether it defined to BIG_ENDIAN or not. 50367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50368 /* end confdefs.h. */ 50369 #include <sys/types.h> 50370 #include <sys/param.h> 50371 50372 int 50373 main () 50374 { 50375 #if BYTE_ORDER != BIG_ENDIAN 50376 not big endian 50377 #endif 50378 50379 ; 50380 return 0; 50381 } 50382 _ACEOF 50383 if ac_fn_cxx_try_compile "$LINENO"; then : 50384 ac_cv_c_bigendian=yes 50385 else 50386 ac_cv_c_bigendian=no 50387 fi 50388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50389 fi 50390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50391 fi 50392 if test $ac_cv_c_bigendian = unknown; then 50393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 50394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50395 /* end confdefs.h. */ 50396 #include <limits.h> 50397 50398 int 50399 main () 50400 { 50401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 50402 bogus endian macros 50403 #endif 50404 50405 ; 50406 return 0; 50407 } 50408 _ACEOF 50409 if ac_fn_cxx_try_compile "$LINENO"; then : 50410 # It does; now see whether it defined to _BIG_ENDIAN or not. 50411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50412 /* end confdefs.h. */ 50413 #include <limits.h> 50414 50415 int 50416 main () 50417 { 50418 #ifndef _BIG_ENDIAN 50419 not big endian 50420 #endif 50421 50422 ; 50423 return 0; 50424 } 50425 _ACEOF 50426 if ac_fn_cxx_try_compile "$LINENO"; then : 50427 ac_cv_c_bigendian=yes 50428 else 50429 ac_cv_c_bigendian=no 50430 fi 50431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50432 fi 50433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50434 fi 50435 if test $ac_cv_c_bigendian = unknown; then 50436 # Compile a test program. 50437 if test "$cross_compiling" = yes; then : 50438 # Try to guess by grepping values from an object file. 50439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50440 /* end confdefs.h. */ 50441 short int ascii_mm[] = 50442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 50443 short int ascii_ii[] = 50444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 50445 int use_ascii (int i) { 50446 return ascii_mm[i] + ascii_ii[i]; 50447 } 50448 short int ebcdic_ii[] = 50449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 50450 short int ebcdic_mm[] = 50451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 50452 int use_ebcdic (int i) { 50453 return ebcdic_mm[i] + ebcdic_ii[i]; 50454 } 50455 extern int foo; 50456 50457 int 50458 main () 50459 { 50460 return use_ascii (foo) == use_ebcdic (foo); 50461 ; 50462 return 0; 50463 } 50464 _ACEOF 50465 if ac_fn_cxx_try_compile "$LINENO"; then : 50466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 50467 ac_cv_c_bigendian=yes 50468 fi 50469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 50470 if test "$ac_cv_c_bigendian" = unknown; then 50471 ac_cv_c_bigendian=no 50472 else 50473 # finding both strings is unlikely to happen, but who knows? 50474 ac_cv_c_bigendian=unknown 50475 fi 50476 fi 50477 fi 50478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50479 else 50480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50481 /* end confdefs.h. */ 50482 $ac_includes_default 50483 int 50484 main () 50485 { 50486 50487 /* Are we little or big endian? From Harbison&Steele. */ 50488 union 50489 { 50490 long int l; 50491 char c[sizeof (long int)]; 50492 } u; 50493 u.l = 1; 50494 return u.c[sizeof (long int) - 1] == 1; 50495 50496 ; 50497 return 0; 50498 } 50499 _ACEOF 50500 if ac_fn_cxx_try_run "$LINENO"; then : 50501 ac_cv_c_bigendian=no 50502 else 50503 ac_cv_c_bigendian=yes 50504 fi 50505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50506 conftest.$ac_objext conftest.beam conftest.$ac_ext 50507 fi 50508 50509 fi 50510 fi 50511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 50512 $as_echo "$ac_cv_c_bigendian" >&6; } 50513 case $ac_cv_c_bigendian in #( 50514 yes) 50515 ENDIAN="big";; #( 50516 no) 50517 ENDIAN="little" ;; #( 50518 universal) 50519 ENDIAN="universal_endianness" 50520 ;; #( 50521 *) 50522 ENDIAN="unknown" ;; 50523 esac 50524 50525 50526 if test "x$ENDIAN" = xuniversal_endianness; then 50527 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 50528 fi 50529 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 50530 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 50531 fi 50532 50533 50534 # Configure flags for the tools 50535 50536 ############################################################################### 50537 # 50538 # How to compile shared libraries. 50539 # 50540 50541 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50542 PICFLAG="-fPIC" 50543 C_FLAG_REORDER='' 50544 CXX_FLAG_REORDER='' 50545 50546 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50547 # Linking is different on MacOSX 50548 if test "x$STATIC_BUILD" = xtrue; then 50549 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 50550 else 50551 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50552 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50553 fi 50554 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50555 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50556 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50557 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50558 else 50559 # Default works for linux, might work on other platforms as well. 50560 SHARED_LIBRARY_FLAGS='-shared' 50561 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50562 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50563 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50564 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50565 fi 50566 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50567 C_FLAG_REORDER='' 50568 CXX_FLAG_REORDER='' 50569 50570 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50571 # Linking is different on MacOSX 50572 PICFLAG='' 50573 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50574 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50575 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50576 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50577 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50578 50579 if test "x$STATIC_BUILD" = xfalse; then 50580 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 50581 fi 50582 else 50583 # Default works for linux, might work on other platforms as well. 50584 PICFLAG='-fPIC' 50585 SHARED_LIBRARY_FLAGS='-shared' 50586 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50587 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50588 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50589 50590 # arm specific settings 50591 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 50592 # '-Wl,-z,origin' isn't used on arm. 50593 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 50594 else 50595 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50596 fi 50597 50598 fi 50599 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50600 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50601 PICFLAG="-xcode=pic32" 50602 else 50603 PICFLAG="-KPIC" 50604 fi 50605 C_FLAG_REORDER='-xF' 50606 CXX_FLAG_REORDER='-xF' 50607 SHARED_LIBRARY_FLAGS="-G" 50608 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 50609 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50610 SET_SHARED_LIBRARY_NAME='-h $1' 50611 SET_SHARED_LIBRARY_MAPFILE='-M$1' 50612 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50613 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 50614 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 50615 # will have to patch this single instruction with a call to some out-of-order code which 50616 # does the load from the TOC. This is of course slow. But in that case we also would have 50617 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 50618 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 50619 # can be patched directly by the linker and does not require a jump to out-of-order code. 50620 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 50621 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 50622 # loads for accessing a global variable). But there are rumors that this may be seen as a 50623 # 'performance feature' because of improved code locality of the symbols used in a 50624 # compilation unit. 50625 PICFLAG="-qpic" 50626 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50627 C_FLAG_REORDER='' 50628 CXX_FLAG_REORDER='' 50629 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 50630 SET_EXECUTABLE_ORIGIN="" 50631 SET_SHARED_LIBRARY_ORIGIN='' 50632 SET_SHARED_LIBRARY_NAME='' 50633 SET_SHARED_LIBRARY_MAPFILE='' 50634 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50635 PICFLAG="" 50636 C_FLAG_REORDER='' 50637 CXX_FLAG_REORDER='' 50638 SHARED_LIBRARY_FLAGS="-dll" 50639 SET_EXECUTABLE_ORIGIN='' 50640 SET_SHARED_LIBRARY_ORIGIN='' 50641 SET_SHARED_LIBRARY_NAME='' 50642 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 50643 fi 50644 50645 50646 50647 50648 50649 50650 50651 50652 50653 # The (cross) compiler is now configured, we can now test capabilities 50654 # of the target platform. 50655 50656 50657 50658 ############################################################################### 50659 # 50660 # Setup the opt flags for different compilers 50661 # and different operating systems. 50662 # 50663 50664 # FIXME: this was indirectly the old default, but just inherited. 50665 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50666 # C_FLAG_DEPS="-MMD -MF" 50667 # fi 50668 50669 # Generate make dependency files 50670 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50671 C_FLAG_DEPS="-MMD -MF" 50672 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50673 C_FLAG_DEPS="-MMD -MF" 50674 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50675 C_FLAG_DEPS="-xMMD -xMF" 50676 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50677 C_FLAG_DEPS="-qmakedep=gcc -MF" 50678 fi 50679 CXX_FLAG_DEPS="$C_FLAG_DEPS" 50680 50681 50682 50683 # Debug symbols 50684 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50685 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 50686 # reduce from default "-g2" option to save space 50687 CFLAGS_DEBUG_SYMBOLS="-g1" 50688 CXXFLAGS_DEBUG_SYMBOLS="-g1" 50689 else 50690 CFLAGS_DEBUG_SYMBOLS="-g" 50691 CXXFLAGS_DEBUG_SYMBOLS="-g" 50692 fi 50693 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50694 CFLAGS_DEBUG_SYMBOLS="-g" 50695 CXXFLAGS_DEBUG_SYMBOLS="-g" 50696 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50697 CFLAGS_DEBUG_SYMBOLS="-g -xs" 50698 # -g0 enables debug symbols without disabling inlining. 50699 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 50700 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50701 CFLAGS_DEBUG_SYMBOLS="-g" 50702 CXXFLAGS_DEBUG_SYMBOLS="-g" 50703 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50704 CFLAGS_DEBUG_SYMBOLS="-Zi" 50705 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 50706 fi 50707 50708 50709 50710 # Debug symbols for JVM_CFLAGS 50711 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50712 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 50713 if test "x$DEBUG_LEVEL" = xslowdebug; then 50714 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50715 else 50716 # -g0 does not disable inlining, which -g does. 50717 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 50718 fi 50719 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50720 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 50721 else 50722 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50723 fi 50724 50725 50726 # bounds, memory and behavior checking options 50727 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50728 case $DEBUG_LEVEL in 50729 release ) 50730 # no adjustment 50731 ;; 50732 fastdebug ) 50733 # no adjustment 50734 ;; 50735 slowdebug ) 50736 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 50737 # get's added conditionally on whether we produce debug symbols or not. 50738 # This is most likely not really correct. 50739 50740 # Add runtime stack smashing and undefined behavior checks. 50741 # Not all versions of gcc support -fstack-protector 50742 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 50743 50744 50745 50746 50747 50748 50749 50750 50751 50752 50753 50754 50755 50756 50757 50758 50759 50760 50761 50762 50763 50764 50765 50766 50767 50768 50769 50770 50771 50772 50773 50774 50775 50776 50777 50778 50779 50780 50781 50782 50783 50784 50785 # Execute function body 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 # Execute function body 50835 50836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50837 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50838 supports=yes 50839 50840 saved_cflags="$CFLAGS" 50841 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 50842 ac_ext=c 50843 ac_cpp='$CPP $CPPFLAGS' 50844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50846 ac_compiler_gnu=$ac_cv_c_compiler_gnu 50847 50848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50849 /* end confdefs.h. */ 50850 int i; 50851 _ACEOF 50852 if ac_fn_c_try_compile "$LINENO"; then : 50853 50854 else 50855 supports=no 50856 fi 50857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50858 ac_ext=cpp 50859 ac_cpp='$CXXCPP $CPPFLAGS' 50860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50863 50864 CFLAGS="$saved_cflags" 50865 50866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50867 $as_echo "$supports" >&6; } 50868 if test "x$supports" = "xyes" ; then 50869 : 50870 C_COMP_SUPPORTS="yes" 50871 else 50872 : 50873 C_COMP_SUPPORTS="no" 50874 fi 50875 50876 50877 50878 50879 50880 50881 50882 50883 50884 50885 50886 50887 50888 50889 50890 50891 50892 50893 50894 50895 50896 50897 50898 50899 50900 50901 50902 50903 50904 50905 50906 50907 50908 50909 50910 50911 50912 50913 50914 50915 50916 50917 50918 50919 50920 50921 50922 50923 50924 50925 50926 50927 50928 50929 50930 50931 50932 50933 50934 # Execute function body 50935 50936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50937 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50938 supports=yes 50939 50940 saved_cxxflags="$CXXFLAGS" 50941 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 50942 ac_ext=cpp 50943 ac_cpp='$CXXCPP $CPPFLAGS' 50944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50947 50948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50949 /* end confdefs.h. */ 50950 int i; 50951 _ACEOF 50952 if ac_fn_cxx_try_compile "$LINENO"; then : 50953 50954 else 50955 supports=no 50956 fi 50957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50958 ac_ext=cpp 50959 ac_cpp='$CXXCPP $CPPFLAGS' 50960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50963 50964 CXXFLAGS="$saved_cxxflags" 50965 50966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50967 $as_echo "$supports" >&6; } 50968 if test "x$supports" = "xyes" ; then 50969 : 50970 CXX_COMP_SUPPORTS="yes" 50971 else 50972 : 50973 CXX_COMP_SUPPORTS="no" 50974 fi 50975 50976 50977 50978 50979 50980 50981 50982 50983 50984 50985 50986 50987 50988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50989 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50990 supports=no 50991 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 50992 50993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50994 $as_echo "$supports" >&6; } 50995 if test "x$supports" = "xyes" ; then 50996 : 50997 50998 else 50999 : 51000 STACK_PROTECTOR_CFLAG="" 51001 fi 51002 51003 51004 51005 51006 51007 51008 51009 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51010 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51011 if test "x$STACK_PROTECTOR_CFLAG" != x; then 51012 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51013 fi 51014 ;; 51015 esac 51016 fi 51017 51018 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51019 if test "x$DEBUG_LEVEL" != xrelease; then 51020 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51021 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 51022 fi 51023 fi 51024 fi 51025 51026 # Optimization levels 51027 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51028 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 51029 51030 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 51031 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 51032 C_O_FLAG_HIGHEST_JVM="-xO4" 51033 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 51034 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 51035 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 51036 C_O_FLAG_DEBUG="-xregs=no%frameptr" 51037 C_O_FLAG_DEBUG_JVM="" 51038 C_O_FLAG_NONE="-xregs=no%frameptr" 51039 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51040 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 51041 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 51042 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 51043 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 51044 CXX_O_FLAG_DEBUG_JVM="" 51045 CXX_O_FLAG_NONE="-xregs=no%frameptr" 51046 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51047 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 51048 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 51049 fi 51050 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51051 C_O_FLAG_HIGHEST_JVM="-xO4" 51052 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 51053 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51054 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51055 C_O_FLAG_DEBUG="" 51056 C_O_FLAG_DEBUG_JVM="" 51057 C_O_FLAG_NONE="" 51058 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51059 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 51060 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51061 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51062 CXX_O_FLAG_DEBUG="" 51063 CXX_O_FLAG_DEBUG_JVM="" 51064 CXX_O_FLAG_NONE="" 51065 fi 51066 else 51067 # The remaining toolchains share opt flags between CC and CXX; 51068 # setup for C and duplicate afterwards. 51069 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51070 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51071 # On MacOSX we optimize for size, something 51072 # we should do for all platforms? 51073 C_O_FLAG_HIGHEST_JVM="-Os" 51074 C_O_FLAG_HIGHEST="-Os" 51075 C_O_FLAG_HI="-Os" 51076 C_O_FLAG_NORM="-Os" 51077 C_O_FLAG_SIZE="-Os" 51078 else 51079 C_O_FLAG_HIGHEST_JVM="-O3" 51080 C_O_FLAG_HIGHEST="-O3" 51081 C_O_FLAG_HI="-O3" 51082 C_O_FLAG_NORM="-O2" 51083 C_O_FLAG_SIZE="-Os" 51084 fi 51085 C_O_FLAG_DEBUG="-O0" 51086 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51087 C_O_FLAG_DEBUG_JVM="" 51088 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51089 C_O_FLAG_DEBUG_JVM="-O0" 51090 fi 51091 C_O_FLAG_NONE="-O0" 51092 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51093 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51094 # On MacOSX we optimize for size, something 51095 # we should do for all platforms? 51096 C_O_FLAG_HIGHEST_JVM="-Os" 51097 C_O_FLAG_HIGHEST="-Os" 51098 C_O_FLAG_HI="-Os" 51099 C_O_FLAG_NORM="-Os" 51100 C_O_FLAG_SIZE="-Os" 51101 else 51102 C_O_FLAG_HIGHEST_JVM="-O3" 51103 C_O_FLAG_HIGHEST="-O3" 51104 C_O_FLAG_HI="-O3" 51105 C_O_FLAG_NORM="-O2" 51106 C_O_FLAG_SIZE="-Os" 51107 fi 51108 C_O_FLAG_DEBUG="-O0" 51109 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51110 C_O_FLAG_DEBUG_JVM="" 51111 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51112 C_O_FLAG_DEBUG_JVM="-O0" 51113 fi 51114 C_O_FLAG_NONE="-O0" 51115 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51116 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 51117 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 51118 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51119 C_O_FLAG_NORM="-O2" 51120 C_O_FLAG_DEBUG="-qnoopt" 51121 # FIXME: Value below not verified. 51122 C_O_FLAG_DEBUG_JVM="" 51123 C_O_FLAG_NONE="-qnoopt" 51124 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51125 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51126 C_O_FLAG_HIGHEST="-O2" 51127 C_O_FLAG_HI="-O1" 51128 C_O_FLAG_NORM="-O1" 51129 C_O_FLAG_DEBUG="-Od" 51130 C_O_FLAG_DEBUG_JVM="" 51131 C_O_FLAG_NONE="-Od" 51132 C_O_FLAG_SIZE="-Os" 51133 fi 51134 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51135 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51136 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51137 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51138 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51139 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51140 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51141 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51142 fi 51143 51144 # Adjust optimization flags according to debug level. 51145 case $DEBUG_LEVEL in 51146 release ) 51147 # no adjustment 51148 ;; 51149 fastdebug ) 51150 # Not quite so much optimization 51151 C_O_FLAG_HI="$C_O_FLAG_NORM" 51152 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51153 ;; 51154 slowdebug ) 51155 # Disable optimization 51156 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 51157 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 51158 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 51159 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 51160 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 51161 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 51162 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 51163 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 51164 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 51165 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 51166 ;; 51167 esac 51168 51169 51170 51171 51172 51173 51174 51175 51176 51177 51178 51179 51180 51181 51182 51183 51184 51185 51186 51187 51188 # Check whether --with-abi-profile was given. 51189 if test "${with_abi_profile+set}" = set; then : 51190 withval=$with_abi_profile; 51191 fi 51192 51193 51194 if test "x$with_abi_profile" != x; then 51195 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 51196 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 51197 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 51198 fi 51199 51200 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 51201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 51202 $as_echo_n "checking for ABI profle... " >&6; } 51203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 51204 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 51205 51206 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 51207 ARM_FLOAT_TYPE=vfp-sflt 51208 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51209 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 51210 ARM_FLOAT_TYPE=vfp-hflt 51211 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51212 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 51213 ARM_FLOAT_TYPE=sflt 51214 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51215 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 51216 ARM_FLOAT_TYPE=vfp-sflt 51217 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51218 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 51219 ARM_FLOAT_TYPE=vfp-hflt 51220 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 51221 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 51222 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51223 ARM_FLOAT_TYPE= 51224 ARM_ARCH_TYPE_FLAGS= 51225 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 51226 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51227 ARM_FLOAT_TYPE= 51228 ARM_ARCH_TYPE_FLAGS= 51229 else 51230 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 51231 fi 51232 51233 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 51234 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 51235 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 51236 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 51237 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 51238 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 51239 fi 51240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 51241 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 51242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 51243 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 51244 51245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 51246 $as_echo_n "checking for arch type flags... " >&6; } 51247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 51248 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 51249 51250 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 51251 # autoconf target triplet. 51252 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 51253 # Sanity check that it is a known ABI. 51254 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 51255 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 51256 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 51257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 51258 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 51259 fi 51260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 51261 $as_echo_n "checking for ABI property name... " >&6; } 51262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 51263 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 51264 51265 51266 # Pass these on to the open part of configure as if they were set using 51267 # --with-extra-c[xx]flags. 51268 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51269 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51270 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 51271 # FIXME: This should not really be set using extra_cflags. 51272 if test "x$OPENJDK_TARGET_CPU" = xarm; then 51273 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 51274 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 51275 fi 51276 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 51277 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 51278 # And pass the architecture flags to the linker as well 51279 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51280 fi 51281 51282 # When building with an abi profile, the name of that profile is appended on the 51283 # bundle platform, which is used in bundle names. 51284 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 51285 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 51286 fi 51287 51288 51289 # Optional POSIX functionality needed by the JVM 51290 # 51291 # Check if clock_gettime is available and in which library. This indicates 51292 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 51293 # don't let it update LIBS. 51294 save_LIBS="$LIBS" 51295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 51296 $as_echo_n "checking for library containing clock_gettime... " >&6; } 51297 if ${ac_cv_search_clock_gettime+:} false; then : 51298 $as_echo_n "(cached) " >&6 51299 else 51300 ac_func_search_save_LIBS=$LIBS 51301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51302 /* end confdefs.h. */ 51303 51304 /* Override any GCC internal prototype to avoid an error. 51305 Use char because int might match the return type of a GCC 51306 builtin and then its argument prototype would still apply. */ 51307 #ifdef __cplusplus 51308 extern "C" 51309 #endif 51310 char clock_gettime (); 51311 int 51312 main () 51313 { 51314 return clock_gettime (); 51315 ; 51316 return 0; 51317 } 51318 _ACEOF 51319 for ac_lib in '' rt; do 51320 if test -z "$ac_lib"; then 51321 ac_res="none required" 51322 else 51323 ac_res=-l$ac_lib 51324 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 51325 fi 51326 if ac_fn_cxx_try_link "$LINENO"; then : 51327 ac_cv_search_clock_gettime=$ac_res 51328 fi 51329 rm -f core conftest.err conftest.$ac_objext \ 51330 conftest$ac_exeext 51331 if ${ac_cv_search_clock_gettime+:} false; then : 51332 break 51333 fi 51334 done 51335 if ${ac_cv_search_clock_gettime+:} false; then : 51336 51337 else 51338 ac_cv_search_clock_gettime=no 51339 fi 51340 rm conftest.$ac_ext 51341 LIBS=$ac_func_search_save_LIBS 51342 fi 51343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 51344 $as_echo "$ac_cv_search_clock_gettime" >&6; } 51345 ac_res=$ac_cv_search_clock_gettime 51346 if test "$ac_res" != no; then : 51347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 51348 HAS_CLOCK_GETTIME=true 51349 fi 51350 51351 if test "x$LIBS" = "x-lrt "; then 51352 CLOCK_GETTIME_IN_LIBRT=true 51353 fi 51354 LIBS="$save_LIBS" 51355 51356 51357 # Special extras... 51358 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51359 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51360 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51361 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51362 fi 51363 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51364 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51365 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51366 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51367 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51368 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51369 CXXSTD_CXXFLAG="-std=gnu++98" 51370 51371 51372 51373 51374 51375 51376 51377 51378 51379 51380 51381 51382 51383 51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 51394 51395 51396 51397 51398 51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 51410 51411 51412 # Execute function body 51413 51414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 51415 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 51416 supports=yes 51417 51418 saved_cxxflags="$CXXFLAGS" 51419 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 51420 ac_ext=cpp 51421 ac_cpp='$CXXCPP $CPPFLAGS' 51422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51425 51426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51427 /* end confdefs.h. */ 51428 int i; 51429 _ACEOF 51430 if ac_fn_cxx_try_compile "$LINENO"; then : 51431 51432 else 51433 supports=no 51434 fi 51435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51436 ac_ext=cpp 51437 ac_cpp='$CXXCPP $CPPFLAGS' 51438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51441 51442 CXXFLAGS="$saved_cxxflags" 51443 51444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51445 $as_echo "$supports" >&6; } 51446 if test "x$supports" = "xyes" ; then 51447 : 51448 51449 else 51450 : 51451 CXXSTD_CXXFLAG="" 51452 fi 51453 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 51466 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 51467 51468 fi 51469 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51470 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 51471 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 51472 fi 51473 51474 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 51475 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 51476 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 51477 51478 ############################################################################### 51479 # 51480 # Now setup the CFLAGS and LDFLAGS for the JDK build. 51481 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 51482 # 51483 51484 # Setup compiler/platform specific flags into 51485 # CFLAGS_JDK - C Compiler flags 51486 # CXXFLAGS_JDK - C++ Compiler flags 51487 # COMMON_CCXXFLAGS_JDK - common to C and C++ 51488 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51489 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51490 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51491 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 51492 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51493 # Force compatibility with i586 on 32 bit intel platforms. 51494 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51495 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51496 fi 51497 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51498 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51499 case $OPENJDK_TARGET_CPU_ARCH in 51500 arm ) 51501 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51502 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51503 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 51504 ;; 51505 ppc ) 51506 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51507 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51508 ;; 51509 s390 ) 51510 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 51511 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51512 ;; 51513 * ) 51514 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51515 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51516 ;; 51517 esac 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 51539 51540 51541 51542 51543 51544 51545 51546 51547 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 # Execute function body 51573 51574 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51575 REFERENCE_VERSION=6 51576 51577 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51578 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51579 fi 51580 51581 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51582 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 51583 fi 51584 51585 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51586 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51587 51588 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51589 : 51590 51591 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 51592 # runs afoul of the more aggressive versions of these optimisations. 51593 # Notably, value range propagation now assumes that the this pointer of C++ 51594 # member functions is non-null. 51595 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 51596 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 51597 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 51598 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 51599 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51600 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51601 51602 else 51603 : 51604 51605 fi 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51621 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51622 51623 # Restrict the debug information created by Clang to avoid 51624 # too big object files and speed the build up a little bit 51625 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 51626 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 51627 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51628 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51629 # Force compatibility with i586 on 32 bit intel platforms. 51630 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51631 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51632 fi 51633 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 51634 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51635 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51636 case $OPENJDK_TARGET_CPU_ARCH in 51637 ppc ) 51638 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51639 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51640 ;; 51641 * ) 51642 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51643 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51644 ;; 51645 esac 51646 fi 51647 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51648 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 51649 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 51650 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 51651 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 51652 fi 51653 51654 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 51655 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 51656 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51657 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51658 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51659 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51660 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51661 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 51662 -MD -Zc:wchar_t- -W3 -wd4800 \ 51663 -DWIN32_LEAN_AND_MEAN \ 51664 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 51665 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 51666 -DWIN32 -DIAL" 51667 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51668 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 51669 else 51670 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 51671 fi 51672 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 51673 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 51674 # studio. 51675 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 51676 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51677 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51678 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51679 fi 51680 fi 51681 51682 ############################################################################### 51683 51684 # Adjust flags according to debug level. 51685 case $DEBUG_LEVEL in 51686 fastdebug | slowdebug ) 51687 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51688 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51689 ;; 51690 release ) 51691 ;; 51692 * ) 51693 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51694 ;; 51695 esac 51696 51697 # Set some common defines. These works for all compilers, but assume 51698 # -D is universally accepted. 51699 51700 # Setup endianness 51701 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51702 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51703 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51704 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51705 # Note: -Dmacro is the same as #define macro 1 51706 # -Dmacro= is the same as #define macro 51707 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51708 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51709 else 51710 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51711 fi 51712 else 51713 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51714 # are defined in the system? 51715 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51716 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51717 else 51718 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51719 fi 51720 fi 51721 51722 # Always enable optional macros for VM. 51723 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 51724 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 51725 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 51726 51727 # Setup target OS define. Use OS target name but in upper case. 51728 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51729 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 51730 51731 # Setup target CPU 51732 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51733 $OPENJDK_TARGET_ADD_LP64 \ 51734 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 51735 51736 # Setup debug/release defines 51737 if test "x$DEBUG_LEVEL" = xrelease; then 51738 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 51739 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51740 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 51741 fi 51742 else 51743 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 51744 fi 51745 51746 # Optional POSIX functionality needed by the VM 51747 51748 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 51749 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 51750 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 51751 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 51752 fi 51753 fi 51754 51755 51756 # Set some additional per-OS defines. 51757 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51758 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 51759 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 51760 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51761 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 51762 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 51763 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51764 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 51765 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51766 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51767 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 51768 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51769 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51770 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51771 -fno-omit-frame-pointer" 51772 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51773 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 51774 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 51775 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51776 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51777 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51778 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 51779 # so for slowdebug we build with '-qpic=large -bbigtoc'. 51780 if test "x$DEBUG_LEVEL" = xslowdebug; then 51781 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 51782 fi 51783 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 51784 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51785 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 51786 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51787 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 51788 fi 51789 51790 # Set some additional per-CPU defines. 51791 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 51792 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 51793 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 51794 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 51795 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 51796 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51797 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51798 # fixes `relocation truncated to fit' error for gcc 4.1. 51799 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 51800 # Use ppc64 instructions, but schedule for power5 51801 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51802 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51803 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 51804 fi 51805 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 51806 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51807 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51808 # Little endian machine uses ELFv2 ABI. 51809 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 51810 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51811 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 51812 fi 51813 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 51814 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51815 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 51816 fi 51817 fi 51818 51819 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51820 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51821 fi 51822 51823 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51824 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 51825 # Solaris does not have _LP64=1 in the old build. 51826 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51827 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 51828 fi 51829 fi 51830 51831 # Set JVM_CFLAGS warning handling 51832 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51833 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51834 -Wunused-value -Woverloaded-virtual" 51835 51836 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 51854 51855 51856 51857 51858 51859 51860 51861 51862 51863 51864 51865 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 51878 51879 51880 51881 51882 51883 51884 51885 51886 51887 51888 51889 51890 51891 # Execute function body 51892 51893 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51894 REFERENCE_VERSION=4.8 51895 51896 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51897 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51898 fi 51899 51900 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51901 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51902 fi 51903 51904 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51905 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51906 51907 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51908 : 51909 51910 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51911 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51912 51913 51914 else 51915 : 51916 51917 fi 51918 51919 51920 51921 51922 51923 51924 51925 51926 51927 51928 51929 51930 51931 51932 fi 51933 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51934 # Non-zero builds have stricter warnings 51935 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51936 else 51937 if test "x$TOOLCHAIN_TYPE" = xclang; then 51938 # Some versions of llvm do not like -Wundef 51939 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 51940 fi 51941 fi 51942 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51943 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51944 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51945 fi 51946 51947 # Additional macosx handling 51948 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51949 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 51950 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 51951 # JDK can be built and makes the linked binaries compatible even if built on 51952 # a newer version of the OS. 51953 MACOSX_VERSION_MIN=10.7.0 51954 51955 51956 # Setting --with-macosx-version-max=<version> makes it an error to build or 51957 # link to macosx APIs that are newer than the given OS version. The expected 51958 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 51959 51960 # Check whether --with-macosx-version-max was given. 51961 if test "${with_macosx_version_max+set}" = set; then : 51962 withval=$with_macosx_version_max; 51963 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 51964 MACOSX_VERSION_MAX=$with_macosx_version_max 51965 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 51966 MACOSX_VERSION_MAX=$with_macosx_version_max 51967 elif test "x$with_macosx_version_max" = "xno"; then 51968 # Use build system default 51969 MACOSX_VERSION_MAX= 51970 else 51971 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 51972 fi 51973 51974 else 51975 MACOSX_VERSION_MAX= 51976 51977 fi 51978 51979 51980 51981 # Let the flags variables get resolved in make for easier override on make 51982 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 51983 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51984 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51985 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51986 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51987 JVM_CFLAGS="$JVM_CFLAGS \ 51988 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51989 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51990 51991 if test -n "$MACOSX_VERSION_MAX"; then 51992 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51993 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51994 JVM_CFLAGS="$JVM_CFLAGS \ 51995 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51996 fi 51997 fi 51998 51999 # Setup some hard coded includes 52000 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52001 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52002 -I${TOPDIR}/src/java.base/share/native/include \ 52003 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 52004 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 52005 -I${TOPDIR}/src/java.base/share/native/libjava \ 52006 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 52007 52008 # The shared libraries are compiled using the picflag. 52009 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52010 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 52011 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52012 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 52013 52014 # Executable flags 52015 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 52016 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 52017 52018 52019 52020 52021 52022 52023 # Setup LDFLAGS et al. 52024 # 52025 52026 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52027 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52028 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52029 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52030 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 52031 LDFLAGS_SAFESH="-safeseh" 52032 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 52033 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 52034 # NOTE: Old build added -machine. Probably not needed. 52035 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 52036 else 52037 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 52038 fi 52039 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52040 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52041 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52042 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52043 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52044 fi 52045 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52046 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52047 # We have previously set HAS_GNU_HASH if this is the case 52048 if test -n "$HAS_GNU_HASH"; then 52049 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52050 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 52051 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 52052 fi 52053 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52054 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52055 fi 52056 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52057 # And since we now know that the linker is gnu, then add -z defs, to forbid 52058 # undefined symbols in object files. 52059 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52060 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52061 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52062 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52063 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52064 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52065 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 52066 fi 52067 case $DEBUG_LEVEL in 52068 release ) 52069 # tell linker to optimize libraries. 52070 # Should this be supplied to the OSS linker as well? 52071 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52072 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52073 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52074 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52075 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52076 fi 52077 ;; 52078 slowdebug ) 52079 # Hotspot always let the linker optimize 52080 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52081 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52082 # do relocations at load 52083 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 52084 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52085 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 52086 fi 52087 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52088 # mark relocations read only 52089 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52090 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52091 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52092 fi 52093 ;; 52094 fastdebug ) 52095 # Hotspot always let the linker optimize 52096 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52097 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52098 # mark relocations read only 52099 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52100 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52101 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52102 fi 52103 ;; 52104 * ) 52105 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52106 ;; 52107 esac 52108 fi 52109 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52110 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52111 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52112 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52113 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52114 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52115 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52116 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 52117 fi 52118 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52119 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 52120 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52121 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52122 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52123 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52124 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52125 if test "x$DEBUG_LEVEL" = xslowdebug; then 52126 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52127 fi 52128 fi 52129 52130 # Customize LDFLAGS for executables 52131 52132 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52133 52134 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52135 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52136 LDFLAGS_STACK_SIZE=1048576 52137 else 52138 LDFLAGS_STACK_SIZE=327680 52139 fi 52140 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52141 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52142 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52143 fi 52144 52145 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52146 52147 # Customize LDFLAGS for libs 52148 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52149 52150 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52151 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52152 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52153 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52154 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 52155 JDKLIB_LIBS="" 52156 else 52157 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52158 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52159 52160 if test "xTARGET" = "xTARGET"; then 52161 # On some platforms (mac) the linker warns about non existing -L dirs. 52162 # For any of the variants server, client or minimal, the dir matches the 52163 # variant name. The "main" variant should be used for linking. For the 52164 # rest, the dir is just server. 52165 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52166 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52167 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52168 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52169 else 52170 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52171 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52172 fi 52173 elif test "xTARGET" = "xBUILD"; then 52174 # When building a buildjdk, it's always only the server variant 52175 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52176 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52177 fi 52178 52179 JDKLIB_LIBS="-ljava -ljvm" 52180 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52181 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 52182 fi 52183 52184 fi 52185 52186 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 52187 52188 # Set JVM_LIBS (per os) 52189 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52190 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 52191 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52192 # FIXME: This hard-coded path is not really proper. 52193 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52194 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52195 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 52196 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52197 fi 52198 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52199 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52200 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52201 JVM_LIBS="$JVM_LIBS -lm" 52202 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52203 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52204 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52205 JVM_LIBS="$JVM_LIBS -lm" 52206 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52207 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52208 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52209 wsock32.lib winmm.lib version.lib psapi.lib" 52210 fi 52211 52212 # Set JVM_ASFLAGS 52213 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52214 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52215 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 52216 fi 52217 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52218 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 52219 fi 52220 52221 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 52236 52237 52238 # Special extras... 52239 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52240 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52241 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52242 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52243 fi 52244 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52245 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52246 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52247 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52248 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52249 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52250 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 52251 52252 52253 52254 52255 52256 52257 52258 52259 52260 52261 52262 52263 52264 52265 52266 52267 52268 52269 52270 52271 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 52293 # Execute function body 52294 52295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 52296 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 52297 supports=yes 52298 52299 saved_cxxflags="$CXXFLAGS" 52300 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 52301 ac_ext=cpp 52302 ac_cpp='$CXXCPP $CPPFLAGS' 52303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52306 52307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52308 /* end confdefs.h. */ 52309 int i; 52310 _ACEOF 52311 if ac_fn_cxx_try_compile "$LINENO"; then : 52312 52313 else 52314 supports=no 52315 fi 52316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52317 ac_ext=cpp 52318 ac_cpp='$CXXCPP $CPPFLAGS' 52319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52322 52323 CXXFLAGS="$saved_cxxflags" 52324 52325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52326 $as_echo "$supports" >&6; } 52327 if test "x$supports" = "xyes" ; then 52328 : 52329 52330 else 52331 : 52332 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 52333 fi 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 52344 52345 52346 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52347 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52348 52349 fi 52350 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52351 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 52352 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 52353 fi 52354 52355 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 52356 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 52357 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 52358 52359 ############################################################################### 52360 # 52361 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52362 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52363 # 52364 52365 # Setup compiler/platform specific flags into 52366 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 52367 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 52368 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 52369 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52370 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52371 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52372 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 52373 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52374 # Force compatibility with i586 on 32 bit intel platforms. 52375 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52376 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52377 fi 52378 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52379 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52380 case $OPENJDK_BUILD_CPU_ARCH in 52381 arm ) 52382 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52383 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52384 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 52385 ;; 52386 ppc ) 52387 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52388 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52389 ;; 52390 s390 ) 52391 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52392 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52393 ;; 52394 * ) 52395 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52396 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52397 ;; 52398 esac 52399 52400 52401 52402 52403 52404 52405 52406 52407 52408 52409 52410 52411 52412 52413 52414 52415 52416 52417 52418 52419 52420 52421 52422 52423 52424 52425 52426 52427 52428 52429 52430 52431 52432 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 52450 52451 52452 52453 # Execute function body 52454 52455 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52456 REFERENCE_VERSION=6 52457 52458 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52459 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52460 fi 52461 52462 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52463 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52464 fi 52465 52466 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52467 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52468 52469 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52470 : 52471 52472 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52473 # runs afoul of the more aggressive versions of these optimisations. 52474 # Notably, value range propagation now assumes that the this pointer of C++ 52475 # member functions is non-null. 52476 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52477 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52478 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52479 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52480 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52481 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52482 52483 else 52484 : 52485 52486 fi 52487 52488 52489 52490 52491 52492 52493 52494 52495 52496 52497 52498 52499 52500 52501 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52502 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52503 52504 # Restrict the debug information created by Clang to avoid 52505 # too big object files and speed the build up a little bit 52506 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52507 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 52508 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52509 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52510 # Force compatibility with i586 on 32 bit intel platforms. 52511 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52512 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52513 fi 52514 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 52515 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52516 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52517 case $OPENJDK_BUILD_CPU_ARCH in 52518 ppc ) 52519 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52520 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52521 ;; 52522 * ) 52523 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52524 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52525 ;; 52526 esac 52527 fi 52528 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52529 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 52530 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52531 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 52532 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 52533 fi 52534 52535 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52536 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52537 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52538 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52539 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52540 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52541 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52542 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52543 -MD -Zc:wchar_t- -W3 -wd4800 \ 52544 -DWIN32_LEAN_AND_MEAN \ 52545 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52546 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52547 -DWIN32 -DIAL" 52548 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52549 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52550 else 52551 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52552 fi 52553 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52554 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52555 # studio. 52556 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52557 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52558 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52559 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52560 fi 52561 fi 52562 52563 ############################################################################### 52564 52565 # Adjust flags according to debug level. 52566 case $DEBUG_LEVEL in 52567 fastdebug | slowdebug ) 52568 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52569 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52570 ;; 52571 release ) 52572 ;; 52573 * ) 52574 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52575 ;; 52576 esac 52577 52578 # Set some common defines. These works for all compilers, but assume 52579 # -D is universally accepted. 52580 52581 # Setup endianness 52582 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52583 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52584 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52585 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52586 # Note: -Dmacro is the same as #define macro 1 52587 # -Dmacro= is the same as #define macro 52588 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52589 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52590 else 52591 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52592 fi 52593 else 52594 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52595 # are defined in the system? 52596 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52597 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52598 else 52599 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52600 fi 52601 fi 52602 52603 # Always enable optional macros for VM. 52604 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52605 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52606 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52607 52608 # Setup target OS define. Use OS target name but in upper case. 52609 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52610 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 52611 52612 # Setup target CPU 52613 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52614 $OPENJDK_BUILD_ADD_LP64 \ 52615 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 52616 52617 # Setup debug/release defines 52618 if test "x$DEBUG_LEVEL" = xrelease; then 52619 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 52620 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52621 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 52622 fi 52623 else 52624 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 52625 fi 52626 52627 # Optional POSIX functionality needed by the VM 52628 52629 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52630 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52631 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52632 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 52633 fi 52634 fi 52635 52636 52637 # Set some additional per-OS defines. 52638 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52639 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 52640 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52641 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52642 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52643 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 52644 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52645 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52646 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52647 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52648 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 52649 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52650 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52651 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52652 -fno-omit-frame-pointer" 52653 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52654 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 52655 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 52656 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52657 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52658 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52659 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52660 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52661 if test "x$DEBUG_LEVEL" = xslowdebug; then 52662 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 52663 fi 52664 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52665 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52666 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52667 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52668 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 52669 fi 52670 52671 # Set some additional per-CPU defines. 52672 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 52673 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 52674 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 52675 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 52676 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 52677 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52678 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52679 # fixes `relocation truncated to fit' error for gcc 4.1. 52680 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 52681 # Use ppc64 instructions, but schedule for power5 52682 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52683 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52684 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 52685 fi 52686 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 52687 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52688 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52689 # Little endian machine uses ELFv2 ABI. 52690 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 52691 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52692 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 52693 fi 52694 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 52695 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52696 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 52697 fi 52698 fi 52699 52700 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52701 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52702 fi 52703 52704 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 52705 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 52706 # Solaris does not have _LP64=1 in the old build. 52707 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52708 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 52709 fi 52710 fi 52711 52712 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 52713 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52714 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52715 -Wunused-value -Woverloaded-virtual" 52716 52717 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52718 52719 52720 52721 52722 52723 52724 52725 52726 52727 52728 52729 52730 52731 52732 52733 52734 52735 52736 52737 52738 52739 52740 52741 52742 52743 52744 52745 52746 52747 52748 52749 52750 52751 52752 52753 52754 52755 52756 52757 52758 52759 52760 52761 52762 52763 52764 52765 52766 52767 52768 52769 52770 52771 52772 # Execute function body 52773 52774 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52775 REFERENCE_VERSION=4.8 52776 52777 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52778 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52779 fi 52780 52781 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52782 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52783 fi 52784 52785 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52786 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52787 52788 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52789 : 52790 52791 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52792 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52793 52794 52795 else 52796 : 52797 52798 fi 52799 52800 52801 52802 52803 52804 52805 52806 52807 52808 52809 52810 52811 52812 52813 fi 52814 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52815 # Non-zero builds have stricter warnings 52816 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52817 else 52818 if test "x$TOOLCHAIN_TYPE" = xclang; then 52819 # Some versions of llvm do not like -Wundef 52820 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 52821 fi 52822 fi 52823 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52824 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52825 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52826 fi 52827 52828 # Additional macosx handling 52829 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52830 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52831 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52832 # JDK can be built and makes the linked binaries compatible even if built on 52833 # a newer version of the OS. 52834 MACOSX_VERSION_MIN=10.7.0 52835 52836 52837 # Setting --with-macosx-version-max=<version> makes it an error to build or 52838 # link to macosx APIs that are newer than the given OS version. The expected 52839 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52840 52841 # Check whether --with-macosx-version-max was given. 52842 if test "${with_macosx_version_max+set}" = set; then : 52843 withval=$with_macosx_version_max; 52844 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52845 MACOSX_VERSION_MAX=$with_macosx_version_max 52846 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52847 MACOSX_VERSION_MAX=$with_macosx_version_max 52848 elif test "x$with_macosx_version_max" = "xno"; then 52849 # Use build system default 52850 MACOSX_VERSION_MAX= 52851 else 52852 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52853 fi 52854 52855 else 52856 MACOSX_VERSION_MAX= 52857 52858 fi 52859 52860 52861 52862 # Let the flags variables get resolved in make for easier override on make 52863 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52864 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52865 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52866 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52867 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52868 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52869 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52870 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52871 52872 if test -n "$MACOSX_VERSION_MAX"; then 52873 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52874 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52875 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52876 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52877 fi 52878 fi 52879 52880 # Setup some hard coded includes 52881 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52882 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52883 -I${TOPDIR}/src/java.base/share/native/include \ 52884 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 52885 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 52886 -I${TOPDIR}/src/java.base/share/native/libjava \ 52887 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 52888 52889 # The shared libraries are compiled using the picflag. 52890 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52891 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 52892 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52893 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 52894 52895 # Executable flags 52896 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 52897 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 52898 52899 52900 52901 52902 52903 52904 # Setup LDFLAGS et al. 52905 # 52906 52907 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52908 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52909 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52910 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52911 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 52912 LDFLAGS_SAFESH="-safeseh" 52913 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 52914 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 52915 # NOTE: Old build added -machine. Probably not needed. 52916 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 52917 else 52918 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 52919 fi 52920 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52921 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52922 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52923 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52924 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52925 fi 52926 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52927 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52928 # We have previously set HAS_GNU_HASH if this is the case 52929 if test -n "$HAS_GNU_HASH"; then 52930 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52931 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52932 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52933 fi 52934 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52935 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52936 fi 52937 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52938 # And since we now know that the linker is gnu, then add -z defs, to forbid 52939 # undefined symbols in object files. 52940 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52941 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52942 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52943 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52944 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52945 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52946 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 52947 fi 52948 case $DEBUG_LEVEL in 52949 release ) 52950 # tell linker to optimize libraries. 52951 # Should this be supplied to the OSS linker as well? 52952 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52953 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52954 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52955 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52956 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52957 fi 52958 ;; 52959 slowdebug ) 52960 # Hotspot always let the linker optimize 52961 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52962 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52963 # do relocations at load 52964 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 52965 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52966 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 52967 fi 52968 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52969 # mark relocations read only 52970 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52971 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52972 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52973 fi 52974 ;; 52975 fastdebug ) 52976 # Hotspot always let the linker optimize 52977 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52978 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52979 # mark relocations read only 52980 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52981 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52982 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52983 fi 52984 ;; 52985 * ) 52986 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52987 ;; 52988 esac 52989 fi 52990 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52991 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52992 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52993 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52994 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52995 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52996 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52997 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 52998 fi 52999 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53000 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 53001 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 53002 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 53003 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53004 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53005 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53006 if test "x$DEBUG_LEVEL" = xslowdebug; then 53007 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 53008 fi 53009 fi 53010 53011 # Customize LDFLAGS for executables 53012 53013 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 53014 53015 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53016 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 53017 LDFLAGS_STACK_SIZE=1048576 53018 else 53019 LDFLAGS_STACK_SIZE=327680 53020 fi 53021 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 53022 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 53023 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 53024 fi 53025 53026 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53027 53028 # Customize LDFLAGS for libs 53029 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 53030 53031 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 53032 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 53033 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53034 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53035 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 53036 OPENJDK_BUILD_JDKLIB_LIBS="" 53037 else 53038 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53039 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53040 53041 if test "xBUILD" = "xTARGET"; then 53042 # On some platforms (mac) the linker warns about non existing -L dirs. 53043 # For any of the variants server, client or minimal, the dir matches the 53044 # variant name. The "main" variant should be used for linking. For the 53045 # rest, the dir is just server. 53046 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53047 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53048 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53049 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53050 else 53051 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53052 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53053 fi 53054 elif test "xBUILD" = "xBUILD"; then 53055 # When building a buildjdk, it's always only the server variant 53056 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53057 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53058 fi 53059 53060 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 53061 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53062 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 53063 fi 53064 53065 fi 53066 53067 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 53068 53069 # Set OPENJDK_BUILD_JVM_LIBS (per os) 53070 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53071 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 53072 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53073 # FIXME: This hard-coded path is not really proper. 53074 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53075 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53076 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 53077 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53078 fi 53079 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53080 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53081 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53082 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53083 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53084 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53085 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53086 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53087 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53088 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53089 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53090 wsock32.lib winmm.lib version.lib psapi.lib" 53091 fi 53092 53093 # Set OPENJDK_BUILD_JVM_ASFLAGS 53094 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53095 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53096 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53097 fi 53098 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53099 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53100 fi 53101 53102 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53103 53104 53105 53106 53107 53108 53109 53110 53111 53112 53113 53114 53115 53116 53117 53118 53119 # Tests are only ever compiled for TARGET 53120 # Flags for compiling test libraries 53121 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 53122 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53123 53124 # Flags for compiling test executables 53125 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53126 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53127 53128 53129 53130 53131 53132 53133 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53134 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53135 53136 53137 53138 53139 53140 53141 # Check that the compiler supports -mX (or -qX on AIX) flags 53142 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53143 53144 53145 53146 53147 53148 53149 53150 53151 53152 53153 53154 53155 53156 53157 53158 53159 53160 53161 53162 53163 53164 53165 53166 53167 53168 53169 53170 53171 53172 53173 53174 53175 53176 53177 53178 53179 53180 53181 53182 53183 53184 53185 53186 53187 53188 53189 53190 # Execute function body 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 # Execute function body 53240 53241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53242 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53243 supports=yes 53244 53245 saved_cflags="$CFLAGS" 53246 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53247 ac_ext=c 53248 ac_cpp='$CPP $CPPFLAGS' 53249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53251 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53252 53253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53254 /* end confdefs.h. */ 53255 int i; 53256 _ACEOF 53257 if ac_fn_c_try_compile "$LINENO"; then : 53258 53259 else 53260 supports=no 53261 fi 53262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53263 ac_ext=cpp 53264 ac_cpp='$CXXCPP $CPPFLAGS' 53265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53268 53269 CFLAGS="$saved_cflags" 53270 53271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53272 $as_echo "$supports" >&6; } 53273 if test "x$supports" = "xyes" ; then 53274 : 53275 C_COMP_SUPPORTS="yes" 53276 else 53277 : 53278 C_COMP_SUPPORTS="no" 53279 fi 53280 53281 53282 53283 53284 53285 53286 53287 53288 53289 53290 53291 53292 53293 53294 53295 53296 53297 53298 53299 53300 53301 53302 53303 53304 53305 53306 53307 53308 53309 53310 53311 53312 53313 53314 53315 53316 53317 53318 53319 53320 53321 53322 53323 53324 53325 53326 53327 53328 53329 53330 53331 53332 53333 53334 53335 53336 53337 53338 53339 # Execute function body 53340 53341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53342 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53343 supports=yes 53344 53345 saved_cxxflags="$CXXFLAGS" 53346 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53347 ac_ext=cpp 53348 ac_cpp='$CXXCPP $CPPFLAGS' 53349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53352 53353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53354 /* end confdefs.h. */ 53355 int i; 53356 _ACEOF 53357 if ac_fn_cxx_try_compile "$LINENO"; then : 53358 53359 else 53360 supports=no 53361 fi 53362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53363 ac_ext=cpp 53364 ac_cpp='$CXXCPP $CPPFLAGS' 53365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53368 53369 CXXFLAGS="$saved_cxxflags" 53370 53371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53372 $as_echo "$supports" >&6; } 53373 if test "x$supports" = "xyes" ; then 53374 : 53375 CXX_COMP_SUPPORTS="yes" 53376 else 53377 : 53378 CXX_COMP_SUPPORTS="no" 53379 fi 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 53392 53393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53394 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53395 supports=no 53396 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53397 53398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53399 $as_echo "$supports" >&6; } 53400 if test "x$supports" = "xyes" ; then 53401 : 53402 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 53403 else 53404 : 53405 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 53406 fi 53407 53408 53409 53410 53411 53412 53413 53414 53415 # Check whether --enable-warnings-as-errors was given. 53416 if test "${enable_warnings_as_errors+set}" = set; then : 53417 enableval=$enable_warnings_as_errors; 53418 fi 53419 53420 53421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 53422 $as_echo_n "checking if native warnings are errors... " >&6; } 53423 if test "x$enable_warnings_as_errors" = "xyes"; then 53424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 53425 $as_echo "yes (explicitly set)" >&6; } 53426 WARNINGS_AS_ERRORS=true 53427 elif test "x$enable_warnings_as_errors" = "xno"; then 53428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53429 $as_echo "no" >&6; } 53430 WARNINGS_AS_ERRORS=false 53431 elif test "x$enable_warnings_as_errors" = "x"; then 53432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 53433 $as_echo "yes (default)" >&6; } 53434 WARNINGS_AS_ERRORS=true 53435 else 53436 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 53437 fi 53438 53439 53440 53441 case "${TOOLCHAIN_TYPE}" in 53442 microsoft) 53443 DISABLE_WARNING_PREFIX="-wd" 53444 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 53445 ;; 53446 solstudio) 53447 DISABLE_WARNING_PREFIX="-erroff=" 53448 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 53449 ;; 53450 gcc) 53451 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 53452 53453 53454 53455 53456 53457 53458 53459 53460 53461 53462 53463 53464 53465 53466 53467 53468 53469 53470 53471 53472 53473 53474 53475 53476 53477 53478 53479 53480 53481 53482 53483 53484 53485 53486 53487 53488 53489 53490 53491 53492 53493 53494 53495 53496 53497 53498 53499 # Execute function body 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 # Execute function body 53549 53550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53551 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53552 supports=yes 53553 53554 saved_cflags="$CFLAGS" 53555 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53556 ac_ext=c 53557 ac_cpp='$CPP $CPPFLAGS' 53558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53560 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53561 53562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53563 /* end confdefs.h. */ 53564 int i; 53565 _ACEOF 53566 if ac_fn_c_try_compile "$LINENO"; then : 53567 53568 else 53569 supports=no 53570 fi 53571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53572 ac_ext=cpp 53573 ac_cpp='$CXXCPP $CPPFLAGS' 53574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53577 53578 CFLAGS="$saved_cflags" 53579 53580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53581 $as_echo "$supports" >&6; } 53582 if test "x$supports" = "xyes" ; then 53583 : 53584 C_COMP_SUPPORTS="yes" 53585 else 53586 : 53587 C_COMP_SUPPORTS="no" 53588 fi 53589 53590 53591 53592 53593 53594 53595 53596 53597 53598 53599 53600 53601 53602 53603 53604 53605 53606 53607 53608 53609 53610 53611 53612 53613 53614 53615 53616 53617 53618 53619 53620 53621 53622 53623 53624 53625 53626 53627 53628 53629 53630 53631 53632 53633 53634 53635 53636 53637 53638 53639 53640 53641 53642 53643 53644 53645 53646 53647 53648 # Execute function body 53649 53650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53651 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53652 supports=yes 53653 53654 saved_cxxflags="$CXXFLAGS" 53655 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53656 ac_ext=cpp 53657 ac_cpp='$CXXCPP $CPPFLAGS' 53658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53661 53662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53663 /* end confdefs.h. */ 53664 int i; 53665 _ACEOF 53666 if ac_fn_cxx_try_compile "$LINENO"; then : 53667 53668 else 53669 supports=no 53670 fi 53671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53672 ac_ext=cpp 53673 ac_cpp='$CXXCPP $CPPFLAGS' 53674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53677 53678 CXXFLAGS="$saved_cxxflags" 53679 53680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53681 $as_echo "$supports" >&6; } 53682 if test "x$supports" = "xyes" ; then 53683 : 53684 CXX_COMP_SUPPORTS="yes" 53685 else 53686 : 53687 CXX_COMP_SUPPORTS="no" 53688 fi 53689 53690 53691 53692 53693 53694 53695 53696 53697 53698 53699 53700 53701 53702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53703 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53704 supports=no 53705 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53706 53707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53708 $as_echo "$supports" >&6; } 53709 if test "x$supports" = "xyes" ; then 53710 : 53711 GCC_CAN_DISABLE_WARNINGS=true 53712 else 53713 : 53714 GCC_CAN_DISABLE_WARNINGS=false 53715 53716 fi 53717 53718 53719 53720 53721 53722 53723 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53724 DISABLE_WARNING_PREFIX="-Wno-" 53725 else 53726 DISABLE_WARNING_PREFIX= 53727 fi 53728 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53729 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 53730 # CFLAGS since any target specific flags will likely not work with the 53731 # build compiler 53732 CC_OLD="$CC" 53733 CXX_OLD="$CXX" 53734 CC="$BUILD_CC" 53735 CXX="$BUILD_CXX" 53736 CFLAGS_OLD="$CFLAGS" 53737 CFLAGS="" 53738 53739 53740 53741 53742 53743 53744 53745 53746 53747 53748 53749 53750 53751 53752 53753 53754 53755 53756 53757 53758 53759 53760 53761 53762 53763 53764 53765 53766 53767 53768 53769 53770 53771 53772 53773 53774 53775 53776 53777 53778 53779 53780 53781 53782 53783 53784 53785 # Execute function body 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 # Execute function body 53835 53836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53837 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53838 supports=yes 53839 53840 saved_cflags="$CFLAGS" 53841 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53842 ac_ext=c 53843 ac_cpp='$CPP $CPPFLAGS' 53844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53846 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53847 53848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53849 /* end confdefs.h. */ 53850 int i; 53851 _ACEOF 53852 if ac_fn_c_try_compile "$LINENO"; then : 53853 53854 else 53855 supports=no 53856 fi 53857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53858 ac_ext=cpp 53859 ac_cpp='$CXXCPP $CPPFLAGS' 53860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53863 53864 CFLAGS="$saved_cflags" 53865 53866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53867 $as_echo "$supports" >&6; } 53868 if test "x$supports" = "xyes" ; then 53869 : 53870 C_COMP_SUPPORTS="yes" 53871 else 53872 : 53873 C_COMP_SUPPORTS="no" 53874 fi 53875 53876 53877 53878 53879 53880 53881 53882 53883 53884 53885 53886 53887 53888 53889 53890 53891 53892 53893 53894 53895 53896 53897 53898 53899 53900 53901 53902 53903 53904 53905 53906 53907 53908 53909 53910 53911 53912 53913 53914 53915 53916 53917 53918 53919 53920 53921 53922 53923 53924 53925 53926 53927 53928 53929 53930 53931 53932 53933 53934 # Execute function body 53935 53936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53937 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53938 supports=yes 53939 53940 saved_cxxflags="$CXXFLAGS" 53941 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53942 ac_ext=cpp 53943 ac_cpp='$CXXCPP $CPPFLAGS' 53944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53947 53948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53949 /* end confdefs.h. */ 53950 int i; 53951 _ACEOF 53952 if ac_fn_cxx_try_compile "$LINENO"; then : 53953 53954 else 53955 supports=no 53956 fi 53957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53958 ac_ext=cpp 53959 ac_cpp='$CXXCPP $CPPFLAGS' 53960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53963 53964 CXXFLAGS="$saved_cxxflags" 53965 53966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53967 $as_echo "$supports" >&6; } 53968 if test "x$supports" = "xyes" ; then 53969 : 53970 CXX_COMP_SUPPORTS="yes" 53971 else 53972 : 53973 CXX_COMP_SUPPORTS="no" 53974 fi 53975 53976 53977 53978 53979 53980 53981 53982 53983 53984 53985 53986 53987 53988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53989 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53990 supports=no 53991 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53992 53993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53994 $as_echo "$supports" >&6; } 53995 if test "x$supports" = "xyes" ; then 53996 : 53997 BUILD_CC_CAN_DISABLE_WARNINGS=true 53998 else 53999 : 54000 BUILD_CC_CAN_DISABLE_WARNINGS=false 54001 54002 fi 54003 54004 54005 54006 54007 54008 54009 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54010 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 54011 else 54012 BUILD_CC_DISABLE_WARNING_PREFIX= 54013 fi 54014 CC="$CC_OLD" 54015 CXX="$CXX_OLD" 54016 CFLAGS="$CFLAGS_OLD" 54017 ;; 54018 clang) 54019 DISABLE_WARNING_PREFIX="-Wno-" 54020 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54021 ;; 54022 xlc) 54023 DISABLE_WARNING_PREFIX="-qsuppress=" 54024 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 54025 ;; 54026 esac 54027 54028 54029 54030 54031 54032 # Setup debug symbols (need objcopy from the toolchain for that) 54033 54034 # 54035 # NATIVE_DEBUG_SYMBOLS 54036 # This must be done after the toolchain is setup, since we're looking at objcopy. 54037 # 54038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 54039 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 54040 54041 # Check whether --with-native-debug-symbols was given. 54042 if test "${with_native_debug_symbols+set}" = set; then : 54043 withval=$with_native_debug_symbols; 54044 if test "x$OPENJDK_TARGET_OS" = xaix; then 54045 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 54046 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 54047 fi 54048 fi 54049 54050 else 54051 54052 if test "x$OPENJDK_TARGET_OS" = xaix; then 54053 # AIX doesn't support 'zipped' so use 'internal' as default 54054 with_native_debug_symbols="internal" 54055 else 54056 if test "x$STATIC_BUILD" = xtrue; then 54057 with_native_debug_symbols="none" 54058 else 54059 with_native_debug_symbols="zipped" 54060 fi 54061 fi 54062 54063 fi 54064 54065 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 54066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 54067 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 54068 54069 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 54070 54071 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54072 if test "x$OBJCOPY" = x; then 54073 # enabling of enable-debug-symbols and can't find objcopy 54074 # this is an error 54075 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54076 fi 54077 fi 54078 54079 COMPILE_WITH_DEBUG_SYMBOLS=true 54080 COPY_DEBUG_SYMBOLS=true 54081 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 54082 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 54083 COMPILE_WITH_DEBUG_SYMBOLS=false 54084 COPY_DEBUG_SYMBOLS=false 54085 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54086 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 54087 COMPILE_WITH_DEBUG_SYMBOLS=true 54088 COPY_DEBUG_SYMBOLS=false 54089 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54090 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 54091 54092 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54093 if test "x$OBJCOPY" = x; then 54094 # enabling of enable-debug-symbols and can't find objcopy 54095 # this is an error 54096 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54097 fi 54098 fi 54099 54100 COMPILE_WITH_DEBUG_SYMBOLS=true 54101 COPY_DEBUG_SYMBOLS=true 54102 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54103 else 54104 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54105 fi 54106 54107 # --enable-debug-symbols is deprecated. 54108 # Please use --with-native-debug-symbols=[internal,external,zipped] . 54109 54110 # Check whether --enable-debug-symbols was given. 54111 if test "${enable_debug_symbols+set}" = set; then : 54112 enableval=$enable_debug_symbols; 54113 fi 54114 54115 if test "x$enable_debug_symbols" != x; then 54116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 54117 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 54118 54119 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 54120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 54121 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 54122 fi 54123 54124 fi 54125 54126 54127 # --enable-zip-debug-info is deprecated. 54128 # Please use --with-native-debug-symbols=zipped . 54129 54130 # Check whether --enable-zip-debug-info was given. 54131 if test "${enable_zip_debug_info+set}" = set; then : 54132 enableval=$enable_zip_debug_info; 54133 fi 54134 54135 if test "x$enable_zip_debug_info" != x; then 54136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54137 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54138 54139 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54141 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54142 fi 54143 54144 fi 54145 54146 54147 54148 54149 54150 54151 54152 # Check whether --enable-native-coverage was given. 54153 if test "${enable_native_coverage+set}" = set; then : 54154 enableval=$enable_native_coverage; 54155 fi 54156 54157 GCOV_ENABLED="false" 54158 if test "x$enable_native_coverage" = "xyes"; then 54159 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 54160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54161 $as_echo_n "checking if native coverage is enabled... " >&6; } 54162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54163 $as_echo "yes" >&6; } 54164 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 54165 GCOV_LDFLAGS="-fprofile-arcs" 54166 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 54167 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 54168 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 54169 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 54170 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 54171 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 54172 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 54173 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 54174 GCOV_ENABLED="true" 54175 else 54176 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 54177 fi 54178 elif test "x$enable_native_coverage" = "xno"; then 54179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54180 $as_echo_n "checking if native coverage is enabled... " >&6; } 54181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54182 $as_echo "no" >&6; } 54183 elif test "x$enable_native_coverage" != "x"; then 54184 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54185 fi 54186 54187 54188 54189 54190 # AddressSanitizer 54191 54192 # Check whether --enable-asan was given. 54193 if test "${enable_asan+set}" = set; then : 54194 enableval=$enable_asan; 54195 fi 54196 54197 ASAN_ENABLED="no" 54198 if test "x$enable_asan" = "xyes"; then 54199 case $TOOLCHAIN_TYPE in 54200 gcc | clang) 54201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 54202 $as_echo_n "checking if asan is enabled... " >&6; } 54203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54204 $as_echo "yes" >&6; } 54205 ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" 54206 ASAN_LDFLAGS="-fsanitize=address" 54207 JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" 54208 JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" 54209 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" 54210 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" 54211 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" 54212 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" 54213 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" 54214 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" 54215 ASAN_ENABLED="yes" 54216 ;; 54217 *) 54218 as_fn_error $? "--enable-asan only works with toolchain type gcc or clang" "$LINENO" 5 54219 ;; 54220 esac 54221 elif test "x$enable_asan" = "xno"; then 54222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 54223 $as_echo_n "checking if asan is enabled... " >&6; } 54224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54225 $as_echo "no" >&6; } 54226 elif test "x$enable_asan" != "x"; then 54227 as_fn_error $? "--enable-asan can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54228 fi 54229 54230 54231 54232 54233 # Need toolchain to setup dtrace 54234 54235 # Test for dtrace dependencies 54236 # Check whether --enable-dtrace was given. 54237 if test "${enable_dtrace+set}" = set; then : 54238 enableval=$enable_dtrace; 54239 fi 54240 54241 54242 DTRACE_DEP_MISSING=false 54243 54244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 54245 $as_echo_n "checking for dtrace tool... " >&6; } 54246 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 54247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 54248 $as_echo "$DTRACE" >&6; } 54249 else 54250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 54251 $as_echo "not found, cannot build dtrace" >&6; } 54252 DTRACE_DEP_MISSING=true 54253 fi 54254 54255 for ac_header in sys/sdt.h 54256 do : 54257 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 54258 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 54259 cat >>confdefs.h <<_ACEOF 54260 #define HAVE_SYS_SDT_H 1 54261 _ACEOF 54262 DTRACE_HEADERS_OK=yes 54263 else 54264 DTRACE_HEADERS_OK=no 54265 fi 54266 54267 done 54268 54269 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 54270 DTRACE_DEP_MISSING=true 54271 fi 54272 54273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 54274 $as_echo_n "checking if dtrace should be built... " >&6; } 54275 if test "x$enable_dtrace" = "xyes"; then 54276 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54278 $as_echo "no, missing dependencies" >&6; } 54279 54280 # Print a helpful message on how to acquire the necessary build dependency. 54281 # dtrace is the help tag: freetype, cups, alsa etc 54282 MISSING_DEPENDENCY=dtrace 54283 54284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54285 cygwin_help $MISSING_DEPENDENCY 54286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54287 msys_help $MISSING_DEPENDENCY 54288 else 54289 PKGHANDLER_COMMAND= 54290 54291 case $PKGHANDLER in 54292 apt-get) 54293 apt_help $MISSING_DEPENDENCY ;; 54294 yum) 54295 yum_help $MISSING_DEPENDENCY ;; 54296 brew) 54297 brew_help $MISSING_DEPENDENCY ;; 54298 port) 54299 port_help $MISSING_DEPENDENCY ;; 54300 pkgutil) 54301 pkgutil_help $MISSING_DEPENDENCY ;; 54302 pkgadd) 54303 pkgadd_help $MISSING_DEPENDENCY ;; 54304 esac 54305 54306 if test "x$PKGHANDLER_COMMAND" != x; then 54307 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 54308 fi 54309 fi 54310 54311 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 54312 else 54313 INCLUDE_DTRACE=true 54314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54315 $as_echo "yes, forced" >&6; } 54316 fi 54317 elif test "x$enable_dtrace" = "xno"; then 54318 INCLUDE_DTRACE=false 54319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54320 $as_echo "no, forced" >&6; } 54321 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 54322 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54323 INCLUDE_DTRACE=false 54324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54325 $as_echo "no, missing dependencies" >&6; } 54326 else 54327 INCLUDE_DTRACE=true 54328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 54329 $as_echo "yes, dependencies present" >&6; } 54330 fi 54331 else 54332 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 54333 fi 54334 54335 54336 # Check whether --enable-aot was given. 54337 if test "${enable_aot+set}" = set; then : 54338 enableval=$enable_aot; 54339 fi 54340 54341 54342 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 54343 ENABLE_AOT="true" 54344 elif test "x$enable_aot" = "xyes"; then 54345 ENABLE_AOT="true" 54346 elif test "x$enable_aot" = "xno"; then 54347 ENABLE_AOT="false" 54348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 54349 $as_echo_n "checking if aot should be enabled... " >&6; } 54350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54351 $as_echo "no, forced" >&6; } 54352 else 54353 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 54354 fi 54355 54356 if test "x$ENABLE_AOT" = "xtrue"; then 54357 # Only enable AOT on X64 platforms. 54358 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 54359 if test -e "${TOPDIR}/src/jdk.aot"; then 54360 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then 54361 ENABLE_AOT="true" 54362 else 54363 ENABLE_AOT="false" 54364 if test "x$enable_aot" = "xyes"; then 54365 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 54366 fi 54367 fi 54368 else 54369 ENABLE_AOT="false" 54370 if test "x$enable_aot" = "xyes"; then 54371 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 54372 fi 54373 fi 54374 else 54375 ENABLE_AOT="false" 54376 if test "x$enable_aot" = "xyes"; then 54377 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 54378 fi 54379 fi 54380 fi 54381 54382 54383 54384 54385 # Check whether --enable-cds was given. 54386 if test "${enable_cds+set}" = set; then : 54387 enableval=$enable_cds; 54388 fi 54389 54390 54391 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 54392 ENABLE_CDS="true" 54393 elif test "x$enable_cds" = "xno"; then 54394 ENABLE_CDS="false" 54395 else 54396 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 54397 fi 54398 54399 54400 54401 54402 # Check whether --enable-hotspot-gtest was given. 54403 if test "${enable_hotspot_gtest+set}" = set; then : 54404 enableval=$enable_hotspot_gtest; 54405 fi 54406 54407 54408 if test -e "${TOPDIR}/test/hotspot/gtest"; then 54409 GTEST_DIR_EXISTS="true" 54410 else 54411 GTEST_DIR_EXISTS="false" 54412 fi 54413 54414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 54415 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 54416 if test "x$enable_hotspot_gtest" = "xyes"; then 54417 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54419 $as_echo "yes, forced" >&6; } 54420 BUILD_GTEST="true" 54421 else 54422 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 54423 fi 54424 elif test "x$enable_hotspot_gtest" = "xno"; then 54425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54426 $as_echo "no, forced" >&6; } 54427 BUILD_GTEST="false" 54428 elif test "x$enable_hotspot_gtest" = "x"; then 54429 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54431 $as_echo "yes" >&6; } 54432 BUILD_GTEST="true" 54433 else 54434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54435 $as_echo "no" >&6; } 54436 BUILD_GTEST="false" 54437 fi 54438 else 54439 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 54440 fi 54441 54442 54443 54444 54445 ############################################################################### 54446 # 54447 # Check dependencies for external and internal libraries. 54448 # 54449 ############################################################################### 54450 54451 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 54452 54453 # When using cygwin or msys, we need a wrapper binary that renames 54454 # /cygdrive/c/ arguments into c:/ arguments and peeks into 54455 # @files and rewrites these too! This wrapper binary is 54456 # called fixpath. 54457 FIXPATH= 54458 if test "x$OPENJDK_BUILD_OS" = xwindows; then 54459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 54460 $as_echo_n "checking if fixpath can be created... " >&6; } 54461 FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c" 54462 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 54463 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 54464 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 54465 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 54466 FIXPATH="$FIXPATH_BIN -c" 54467 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 54468 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 54469 # @ was chosen as separator to minimize risk of other tools messing around with it 54470 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 54471 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 54472 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 54473 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 54474 fi 54475 FIXPATH_SRC_W="$FIXPATH_SRC" 54476 FIXPATH_BIN_W="$FIXPATH_BIN" 54477 54478 unix_path="$FIXPATH_SRC_W" 54479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54480 windows_path=`$CYGPATH -m "$unix_path"` 54481 FIXPATH_SRC_W="$windows_path" 54482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54483 windows_path=`cmd //c echo $unix_path` 54484 FIXPATH_SRC_W="$windows_path" 54485 fi 54486 54487 54488 unix_path="$FIXPATH_BIN_W" 54489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54490 windows_path=`$CYGPATH -m "$unix_path"` 54491 FIXPATH_BIN_W="$windows_path" 54492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54493 windows_path=`cmd //c echo $unix_path` 54494 FIXPATH_BIN_W="$windows_path" 54495 fi 54496 54497 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 54498 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 54499 cd $FIXPATH_DIR 54500 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 54501 cd $CURDIR 54502 54503 if test ! -x $FIXPATH_BIN; then 54504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54505 $as_echo "no" >&6; } 54506 cat $FIXPATH_DIR/fixpath1.log 54507 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 54508 fi 54509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54510 $as_echo "yes" >&6; } 54511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 54512 $as_echo_n "checking if fixpath.exe works... " >&6; } 54513 cd $FIXPATH_DIR 54514 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 54515 > $FIXPATH_DIR/fixpath2.log 2>&1 54516 cd $CURDIR 54517 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 54518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54519 $as_echo "no" >&6; } 54520 cat $FIXPATH_DIR/fixpath2.log 54521 as_fn_error $? "fixpath did not work!" "$LINENO" 5 54522 fi 54523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54524 $as_echo "yes" >&6; } 54525 54526 FIXPATH_DETACH_FLAG="--detach" 54527 fi 54528 54529 54530 54531 54532 54533 54534 # Check if X11 is needed 54535 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 54536 # No X11 support on windows or macosx 54537 NEEDS_LIB_X11=false 54538 else 54539 # All other instances need X11, even if building headless only, libawt still 54540 # needs X11 headers. 54541 NEEDS_LIB_X11=true 54542 fi 54543 54544 # Check if cups is needed 54545 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54546 # Windows have a separate print system 54547 NEEDS_LIB_CUPS=false 54548 else 54549 NEEDS_LIB_CUPS=true 54550 fi 54551 54552 # A custom hook may have set this already 54553 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 54554 NEEDS_LIB_FREETYPE=true 54555 fi 54556 54557 # Check if alsa is needed 54558 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54559 NEEDS_LIB_ALSA=true 54560 else 54561 NEEDS_LIB_ALSA=false 54562 fi 54563 54564 # Check if ffi is needed 54565 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 54566 NEEDS_LIB_FFI=true 54567 else 54568 NEEDS_LIB_FFI=false 54569 fi 54570 54571 54572 # statically link libstdc++ before C++ ABI is stablized on Linux unless 54573 # dynamic build is configured on command line. 54574 54575 # Check whether --with-stdc++lib was given. 54576 if test "${with_stdc__lib+set}" = set; then : 54577 withval=$with_stdc__lib; 54578 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 54579 && test "x$with_stdc__lib" != xdefault; then 54580 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 54581 fi 54582 54583 else 54584 with_stdc__lib=default 54585 54586 fi 54587 54588 54589 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54590 # Test if stdc++ can be linked statically. 54591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 54592 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 54593 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 54594 ac_ext=cpp 54595 ac_cpp='$CXXCPP $CPPFLAGS' 54596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54599 54600 OLD_LIBS="$LIBS" 54601 LIBS="$STATIC_STDCXX_FLAGS" 54602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54603 /* end confdefs.h. */ 54604 54605 int 54606 main () 54607 { 54608 return 0; 54609 ; 54610 return 0; 54611 } 54612 _ACEOF 54613 if ac_fn_cxx_try_link "$LINENO"; then : 54614 has_static_libstdcxx=yes 54615 else 54616 has_static_libstdcxx=no 54617 fi 54618 rm -f core conftest.err conftest.$ac_objext \ 54619 conftest$ac_exeext conftest.$ac_ext 54620 LIBS="$OLD_LIBS" 54621 ac_ext=cpp 54622 ac_cpp='$CXXCPP $CPPFLAGS' 54623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54626 54627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 54628 $as_echo "$has_static_libstdcxx" >&6; } 54629 54630 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 54631 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 54632 fi 54633 54634 # If dynamic was requested, it's available since it would fail above otherwise. 54635 # If dynamic wasn't requested, go with static unless it isn't available. 54636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 54637 $as_echo_n "checking how to link with libstdc++... " >&6; } 54638 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 54639 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 54640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 54641 $as_echo "dynamic" >&6; } 54642 else 54643 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 54644 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54645 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 54646 # just use the same setting as for the TARGET toolchain. 54647 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 54649 $as_echo "static" >&6; } 54650 fi 54651 fi 54652 54653 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 54654 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 54655 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 54656 fi 54657 54658 54659 54660 # Setup Windows runtime dlls 54661 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 54662 54663 54664 # Check whether --with-msvcr-dll was given. 54665 if test "${with_msvcr_dll+set}" = set; then : 54666 withval=$with_msvcr_dll; 54667 fi 54668 54669 54670 if test "x$with_msvcr_dll" != x; then 54671 # If given explicitly by user, do not probe. If not present, fail directly. 54672 54673 DLL_NAME="$MSVCR_NAME" 54674 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 54675 METHOD="--with-msvcr-dll" 54676 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54677 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54678 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54679 54680 # Need to check if the found msvcr is correct architecture 54681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54682 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54683 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54685 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54686 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54687 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54688 CORRECT_MSVCR_ARCH="PE32 executable" 54689 else 54690 CORRECT_MSVCR_ARCH="PE32+ executable" 54691 fi 54692 else 54693 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54694 CORRECT_MSVCR_ARCH=386 54695 else 54696 CORRECT_MSVCR_ARCH=x86-64 54697 fi 54698 fi 54699 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54701 $as_echo "ok" >&6; } 54702 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54703 54704 # Only process if variable expands to non-empty 54705 54706 if test "x$MSVC_DLL" != x; then 54707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54708 54709 # Input might be given as Windows format, start by converting to 54710 # unix format. 54711 path="$MSVC_DLL" 54712 new_path=`$CYGPATH -u "$path"` 54713 54714 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54715 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54716 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54717 # "foo.exe" is OK but "foo" is an error. 54718 # 54719 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54720 # It is also a way to make sure we got the proper file name for the real test later on. 54721 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54722 if test "x$test_shortpath" = x; then 54723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54724 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54725 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54726 fi 54727 54728 # Call helper function which possibly converts this using DOS-style short mode. 54729 # If so, the updated path is stored in $new_path. 54730 54731 input_path="$new_path" 54732 # Check if we need to convert this using DOS-style short mode. If the path 54733 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54734 # take no chances and rewrite it. 54735 # Note: m4 eats our [], so we need to use [ and ] instead. 54736 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54737 if test "x$has_forbidden_chars" != x; then 54738 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54739 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54740 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54741 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54742 # Going to short mode and back again did indeed matter. Since short mode is 54743 # case insensitive, let's make it lowercase to improve readability. 54744 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54745 # Now convert it back to Unix-style (cygpath) 54746 input_path=`$CYGPATH -u "$shortmode_path"` 54747 new_path="$input_path" 54748 fi 54749 fi 54750 54751 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54752 if test "x$test_cygdrive_prefix" = x; then 54753 # As a simple fix, exclude /usr/bin since it's not a real path. 54754 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54755 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54756 # a path prefixed by /cygdrive for fixpath to work. 54757 new_path="$CYGWIN_ROOT_PATH$input_path" 54758 fi 54759 fi 54760 54761 54762 if test "x$path" != "x$new_path"; then 54763 MSVC_DLL="$new_path" 54764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54765 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54766 fi 54767 54768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54769 54770 path="$MSVC_DLL" 54771 has_colon=`$ECHO $path | $GREP ^.:` 54772 new_path="$path" 54773 if test "x$has_colon" = x; then 54774 # Not in mixed or Windows style, start by that. 54775 new_path=`cmd //c echo $path` 54776 fi 54777 54778 54779 input_path="$new_path" 54780 # Check if we need to convert this using DOS-style short mode. If the path 54781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54782 # take no chances and rewrite it. 54783 # Note: m4 eats our [], so we need to use [ and ] instead. 54784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54785 if test "x$has_forbidden_chars" != x; then 54786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54787 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54788 fi 54789 54790 54791 windows_path="$new_path" 54792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54793 unix_path=`$CYGPATH -u "$windows_path"` 54794 new_path="$unix_path" 54795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54797 new_path="$unix_path" 54798 fi 54799 54800 if test "x$path" != "x$new_path"; then 54801 MSVC_DLL="$new_path" 54802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54803 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54804 fi 54805 54806 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54807 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54808 54809 else 54810 # We're on a unix platform. Hooray! :) 54811 path="$MSVC_DLL" 54812 has_space=`$ECHO "$path" | $GREP " "` 54813 if test "x$has_space" != x; then 54814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54815 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54816 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54817 fi 54818 54819 # Use eval to expand a potential ~ 54820 eval path="$path" 54821 if test ! -f "$path" && test ! -d "$path"; then 54822 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54823 fi 54824 54825 if test -d "$path"; then 54826 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54827 else 54828 dir="`$DIRNAME "$path"`" 54829 base="`$BASENAME "$path"`" 54830 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54831 fi 54832 fi 54833 fi 54834 54835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54836 $as_echo_n "checking for $DLL_NAME... " >&6; } 54837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54838 $as_echo "$MSVC_DLL" >&6; } 54839 else 54840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54841 $as_echo "incorrect, ignoring" >&6; } 54842 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54843 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54844 fi 54845 fi 54846 54847 if test "x$MSVC_DLL" = x; then 54848 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 54849 fi 54850 MSVCR_DLL="$MSVC_DLL" 54851 elif test "x$DEVKIT_MSVCR_DLL" != x; then 54852 54853 DLL_NAME="$MSVCR_NAME" 54854 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 54855 METHOD="devkit" 54856 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54857 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54858 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54859 54860 # Need to check if the found msvcr is correct architecture 54861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54862 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54863 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54865 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54866 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54867 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54868 CORRECT_MSVCR_ARCH="PE32 executable" 54869 else 54870 CORRECT_MSVCR_ARCH="PE32+ executable" 54871 fi 54872 else 54873 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54874 CORRECT_MSVCR_ARCH=386 54875 else 54876 CORRECT_MSVCR_ARCH=x86-64 54877 fi 54878 fi 54879 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54881 $as_echo "ok" >&6; } 54882 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54883 54884 # Only process if variable expands to non-empty 54885 54886 if test "x$MSVC_DLL" != x; then 54887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54888 54889 # Input might be given as Windows format, start by converting to 54890 # unix format. 54891 path="$MSVC_DLL" 54892 new_path=`$CYGPATH -u "$path"` 54893 54894 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54895 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54896 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54897 # "foo.exe" is OK but "foo" is an error. 54898 # 54899 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54900 # It is also a way to make sure we got the proper file name for the real test later on. 54901 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54902 if test "x$test_shortpath" = x; then 54903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54904 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54905 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54906 fi 54907 54908 # Call helper function which possibly converts this using DOS-style short mode. 54909 # If so, the updated path is stored in $new_path. 54910 54911 input_path="$new_path" 54912 # Check if we need to convert this using DOS-style short mode. If the path 54913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54914 # take no chances and rewrite it. 54915 # Note: m4 eats our [], so we need to use [ and ] instead. 54916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54917 if test "x$has_forbidden_chars" != x; then 54918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54919 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54920 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54921 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54922 # Going to short mode and back again did indeed matter. Since short mode is 54923 # case insensitive, let's make it lowercase to improve readability. 54924 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54925 # Now convert it back to Unix-style (cygpath) 54926 input_path=`$CYGPATH -u "$shortmode_path"` 54927 new_path="$input_path" 54928 fi 54929 fi 54930 54931 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54932 if test "x$test_cygdrive_prefix" = x; then 54933 # As a simple fix, exclude /usr/bin since it's not a real path. 54934 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54935 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54936 # a path prefixed by /cygdrive for fixpath to work. 54937 new_path="$CYGWIN_ROOT_PATH$input_path" 54938 fi 54939 fi 54940 54941 54942 if test "x$path" != "x$new_path"; then 54943 MSVC_DLL="$new_path" 54944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54945 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54946 fi 54947 54948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54949 54950 path="$MSVC_DLL" 54951 has_colon=`$ECHO $path | $GREP ^.:` 54952 new_path="$path" 54953 if test "x$has_colon" = x; then 54954 # Not in mixed or Windows style, start by that. 54955 new_path=`cmd //c echo $path` 54956 fi 54957 54958 54959 input_path="$new_path" 54960 # Check if we need to convert this using DOS-style short mode. If the path 54961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54962 # take no chances and rewrite it. 54963 # Note: m4 eats our [], so we need to use [ and ] instead. 54964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54965 if test "x$has_forbidden_chars" != x; then 54966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54967 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54968 fi 54969 54970 54971 windows_path="$new_path" 54972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54973 unix_path=`$CYGPATH -u "$windows_path"` 54974 new_path="$unix_path" 54975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54977 new_path="$unix_path" 54978 fi 54979 54980 if test "x$path" != "x$new_path"; then 54981 MSVC_DLL="$new_path" 54982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54983 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54984 fi 54985 54986 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54987 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54988 54989 else 54990 # We're on a unix platform. Hooray! :) 54991 path="$MSVC_DLL" 54992 has_space=`$ECHO "$path" | $GREP " "` 54993 if test "x$has_space" != x; then 54994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54995 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54996 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54997 fi 54998 54999 # Use eval to expand a potential ~ 55000 eval path="$path" 55001 if test ! -f "$path" && test ! -d "$path"; then 55002 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55003 fi 55004 55005 if test -d "$path"; then 55006 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55007 else 55008 dir="`$DIRNAME "$path"`" 55009 base="`$BASENAME "$path"`" 55010 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55011 fi 55012 fi 55013 fi 55014 55015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55016 $as_echo_n "checking for $DLL_NAME... " >&6; } 55017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55018 $as_echo "$MSVC_DLL" >&6; } 55019 else 55020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55021 $as_echo "incorrect, ignoring" >&6; } 55022 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55023 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55024 fi 55025 fi 55026 55027 if test "x$MSVC_DLL" = x; then 55028 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 55029 fi 55030 MSVCR_DLL="$MSVC_DLL" 55031 else 55032 55033 DLL_NAME="${MSVCR_NAME}" 55034 MSVC_DLL= 55035 55036 if test "x$MSVC_DLL" = x; then 55037 # Probe: Using well-known location from Visual Studio 10.0 55038 if test "x$VCINSTALLDIR" != x; then 55039 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55040 55041 windows_path="$CYGWIN_VC_INSTALL_DIR" 55042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55043 unix_path=`$CYGPATH -u "$windows_path"` 55044 CYGWIN_VC_INSTALL_DIR="$unix_path" 55045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55047 CYGWIN_VC_INSTALL_DIR="$unix_path" 55048 fi 55049 55050 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55051 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55052 else 55053 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55054 fi 55055 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55056 55057 DLL_NAME="$DLL_NAME" 55058 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55059 METHOD="well-known location in VCINSTALLDIR" 55060 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55061 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55062 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55063 55064 # Need to check if the found msvcr is correct architecture 55065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55066 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55067 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55069 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55070 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55071 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55072 CORRECT_MSVCR_ARCH="PE32 executable" 55073 else 55074 CORRECT_MSVCR_ARCH="PE32+ executable" 55075 fi 55076 else 55077 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55078 CORRECT_MSVCR_ARCH=386 55079 else 55080 CORRECT_MSVCR_ARCH=x86-64 55081 fi 55082 fi 55083 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55085 $as_echo "ok" >&6; } 55086 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55087 55088 # Only process if variable expands to non-empty 55089 55090 if test "x$MSVC_DLL" != x; then 55091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55092 55093 # Input might be given as Windows format, start by converting to 55094 # unix format. 55095 path="$MSVC_DLL" 55096 new_path=`$CYGPATH -u "$path"` 55097 55098 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55099 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55100 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55101 # "foo.exe" is OK but "foo" is an error. 55102 # 55103 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55104 # It is also a way to make sure we got the proper file name for the real test later on. 55105 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55106 if test "x$test_shortpath" = x; then 55107 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55108 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55109 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55110 fi 55111 55112 # Call helper function which possibly converts this using DOS-style short mode. 55113 # If so, the updated path is stored in $new_path. 55114 55115 input_path="$new_path" 55116 # Check if we need to convert this using DOS-style short mode. If the path 55117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55118 # take no chances and rewrite it. 55119 # Note: m4 eats our [], so we need to use [ and ] instead. 55120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55121 if test "x$has_forbidden_chars" != x; then 55122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55123 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55124 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55125 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55126 # Going to short mode and back again did indeed matter. Since short mode is 55127 # case insensitive, let's make it lowercase to improve readability. 55128 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55129 # Now convert it back to Unix-style (cygpath) 55130 input_path=`$CYGPATH -u "$shortmode_path"` 55131 new_path="$input_path" 55132 fi 55133 fi 55134 55135 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55136 if test "x$test_cygdrive_prefix" = x; then 55137 # As a simple fix, exclude /usr/bin since it's not a real path. 55138 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55139 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55140 # a path prefixed by /cygdrive for fixpath to work. 55141 new_path="$CYGWIN_ROOT_PATH$input_path" 55142 fi 55143 fi 55144 55145 55146 if test "x$path" != "x$new_path"; then 55147 MSVC_DLL="$new_path" 55148 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55149 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55150 fi 55151 55152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55153 55154 path="$MSVC_DLL" 55155 has_colon=`$ECHO $path | $GREP ^.:` 55156 new_path="$path" 55157 if test "x$has_colon" = x; then 55158 # Not in mixed or Windows style, start by that. 55159 new_path=`cmd //c echo $path` 55160 fi 55161 55162 55163 input_path="$new_path" 55164 # Check if we need to convert this using DOS-style short mode. If the path 55165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55166 # take no chances and rewrite it. 55167 # Note: m4 eats our [], so we need to use [ and ] instead. 55168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55169 if test "x$has_forbidden_chars" != x; then 55170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55171 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55172 fi 55173 55174 55175 windows_path="$new_path" 55176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55177 unix_path=`$CYGPATH -u "$windows_path"` 55178 new_path="$unix_path" 55179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55180 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55181 new_path="$unix_path" 55182 fi 55183 55184 if test "x$path" != "x$new_path"; then 55185 MSVC_DLL="$new_path" 55186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55187 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55188 fi 55189 55190 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55191 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55192 55193 else 55194 # We're on a unix platform. Hooray! :) 55195 path="$MSVC_DLL" 55196 has_space=`$ECHO "$path" | $GREP " "` 55197 if test "x$has_space" != x; then 55198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55199 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55200 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55201 fi 55202 55203 # Use eval to expand a potential ~ 55204 eval path="$path" 55205 if test ! -f "$path" && test ! -d "$path"; then 55206 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55207 fi 55208 55209 if test -d "$path"; then 55210 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55211 else 55212 dir="`$DIRNAME "$path"`" 55213 base="`$BASENAME "$path"`" 55214 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55215 fi 55216 fi 55217 fi 55218 55219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55220 $as_echo_n "checking for $DLL_NAME... " >&6; } 55221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55222 $as_echo "$MSVC_DLL" >&6; } 55223 else 55224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55225 $as_echo "incorrect, ignoring" >&6; } 55226 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55227 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55228 fi 55229 fi 55230 55231 fi 55232 fi 55233 55234 if test "x$MSVC_DLL" = x; then 55235 # Probe: Check in the Boot JDK directory. 55236 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55237 55238 DLL_NAME="$DLL_NAME" 55239 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55240 METHOD="well-known location in Boot JDK" 55241 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55242 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55243 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55244 55245 # Need to check if the found msvcr is correct architecture 55246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55247 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55248 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55250 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55251 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55252 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55253 CORRECT_MSVCR_ARCH="PE32 executable" 55254 else 55255 CORRECT_MSVCR_ARCH="PE32+ executable" 55256 fi 55257 else 55258 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55259 CORRECT_MSVCR_ARCH=386 55260 else 55261 CORRECT_MSVCR_ARCH=x86-64 55262 fi 55263 fi 55264 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55266 $as_echo "ok" >&6; } 55267 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55268 55269 # Only process if variable expands to non-empty 55270 55271 if test "x$MSVC_DLL" != x; then 55272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55273 55274 # Input might be given as Windows format, start by converting to 55275 # unix format. 55276 path="$MSVC_DLL" 55277 new_path=`$CYGPATH -u "$path"` 55278 55279 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55280 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55281 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55282 # "foo.exe" is OK but "foo" is an error. 55283 # 55284 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55285 # It is also a way to make sure we got the proper file name for the real test later on. 55286 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55287 if test "x$test_shortpath" = x; then 55288 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55289 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55290 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55291 fi 55292 55293 # Call helper function which possibly converts this using DOS-style short mode. 55294 # If so, the updated path is stored in $new_path. 55295 55296 input_path="$new_path" 55297 # Check if we need to convert this using DOS-style short mode. If the path 55298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55299 # take no chances and rewrite it. 55300 # Note: m4 eats our [], so we need to use [ and ] instead. 55301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55302 if test "x$has_forbidden_chars" != x; then 55303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55304 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55305 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55306 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55307 # Going to short mode and back again did indeed matter. Since short mode is 55308 # case insensitive, let's make it lowercase to improve readability. 55309 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55310 # Now convert it back to Unix-style (cygpath) 55311 input_path=`$CYGPATH -u "$shortmode_path"` 55312 new_path="$input_path" 55313 fi 55314 fi 55315 55316 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55317 if test "x$test_cygdrive_prefix" = x; then 55318 # As a simple fix, exclude /usr/bin since it's not a real path. 55319 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55320 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55321 # a path prefixed by /cygdrive for fixpath to work. 55322 new_path="$CYGWIN_ROOT_PATH$input_path" 55323 fi 55324 fi 55325 55326 55327 if test "x$path" != "x$new_path"; then 55328 MSVC_DLL="$new_path" 55329 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55330 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55331 fi 55332 55333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55334 55335 path="$MSVC_DLL" 55336 has_colon=`$ECHO $path | $GREP ^.:` 55337 new_path="$path" 55338 if test "x$has_colon" = x; then 55339 # Not in mixed or Windows style, start by that. 55340 new_path=`cmd //c echo $path` 55341 fi 55342 55343 55344 input_path="$new_path" 55345 # Check if we need to convert this using DOS-style short mode. If the path 55346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55347 # take no chances and rewrite it. 55348 # Note: m4 eats our [], so we need to use [ and ] instead. 55349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55350 if test "x$has_forbidden_chars" != x; then 55351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55352 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55353 fi 55354 55355 55356 windows_path="$new_path" 55357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55358 unix_path=`$CYGPATH -u "$windows_path"` 55359 new_path="$unix_path" 55360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55361 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55362 new_path="$unix_path" 55363 fi 55364 55365 if test "x$path" != "x$new_path"; then 55366 MSVC_DLL="$new_path" 55367 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55368 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55369 fi 55370 55371 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55372 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55373 55374 else 55375 # We're on a unix platform. Hooray! :) 55376 path="$MSVC_DLL" 55377 has_space=`$ECHO "$path" | $GREP " "` 55378 if test "x$has_space" != x; then 55379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55380 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55381 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55382 fi 55383 55384 # Use eval to expand a potential ~ 55385 eval path="$path" 55386 if test ! -f "$path" && test ! -d "$path"; then 55387 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55388 fi 55389 55390 if test -d "$path"; then 55391 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55392 else 55393 dir="`$DIRNAME "$path"`" 55394 base="`$BASENAME "$path"`" 55395 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55396 fi 55397 fi 55398 fi 55399 55400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55401 $as_echo_n "checking for $DLL_NAME... " >&6; } 55402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55403 $as_echo "$MSVC_DLL" >&6; } 55404 else 55405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55406 $as_echo "incorrect, ignoring" >&6; } 55407 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55408 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55409 fi 55410 fi 55411 55412 fi 55413 55414 if test "x$MSVC_DLL" = x; then 55415 # Probe: Look in the Windows system32 directory 55416 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55417 55418 windows_path="$CYGWIN_SYSTEMROOT" 55419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55420 unix_path=`$CYGPATH -u "$windows_path"` 55421 CYGWIN_SYSTEMROOT="$unix_path" 55422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55424 CYGWIN_SYSTEMROOT="$unix_path" 55425 fi 55426 55427 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55428 55429 DLL_NAME="$DLL_NAME" 55430 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55431 METHOD="well-known location in SYSTEMROOT" 55432 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55433 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55434 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55435 55436 # Need to check if the found msvcr is correct architecture 55437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55438 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55439 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55441 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55442 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55443 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55444 CORRECT_MSVCR_ARCH="PE32 executable" 55445 else 55446 CORRECT_MSVCR_ARCH="PE32+ executable" 55447 fi 55448 else 55449 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55450 CORRECT_MSVCR_ARCH=386 55451 else 55452 CORRECT_MSVCR_ARCH=x86-64 55453 fi 55454 fi 55455 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55457 $as_echo "ok" >&6; } 55458 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55459 55460 # Only process if variable expands to non-empty 55461 55462 if test "x$MSVC_DLL" != x; then 55463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55464 55465 # Input might be given as Windows format, start by converting to 55466 # unix format. 55467 path="$MSVC_DLL" 55468 new_path=`$CYGPATH -u "$path"` 55469 55470 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55471 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55472 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55473 # "foo.exe" is OK but "foo" is an error. 55474 # 55475 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55476 # It is also a way to make sure we got the proper file name for the real test later on. 55477 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55478 if test "x$test_shortpath" = x; then 55479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55480 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55481 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55482 fi 55483 55484 # Call helper function which possibly converts this using DOS-style short mode. 55485 # If so, the updated path is stored in $new_path. 55486 55487 input_path="$new_path" 55488 # Check if we need to convert this using DOS-style short mode. If the path 55489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55490 # take no chances and rewrite it. 55491 # Note: m4 eats our [], so we need to use [ and ] instead. 55492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55493 if test "x$has_forbidden_chars" != x; then 55494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55495 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55496 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55497 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55498 # Going to short mode and back again did indeed matter. Since short mode is 55499 # case insensitive, let's make it lowercase to improve readability. 55500 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55501 # Now convert it back to Unix-style (cygpath) 55502 input_path=`$CYGPATH -u "$shortmode_path"` 55503 new_path="$input_path" 55504 fi 55505 fi 55506 55507 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55508 if test "x$test_cygdrive_prefix" = x; then 55509 # As a simple fix, exclude /usr/bin since it's not a real path. 55510 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55511 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55512 # a path prefixed by /cygdrive for fixpath to work. 55513 new_path="$CYGWIN_ROOT_PATH$input_path" 55514 fi 55515 fi 55516 55517 55518 if test "x$path" != "x$new_path"; then 55519 MSVC_DLL="$new_path" 55520 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55521 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55522 fi 55523 55524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55525 55526 path="$MSVC_DLL" 55527 has_colon=`$ECHO $path | $GREP ^.:` 55528 new_path="$path" 55529 if test "x$has_colon" = x; then 55530 # Not in mixed or Windows style, start by that. 55531 new_path=`cmd //c echo $path` 55532 fi 55533 55534 55535 input_path="$new_path" 55536 # Check if we need to convert this using DOS-style short mode. If the path 55537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55538 # take no chances and rewrite it. 55539 # Note: m4 eats our [], so we need to use [ and ] instead. 55540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55541 if test "x$has_forbidden_chars" != x; then 55542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55543 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55544 fi 55545 55546 55547 windows_path="$new_path" 55548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55549 unix_path=`$CYGPATH -u "$windows_path"` 55550 new_path="$unix_path" 55551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55552 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55553 new_path="$unix_path" 55554 fi 55555 55556 if test "x$path" != "x$new_path"; then 55557 MSVC_DLL="$new_path" 55558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55559 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55560 fi 55561 55562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55564 55565 else 55566 # We're on a unix platform. Hooray! :) 55567 path="$MSVC_DLL" 55568 has_space=`$ECHO "$path" | $GREP " "` 55569 if test "x$has_space" != x; then 55570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55571 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55572 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55573 fi 55574 55575 # Use eval to expand a potential ~ 55576 eval path="$path" 55577 if test ! -f "$path" && test ! -d "$path"; then 55578 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55579 fi 55580 55581 if test -d "$path"; then 55582 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55583 else 55584 dir="`$DIRNAME "$path"`" 55585 base="`$BASENAME "$path"`" 55586 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55587 fi 55588 fi 55589 fi 55590 55591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55592 $as_echo_n "checking for $DLL_NAME... " >&6; } 55593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55594 $as_echo "$MSVC_DLL" >&6; } 55595 else 55596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55597 $as_echo "incorrect, ignoring" >&6; } 55598 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55599 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55600 fi 55601 fi 55602 55603 fi 55604 55605 if test "x$MSVC_DLL" = x; then 55606 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55607 if test "x$VS100COMNTOOLS" != x; then 55608 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55609 55610 windows_path="$CYGWIN_VS_TOOLS_DIR" 55611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55612 unix_path=`$CYGPATH -u "$windows_path"` 55613 CYGWIN_VS_TOOLS_DIR="$unix_path" 55614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55616 CYGWIN_VS_TOOLS_DIR="$unix_path" 55617 fi 55618 55619 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55620 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55621 | $GREP -i /x64/ | $HEAD --lines 1` 55622 else 55623 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55624 | $GREP -i /x86/ | $HEAD --lines 1` 55625 fi 55626 55627 DLL_NAME="$DLL_NAME" 55628 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55629 METHOD="search of VS100COMNTOOLS" 55630 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55631 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55632 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55633 55634 # Need to check if the found msvcr is correct architecture 55635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55636 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55637 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55639 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55640 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55641 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55642 CORRECT_MSVCR_ARCH="PE32 executable" 55643 else 55644 CORRECT_MSVCR_ARCH="PE32+ executable" 55645 fi 55646 else 55647 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55648 CORRECT_MSVCR_ARCH=386 55649 else 55650 CORRECT_MSVCR_ARCH=x86-64 55651 fi 55652 fi 55653 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55655 $as_echo "ok" >&6; } 55656 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55657 55658 # Only process if variable expands to non-empty 55659 55660 if test "x$MSVC_DLL" != x; then 55661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55662 55663 # Input might be given as Windows format, start by converting to 55664 # unix format. 55665 path="$MSVC_DLL" 55666 new_path=`$CYGPATH -u "$path"` 55667 55668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55671 # "foo.exe" is OK but "foo" is an error. 55672 # 55673 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55674 # It is also a way to make sure we got the proper file name for the real test later on. 55675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55676 if test "x$test_shortpath" = x; then 55677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55678 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55679 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55680 fi 55681 55682 # Call helper function which possibly converts this using DOS-style short mode. 55683 # If so, the updated path is stored in $new_path. 55684 55685 input_path="$new_path" 55686 # Check if we need to convert this using DOS-style short mode. If the path 55687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55688 # take no chances and rewrite it. 55689 # Note: m4 eats our [], so we need to use [ and ] instead. 55690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55691 if test "x$has_forbidden_chars" != x; then 55692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55696 # Going to short mode and back again did indeed matter. Since short mode is 55697 # case insensitive, let's make it lowercase to improve readability. 55698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55699 # Now convert it back to Unix-style (cygpath) 55700 input_path=`$CYGPATH -u "$shortmode_path"` 55701 new_path="$input_path" 55702 fi 55703 fi 55704 55705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55706 if test "x$test_cygdrive_prefix" = x; then 55707 # As a simple fix, exclude /usr/bin since it's not a real path. 55708 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55710 # a path prefixed by /cygdrive for fixpath to work. 55711 new_path="$CYGWIN_ROOT_PATH$input_path" 55712 fi 55713 fi 55714 55715 55716 if test "x$path" != "x$new_path"; then 55717 MSVC_DLL="$new_path" 55718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55719 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55720 fi 55721 55722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55723 55724 path="$MSVC_DLL" 55725 has_colon=`$ECHO $path | $GREP ^.:` 55726 new_path="$path" 55727 if test "x$has_colon" = x; then 55728 # Not in mixed or Windows style, start by that. 55729 new_path=`cmd //c echo $path` 55730 fi 55731 55732 55733 input_path="$new_path" 55734 # Check if we need to convert this using DOS-style short mode. If the path 55735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55736 # take no chances and rewrite it. 55737 # Note: m4 eats our [], so we need to use [ and ] instead. 55738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55739 if test "x$has_forbidden_chars" != x; then 55740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55741 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55742 fi 55743 55744 55745 windows_path="$new_path" 55746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55747 unix_path=`$CYGPATH -u "$windows_path"` 55748 new_path="$unix_path" 55749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55751 new_path="$unix_path" 55752 fi 55753 55754 if test "x$path" != "x$new_path"; then 55755 MSVC_DLL="$new_path" 55756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55757 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55758 fi 55759 55760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55762 55763 else 55764 # We're on a unix platform. Hooray! :) 55765 path="$MSVC_DLL" 55766 has_space=`$ECHO "$path" | $GREP " "` 55767 if test "x$has_space" != x; then 55768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55769 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55770 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55771 fi 55772 55773 # Use eval to expand a potential ~ 55774 eval path="$path" 55775 if test ! -f "$path" && test ! -d "$path"; then 55776 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55777 fi 55778 55779 if test -d "$path"; then 55780 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55781 else 55782 dir="`$DIRNAME "$path"`" 55783 base="`$BASENAME "$path"`" 55784 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55785 fi 55786 fi 55787 fi 55788 55789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55790 $as_echo_n "checking for $DLL_NAME... " >&6; } 55791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55792 $as_echo "$MSVC_DLL" >&6; } 55793 else 55794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55795 $as_echo "incorrect, ignoring" >&6; } 55796 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55797 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55798 fi 55799 fi 55800 55801 fi 55802 fi 55803 55804 if test "x$MSVC_DLL" = x; then 55805 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55806 # (This was the original behaviour; kept since it might turn something up) 55807 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55808 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55809 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55810 | $GREP x64 | $HEAD --lines 1` 55811 else 55812 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55813 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55814 if test "x$POSSIBLE_MSVC_DLL" = x; then 55815 # We're grasping at straws now... 55816 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55817 | $HEAD --lines 1` 55818 fi 55819 fi 55820 55821 55822 DLL_NAME="$DLL_NAME" 55823 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55824 METHOD="search of VCINSTALLDIR" 55825 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55826 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55827 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55828 55829 # Need to check if the found msvcr is correct architecture 55830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55831 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55832 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55834 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55835 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55836 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55837 CORRECT_MSVCR_ARCH="PE32 executable" 55838 else 55839 CORRECT_MSVCR_ARCH="PE32+ executable" 55840 fi 55841 else 55842 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55843 CORRECT_MSVCR_ARCH=386 55844 else 55845 CORRECT_MSVCR_ARCH=x86-64 55846 fi 55847 fi 55848 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55850 $as_echo "ok" >&6; } 55851 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55852 55853 # Only process if variable expands to non-empty 55854 55855 if test "x$MSVC_DLL" != x; then 55856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55857 55858 # Input might be given as Windows format, start by converting to 55859 # unix format. 55860 path="$MSVC_DLL" 55861 new_path=`$CYGPATH -u "$path"` 55862 55863 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55864 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55865 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55866 # "foo.exe" is OK but "foo" is an error. 55867 # 55868 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55869 # It is also a way to make sure we got the proper file name for the real test later on. 55870 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55871 if test "x$test_shortpath" = x; then 55872 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55873 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55874 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55875 fi 55876 55877 # Call helper function which possibly converts this using DOS-style short mode. 55878 # If so, the updated path is stored in $new_path. 55879 55880 input_path="$new_path" 55881 # Check if we need to convert this using DOS-style short mode. If the path 55882 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55883 # take no chances and rewrite it. 55884 # Note: m4 eats our [], so we need to use [ and ] instead. 55885 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55886 if test "x$has_forbidden_chars" != x; then 55887 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55888 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55889 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55890 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55891 # Going to short mode and back again did indeed matter. Since short mode is 55892 # case insensitive, let's make it lowercase to improve readability. 55893 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55894 # Now convert it back to Unix-style (cygpath) 55895 input_path=`$CYGPATH -u "$shortmode_path"` 55896 new_path="$input_path" 55897 fi 55898 fi 55899 55900 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55901 if test "x$test_cygdrive_prefix" = x; then 55902 # As a simple fix, exclude /usr/bin since it's not a real path. 55903 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55904 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55905 # a path prefixed by /cygdrive for fixpath to work. 55906 new_path="$CYGWIN_ROOT_PATH$input_path" 55907 fi 55908 fi 55909 55910 55911 if test "x$path" != "x$new_path"; then 55912 MSVC_DLL="$new_path" 55913 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55914 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55915 fi 55916 55917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55918 55919 path="$MSVC_DLL" 55920 has_colon=`$ECHO $path | $GREP ^.:` 55921 new_path="$path" 55922 if test "x$has_colon" = x; then 55923 # Not in mixed or Windows style, start by that. 55924 new_path=`cmd //c echo $path` 55925 fi 55926 55927 55928 input_path="$new_path" 55929 # Check if we need to convert this using DOS-style short mode. If the path 55930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55931 # take no chances and rewrite it. 55932 # Note: m4 eats our [], so we need to use [ and ] instead. 55933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55934 if test "x$has_forbidden_chars" != x; then 55935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55936 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55937 fi 55938 55939 55940 windows_path="$new_path" 55941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55942 unix_path=`$CYGPATH -u "$windows_path"` 55943 new_path="$unix_path" 55944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55945 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55946 new_path="$unix_path" 55947 fi 55948 55949 if test "x$path" != "x$new_path"; then 55950 MSVC_DLL="$new_path" 55951 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55952 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55953 fi 55954 55955 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55956 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55957 55958 else 55959 # We're on a unix platform. Hooray! :) 55960 path="$MSVC_DLL" 55961 has_space=`$ECHO "$path" | $GREP " "` 55962 if test "x$has_space" != x; then 55963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55964 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55965 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55966 fi 55967 55968 # Use eval to expand a potential ~ 55969 eval path="$path" 55970 if test ! -f "$path" && test ! -d "$path"; then 55971 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55972 fi 55973 55974 if test -d "$path"; then 55975 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55976 else 55977 dir="`$DIRNAME "$path"`" 55978 base="`$BASENAME "$path"`" 55979 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55980 fi 55981 fi 55982 fi 55983 55984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55985 $as_echo_n "checking for $DLL_NAME... " >&6; } 55986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55987 $as_echo "$MSVC_DLL" >&6; } 55988 else 55989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55990 $as_echo "incorrect, ignoring" >&6; } 55991 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55992 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55993 fi 55994 fi 55995 55996 fi 55997 fi 55998 55999 if test "x$MSVC_DLL" = x; then 56000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56001 $as_echo_n "checking for $DLL_NAME... " >&6; } 56002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56003 $as_echo "no" >&6; } 56004 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56005 fi 56006 56007 MSVCR_DLL="$MSVC_DLL" 56008 fi 56009 56010 56011 56012 # Check whether --with-msvcp-dll was given. 56013 if test "${with_msvcp_dll+set}" = set; then : 56014 withval=$with_msvcp_dll; 56015 fi 56016 56017 56018 if test "x$MSVCP_NAME" != "x"; then 56019 if test "x$with_msvcp_dll" != x; then 56020 # If given explicitly by user, do not probe. If not present, fail directly. 56021 56022 DLL_NAME="$MSVCP_NAME" 56023 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 56024 METHOD="--with-msvcp-dll" 56025 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56026 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56027 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56028 56029 # Need to check if the found msvcr is correct architecture 56030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56031 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56032 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56034 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56035 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56036 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56037 CORRECT_MSVCR_ARCH="PE32 executable" 56038 else 56039 CORRECT_MSVCR_ARCH="PE32+ executable" 56040 fi 56041 else 56042 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56043 CORRECT_MSVCR_ARCH=386 56044 else 56045 CORRECT_MSVCR_ARCH=x86-64 56046 fi 56047 fi 56048 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56050 $as_echo "ok" >&6; } 56051 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56052 56053 # Only process if variable expands to non-empty 56054 56055 if test "x$MSVC_DLL" != x; then 56056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56057 56058 # Input might be given as Windows format, start by converting to 56059 # unix format. 56060 path="$MSVC_DLL" 56061 new_path=`$CYGPATH -u "$path"` 56062 56063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56066 # "foo.exe" is OK but "foo" is an error. 56067 # 56068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56069 # It is also a way to make sure we got the proper file name for the real test later on. 56070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56071 if test "x$test_shortpath" = x; then 56072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56073 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56074 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56075 fi 56076 56077 # Call helper function which possibly converts this using DOS-style short mode. 56078 # If so, the updated path is stored in $new_path. 56079 56080 input_path="$new_path" 56081 # Check if we need to convert this using DOS-style short mode. If the path 56082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56083 # take no chances and rewrite it. 56084 # Note: m4 eats our [], so we need to use [ and ] instead. 56085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56086 if test "x$has_forbidden_chars" != x; then 56087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56091 # Going to short mode and back again did indeed matter. Since short mode is 56092 # case insensitive, let's make it lowercase to improve readability. 56093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56094 # Now convert it back to Unix-style (cygpath) 56095 input_path=`$CYGPATH -u "$shortmode_path"` 56096 new_path="$input_path" 56097 fi 56098 fi 56099 56100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56101 if test "x$test_cygdrive_prefix" = x; then 56102 # As a simple fix, exclude /usr/bin since it's not a real path. 56103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56105 # a path prefixed by /cygdrive for fixpath to work. 56106 new_path="$CYGWIN_ROOT_PATH$input_path" 56107 fi 56108 fi 56109 56110 56111 if test "x$path" != "x$new_path"; then 56112 MSVC_DLL="$new_path" 56113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56114 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56115 fi 56116 56117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56118 56119 path="$MSVC_DLL" 56120 has_colon=`$ECHO $path | $GREP ^.:` 56121 new_path="$path" 56122 if test "x$has_colon" = x; then 56123 # Not in mixed or Windows style, start by that. 56124 new_path=`cmd //c echo $path` 56125 fi 56126 56127 56128 input_path="$new_path" 56129 # Check if we need to convert this using DOS-style short mode. If the path 56130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56131 # take no chances and rewrite it. 56132 # Note: m4 eats our [], so we need to use [ and ] instead. 56133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56134 if test "x$has_forbidden_chars" != x; then 56135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56137 fi 56138 56139 56140 windows_path="$new_path" 56141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56142 unix_path=`$CYGPATH -u "$windows_path"` 56143 new_path="$unix_path" 56144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56146 new_path="$unix_path" 56147 fi 56148 56149 if test "x$path" != "x$new_path"; then 56150 MSVC_DLL="$new_path" 56151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56152 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56153 fi 56154 56155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56157 56158 else 56159 # We're on a unix platform. Hooray! :) 56160 path="$MSVC_DLL" 56161 has_space=`$ECHO "$path" | $GREP " "` 56162 if test "x$has_space" != x; then 56163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56164 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56166 fi 56167 56168 # Use eval to expand a potential ~ 56169 eval path="$path" 56170 if test ! -f "$path" && test ! -d "$path"; then 56171 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56172 fi 56173 56174 if test -d "$path"; then 56175 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56176 else 56177 dir="`$DIRNAME "$path"`" 56178 base="`$BASENAME "$path"`" 56179 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56180 fi 56181 fi 56182 fi 56183 56184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56185 $as_echo_n "checking for $DLL_NAME... " >&6; } 56186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56187 $as_echo "$MSVC_DLL" >&6; } 56188 else 56189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56190 $as_echo "incorrect, ignoring" >&6; } 56191 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56192 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56193 fi 56194 fi 56195 56196 if test "x$MSVC_DLL" = x; then 56197 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 56198 fi 56199 MSVCP_DLL="$MSVC_DLL" 56200 elif test "x$DEVKIT_MSVCP_DLL" != x; then 56201 56202 DLL_NAME="$MSVCP_NAME" 56203 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 56204 METHOD="devkit" 56205 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56206 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56207 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56208 56209 # Need to check if the found msvcr is correct architecture 56210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56211 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56212 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56214 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56215 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56216 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56217 CORRECT_MSVCR_ARCH="PE32 executable" 56218 else 56219 CORRECT_MSVCR_ARCH="PE32+ executable" 56220 fi 56221 else 56222 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56223 CORRECT_MSVCR_ARCH=386 56224 else 56225 CORRECT_MSVCR_ARCH=x86-64 56226 fi 56227 fi 56228 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56230 $as_echo "ok" >&6; } 56231 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56232 56233 # Only process if variable expands to non-empty 56234 56235 if test "x$MSVC_DLL" != x; then 56236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56237 56238 # Input might be given as Windows format, start by converting to 56239 # unix format. 56240 path="$MSVC_DLL" 56241 new_path=`$CYGPATH -u "$path"` 56242 56243 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56244 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56245 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56246 # "foo.exe" is OK but "foo" is an error. 56247 # 56248 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56249 # It is also a way to make sure we got the proper file name for the real test later on. 56250 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56251 if test "x$test_shortpath" = x; then 56252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56253 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56254 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56255 fi 56256 56257 # Call helper function which possibly converts this using DOS-style short mode. 56258 # If so, the updated path is stored in $new_path. 56259 56260 input_path="$new_path" 56261 # Check if we need to convert this using DOS-style short mode. If the path 56262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56263 # take no chances and rewrite it. 56264 # Note: m4 eats our [], so we need to use [ and ] instead. 56265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56266 if test "x$has_forbidden_chars" != x; then 56267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56271 # Going to short mode and back again did indeed matter. Since short mode is 56272 # case insensitive, let's make it lowercase to improve readability. 56273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56274 # Now convert it back to Unix-style (cygpath) 56275 input_path=`$CYGPATH -u "$shortmode_path"` 56276 new_path="$input_path" 56277 fi 56278 fi 56279 56280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56281 if test "x$test_cygdrive_prefix" = x; then 56282 # As a simple fix, exclude /usr/bin since it's not a real path. 56283 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56285 # a path prefixed by /cygdrive for fixpath to work. 56286 new_path="$CYGWIN_ROOT_PATH$input_path" 56287 fi 56288 fi 56289 56290 56291 if test "x$path" != "x$new_path"; then 56292 MSVC_DLL="$new_path" 56293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56294 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56295 fi 56296 56297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56298 56299 path="$MSVC_DLL" 56300 has_colon=`$ECHO $path | $GREP ^.:` 56301 new_path="$path" 56302 if test "x$has_colon" = x; then 56303 # Not in mixed or Windows style, start by that. 56304 new_path=`cmd //c echo $path` 56305 fi 56306 56307 56308 input_path="$new_path" 56309 # Check if we need to convert this using DOS-style short mode. If the path 56310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56311 # take no chances and rewrite it. 56312 # Note: m4 eats our [], so we need to use [ and ] instead. 56313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56314 if test "x$has_forbidden_chars" != x; then 56315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56316 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56317 fi 56318 56319 56320 windows_path="$new_path" 56321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56322 unix_path=`$CYGPATH -u "$windows_path"` 56323 new_path="$unix_path" 56324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56326 new_path="$unix_path" 56327 fi 56328 56329 if test "x$path" != "x$new_path"; then 56330 MSVC_DLL="$new_path" 56331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56332 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56333 fi 56334 56335 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56336 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56337 56338 else 56339 # We're on a unix platform. Hooray! :) 56340 path="$MSVC_DLL" 56341 has_space=`$ECHO "$path" | $GREP " "` 56342 if test "x$has_space" != x; then 56343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56344 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56345 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56346 fi 56347 56348 # Use eval to expand a potential ~ 56349 eval path="$path" 56350 if test ! -f "$path" && test ! -d "$path"; then 56351 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56352 fi 56353 56354 if test -d "$path"; then 56355 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56356 else 56357 dir="`$DIRNAME "$path"`" 56358 base="`$BASENAME "$path"`" 56359 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56360 fi 56361 fi 56362 fi 56363 56364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56365 $as_echo_n "checking for $DLL_NAME... " >&6; } 56366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56367 $as_echo "$MSVC_DLL" >&6; } 56368 else 56369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56370 $as_echo "incorrect, ignoring" >&6; } 56371 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56372 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56373 fi 56374 fi 56375 56376 if test "x$MSVC_DLL" = x; then 56377 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 56378 fi 56379 MSVCP_DLL="$MSVC_DLL" 56380 else 56381 56382 DLL_NAME="${MSVCP_NAME}" 56383 MSVC_DLL= 56384 56385 if test "x$MSVC_DLL" = x; then 56386 # Probe: Using well-known location from Visual Studio 10.0 56387 if test "x$VCINSTALLDIR" != x; then 56388 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 56389 56390 windows_path="$CYGWIN_VC_INSTALL_DIR" 56391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56392 unix_path=`$CYGPATH -u "$windows_path"` 56393 CYGWIN_VC_INSTALL_DIR="$unix_path" 56394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56396 CYGWIN_VC_INSTALL_DIR="$unix_path" 56397 fi 56398 56399 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56400 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56401 else 56402 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56403 fi 56404 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 56405 56406 DLL_NAME="$DLL_NAME" 56407 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56408 METHOD="well-known location in VCINSTALLDIR" 56409 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56410 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56411 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56412 56413 # Need to check if the found msvcr is correct architecture 56414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56415 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56416 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56418 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56419 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56420 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56421 CORRECT_MSVCR_ARCH="PE32 executable" 56422 else 56423 CORRECT_MSVCR_ARCH="PE32+ executable" 56424 fi 56425 else 56426 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56427 CORRECT_MSVCR_ARCH=386 56428 else 56429 CORRECT_MSVCR_ARCH=x86-64 56430 fi 56431 fi 56432 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56434 $as_echo "ok" >&6; } 56435 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56436 56437 # Only process if variable expands to non-empty 56438 56439 if test "x$MSVC_DLL" != x; then 56440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56441 56442 # Input might be given as Windows format, start by converting to 56443 # unix format. 56444 path="$MSVC_DLL" 56445 new_path=`$CYGPATH -u "$path"` 56446 56447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56450 # "foo.exe" is OK but "foo" is an error. 56451 # 56452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56453 # It is also a way to make sure we got the proper file name for the real test later on. 56454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56455 if test "x$test_shortpath" = x; then 56456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56457 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56458 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56459 fi 56460 56461 # Call helper function which possibly converts this using DOS-style short mode. 56462 # If so, the updated path is stored in $new_path. 56463 56464 input_path="$new_path" 56465 # Check if we need to convert this using DOS-style short mode. If the path 56466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56467 # take no chances and rewrite it. 56468 # Note: m4 eats our [], so we need to use [ and ] instead. 56469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56470 if test "x$has_forbidden_chars" != x; then 56471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56472 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56473 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56474 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56475 # Going to short mode and back again did indeed matter. Since short mode is 56476 # case insensitive, let's make it lowercase to improve readability. 56477 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56478 # Now convert it back to Unix-style (cygpath) 56479 input_path=`$CYGPATH -u "$shortmode_path"` 56480 new_path="$input_path" 56481 fi 56482 fi 56483 56484 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56485 if test "x$test_cygdrive_prefix" = x; then 56486 # As a simple fix, exclude /usr/bin since it's not a real path. 56487 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56488 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56489 # a path prefixed by /cygdrive for fixpath to work. 56490 new_path="$CYGWIN_ROOT_PATH$input_path" 56491 fi 56492 fi 56493 56494 56495 if test "x$path" != "x$new_path"; then 56496 MSVC_DLL="$new_path" 56497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56498 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56499 fi 56500 56501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56502 56503 path="$MSVC_DLL" 56504 has_colon=`$ECHO $path | $GREP ^.:` 56505 new_path="$path" 56506 if test "x$has_colon" = x; then 56507 # Not in mixed or Windows style, start by that. 56508 new_path=`cmd //c echo $path` 56509 fi 56510 56511 56512 input_path="$new_path" 56513 # Check if we need to convert this using DOS-style short mode. If the path 56514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56515 # take no chances and rewrite it. 56516 # Note: m4 eats our [], so we need to use [ and ] instead. 56517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56518 if test "x$has_forbidden_chars" != x; then 56519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56521 fi 56522 56523 56524 windows_path="$new_path" 56525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56526 unix_path=`$CYGPATH -u "$windows_path"` 56527 new_path="$unix_path" 56528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56530 new_path="$unix_path" 56531 fi 56532 56533 if test "x$path" != "x$new_path"; then 56534 MSVC_DLL="$new_path" 56535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56536 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56537 fi 56538 56539 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56540 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56541 56542 else 56543 # We're on a unix platform. Hooray! :) 56544 path="$MSVC_DLL" 56545 has_space=`$ECHO "$path" | $GREP " "` 56546 if test "x$has_space" != x; then 56547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56548 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56549 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56550 fi 56551 56552 # Use eval to expand a potential ~ 56553 eval path="$path" 56554 if test ! -f "$path" && test ! -d "$path"; then 56555 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56556 fi 56557 56558 if test -d "$path"; then 56559 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56560 else 56561 dir="`$DIRNAME "$path"`" 56562 base="`$BASENAME "$path"`" 56563 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56564 fi 56565 fi 56566 fi 56567 56568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56569 $as_echo_n "checking for $DLL_NAME... " >&6; } 56570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56571 $as_echo "$MSVC_DLL" >&6; } 56572 else 56573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56574 $as_echo "incorrect, ignoring" >&6; } 56575 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56576 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56577 fi 56578 fi 56579 56580 fi 56581 fi 56582 56583 if test "x$MSVC_DLL" = x; then 56584 # Probe: Check in the Boot JDK directory. 56585 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56586 56587 DLL_NAME="$DLL_NAME" 56588 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56589 METHOD="well-known location in Boot JDK" 56590 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56591 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56592 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56593 56594 # Need to check if the found msvcr is correct architecture 56595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56596 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56597 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56599 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56600 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56601 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56602 CORRECT_MSVCR_ARCH="PE32 executable" 56603 else 56604 CORRECT_MSVCR_ARCH="PE32+ executable" 56605 fi 56606 else 56607 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56608 CORRECT_MSVCR_ARCH=386 56609 else 56610 CORRECT_MSVCR_ARCH=x86-64 56611 fi 56612 fi 56613 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56615 $as_echo "ok" >&6; } 56616 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56617 56618 # Only process if variable expands to non-empty 56619 56620 if test "x$MSVC_DLL" != x; then 56621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56622 56623 # Input might be given as Windows format, start by converting to 56624 # unix format. 56625 path="$MSVC_DLL" 56626 new_path=`$CYGPATH -u "$path"` 56627 56628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56631 # "foo.exe" is OK but "foo" is an error. 56632 # 56633 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56634 # It is also a way to make sure we got the proper file name for the real test later on. 56635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56636 if test "x$test_shortpath" = x; then 56637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56638 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56639 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56640 fi 56641 56642 # Call helper function which possibly converts this using DOS-style short mode. 56643 # If so, the updated path is stored in $new_path. 56644 56645 input_path="$new_path" 56646 # Check if we need to convert this using DOS-style short mode. If the path 56647 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56648 # take no chances and rewrite it. 56649 # Note: m4 eats our [], so we need to use [ and ] instead. 56650 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56651 if test "x$has_forbidden_chars" != x; then 56652 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56653 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56654 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56655 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56656 # Going to short mode and back again did indeed matter. Since short mode is 56657 # case insensitive, let's make it lowercase to improve readability. 56658 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56659 # Now convert it back to Unix-style (cygpath) 56660 input_path=`$CYGPATH -u "$shortmode_path"` 56661 new_path="$input_path" 56662 fi 56663 fi 56664 56665 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56666 if test "x$test_cygdrive_prefix" = x; then 56667 # As a simple fix, exclude /usr/bin since it's not a real path. 56668 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56669 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56670 # a path prefixed by /cygdrive for fixpath to work. 56671 new_path="$CYGWIN_ROOT_PATH$input_path" 56672 fi 56673 fi 56674 56675 56676 if test "x$path" != "x$new_path"; then 56677 MSVC_DLL="$new_path" 56678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56679 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56680 fi 56681 56682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56683 56684 path="$MSVC_DLL" 56685 has_colon=`$ECHO $path | $GREP ^.:` 56686 new_path="$path" 56687 if test "x$has_colon" = x; then 56688 # Not in mixed or Windows style, start by that. 56689 new_path=`cmd //c echo $path` 56690 fi 56691 56692 56693 input_path="$new_path" 56694 # Check if we need to convert this using DOS-style short mode. If the path 56695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56696 # take no chances and rewrite it. 56697 # Note: m4 eats our [], so we need to use [ and ] instead. 56698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56699 if test "x$has_forbidden_chars" != x; then 56700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56701 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56702 fi 56703 56704 56705 windows_path="$new_path" 56706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56707 unix_path=`$CYGPATH -u "$windows_path"` 56708 new_path="$unix_path" 56709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56711 new_path="$unix_path" 56712 fi 56713 56714 if test "x$path" != "x$new_path"; then 56715 MSVC_DLL="$new_path" 56716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56717 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56718 fi 56719 56720 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56721 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56722 56723 else 56724 # We're on a unix platform. Hooray! :) 56725 path="$MSVC_DLL" 56726 has_space=`$ECHO "$path" | $GREP " "` 56727 if test "x$has_space" != x; then 56728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56729 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56730 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56731 fi 56732 56733 # Use eval to expand a potential ~ 56734 eval path="$path" 56735 if test ! -f "$path" && test ! -d "$path"; then 56736 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56737 fi 56738 56739 if test -d "$path"; then 56740 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56741 else 56742 dir="`$DIRNAME "$path"`" 56743 base="`$BASENAME "$path"`" 56744 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56745 fi 56746 fi 56747 fi 56748 56749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56750 $as_echo_n "checking for $DLL_NAME... " >&6; } 56751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56752 $as_echo "$MSVC_DLL" >&6; } 56753 else 56754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56755 $as_echo "incorrect, ignoring" >&6; } 56756 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56757 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56758 fi 56759 fi 56760 56761 fi 56762 56763 if test "x$MSVC_DLL" = x; then 56764 # Probe: Look in the Windows system32 directory 56765 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56766 56767 windows_path="$CYGWIN_SYSTEMROOT" 56768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56769 unix_path=`$CYGPATH -u "$windows_path"` 56770 CYGWIN_SYSTEMROOT="$unix_path" 56771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56773 CYGWIN_SYSTEMROOT="$unix_path" 56774 fi 56775 56776 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56777 56778 DLL_NAME="$DLL_NAME" 56779 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56780 METHOD="well-known location in SYSTEMROOT" 56781 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56782 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56783 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56784 56785 # Need to check if the found msvcr is correct architecture 56786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56787 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56788 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56790 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56791 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56792 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56793 CORRECT_MSVCR_ARCH="PE32 executable" 56794 else 56795 CORRECT_MSVCR_ARCH="PE32+ executable" 56796 fi 56797 else 56798 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56799 CORRECT_MSVCR_ARCH=386 56800 else 56801 CORRECT_MSVCR_ARCH=x86-64 56802 fi 56803 fi 56804 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56806 $as_echo "ok" >&6; } 56807 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56808 56809 # Only process if variable expands to non-empty 56810 56811 if test "x$MSVC_DLL" != x; then 56812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56813 56814 # Input might be given as Windows format, start by converting to 56815 # unix format. 56816 path="$MSVC_DLL" 56817 new_path=`$CYGPATH -u "$path"` 56818 56819 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56820 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56821 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56822 # "foo.exe" is OK but "foo" is an error. 56823 # 56824 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56825 # It is also a way to make sure we got the proper file name for the real test later on. 56826 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56827 if test "x$test_shortpath" = x; then 56828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56829 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56830 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56831 fi 56832 56833 # Call helper function which possibly converts this using DOS-style short mode. 56834 # If so, the updated path is stored in $new_path. 56835 56836 input_path="$new_path" 56837 # Check if we need to convert this using DOS-style short mode. If the path 56838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56839 # take no chances and rewrite it. 56840 # Note: m4 eats our [], so we need to use [ and ] instead. 56841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56842 if test "x$has_forbidden_chars" != x; then 56843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56844 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56845 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56846 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56847 # Going to short mode and back again did indeed matter. Since short mode is 56848 # case insensitive, let's make it lowercase to improve readability. 56849 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56850 # Now convert it back to Unix-style (cygpath) 56851 input_path=`$CYGPATH -u "$shortmode_path"` 56852 new_path="$input_path" 56853 fi 56854 fi 56855 56856 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56857 if test "x$test_cygdrive_prefix" = x; then 56858 # As a simple fix, exclude /usr/bin since it's not a real path. 56859 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56860 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56861 # a path prefixed by /cygdrive for fixpath to work. 56862 new_path="$CYGWIN_ROOT_PATH$input_path" 56863 fi 56864 fi 56865 56866 56867 if test "x$path" != "x$new_path"; then 56868 MSVC_DLL="$new_path" 56869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56870 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56871 fi 56872 56873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56874 56875 path="$MSVC_DLL" 56876 has_colon=`$ECHO $path | $GREP ^.:` 56877 new_path="$path" 56878 if test "x$has_colon" = x; then 56879 # Not in mixed or Windows style, start by that. 56880 new_path=`cmd //c echo $path` 56881 fi 56882 56883 56884 input_path="$new_path" 56885 # Check if we need to convert this using DOS-style short mode. If the path 56886 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56887 # take no chances and rewrite it. 56888 # Note: m4 eats our [], so we need to use [ and ] instead. 56889 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56890 if test "x$has_forbidden_chars" != x; then 56891 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56892 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56893 fi 56894 56895 56896 windows_path="$new_path" 56897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56898 unix_path=`$CYGPATH -u "$windows_path"` 56899 new_path="$unix_path" 56900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56901 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56902 new_path="$unix_path" 56903 fi 56904 56905 if test "x$path" != "x$new_path"; then 56906 MSVC_DLL="$new_path" 56907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56908 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56909 fi 56910 56911 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56912 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56913 56914 else 56915 # We're on a unix platform. Hooray! :) 56916 path="$MSVC_DLL" 56917 has_space=`$ECHO "$path" | $GREP " "` 56918 if test "x$has_space" != x; then 56919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56920 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56921 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56922 fi 56923 56924 # Use eval to expand a potential ~ 56925 eval path="$path" 56926 if test ! -f "$path" && test ! -d "$path"; then 56927 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56928 fi 56929 56930 if test -d "$path"; then 56931 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56932 else 56933 dir="`$DIRNAME "$path"`" 56934 base="`$BASENAME "$path"`" 56935 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56936 fi 56937 fi 56938 fi 56939 56940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56941 $as_echo_n "checking for $DLL_NAME... " >&6; } 56942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56943 $as_echo "$MSVC_DLL" >&6; } 56944 else 56945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56946 $as_echo "incorrect, ignoring" >&6; } 56947 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56948 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56949 fi 56950 fi 56951 56952 fi 56953 56954 if test "x$MSVC_DLL" = x; then 56955 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56956 if test "x$VS100COMNTOOLS" != x; then 56957 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56958 56959 windows_path="$CYGWIN_VS_TOOLS_DIR" 56960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56961 unix_path=`$CYGPATH -u "$windows_path"` 56962 CYGWIN_VS_TOOLS_DIR="$unix_path" 56963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56964 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56965 CYGWIN_VS_TOOLS_DIR="$unix_path" 56966 fi 56967 56968 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56969 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56970 | $GREP -i /x64/ | $HEAD --lines 1` 56971 else 56972 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56973 | $GREP -i /x86/ | $HEAD --lines 1` 56974 fi 56975 56976 DLL_NAME="$DLL_NAME" 56977 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56978 METHOD="search of VS100COMNTOOLS" 56979 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56980 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56981 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56982 56983 # Need to check if the found msvcr is correct architecture 56984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56985 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56986 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56988 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56989 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56990 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56991 CORRECT_MSVCR_ARCH="PE32 executable" 56992 else 56993 CORRECT_MSVCR_ARCH="PE32+ executable" 56994 fi 56995 else 56996 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56997 CORRECT_MSVCR_ARCH=386 56998 else 56999 CORRECT_MSVCR_ARCH=x86-64 57000 fi 57001 fi 57002 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57004 $as_echo "ok" >&6; } 57005 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57006 57007 # Only process if variable expands to non-empty 57008 57009 if test "x$MSVC_DLL" != x; then 57010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57011 57012 # Input might be given as Windows format, start by converting to 57013 # unix format. 57014 path="$MSVC_DLL" 57015 new_path=`$CYGPATH -u "$path"` 57016 57017 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57018 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57019 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57020 # "foo.exe" is OK but "foo" is an error. 57021 # 57022 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57023 # It is also a way to make sure we got the proper file name for the real test later on. 57024 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57025 if test "x$test_shortpath" = x; then 57026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57027 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57028 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57029 fi 57030 57031 # Call helper function which possibly converts this using DOS-style short mode. 57032 # If so, the updated path is stored in $new_path. 57033 57034 input_path="$new_path" 57035 # Check if we need to convert this using DOS-style short mode. If the path 57036 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57037 # take no chances and rewrite it. 57038 # Note: m4 eats our [], so we need to use [ and ] instead. 57039 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57040 if test "x$has_forbidden_chars" != x; then 57041 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57042 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57043 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57044 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57045 # Going to short mode and back again did indeed matter. Since short mode is 57046 # case insensitive, let's make it lowercase to improve readability. 57047 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57048 # Now convert it back to Unix-style (cygpath) 57049 input_path=`$CYGPATH -u "$shortmode_path"` 57050 new_path="$input_path" 57051 fi 57052 fi 57053 57054 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57055 if test "x$test_cygdrive_prefix" = x; then 57056 # As a simple fix, exclude /usr/bin since it's not a real path. 57057 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57058 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57059 # a path prefixed by /cygdrive for fixpath to work. 57060 new_path="$CYGWIN_ROOT_PATH$input_path" 57061 fi 57062 fi 57063 57064 57065 if test "x$path" != "x$new_path"; then 57066 MSVC_DLL="$new_path" 57067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57068 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57069 fi 57070 57071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57072 57073 path="$MSVC_DLL" 57074 has_colon=`$ECHO $path | $GREP ^.:` 57075 new_path="$path" 57076 if test "x$has_colon" = x; then 57077 # Not in mixed or Windows style, start by that. 57078 new_path=`cmd //c echo $path` 57079 fi 57080 57081 57082 input_path="$new_path" 57083 # Check if we need to convert this using DOS-style short mode. If the path 57084 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57085 # take no chances and rewrite it. 57086 # Note: m4 eats our [], so we need to use [ and ] instead. 57087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57088 if test "x$has_forbidden_chars" != x; then 57089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57090 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57091 fi 57092 57093 57094 windows_path="$new_path" 57095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57096 unix_path=`$CYGPATH -u "$windows_path"` 57097 new_path="$unix_path" 57098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57100 new_path="$unix_path" 57101 fi 57102 57103 if test "x$path" != "x$new_path"; then 57104 MSVC_DLL="$new_path" 57105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57106 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57107 fi 57108 57109 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57110 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57111 57112 else 57113 # We're on a unix platform. Hooray! :) 57114 path="$MSVC_DLL" 57115 has_space=`$ECHO "$path" | $GREP " "` 57116 if test "x$has_space" != x; then 57117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57118 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57119 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57120 fi 57121 57122 # Use eval to expand a potential ~ 57123 eval path="$path" 57124 if test ! -f "$path" && test ! -d "$path"; then 57125 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57126 fi 57127 57128 if test -d "$path"; then 57129 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57130 else 57131 dir="`$DIRNAME "$path"`" 57132 base="`$BASENAME "$path"`" 57133 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57134 fi 57135 fi 57136 fi 57137 57138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57139 $as_echo_n "checking for $DLL_NAME... " >&6; } 57140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57141 $as_echo "$MSVC_DLL" >&6; } 57142 else 57143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57144 $as_echo "incorrect, ignoring" >&6; } 57145 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57146 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57147 fi 57148 fi 57149 57150 fi 57151 fi 57152 57153 if test "x$MSVC_DLL" = x; then 57154 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 57155 # (This was the original behaviour; kept since it might turn something up) 57156 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 57157 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57158 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57159 | $GREP x64 | $HEAD --lines 1` 57160 else 57161 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57162 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 57163 if test "x$POSSIBLE_MSVC_DLL" = x; then 57164 # We're grasping at straws now... 57165 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57166 | $HEAD --lines 1` 57167 fi 57168 fi 57169 57170 57171 DLL_NAME="$DLL_NAME" 57172 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57173 METHOD="search of VCINSTALLDIR" 57174 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57175 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57176 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57177 57178 # Need to check if the found msvcr is correct architecture 57179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57180 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57181 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57183 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57184 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57185 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57186 CORRECT_MSVCR_ARCH="PE32 executable" 57187 else 57188 CORRECT_MSVCR_ARCH="PE32+ executable" 57189 fi 57190 else 57191 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57192 CORRECT_MSVCR_ARCH=386 57193 else 57194 CORRECT_MSVCR_ARCH=x86-64 57195 fi 57196 fi 57197 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57199 $as_echo "ok" >&6; } 57200 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57201 57202 # Only process if variable expands to non-empty 57203 57204 if test "x$MSVC_DLL" != x; then 57205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57206 57207 # Input might be given as Windows format, start by converting to 57208 # unix format. 57209 path="$MSVC_DLL" 57210 new_path=`$CYGPATH -u "$path"` 57211 57212 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57213 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57214 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57215 # "foo.exe" is OK but "foo" is an error. 57216 # 57217 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57218 # It is also a way to make sure we got the proper file name for the real test later on. 57219 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57220 if test "x$test_shortpath" = x; then 57221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57222 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57223 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57224 fi 57225 57226 # Call helper function which possibly converts this using DOS-style short mode. 57227 # If so, the updated path is stored in $new_path. 57228 57229 input_path="$new_path" 57230 # Check if we need to convert this using DOS-style short mode. If the path 57231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57232 # take no chances and rewrite it. 57233 # Note: m4 eats our [], so we need to use [ and ] instead. 57234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57235 if test "x$has_forbidden_chars" != x; then 57236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57237 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57238 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57239 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57240 # Going to short mode and back again did indeed matter. Since short mode is 57241 # case insensitive, let's make it lowercase to improve readability. 57242 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57243 # Now convert it back to Unix-style (cygpath) 57244 input_path=`$CYGPATH -u "$shortmode_path"` 57245 new_path="$input_path" 57246 fi 57247 fi 57248 57249 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57250 if test "x$test_cygdrive_prefix" = x; then 57251 # As a simple fix, exclude /usr/bin since it's not a real path. 57252 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57253 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57254 # a path prefixed by /cygdrive for fixpath to work. 57255 new_path="$CYGWIN_ROOT_PATH$input_path" 57256 fi 57257 fi 57258 57259 57260 if test "x$path" != "x$new_path"; then 57261 MSVC_DLL="$new_path" 57262 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57263 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57264 fi 57265 57266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57267 57268 path="$MSVC_DLL" 57269 has_colon=`$ECHO $path | $GREP ^.:` 57270 new_path="$path" 57271 if test "x$has_colon" = x; then 57272 # Not in mixed or Windows style, start by that. 57273 new_path=`cmd //c echo $path` 57274 fi 57275 57276 57277 input_path="$new_path" 57278 # Check if we need to convert this using DOS-style short mode. If the path 57279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57280 # take no chances and rewrite it. 57281 # Note: m4 eats our [], so we need to use [ and ] instead. 57282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57283 if test "x$has_forbidden_chars" != x; then 57284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57285 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57286 fi 57287 57288 57289 windows_path="$new_path" 57290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57291 unix_path=`$CYGPATH -u "$windows_path"` 57292 new_path="$unix_path" 57293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57295 new_path="$unix_path" 57296 fi 57297 57298 if test "x$path" != "x$new_path"; then 57299 MSVC_DLL="$new_path" 57300 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57301 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57302 fi 57303 57304 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57305 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57306 57307 else 57308 # We're on a unix platform. Hooray! :) 57309 path="$MSVC_DLL" 57310 has_space=`$ECHO "$path" | $GREP " "` 57311 if test "x$has_space" != x; then 57312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57313 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57314 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57315 fi 57316 57317 # Use eval to expand a potential ~ 57318 eval path="$path" 57319 if test ! -f "$path" && test ! -d "$path"; then 57320 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57321 fi 57322 57323 if test -d "$path"; then 57324 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57325 else 57326 dir="`$DIRNAME "$path"`" 57327 base="`$BASENAME "$path"`" 57328 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57329 fi 57330 fi 57331 fi 57332 57333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57334 $as_echo_n "checking for $DLL_NAME... " >&6; } 57335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57336 $as_echo "$MSVC_DLL" >&6; } 57337 else 57338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57339 $as_echo "incorrect, ignoring" >&6; } 57340 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57341 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57342 fi 57343 fi 57344 57345 fi 57346 fi 57347 57348 if test "x$MSVC_DLL" = x; then 57349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57350 $as_echo_n "checking for $DLL_NAME... " >&6; } 57351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57352 $as_echo "no" >&6; } 57353 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 57354 fi 57355 57356 MSVCP_DLL="$MSVC_DLL" 57357 fi 57358 57359 fi 57360 57361 fi 57362 57363 57364 if test "x$NEEDS_LIB_X11" = xfalse; then 57365 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 57366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 57367 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 57368 fi 57369 X_CFLAGS= 57370 X_LIBS= 57371 else 57372 57373 if test "x${with_x}" = xno; then 57374 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 57375 fi 57376 57377 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 57378 # The user has specified a X11 base directory. Use it for includes and 57379 # libraries, unless explicitly overridden. 57380 if test "x$x_includes" = xNONE; then 57381 x_includes="${with_x}/include" 57382 fi 57383 if test "x$x_libraries" = xNONE; then 57384 x_libraries="${with_x}/lib" 57385 fi 57386 else 57387 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 57388 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 57389 # --x-libraries for the sysroot, if that seems to be correct. 57390 if test "x$SYSROOT" != "x"; then 57391 if test "x$x_includes" = xNONE; then 57392 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 57393 x_includes="$SYSROOT/usr/X11R6/include" 57394 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 57395 x_includes="$SYSROOT/usr/include" 57396 fi 57397 fi 57398 if test "x$x_libraries" = xNONE; then 57399 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 57400 x_libraries="$SYSROOT/usr/X11R6/lib" 57401 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57402 x_libraries="$SYSROOT/usr/lib64" 57403 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 57404 x_libraries="$SYSROOT/usr/lib" 57405 fi 57406 fi 57407 fi 57408 fi 57409 57410 # Now let autoconf do it's magic 57411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 57412 $as_echo_n "checking for X... " >&6; } 57413 57414 57415 # Check whether --with-x was given. 57416 if test "${with_x+set}" = set; then : 57417 withval=$with_x; 57418 fi 57419 57420 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 57421 if test "x$with_x" = xno; then 57422 # The user explicitly disabled X. 57423 have_x=disabled 57424 else 57425 case $x_includes,$x_libraries in #( 57426 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 57427 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 57428 $as_echo_n "(cached) " >&6 57429 else 57430 # One or both of the vars are not set, and there is no cached value. 57431 ac_x_includes=no ac_x_libraries=no 57432 rm -f -r conftest.dir 57433 if mkdir conftest.dir; then 57434 cd conftest.dir 57435 cat >Imakefile <<'_ACEOF' 57436 incroot: 57437 @echo incroot='${INCROOT}' 57438 usrlibdir: 57439 @echo usrlibdir='${USRLIBDIR}' 57440 libdir: 57441 @echo libdir='${LIBDIR}' 57442 _ACEOF 57443 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 57444 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 57445 for ac_var in incroot usrlibdir libdir; do 57446 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 57447 done 57448 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 57449 for ac_extension in a so sl dylib la dll; do 57450 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 57451 test -f "$ac_im_libdir/libX11.$ac_extension"; then 57452 ac_im_usrlibdir=$ac_im_libdir; break 57453 fi 57454 done 57455 # Screen out bogus values from the imake configuration. They are 57456 # bogus both because they are the default anyway, and because 57457 # using them would break gcc on systems where it needs fixed includes. 57458 case $ac_im_incroot in 57459 /usr/include) ac_x_includes= ;; 57460 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 57461 esac 57462 case $ac_im_usrlibdir in 57463 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 57464 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 57465 esac 57466 fi 57467 cd .. 57468 rm -f -r conftest.dir 57469 fi 57470 57471 # Standard set of common directories for X headers. 57472 # Check X11 before X11Rn because it is often a symlink to the current release. 57473 ac_x_header_dirs=' 57474 /usr/X11/include 57475 /usr/X11R7/include 57476 /usr/X11R6/include 57477 /usr/X11R5/include 57478 /usr/X11R4/include 57479 57480 /usr/include/X11 57481 /usr/include/X11R7 57482 /usr/include/X11R6 57483 /usr/include/X11R5 57484 /usr/include/X11R4 57485 57486 /usr/local/X11/include 57487 /usr/local/X11R7/include 57488 /usr/local/X11R6/include 57489 /usr/local/X11R5/include 57490 /usr/local/X11R4/include 57491 57492 /usr/local/include/X11 57493 /usr/local/include/X11R7 57494 /usr/local/include/X11R6 57495 /usr/local/include/X11R5 57496 /usr/local/include/X11R4 57497 57498 /usr/X386/include 57499 /usr/x386/include 57500 /usr/XFree86/include/X11 57501 57502 /usr/include 57503 /usr/local/include 57504 /usr/unsupported/include 57505 /usr/athena/include 57506 /usr/local/x11r5/include 57507 /usr/lpp/Xamples/include 57508 57509 /usr/openwin/include 57510 /usr/openwin/share/include' 57511 57512 if test "$ac_x_includes" = no; then 57513 # Guess where to find include files, by looking for Xlib.h. 57514 # First, try using that file with no special directory specified. 57515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57516 /* end confdefs.h. */ 57517 #include <X11/Xlib.h> 57518 _ACEOF 57519 if ac_fn_cxx_try_cpp "$LINENO"; then : 57520 # We can compile using X headers with no special include directory. 57521 ac_x_includes= 57522 else 57523 for ac_dir in $ac_x_header_dirs; do 57524 if test -r "$ac_dir/X11/Xlib.h"; then 57525 ac_x_includes=$ac_dir 57526 break 57527 fi 57528 done 57529 fi 57530 rm -f conftest.err conftest.i conftest.$ac_ext 57531 fi # $ac_x_includes = no 57532 57533 if test "$ac_x_libraries" = no; then 57534 # Check for the libraries. 57535 # See if we find them without any special options. 57536 # Don't add to $LIBS permanently. 57537 ac_save_LIBS=$LIBS 57538 LIBS="-lX11 $LIBS" 57539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57540 /* end confdefs.h. */ 57541 #include <X11/Xlib.h> 57542 int 57543 main () 57544 { 57545 XrmInitialize () 57546 ; 57547 return 0; 57548 } 57549 _ACEOF 57550 if ac_fn_cxx_try_link "$LINENO"; then : 57551 LIBS=$ac_save_LIBS 57552 # We can link X programs with no special library path. 57553 ac_x_libraries= 57554 else 57555 LIBS=$ac_save_LIBS 57556 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 57557 do 57558 # Don't even attempt the hair of trying to link an X program! 57559 for ac_extension in a so sl dylib la dll; do 57560 if test -r "$ac_dir/libX11.$ac_extension"; then 57561 ac_x_libraries=$ac_dir 57562 break 2 57563 fi 57564 done 57565 done 57566 fi 57567 rm -f core conftest.err conftest.$ac_objext \ 57568 conftest$ac_exeext conftest.$ac_ext 57569 fi # $ac_x_libraries = no 57570 57571 case $ac_x_includes,$ac_x_libraries in #( 57572 no,* | *,no | *\'*) 57573 # Didn't find X, or a directory has "'" in its name. 57574 ac_cv_have_x="have_x=no";; #( 57575 *) 57576 # Record where we found X for the cache. 57577 ac_cv_have_x="have_x=yes\ 57578 ac_x_includes='$ac_x_includes'\ 57579 ac_x_libraries='$ac_x_libraries'" 57580 esac 57581 fi 57582 ;; #( 57583 *) have_x=yes;; 57584 esac 57585 eval "$ac_cv_have_x" 57586 fi # $with_x != no 57587 57588 if test "$have_x" != yes; then 57589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 57590 $as_echo "$have_x" >&6; } 57591 no_x=yes 57592 else 57593 # If each of the values was on the command line, it overrides each guess. 57594 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 57595 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 57596 # Update the cache value to reflect the command line values. 57597 ac_cv_have_x="have_x=yes\ 57598 ac_x_includes='$x_includes'\ 57599 ac_x_libraries='$x_libraries'" 57600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 57601 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 57602 fi 57603 57604 if test "$no_x" = yes; then 57605 # Not all programs may use this symbol, but it does not hurt to define it. 57606 57607 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 57608 57609 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 57610 else 57611 if test -n "$x_includes"; then 57612 X_CFLAGS="$X_CFLAGS -I$x_includes" 57613 fi 57614 57615 # It would also be nice to do this for all -L options, not just this one. 57616 if test -n "$x_libraries"; then 57617 X_LIBS="$X_LIBS -L$x_libraries" 57618 # For Solaris; some versions of Sun CC require a space after -R and 57619 # others require no space. Words are not sufficient . . . . 57620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 57621 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 57622 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 57623 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 57624 ac_cxx_werror_flag=yes 57625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57626 /* end confdefs.h. */ 57627 57628 int 57629 main () 57630 { 57631 57632 ; 57633 return 0; 57634 } 57635 _ACEOF 57636 if ac_fn_cxx_try_link "$LINENO"; then : 57637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57638 $as_echo "no" >&6; } 57639 X_LIBS="$X_LIBS -R$x_libraries" 57640 else 57641 LIBS="$ac_xsave_LIBS -R $x_libraries" 57642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57643 /* end confdefs.h. */ 57644 57645 int 57646 main () 57647 { 57648 57649 ; 57650 return 0; 57651 } 57652 _ACEOF 57653 if ac_fn_cxx_try_link "$LINENO"; then : 57654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57655 $as_echo "yes" >&6; } 57656 X_LIBS="$X_LIBS -R $x_libraries" 57657 else 57658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 57659 $as_echo "neither works" >&6; } 57660 fi 57661 rm -f core conftest.err conftest.$ac_objext \ 57662 conftest$ac_exeext conftest.$ac_ext 57663 fi 57664 rm -f core conftest.err conftest.$ac_objext \ 57665 conftest$ac_exeext conftest.$ac_ext 57666 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 57667 LIBS=$ac_xsave_LIBS 57668 fi 57669 57670 # Check for system-dependent libraries X programs must link with. 57671 # Do this before checking for the system-independent R6 libraries 57672 # (-lICE), since we may need -lsocket or whatever for X linking. 57673 57674 if test "$ISC" = yes; then 57675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 57676 else 57677 # Martyn Johnson says this is needed for Ultrix, if the X 57678 # libraries were built with DECnet support. And Karl Berry says 57679 # the Alpha needs dnet_stub (dnet does not exist). 57680 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 57681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57682 /* end confdefs.h. */ 57683 57684 /* Override any GCC internal prototype to avoid an error. 57685 Use char because int might match the return type of a GCC 57686 builtin and then its argument prototype would still apply. */ 57687 #ifdef __cplusplus 57688 extern "C" 57689 #endif 57690 char XOpenDisplay (); 57691 int 57692 main () 57693 { 57694 return XOpenDisplay (); 57695 ; 57696 return 0; 57697 } 57698 _ACEOF 57699 if ac_fn_cxx_try_link "$LINENO"; then : 57700 57701 else 57702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 57703 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 57704 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 57705 $as_echo_n "(cached) " >&6 57706 else 57707 ac_check_lib_save_LIBS=$LIBS 57708 LIBS="-ldnet $LIBS" 57709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57710 /* end confdefs.h. */ 57711 57712 /* Override any GCC internal prototype to avoid an error. 57713 Use char because int might match the return type of a GCC 57714 builtin and then its argument prototype would still apply. */ 57715 #ifdef __cplusplus 57716 extern "C" 57717 #endif 57718 char dnet_ntoa (); 57719 int 57720 main () 57721 { 57722 return dnet_ntoa (); 57723 ; 57724 return 0; 57725 } 57726 _ACEOF 57727 if ac_fn_cxx_try_link "$LINENO"; then : 57728 ac_cv_lib_dnet_dnet_ntoa=yes 57729 else 57730 ac_cv_lib_dnet_dnet_ntoa=no 57731 fi 57732 rm -f core conftest.err conftest.$ac_objext \ 57733 conftest$ac_exeext conftest.$ac_ext 57734 LIBS=$ac_check_lib_save_LIBS 57735 fi 57736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 57737 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 57738 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 57739 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 57740 fi 57741 57742 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 57743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 57744 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 57745 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 57746 $as_echo_n "(cached) " >&6 57747 else 57748 ac_check_lib_save_LIBS=$LIBS 57749 LIBS="-ldnet_stub $LIBS" 57750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57751 /* end confdefs.h. */ 57752 57753 /* Override any GCC internal prototype to avoid an error. 57754 Use char because int might match the return type of a GCC 57755 builtin and then its argument prototype would still apply. */ 57756 #ifdef __cplusplus 57757 extern "C" 57758 #endif 57759 char dnet_ntoa (); 57760 int 57761 main () 57762 { 57763 return dnet_ntoa (); 57764 ; 57765 return 0; 57766 } 57767 _ACEOF 57768 if ac_fn_cxx_try_link "$LINENO"; then : 57769 ac_cv_lib_dnet_stub_dnet_ntoa=yes 57770 else 57771 ac_cv_lib_dnet_stub_dnet_ntoa=no 57772 fi 57773 rm -f core conftest.err conftest.$ac_objext \ 57774 conftest$ac_exeext conftest.$ac_ext 57775 LIBS=$ac_check_lib_save_LIBS 57776 fi 57777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 57778 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 57779 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 57780 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 57781 fi 57782 57783 fi 57784 fi 57785 rm -f core conftest.err conftest.$ac_objext \ 57786 conftest$ac_exeext conftest.$ac_ext 57787 LIBS="$ac_xsave_LIBS" 57788 57789 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 57790 # to get the SysV transport functions. 57791 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 57792 # needs -lnsl. 57793 # The nsl library prevents programs from opening the X display 57794 # on Irix 5.2, according to T.E. Dickey. 57795 # The functions gethostbyname, getservbyname, and inet_addr are 57796 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 57797 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 57798 if test "x$ac_cv_func_gethostbyname" = xyes; then : 57799 57800 fi 57801 57802 if test $ac_cv_func_gethostbyname = no; then 57803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 57804 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 57805 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 57806 $as_echo_n "(cached) " >&6 57807 else 57808 ac_check_lib_save_LIBS=$LIBS 57809 LIBS="-lnsl $LIBS" 57810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57811 /* end confdefs.h. */ 57812 57813 /* Override any GCC internal prototype to avoid an error. 57814 Use char because int might match the return type of a GCC 57815 builtin and then its argument prototype would still apply. */ 57816 #ifdef __cplusplus 57817 extern "C" 57818 #endif 57819 char gethostbyname (); 57820 int 57821 main () 57822 { 57823 return gethostbyname (); 57824 ; 57825 return 0; 57826 } 57827 _ACEOF 57828 if ac_fn_cxx_try_link "$LINENO"; then : 57829 ac_cv_lib_nsl_gethostbyname=yes 57830 else 57831 ac_cv_lib_nsl_gethostbyname=no 57832 fi 57833 rm -f core conftest.err conftest.$ac_objext \ 57834 conftest$ac_exeext conftest.$ac_ext 57835 LIBS=$ac_check_lib_save_LIBS 57836 fi 57837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 57838 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 57839 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 57840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 57841 fi 57842 57843 if test $ac_cv_lib_nsl_gethostbyname = no; then 57844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 57845 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 57846 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 57847 $as_echo_n "(cached) " >&6 57848 else 57849 ac_check_lib_save_LIBS=$LIBS 57850 LIBS="-lbsd $LIBS" 57851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57852 /* end confdefs.h. */ 57853 57854 /* Override any GCC internal prototype to avoid an error. 57855 Use char because int might match the return type of a GCC 57856 builtin and then its argument prototype would still apply. */ 57857 #ifdef __cplusplus 57858 extern "C" 57859 #endif 57860 char gethostbyname (); 57861 int 57862 main () 57863 { 57864 return gethostbyname (); 57865 ; 57866 return 0; 57867 } 57868 _ACEOF 57869 if ac_fn_cxx_try_link "$LINENO"; then : 57870 ac_cv_lib_bsd_gethostbyname=yes 57871 else 57872 ac_cv_lib_bsd_gethostbyname=no 57873 fi 57874 rm -f core conftest.err conftest.$ac_objext \ 57875 conftest$ac_exeext conftest.$ac_ext 57876 LIBS=$ac_check_lib_save_LIBS 57877 fi 57878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 57879 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 57880 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 57881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 57882 fi 57883 57884 fi 57885 fi 57886 57887 # lieder@skyler.mavd.honeywell.com says without -lsocket, 57888 # socket/setsockopt and other routines are undefined under SCO ODT 57889 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 57890 # on later versions), says Simon Leinen: it contains gethostby* 57891 # variants that don't use the name server (or something). -lsocket 57892 # must be given before -lnsl if both are needed. We assume that 57893 # if connect needs -lnsl, so does gethostbyname. 57894 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 57895 if test "x$ac_cv_func_connect" = xyes; then : 57896 57897 fi 57898 57899 if test $ac_cv_func_connect = no; then 57900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 57901 $as_echo_n "checking for connect in -lsocket... " >&6; } 57902 if ${ac_cv_lib_socket_connect+:} false; then : 57903 $as_echo_n "(cached) " >&6 57904 else 57905 ac_check_lib_save_LIBS=$LIBS 57906 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 57907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57908 /* end confdefs.h. */ 57909 57910 /* Override any GCC internal prototype to avoid an error. 57911 Use char because int might match the return type of a GCC 57912 builtin and then its argument prototype would still apply. */ 57913 #ifdef __cplusplus 57914 extern "C" 57915 #endif 57916 char connect (); 57917 int 57918 main () 57919 { 57920 return connect (); 57921 ; 57922 return 0; 57923 } 57924 _ACEOF 57925 if ac_fn_cxx_try_link "$LINENO"; then : 57926 ac_cv_lib_socket_connect=yes 57927 else 57928 ac_cv_lib_socket_connect=no 57929 fi 57930 rm -f core conftest.err conftest.$ac_objext \ 57931 conftest$ac_exeext conftest.$ac_ext 57932 LIBS=$ac_check_lib_save_LIBS 57933 fi 57934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 57935 $as_echo "$ac_cv_lib_socket_connect" >&6; } 57936 if test "x$ac_cv_lib_socket_connect" = xyes; then : 57937 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 57938 fi 57939 57940 fi 57941 57942 # Guillermo Gomez says -lposix is necessary on A/UX. 57943 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 57944 if test "x$ac_cv_func_remove" = xyes; then : 57945 57946 fi 57947 57948 if test $ac_cv_func_remove = no; then 57949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 57950 $as_echo_n "checking for remove in -lposix... " >&6; } 57951 if ${ac_cv_lib_posix_remove+:} false; then : 57952 $as_echo_n "(cached) " >&6 57953 else 57954 ac_check_lib_save_LIBS=$LIBS 57955 LIBS="-lposix $LIBS" 57956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57957 /* end confdefs.h. */ 57958 57959 /* Override any GCC internal prototype to avoid an error. 57960 Use char because int might match the return type of a GCC 57961 builtin and then its argument prototype would still apply. */ 57962 #ifdef __cplusplus 57963 extern "C" 57964 #endif 57965 char remove (); 57966 int 57967 main () 57968 { 57969 return remove (); 57970 ; 57971 return 0; 57972 } 57973 _ACEOF 57974 if ac_fn_cxx_try_link "$LINENO"; then : 57975 ac_cv_lib_posix_remove=yes 57976 else 57977 ac_cv_lib_posix_remove=no 57978 fi 57979 rm -f core conftest.err conftest.$ac_objext \ 57980 conftest$ac_exeext conftest.$ac_ext 57981 LIBS=$ac_check_lib_save_LIBS 57982 fi 57983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 57984 $as_echo "$ac_cv_lib_posix_remove" >&6; } 57985 if test "x$ac_cv_lib_posix_remove" = xyes; then : 57986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 57987 fi 57988 57989 fi 57990 57991 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 57992 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 57993 if test "x$ac_cv_func_shmat" = xyes; then : 57994 57995 fi 57996 57997 if test $ac_cv_func_shmat = no; then 57998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 57999 $as_echo_n "checking for shmat in -lipc... " >&6; } 58000 if ${ac_cv_lib_ipc_shmat+:} false; then : 58001 $as_echo_n "(cached) " >&6 58002 else 58003 ac_check_lib_save_LIBS=$LIBS 58004 LIBS="-lipc $LIBS" 58005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58006 /* end confdefs.h. */ 58007 58008 /* Override any GCC internal prototype to avoid an error. 58009 Use char because int might match the return type of a GCC 58010 builtin and then its argument prototype would still apply. */ 58011 #ifdef __cplusplus 58012 extern "C" 58013 #endif 58014 char shmat (); 58015 int 58016 main () 58017 { 58018 return shmat (); 58019 ; 58020 return 0; 58021 } 58022 _ACEOF 58023 if ac_fn_cxx_try_link "$LINENO"; then : 58024 ac_cv_lib_ipc_shmat=yes 58025 else 58026 ac_cv_lib_ipc_shmat=no 58027 fi 58028 rm -f core conftest.err conftest.$ac_objext \ 58029 conftest$ac_exeext conftest.$ac_ext 58030 LIBS=$ac_check_lib_save_LIBS 58031 fi 58032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 58033 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 58034 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 58035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 58036 fi 58037 58038 fi 58039 fi 58040 58041 # Check for libraries that X11R6 Xt/Xaw programs need. 58042 ac_save_LDFLAGS=$LDFLAGS 58043 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 58044 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 58045 # check for ICE first), but we must link in the order -lSM -lICE or 58046 # we get undefined symbols. So assume we have SM if we have ICE. 58047 # These have to be linked with before -lX11, unlike the other 58048 # libraries we check for below, so use a different variable. 58049 # John Interrante, Karl Berry 58050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 58051 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 58052 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 58053 $as_echo_n "(cached) " >&6 58054 else 58055 ac_check_lib_save_LIBS=$LIBS 58056 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 58057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58058 /* end confdefs.h. */ 58059 58060 /* Override any GCC internal prototype to avoid an error. 58061 Use char because int might match the return type of a GCC 58062 builtin and then its argument prototype would still apply. */ 58063 #ifdef __cplusplus 58064 extern "C" 58065 #endif 58066 char IceConnectionNumber (); 58067 int 58068 main () 58069 { 58070 return IceConnectionNumber (); 58071 ; 58072 return 0; 58073 } 58074 _ACEOF 58075 if ac_fn_cxx_try_link "$LINENO"; then : 58076 ac_cv_lib_ICE_IceConnectionNumber=yes 58077 else 58078 ac_cv_lib_ICE_IceConnectionNumber=no 58079 fi 58080 rm -f core conftest.err conftest.$ac_objext \ 58081 conftest$ac_exeext conftest.$ac_ext 58082 LIBS=$ac_check_lib_save_LIBS 58083 fi 58084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 58085 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 58086 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 58087 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 58088 fi 58089 58090 LDFLAGS=$ac_save_LDFLAGS 58091 58092 fi 58093 58094 58095 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 58096 # this doesn't make sense so we remove it. 58097 if test "x$COMPILE_TYPE" = xcross; then 58098 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 58099 fi 58100 58101 if test "x$no_x" = xyes; then 58102 58103 # Print a helpful message on how to acquire the necessary build dependency. 58104 # x11 is the help tag: freetype, cups, alsa etc 58105 MISSING_DEPENDENCY=x11 58106 58107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58108 cygwin_help $MISSING_DEPENDENCY 58109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58110 msys_help $MISSING_DEPENDENCY 58111 else 58112 PKGHANDLER_COMMAND= 58113 58114 case $PKGHANDLER in 58115 apt-get) 58116 apt_help $MISSING_DEPENDENCY ;; 58117 yum) 58118 yum_help $MISSING_DEPENDENCY ;; 58119 brew) 58120 brew_help $MISSING_DEPENDENCY ;; 58121 port) 58122 port_help $MISSING_DEPENDENCY ;; 58123 pkgutil) 58124 pkgutil_help $MISSING_DEPENDENCY ;; 58125 pkgadd) 58126 pkgadd_help $MISSING_DEPENDENCY ;; 58127 esac 58128 58129 if test "x$PKGHANDLER_COMMAND" != x; then 58130 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58131 fi 58132 fi 58133 58134 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 58135 fi 58136 58137 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 58138 OPENWIN_HOME="/usr/openwin" 58139 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 58140 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 58141 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 58142 fi 58143 58144 ac_ext=c 58145 ac_cpp='$CPP $CPPFLAGS' 58146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58148 ac_compiler_gnu=$ac_cv_c_compiler_gnu 58149 58150 OLD_CFLAGS="$CFLAGS" 58151 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 58152 58153 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 58154 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 58155 do : 58156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 58158 # include <X11/Xlib.h> 58159 # include <X11/Xutil.h> 58160 58161 58162 " 58163 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58164 cat >>confdefs.h <<_ACEOF 58165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58166 _ACEOF 58167 X11_HEADERS_OK=yes 58168 else 58169 X11_HEADERS_OK=no; break 58170 fi 58171 58172 done 58173 58174 58175 if test "x$X11_HEADERS_OK" = xno; then 58176 58177 # Print a helpful message on how to acquire the necessary build dependency. 58178 # x11 is the help tag: freetype, cups, alsa etc 58179 MISSING_DEPENDENCY=x11 58180 58181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58182 cygwin_help $MISSING_DEPENDENCY 58183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58184 msys_help $MISSING_DEPENDENCY 58185 else 58186 PKGHANDLER_COMMAND= 58187 58188 case $PKGHANDLER in 58189 apt-get) 58190 apt_help $MISSING_DEPENDENCY ;; 58191 yum) 58192 yum_help $MISSING_DEPENDENCY ;; 58193 brew) 58194 brew_help $MISSING_DEPENDENCY ;; 58195 port) 58196 port_help $MISSING_DEPENDENCY ;; 58197 pkgutil) 58198 pkgutil_help $MISSING_DEPENDENCY ;; 58199 pkgadd) 58200 pkgadd_help $MISSING_DEPENDENCY ;; 58201 esac 58202 58203 if test "x$PKGHANDLER_COMMAND" != x; then 58204 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58205 fi 58206 fi 58207 58208 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 58209 fi 58210 58211 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 58212 # defined in libawt_xawt. 58213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 58214 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 58215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58216 /* end confdefs.h. */ 58217 #include <X11/extensions/Xrender.h> 58218 int 58219 main () 58220 { 58221 XLinearGradient x; 58222 ; 58223 return 0; 58224 } 58225 _ACEOF 58226 if ac_fn_c_try_compile "$LINENO"; then : 58227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58228 $as_echo "yes" >&6; } 58229 else 58230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58231 $as_echo "no" >&6; } 58232 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 58233 fi 58234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58235 58236 CFLAGS="$OLD_CFLAGS" 58237 ac_ext=cpp 58238 ac_cpp='$CXXCPP $CPPFLAGS' 58239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 58242 58243 fi # NEEDS_LIB_X11 58244 58245 58246 58247 58248 58249 58250 # Check whether --with-cups was given. 58251 if test "${with_cups+set}" = set; then : 58252 withval=$with_cups; 58253 fi 58254 58255 58256 # Check whether --with-cups-include was given. 58257 if test "${with_cups_include+set}" = set; then : 58258 withval=$with_cups_include; 58259 fi 58260 58261 58262 if test "x$NEEDS_LIB_CUPS" = xfalse; then 58263 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 58264 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 58265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 58266 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 58267 fi 58268 CUPS_CFLAGS= 58269 else 58270 CUPS_FOUND=no 58271 58272 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 58273 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 58274 fi 58275 58276 if test "x${with_cups}" != x; then 58277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58278 $as_echo_n "checking for cups headers... " >&6; } 58279 if test -s "${with_cups}/include/cups/cups.h"; then 58280 CUPS_CFLAGS="-I${with_cups}/include" 58281 CUPS_FOUND=yes 58282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58283 $as_echo "$CUPS_FOUND" >&6; } 58284 else 58285 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 58286 fi 58287 fi 58288 if test "x${with_cups_include}" != x; then 58289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58290 $as_echo_n "checking for cups headers... " >&6; } 58291 if test -s "${with_cups_include}/cups/cups.h"; then 58292 CUPS_CFLAGS="-I${with_cups_include}" 58293 CUPS_FOUND=yes 58294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58295 $as_echo "$CUPS_FOUND" >&6; } 58296 else 58297 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 58298 fi 58299 fi 58300 if test "x$CUPS_FOUND" = xno; then 58301 # Are the cups headers installed in the default /usr/include location? 58302 for ac_header in cups/cups.h cups/ppd.h 58303 do : 58304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58305 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 58306 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58307 cat >>confdefs.h <<_ACEOF 58308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58309 _ACEOF 58310 58311 CUPS_FOUND=yes 58312 CUPS_CFLAGS= 58313 DEFAULT_CUPS=yes 58314 58315 fi 58316 58317 done 58318 58319 fi 58320 if test "x$CUPS_FOUND" = xno; then 58321 58322 # Print a helpful message on how to acquire the necessary build dependency. 58323 # cups is the help tag: freetype, cups, alsa etc 58324 MISSING_DEPENDENCY=cups 58325 58326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58327 cygwin_help $MISSING_DEPENDENCY 58328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58329 msys_help $MISSING_DEPENDENCY 58330 else 58331 PKGHANDLER_COMMAND= 58332 58333 case $PKGHANDLER in 58334 apt-get) 58335 apt_help $MISSING_DEPENDENCY ;; 58336 yum) 58337 yum_help $MISSING_DEPENDENCY ;; 58338 brew) 58339 brew_help $MISSING_DEPENDENCY ;; 58340 port) 58341 port_help $MISSING_DEPENDENCY ;; 58342 pkgutil) 58343 pkgutil_help $MISSING_DEPENDENCY ;; 58344 pkgadd) 58345 pkgadd_help $MISSING_DEPENDENCY ;; 58346 esac 58347 58348 if test "x$PKGHANDLER_COMMAND" != x; then 58349 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58350 fi 58351 fi 58352 58353 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 58354 fi 58355 fi 58356 58357 58358 58359 58360 58361 # Check whether --with-freetype was given. 58362 if test "${with_freetype+set}" = set; then : 58363 withval=$with_freetype; 58364 fi 58365 58366 58367 # Check whether --with-freetype-include was given. 58368 if test "${with_freetype_include+set}" = set; then : 58369 withval=$with_freetype_include; 58370 fi 58371 58372 58373 # Check whether --with-freetype-lib was given. 58374 if test "${with_freetype_lib+set}" = set; then : 58375 withval=$with_freetype_lib; 58376 fi 58377 58378 58379 # Check whether --with-freetype-src was given. 58380 if test "${with_freetype_src+set}" = set; then : 58381 withval=$with_freetype_src; 58382 fi 58383 58384 # Check whether --enable-freetype-bundling was given. 58385 if test "${enable_freetype_bundling+set}" = set; then : 58386 enableval=$enable_freetype_bundling; 58387 fi 58388 58389 58390 # Check whether --with-freetype-license was given. 58391 if test "${with_freetype_license+set}" = set; then : 58392 withval=$with_freetype_license; 58393 fi 58394 58395 58396 # Need to specify explicitly since it needs to be overridden on some versions of macosx 58397 FREETYPE_BASE_NAME=freetype 58398 FREETYPE_CFLAGS= 58399 FREETYPE_LIBS= 58400 FREETYPE_BUNDLE_LIB_PATH= 58401 58402 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 58403 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 58404 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 58405 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 58406 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 58407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 58408 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 58409 fi 58410 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 58411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 58412 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 58413 fi 58414 else 58415 # freetype is needed to build; go get it! 58416 58417 BUNDLE_FREETYPE="$enable_freetype_bundling" 58418 58419 if test "x$with_freetype_src" != x; then 58420 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58421 # Try to build freetype if --with-freetype-src was given on Windows 58422 58423 FREETYPE_SRC_PATH="$with_freetype_src" 58424 BUILD_FREETYPE=yes 58425 58426 # Check if the freetype sources are acessible.. 58427 if ! test -d $FREETYPE_SRC_PATH; then 58428 { $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 58429 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 58430 BUILD_FREETYPE=no 58431 fi 58432 # ..and contain a vc2010 project file 58433 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 58434 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 58435 { $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 58436 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 58437 BUILD_FREETYPE=no 58438 fi 58439 # Now check if configure found a version of 'msbuild.exe' 58440 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 58441 { $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 58442 $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;} 58443 BUILD_FREETYPE=no 58444 fi 58445 58446 # Ready to go.. 58447 if test "x$BUILD_FREETYPE" = xyes; then 58448 # msbuild requires trailing slashes for output directories 58449 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 58450 freetype_lib_path_unix="$freetype_lib_path" 58451 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 58452 58453 unix_path="$vcxproj_path" 58454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58455 windows_path=`$CYGPATH -m "$unix_path"` 58456 vcxproj_path="$windows_path" 58457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58458 windows_path=`cmd //c echo $unix_path` 58459 vcxproj_path="$windows_path" 58460 fi 58461 58462 58463 unix_path="$freetype_lib_path" 58464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58465 windows_path=`$CYGPATH -m "$unix_path"` 58466 freetype_lib_path="$windows_path" 58467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58468 windows_path=`cmd //c echo $unix_path` 58469 freetype_lib_path="$windows_path" 58470 fi 58471 58472 58473 unix_path="$freetype_obj_path" 58474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58475 windows_path=`$CYGPATH -m "$unix_path"` 58476 freetype_obj_path="$windows_path" 58477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58478 windows_path=`cmd //c echo $unix_path` 58479 freetype_obj_path="$windows_path" 58480 fi 58481 58482 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58483 freetype_platform=x64 58484 else 58485 freetype_platform=win32 58486 fi 58487 58488 # The original freetype project file is for VS 2010 (i.e. 'v100'), 58489 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 58490 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 58491 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 58492 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 58493 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 58494 58495 # First we try to build the freetype.dll 58496 $ECHO -e "@echo off\n"\ 58497 "$MSBUILD $vcxproj_path "\ 58498 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58499 "/p:Configuration=\"Release Multithreaded\" "\ 58500 "/p:Platform=$freetype_platform "\ 58501 "/p:ConfigurationType=DynamicLibrary "\ 58502 "/p:TargetName=freetype "\ 58503 "/p:OutDir=\"$freetype_lib_path\" "\ 58504 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 58505 cmd /c freetype.bat 58506 58507 if test -s "$freetype_lib_path_unix/freetype.dll"; then 58508 # If that succeeds we also build freetype.lib 58509 $ECHO -e "@echo off\n"\ 58510 "$MSBUILD $vcxproj_path "\ 58511 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58512 "/p:Configuration=\"Release Multithreaded\" "\ 58513 "/p:Platform=$freetype_platform "\ 58514 "/p:ConfigurationType=StaticLibrary "\ 58515 "/p:TargetName=freetype "\ 58516 "/p:OutDir=\"$freetype_lib_path\" "\ 58517 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 58518 cmd /c freetype.bat 58519 58520 if test -s "$freetype_lib_path_unix/freetype.lib"; then 58521 # Once we build both, lib and dll, set freetype lib and include path appropriately 58522 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 58523 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 58524 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 58525 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 58526 else 58527 BUILD_FREETYPE=no 58528 fi 58529 else 58530 BUILD_FREETYPE=no 58531 fi 58532 fi 58533 58534 if test "x$BUILD_FREETYPE" = xyes; then 58535 # Okay, we built it. Check that it works. 58536 58537 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58538 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58539 METHOD="--with-freetype-src" 58540 58541 # Let's start with an optimistic view of the world :-) 58542 FOUND_FREETYPE=yes 58543 58544 # First look for the canonical freetype main include file ft2build.h. 58545 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58546 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58547 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58548 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58549 # Fail. 58550 FOUND_FREETYPE=no 58551 fi 58552 fi 58553 58554 if test "x$FOUND_FREETYPE" = xyes; then 58555 # Include file found, let's continue the sanity check. 58556 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58557 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58558 58559 # Reset to default value 58560 FREETYPE_BASE_NAME=freetype 58561 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58562 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58563 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58564 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58565 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58566 # for the .6 version explicitly. 58567 FREETYPE_BASE_NAME=freetype.6 58568 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58569 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58570 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58571 else 58572 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58573 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58574 FOUND_FREETYPE=no 58575 fi 58576 else 58577 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58578 # On Windows, we will need both .lib and .dll file. 58579 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58580 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58581 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58582 FOUND_FREETYPE=no 58583 fi 58584 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58585 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58586 # Found lib in isa dir, use that instead. 58587 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58588 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58589 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58590 fi 58591 fi 58592 fi 58593 58594 if test "x$FOUND_FREETYPE" = xyes; then 58595 58596 # Only process if variable expands to non-empty 58597 58598 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58600 58601 # Input might be given as Windows format, start by converting to 58602 # unix format. 58603 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58604 new_path=`$CYGPATH -u "$path"` 58605 58606 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58607 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58608 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58609 # "foo.exe" is OK but "foo" is an error. 58610 # 58611 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58612 # It is also a way to make sure we got the proper file name for the real test later on. 58613 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58614 if test "x$test_shortpath" = x; then 58615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58616 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58617 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58618 fi 58619 58620 # Call helper function which possibly converts this using DOS-style short mode. 58621 # If so, the updated path is stored in $new_path. 58622 58623 input_path="$new_path" 58624 # Check if we need to convert this using DOS-style short mode. If the path 58625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58626 # take no chances and rewrite it. 58627 # Note: m4 eats our [], so we need to use [ and ] instead. 58628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58629 if test "x$has_forbidden_chars" != x; then 58630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58631 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58632 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58633 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58634 # Going to short mode and back again did indeed matter. Since short mode is 58635 # case insensitive, let's make it lowercase to improve readability. 58636 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58637 # Now convert it back to Unix-style (cygpath) 58638 input_path=`$CYGPATH -u "$shortmode_path"` 58639 new_path="$input_path" 58640 fi 58641 fi 58642 58643 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58644 if test "x$test_cygdrive_prefix" = x; then 58645 # As a simple fix, exclude /usr/bin since it's not a real path. 58646 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58647 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58648 # a path prefixed by /cygdrive for fixpath to work. 58649 new_path="$CYGWIN_ROOT_PATH$input_path" 58650 fi 58651 fi 58652 58653 58654 if test "x$path" != "x$new_path"; then 58655 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58657 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58658 fi 58659 58660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58661 58662 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58663 has_colon=`$ECHO $path | $GREP ^.:` 58664 new_path="$path" 58665 if test "x$has_colon" = x; then 58666 # Not in mixed or Windows style, start by that. 58667 new_path=`cmd //c echo $path` 58668 fi 58669 58670 58671 input_path="$new_path" 58672 # Check if we need to convert this using DOS-style short mode. If the path 58673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58674 # take no chances and rewrite it. 58675 # Note: m4 eats our [], so we need to use [ and ] instead. 58676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58677 if test "x$has_forbidden_chars" != x; then 58678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58679 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58680 fi 58681 58682 58683 windows_path="$new_path" 58684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58685 unix_path=`$CYGPATH -u "$windows_path"` 58686 new_path="$unix_path" 58687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58689 new_path="$unix_path" 58690 fi 58691 58692 if test "x$path" != "x$new_path"; then 58693 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58694 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58695 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58696 fi 58697 58698 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58699 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58700 58701 else 58702 # We're on a unix platform. Hooray! :) 58703 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58704 has_space=`$ECHO "$path" | $GREP " "` 58705 if test "x$has_space" != x; then 58706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58707 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58708 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58709 fi 58710 58711 # Use eval to expand a potential ~ 58712 eval path="$path" 58713 if test ! -f "$path" && test ! -d "$path"; then 58714 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58715 fi 58716 58717 if test -d "$path"; then 58718 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58719 else 58720 dir="`$DIRNAME "$path"`" 58721 base="`$BASENAME "$path"`" 58722 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58723 fi 58724 fi 58725 fi 58726 58727 58728 # Only process if variable expands to non-empty 58729 58730 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58732 58733 # Input might be given as Windows format, start by converting to 58734 # unix format. 58735 path="$POTENTIAL_FREETYPE_LIB_PATH" 58736 new_path=`$CYGPATH -u "$path"` 58737 58738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58741 # "foo.exe" is OK but "foo" is an error. 58742 # 58743 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58744 # It is also a way to make sure we got the proper file name for the real test later on. 58745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58746 if test "x$test_shortpath" = x; then 58747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58748 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58749 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58750 fi 58751 58752 # Call helper function which possibly converts this using DOS-style short mode. 58753 # If so, the updated path is stored in $new_path. 58754 58755 input_path="$new_path" 58756 # Check if we need to convert this using DOS-style short mode. If the path 58757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58758 # take no chances and rewrite it. 58759 # Note: m4 eats our [], so we need to use [ and ] instead. 58760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58761 if test "x$has_forbidden_chars" != x; then 58762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58763 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58764 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58765 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58766 # Going to short mode and back again did indeed matter. Since short mode is 58767 # case insensitive, let's make it lowercase to improve readability. 58768 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58769 # Now convert it back to Unix-style (cygpath) 58770 input_path=`$CYGPATH -u "$shortmode_path"` 58771 new_path="$input_path" 58772 fi 58773 fi 58774 58775 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58776 if test "x$test_cygdrive_prefix" = x; then 58777 # As a simple fix, exclude /usr/bin since it's not a real path. 58778 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58779 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58780 # a path prefixed by /cygdrive for fixpath to work. 58781 new_path="$CYGWIN_ROOT_PATH$input_path" 58782 fi 58783 fi 58784 58785 58786 if test "x$path" != "x$new_path"; then 58787 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58789 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58790 fi 58791 58792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58793 58794 path="$POTENTIAL_FREETYPE_LIB_PATH" 58795 has_colon=`$ECHO $path | $GREP ^.:` 58796 new_path="$path" 58797 if test "x$has_colon" = x; then 58798 # Not in mixed or Windows style, start by that. 58799 new_path=`cmd //c echo $path` 58800 fi 58801 58802 58803 input_path="$new_path" 58804 # Check if we need to convert this using DOS-style short mode. If the path 58805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58806 # take no chances and rewrite it. 58807 # Note: m4 eats our [], so we need to use [ and ] instead. 58808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58809 if test "x$has_forbidden_chars" != x; then 58810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58811 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58812 fi 58813 58814 58815 windows_path="$new_path" 58816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58817 unix_path=`$CYGPATH -u "$windows_path"` 58818 new_path="$unix_path" 58819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58821 new_path="$unix_path" 58822 fi 58823 58824 if test "x$path" != "x$new_path"; then 58825 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58827 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58828 fi 58829 58830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58832 58833 else 58834 # We're on a unix platform. Hooray! :) 58835 path="$POTENTIAL_FREETYPE_LIB_PATH" 58836 has_space=`$ECHO "$path" | $GREP " "` 58837 if test "x$has_space" != x; then 58838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58839 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58840 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58841 fi 58842 58843 # Use eval to expand a potential ~ 58844 eval path="$path" 58845 if test ! -f "$path" && test ! -d "$path"; then 58846 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58847 fi 58848 58849 if test -d "$path"; then 58850 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58851 else 58852 dir="`$DIRNAME "$path"`" 58853 base="`$BASENAME "$path"`" 58854 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58855 fi 58856 fi 58857 fi 58858 58859 58860 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58862 $as_echo_n "checking for freetype includes... " >&6; } 58863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58864 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58865 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58867 $as_echo_n "checking for freetype libraries... " >&6; } 58868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58869 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58870 fi 58871 58872 if test "x$FOUND_FREETYPE" != xyes; then 58873 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 58874 fi 58875 else 58876 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 58877 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 58878 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 58879 fi 58880 else 58881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 58882 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 58883 fi 58884 fi 58885 58886 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 58887 # User has specified settings 58888 58889 if test "x$BUNDLE_FREETYPE" = x; then 58890 # If not specified, default is to bundle freetype 58891 BUNDLE_FREETYPE=yes 58892 fi 58893 58894 if test "x$with_freetype" != x; then 58895 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 58896 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 58897 fi 58898 58899 # Allow --with-freetype-lib and --with-freetype-include to override 58900 if test "x$with_freetype_include" != x; then 58901 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 58902 fi 58903 if test "x$with_freetype_lib" != x; then 58904 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 58905 fi 58906 58907 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58908 # Okay, we got it. Check that it works. 58909 58910 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58911 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58912 METHOD="--with-freetype" 58913 58914 # Let's start with an optimistic view of the world :-) 58915 FOUND_FREETYPE=yes 58916 58917 # First look for the canonical freetype main include file ft2build.h. 58918 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58919 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58920 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58921 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58922 # Fail. 58923 FOUND_FREETYPE=no 58924 fi 58925 fi 58926 58927 if test "x$FOUND_FREETYPE" = xyes; then 58928 # Include file found, let's continue the sanity check. 58929 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58930 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58931 58932 # Reset to default value 58933 FREETYPE_BASE_NAME=freetype 58934 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58935 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58936 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58937 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58938 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58939 # for the .6 version explicitly. 58940 FREETYPE_BASE_NAME=freetype.6 58941 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58942 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58943 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58944 else 58945 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58946 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58947 FOUND_FREETYPE=no 58948 fi 58949 else 58950 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58951 # On Windows, we will need both .lib and .dll file. 58952 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58953 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58954 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58955 FOUND_FREETYPE=no 58956 fi 58957 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58958 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58959 # Found lib in isa dir, use that instead. 58960 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58962 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58963 fi 58964 fi 58965 fi 58966 58967 if test "x$FOUND_FREETYPE" = xyes; then 58968 58969 # Only process if variable expands to non-empty 58970 58971 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58973 58974 # Input might be given as Windows format, start by converting to 58975 # unix format. 58976 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58977 new_path=`$CYGPATH -u "$path"` 58978 58979 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58980 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58981 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58982 # "foo.exe" is OK but "foo" is an error. 58983 # 58984 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58985 # It is also a way to make sure we got the proper file name for the real test later on. 58986 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58987 if test "x$test_shortpath" = x; then 58988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58989 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58990 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58991 fi 58992 58993 # Call helper function which possibly converts this using DOS-style short mode. 58994 # If so, the updated path is stored in $new_path. 58995 58996 input_path="$new_path" 58997 # Check if we need to convert this using DOS-style short mode. If the path 58998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58999 # take no chances and rewrite it. 59000 # Note: m4 eats our [], so we need to use [ and ] instead. 59001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59002 if test "x$has_forbidden_chars" != x; then 59003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59004 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59005 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59006 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59007 # Going to short mode and back again did indeed matter. Since short mode is 59008 # case insensitive, let's make it lowercase to improve readability. 59009 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59010 # Now convert it back to Unix-style (cygpath) 59011 input_path=`$CYGPATH -u "$shortmode_path"` 59012 new_path="$input_path" 59013 fi 59014 fi 59015 59016 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59017 if test "x$test_cygdrive_prefix" = x; then 59018 # As a simple fix, exclude /usr/bin since it's not a real path. 59019 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59020 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59021 # a path prefixed by /cygdrive for fixpath to work. 59022 new_path="$CYGWIN_ROOT_PATH$input_path" 59023 fi 59024 fi 59025 59026 59027 if test "x$path" != "x$new_path"; then 59028 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59030 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59031 fi 59032 59033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59034 59035 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59036 has_colon=`$ECHO $path | $GREP ^.:` 59037 new_path="$path" 59038 if test "x$has_colon" = x; then 59039 # Not in mixed or Windows style, start by that. 59040 new_path=`cmd //c echo $path` 59041 fi 59042 59043 59044 input_path="$new_path" 59045 # Check if we need to convert this using DOS-style short mode. If the path 59046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59047 # take no chances and rewrite it. 59048 # Note: m4 eats our [], so we need to use [ and ] instead. 59049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59050 if test "x$has_forbidden_chars" != x; then 59051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59052 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59053 fi 59054 59055 59056 windows_path="$new_path" 59057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59058 unix_path=`$CYGPATH -u "$windows_path"` 59059 new_path="$unix_path" 59060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59062 new_path="$unix_path" 59063 fi 59064 59065 if test "x$path" != "x$new_path"; then 59066 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59068 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59069 fi 59070 59071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59073 59074 else 59075 # We're on a unix platform. Hooray! :) 59076 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59077 has_space=`$ECHO "$path" | $GREP " "` 59078 if test "x$has_space" != x; then 59079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59080 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59081 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59082 fi 59083 59084 # Use eval to expand a potential ~ 59085 eval path="$path" 59086 if test ! -f "$path" && test ! -d "$path"; then 59087 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59088 fi 59089 59090 if test -d "$path"; then 59091 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59092 else 59093 dir="`$DIRNAME "$path"`" 59094 base="`$BASENAME "$path"`" 59095 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59096 fi 59097 fi 59098 fi 59099 59100 59101 # Only process if variable expands to non-empty 59102 59103 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59105 59106 # Input might be given as Windows format, start by converting to 59107 # unix format. 59108 path="$POTENTIAL_FREETYPE_LIB_PATH" 59109 new_path=`$CYGPATH -u "$path"` 59110 59111 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59112 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59113 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59114 # "foo.exe" is OK but "foo" is an error. 59115 # 59116 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59117 # It is also a way to make sure we got the proper file name for the real test later on. 59118 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59119 if test "x$test_shortpath" = x; then 59120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59121 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59122 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59123 fi 59124 59125 # Call helper function which possibly converts this using DOS-style short mode. 59126 # If so, the updated path is stored in $new_path. 59127 59128 input_path="$new_path" 59129 # Check if we need to convert this using DOS-style short mode. If the path 59130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59131 # take no chances and rewrite it. 59132 # Note: m4 eats our [], so we need to use [ and ] instead. 59133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59134 if test "x$has_forbidden_chars" != x; then 59135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59136 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59137 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59138 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59139 # Going to short mode and back again did indeed matter. Since short mode is 59140 # case insensitive, let's make it lowercase to improve readability. 59141 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59142 # Now convert it back to Unix-style (cygpath) 59143 input_path=`$CYGPATH -u "$shortmode_path"` 59144 new_path="$input_path" 59145 fi 59146 fi 59147 59148 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59149 if test "x$test_cygdrive_prefix" = x; then 59150 # As a simple fix, exclude /usr/bin since it's not a real path. 59151 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59152 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59153 # a path prefixed by /cygdrive for fixpath to work. 59154 new_path="$CYGWIN_ROOT_PATH$input_path" 59155 fi 59156 fi 59157 59158 59159 if test "x$path" != "x$new_path"; then 59160 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59162 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59163 fi 59164 59165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59166 59167 path="$POTENTIAL_FREETYPE_LIB_PATH" 59168 has_colon=`$ECHO $path | $GREP ^.:` 59169 new_path="$path" 59170 if test "x$has_colon" = x; then 59171 # Not in mixed or Windows style, start by that. 59172 new_path=`cmd //c echo $path` 59173 fi 59174 59175 59176 input_path="$new_path" 59177 # Check if we need to convert this using DOS-style short mode. If the path 59178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59179 # take no chances and rewrite it. 59180 # Note: m4 eats our [], so we need to use [ and ] instead. 59181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59182 if test "x$has_forbidden_chars" != x; then 59183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59184 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59185 fi 59186 59187 59188 windows_path="$new_path" 59189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59190 unix_path=`$CYGPATH -u "$windows_path"` 59191 new_path="$unix_path" 59192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59194 new_path="$unix_path" 59195 fi 59196 59197 if test "x$path" != "x$new_path"; then 59198 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59199 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59200 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59201 fi 59202 59203 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59204 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59205 59206 else 59207 # We're on a unix platform. Hooray! :) 59208 path="$POTENTIAL_FREETYPE_LIB_PATH" 59209 has_space=`$ECHO "$path" | $GREP " "` 59210 if test "x$has_space" != x; then 59211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59212 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59213 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59214 fi 59215 59216 # Use eval to expand a potential ~ 59217 eval path="$path" 59218 if test ! -f "$path" && test ! -d "$path"; then 59219 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59220 fi 59221 59222 if test -d "$path"; then 59223 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59224 else 59225 dir="`$DIRNAME "$path"`" 59226 base="`$BASENAME "$path"`" 59227 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59228 fi 59229 fi 59230 fi 59231 59232 59233 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59235 $as_echo_n "checking for freetype includes... " >&6; } 59236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59237 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59238 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59240 $as_echo_n "checking for freetype libraries... " >&6; } 59241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59242 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59243 fi 59244 59245 if test "x$FOUND_FREETYPE" != xyes; then 59246 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 59247 fi 59248 else 59249 # User specified only one of lib or include. This is an error. 59250 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 59251 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 59252 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 59253 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59254 else 59255 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 59256 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 59257 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59258 fi 59259 fi 59260 else 59261 # User did not specify settings, but we need freetype. Try to locate it. 59262 59263 if test "x$BUNDLE_FREETYPE" = x; then 59264 # If not specified, default is to bundle freetype only on windows 59265 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59266 BUNDLE_FREETYPE=yes 59267 else 59268 BUNDLE_FREETYPE=no 59269 fi 59270 fi 59271 59272 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 59273 if test "x$SYSROOT" = x; then 59274 if test "x$FOUND_FREETYPE" != xyes; then 59275 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 59276 if test "x$PKG_CONFIG" != x; then 59277 59278 pkg_failed=no 59279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 59280 $as_echo_n "checking for FREETYPE... " >&6; } 59281 59282 if test -n "$FREETYPE_CFLAGS"; then 59283 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 59284 elif test -n "$PKG_CONFIG"; then 59285 if test -n "$PKG_CONFIG" && \ 59286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59287 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59288 ac_status=$? 59289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59290 test $ac_status = 0; }; then 59291 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 59292 else 59293 pkg_failed=yes 59294 fi 59295 else 59296 pkg_failed=untried 59297 fi 59298 if test -n "$FREETYPE_LIBS"; then 59299 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 59300 elif test -n "$PKG_CONFIG"; then 59301 if test -n "$PKG_CONFIG" && \ 59302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59303 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59304 ac_status=$? 59305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59306 test $ac_status = 0; }; then 59307 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 59308 else 59309 pkg_failed=yes 59310 fi 59311 else 59312 pkg_failed=untried 59313 fi 59314 59315 59316 59317 if test $pkg_failed = yes; then 59318 59319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 59320 _pkg_short_errors_supported=yes 59321 else 59322 _pkg_short_errors_supported=no 59323 fi 59324 if test $_pkg_short_errors_supported = yes; then 59325 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 59326 else 59327 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 59328 fi 59329 # Put the nasty error message in config.log where it belongs 59330 echo "$FREETYPE_PKG_ERRORS" >&5 59331 59332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59333 $as_echo "no" >&6; } 59334 FOUND_FREETYPE=no 59335 elif test $pkg_failed = untried; then 59336 FOUND_FREETYPE=no 59337 else 59338 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 59339 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 59340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59341 $as_echo "yes" >&6; } 59342 FOUND_FREETYPE=yes 59343 fi 59344 if test "x$FOUND_FREETYPE" = xyes; then 59345 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 59346 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 59347 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 59348 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 59349 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 59350 fi 59351 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 59352 if test "x$BUNDLE_FREETYPE" = xyes; then 59353 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 59354 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 59355 FOUND_FREETYPE=no 59356 else 59357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 59358 $as_echo_n "checking for freetype... " >&6; } 59359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 59360 $as_echo "yes (using pkg-config)" >&6; } 59361 fi 59362 fi 59363 fi 59364 fi 59365 fi 59366 59367 if test "x$FOUND_FREETYPE" != xyes; then 59368 # Check in well-known locations 59369 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59370 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 59371 59372 windows_path="$FREETYPE_BASE_DIR" 59373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59374 unix_path=`$CYGPATH -u "$windows_path"` 59375 FREETYPE_BASE_DIR="$unix_path" 59376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59378 FREETYPE_BASE_DIR="$unix_path" 59379 fi 59380 59381 59382 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59383 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59384 METHOD="well-known location" 59385 59386 # Let's start with an optimistic view of the world :-) 59387 FOUND_FREETYPE=yes 59388 59389 # First look for the canonical freetype main include file ft2build.h. 59390 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59391 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59392 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59393 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59394 # Fail. 59395 FOUND_FREETYPE=no 59396 fi 59397 fi 59398 59399 if test "x$FOUND_FREETYPE" = xyes; then 59400 # Include file found, let's continue the sanity check. 59401 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59402 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59403 59404 # Reset to default value 59405 FREETYPE_BASE_NAME=freetype 59406 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59407 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59408 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59409 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59410 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59411 # for the .6 version explicitly. 59412 FREETYPE_BASE_NAME=freetype.6 59413 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59414 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59415 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59416 else 59417 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59418 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59419 FOUND_FREETYPE=no 59420 fi 59421 else 59422 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59423 # On Windows, we will need both .lib and .dll file. 59424 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59425 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59426 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59427 FOUND_FREETYPE=no 59428 fi 59429 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59430 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59431 # Found lib in isa dir, use that instead. 59432 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59433 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59434 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59435 fi 59436 fi 59437 fi 59438 59439 if test "x$FOUND_FREETYPE" = xyes; then 59440 59441 # Only process if variable expands to non-empty 59442 59443 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59445 59446 # Input might be given as Windows format, start by converting to 59447 # unix format. 59448 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59449 new_path=`$CYGPATH -u "$path"` 59450 59451 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59452 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59453 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59454 # "foo.exe" is OK but "foo" is an error. 59455 # 59456 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59457 # It is also a way to make sure we got the proper file name for the real test later on. 59458 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59459 if test "x$test_shortpath" = x; then 59460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59461 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59462 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59463 fi 59464 59465 # Call helper function which possibly converts this using DOS-style short mode. 59466 # If so, the updated path is stored in $new_path. 59467 59468 input_path="$new_path" 59469 # Check if we need to convert this using DOS-style short mode. If the path 59470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59471 # take no chances and rewrite it. 59472 # Note: m4 eats our [], so we need to use [ and ] instead. 59473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59474 if test "x$has_forbidden_chars" != x; then 59475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59476 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59477 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59478 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59479 # Going to short mode and back again did indeed matter. Since short mode is 59480 # case insensitive, let's make it lowercase to improve readability. 59481 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59482 # Now convert it back to Unix-style (cygpath) 59483 input_path=`$CYGPATH -u "$shortmode_path"` 59484 new_path="$input_path" 59485 fi 59486 fi 59487 59488 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59489 if test "x$test_cygdrive_prefix" = x; then 59490 # As a simple fix, exclude /usr/bin since it's not a real path. 59491 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59492 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59493 # a path prefixed by /cygdrive for fixpath to work. 59494 new_path="$CYGWIN_ROOT_PATH$input_path" 59495 fi 59496 fi 59497 59498 59499 if test "x$path" != "x$new_path"; then 59500 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59502 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59503 fi 59504 59505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59506 59507 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59508 has_colon=`$ECHO $path | $GREP ^.:` 59509 new_path="$path" 59510 if test "x$has_colon" = x; then 59511 # Not in mixed or Windows style, start by that. 59512 new_path=`cmd //c echo $path` 59513 fi 59514 59515 59516 input_path="$new_path" 59517 # Check if we need to convert this using DOS-style short mode. If the path 59518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59519 # take no chances and rewrite it. 59520 # Note: m4 eats our [], so we need to use [ and ] instead. 59521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59522 if test "x$has_forbidden_chars" != x; then 59523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59524 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59525 fi 59526 59527 59528 windows_path="$new_path" 59529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59530 unix_path=`$CYGPATH -u "$windows_path"` 59531 new_path="$unix_path" 59532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59534 new_path="$unix_path" 59535 fi 59536 59537 if test "x$path" != "x$new_path"; then 59538 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59540 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59541 fi 59542 59543 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59544 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59545 59546 else 59547 # We're on a unix platform. Hooray! :) 59548 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59549 has_space=`$ECHO "$path" | $GREP " "` 59550 if test "x$has_space" != x; then 59551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59552 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59553 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59554 fi 59555 59556 # Use eval to expand a potential ~ 59557 eval path="$path" 59558 if test ! -f "$path" && test ! -d "$path"; then 59559 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59560 fi 59561 59562 if test -d "$path"; then 59563 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59564 else 59565 dir="`$DIRNAME "$path"`" 59566 base="`$BASENAME "$path"`" 59567 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59568 fi 59569 fi 59570 fi 59571 59572 59573 # Only process if variable expands to non-empty 59574 59575 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59577 59578 # Input might be given as Windows format, start by converting to 59579 # unix format. 59580 path="$POTENTIAL_FREETYPE_LIB_PATH" 59581 new_path=`$CYGPATH -u "$path"` 59582 59583 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59584 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59585 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59586 # "foo.exe" is OK but "foo" is an error. 59587 # 59588 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59589 # It is also a way to make sure we got the proper file name for the real test later on. 59590 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59591 if test "x$test_shortpath" = x; then 59592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59593 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59594 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59595 fi 59596 59597 # Call helper function which possibly converts this using DOS-style short mode. 59598 # If so, the updated path is stored in $new_path. 59599 59600 input_path="$new_path" 59601 # Check if we need to convert this using DOS-style short mode. If the path 59602 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59603 # take no chances and rewrite it. 59604 # Note: m4 eats our [], so we need to use [ and ] instead. 59605 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59606 if test "x$has_forbidden_chars" != x; then 59607 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59608 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59609 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59610 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59611 # Going to short mode and back again did indeed matter. Since short mode is 59612 # case insensitive, let's make it lowercase to improve readability. 59613 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59614 # Now convert it back to Unix-style (cygpath) 59615 input_path=`$CYGPATH -u "$shortmode_path"` 59616 new_path="$input_path" 59617 fi 59618 fi 59619 59620 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59621 if test "x$test_cygdrive_prefix" = x; then 59622 # As a simple fix, exclude /usr/bin since it's not a real path. 59623 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59624 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59625 # a path prefixed by /cygdrive for fixpath to work. 59626 new_path="$CYGWIN_ROOT_PATH$input_path" 59627 fi 59628 fi 59629 59630 59631 if test "x$path" != "x$new_path"; then 59632 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59634 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59635 fi 59636 59637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59638 59639 path="$POTENTIAL_FREETYPE_LIB_PATH" 59640 has_colon=`$ECHO $path | $GREP ^.:` 59641 new_path="$path" 59642 if test "x$has_colon" = x; then 59643 # Not in mixed or Windows style, start by that. 59644 new_path=`cmd //c echo $path` 59645 fi 59646 59647 59648 input_path="$new_path" 59649 # Check if we need to convert this using DOS-style short mode. If the path 59650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59651 # take no chances and rewrite it. 59652 # Note: m4 eats our [], so we need to use [ and ] instead. 59653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59654 if test "x$has_forbidden_chars" != x; then 59655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59656 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59657 fi 59658 59659 59660 windows_path="$new_path" 59661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59662 unix_path=`$CYGPATH -u "$windows_path"` 59663 new_path="$unix_path" 59664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59666 new_path="$unix_path" 59667 fi 59668 59669 if test "x$path" != "x$new_path"; then 59670 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59671 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59672 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59673 fi 59674 59675 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59676 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59677 59678 else 59679 # We're on a unix platform. Hooray! :) 59680 path="$POTENTIAL_FREETYPE_LIB_PATH" 59681 has_space=`$ECHO "$path" | $GREP " "` 59682 if test "x$has_space" != x; then 59683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59684 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59685 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59686 fi 59687 59688 # Use eval to expand a potential ~ 59689 eval path="$path" 59690 if test ! -f "$path" && test ! -d "$path"; then 59691 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59692 fi 59693 59694 if test -d "$path"; then 59695 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59696 else 59697 dir="`$DIRNAME "$path"`" 59698 base="`$BASENAME "$path"`" 59699 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59700 fi 59701 fi 59702 fi 59703 59704 59705 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59707 $as_echo_n "checking for freetype includes... " >&6; } 59708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59709 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59710 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59712 $as_echo_n "checking for freetype libraries... " >&6; } 59713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59714 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59715 fi 59716 59717 if test "x$FOUND_FREETYPE" != xyes; then 59718 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 59719 59720 windows_path="$FREETYPE_BASE_DIR" 59721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59722 unix_path=`$CYGPATH -u "$windows_path"` 59723 FREETYPE_BASE_DIR="$unix_path" 59724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59725 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59726 FREETYPE_BASE_DIR="$unix_path" 59727 fi 59728 59729 59730 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59731 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59732 METHOD="well-known location" 59733 59734 # Let's start with an optimistic view of the world :-) 59735 FOUND_FREETYPE=yes 59736 59737 # First look for the canonical freetype main include file ft2build.h. 59738 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59739 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59740 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59741 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59742 # Fail. 59743 FOUND_FREETYPE=no 59744 fi 59745 fi 59746 59747 if test "x$FOUND_FREETYPE" = xyes; then 59748 # Include file found, let's continue the sanity check. 59749 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59750 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59751 59752 # Reset to default value 59753 FREETYPE_BASE_NAME=freetype 59754 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59755 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59756 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59757 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59758 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59759 # for the .6 version explicitly. 59760 FREETYPE_BASE_NAME=freetype.6 59761 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59762 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59763 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59764 else 59765 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59766 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59767 FOUND_FREETYPE=no 59768 fi 59769 else 59770 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59771 # On Windows, we will need both .lib and .dll file. 59772 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59773 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59774 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59775 FOUND_FREETYPE=no 59776 fi 59777 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59778 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59779 # Found lib in isa dir, use that instead. 59780 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59782 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59783 fi 59784 fi 59785 fi 59786 59787 if test "x$FOUND_FREETYPE" = xyes; then 59788 59789 # Only process if variable expands to non-empty 59790 59791 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59793 59794 # Input might be given as Windows format, start by converting to 59795 # unix format. 59796 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59797 new_path=`$CYGPATH -u "$path"` 59798 59799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59802 # "foo.exe" is OK but "foo" is an error. 59803 # 59804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59805 # It is also a way to make sure we got the proper file name for the real test later on. 59806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59807 if test "x$test_shortpath" = x; then 59808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59809 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59810 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59811 fi 59812 59813 # Call helper function which possibly converts this using DOS-style short mode. 59814 # If so, the updated path is stored in $new_path. 59815 59816 input_path="$new_path" 59817 # Check if we need to convert this using DOS-style short mode. If the path 59818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59819 # take no chances and rewrite it. 59820 # Note: m4 eats our [], so we need to use [ and ] instead. 59821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59822 if test "x$has_forbidden_chars" != x; then 59823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59827 # Going to short mode and back again did indeed matter. Since short mode is 59828 # case insensitive, let's make it lowercase to improve readability. 59829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59830 # Now convert it back to Unix-style (cygpath) 59831 input_path=`$CYGPATH -u "$shortmode_path"` 59832 new_path="$input_path" 59833 fi 59834 fi 59835 59836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59837 if test "x$test_cygdrive_prefix" = x; then 59838 # As a simple fix, exclude /usr/bin since it's not a real path. 59839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59841 # a path prefixed by /cygdrive for fixpath to work. 59842 new_path="$CYGWIN_ROOT_PATH$input_path" 59843 fi 59844 fi 59845 59846 59847 if test "x$path" != "x$new_path"; then 59848 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59850 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59851 fi 59852 59853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59854 59855 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59856 has_colon=`$ECHO $path | $GREP ^.:` 59857 new_path="$path" 59858 if test "x$has_colon" = x; then 59859 # Not in mixed or Windows style, start by that. 59860 new_path=`cmd //c echo $path` 59861 fi 59862 59863 59864 input_path="$new_path" 59865 # Check if we need to convert this using DOS-style short mode. If the path 59866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59867 # take no chances and rewrite it. 59868 # Note: m4 eats our [], so we need to use [ and ] instead. 59869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59870 if test "x$has_forbidden_chars" != x; then 59871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59873 fi 59874 59875 59876 windows_path="$new_path" 59877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59878 unix_path=`$CYGPATH -u "$windows_path"` 59879 new_path="$unix_path" 59880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59882 new_path="$unix_path" 59883 fi 59884 59885 if test "x$path" != "x$new_path"; then 59886 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59888 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59889 fi 59890 59891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59893 59894 else 59895 # We're on a unix platform. Hooray! :) 59896 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59897 has_space=`$ECHO "$path" | $GREP " "` 59898 if test "x$has_space" != x; then 59899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59900 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59902 fi 59903 59904 # Use eval to expand a potential ~ 59905 eval path="$path" 59906 if test ! -f "$path" && test ! -d "$path"; then 59907 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59908 fi 59909 59910 if test -d "$path"; then 59911 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59912 else 59913 dir="`$DIRNAME "$path"`" 59914 base="`$BASENAME "$path"`" 59915 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59916 fi 59917 fi 59918 fi 59919 59920 59921 # Only process if variable expands to non-empty 59922 59923 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59925 59926 # Input might be given as Windows format, start by converting to 59927 # unix format. 59928 path="$POTENTIAL_FREETYPE_LIB_PATH" 59929 new_path=`$CYGPATH -u "$path"` 59930 59931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59934 # "foo.exe" is OK but "foo" is an error. 59935 # 59936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59937 # It is also a way to make sure we got the proper file name for the real test later on. 59938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59939 if test "x$test_shortpath" = x; then 59940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59942 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59943 fi 59944 59945 # Call helper function which possibly converts this using DOS-style short mode. 59946 # If so, the updated path is stored in $new_path. 59947 59948 input_path="$new_path" 59949 # Check if we need to convert this using DOS-style short mode. If the path 59950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59951 # take no chances and rewrite it. 59952 # Note: m4 eats our [], so we need to use [ and ] instead. 59953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59954 if test "x$has_forbidden_chars" != x; then 59955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59959 # Going to short mode and back again did indeed matter. Since short mode is 59960 # case insensitive, let's make it lowercase to improve readability. 59961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59962 # Now convert it back to Unix-style (cygpath) 59963 input_path=`$CYGPATH -u "$shortmode_path"` 59964 new_path="$input_path" 59965 fi 59966 fi 59967 59968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59969 if test "x$test_cygdrive_prefix" = x; then 59970 # As a simple fix, exclude /usr/bin since it's not a real path. 59971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59973 # a path prefixed by /cygdrive for fixpath to work. 59974 new_path="$CYGWIN_ROOT_PATH$input_path" 59975 fi 59976 fi 59977 59978 59979 if test "x$path" != "x$new_path"; then 59980 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59983 fi 59984 59985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59986 59987 path="$POTENTIAL_FREETYPE_LIB_PATH" 59988 has_colon=`$ECHO $path | $GREP ^.:` 59989 new_path="$path" 59990 if test "x$has_colon" = x; then 59991 # Not in mixed or Windows style, start by that. 59992 new_path=`cmd //c echo $path` 59993 fi 59994 59995 59996 input_path="$new_path" 59997 # Check if we need to convert this using DOS-style short mode. If the path 59998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59999 # take no chances and rewrite it. 60000 # Note: m4 eats our [], so we need to use [ and ] instead. 60001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60002 if test "x$has_forbidden_chars" != x; then 60003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60005 fi 60006 60007 60008 windows_path="$new_path" 60009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60010 unix_path=`$CYGPATH -u "$windows_path"` 60011 new_path="$unix_path" 60012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60014 new_path="$unix_path" 60015 fi 60016 60017 if test "x$path" != "x$new_path"; then 60018 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60020 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60021 fi 60022 60023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60025 60026 else 60027 # We're on a unix platform. Hooray! :) 60028 path="$POTENTIAL_FREETYPE_LIB_PATH" 60029 has_space=`$ECHO "$path" | $GREP " "` 60030 if test "x$has_space" != x; then 60031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60034 fi 60035 60036 # Use eval to expand a potential ~ 60037 eval path="$path" 60038 if test ! -f "$path" && test ! -d "$path"; then 60039 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60040 fi 60041 60042 if test -d "$path"; then 60043 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60044 else 60045 dir="`$DIRNAME "$path"`" 60046 base="`$BASENAME "$path"`" 60047 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60048 fi 60049 fi 60050 fi 60051 60052 60053 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60055 $as_echo_n "checking for freetype includes... " >&6; } 60056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60057 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60058 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60060 $as_echo_n "checking for freetype libraries... " >&6; } 60061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60062 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60063 fi 60064 60065 fi 60066 if test "x$FOUND_FREETYPE" != xyes; then 60067 FREETYPE_BASE_DIR="$HOME/freetype" 60068 60069 windows_path="$FREETYPE_BASE_DIR" 60070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60071 unix_path=`$CYGPATH -u "$windows_path"` 60072 FREETYPE_BASE_DIR="$unix_path" 60073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60074 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60075 FREETYPE_BASE_DIR="$unix_path" 60076 fi 60077 60078 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60079 60080 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60081 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 60082 METHOD="well-known location" 60083 60084 # Let's start with an optimistic view of the world :-) 60085 FOUND_FREETYPE=yes 60086 60087 # First look for the canonical freetype main include file ft2build.h. 60088 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60089 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60090 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60091 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60092 # Fail. 60093 FOUND_FREETYPE=no 60094 fi 60095 fi 60096 60097 if test "x$FOUND_FREETYPE" = xyes; then 60098 # Include file found, let's continue the sanity check. 60099 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60100 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60101 60102 # Reset to default value 60103 FREETYPE_BASE_NAME=freetype 60104 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60105 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60106 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60107 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60108 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60109 # for the .6 version explicitly. 60110 FREETYPE_BASE_NAME=freetype.6 60111 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60112 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60113 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60114 else 60115 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60116 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60117 FOUND_FREETYPE=no 60118 fi 60119 else 60120 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60121 # On Windows, we will need both .lib and .dll file. 60122 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60123 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60124 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60125 FOUND_FREETYPE=no 60126 fi 60127 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60128 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60129 # Found lib in isa dir, use that instead. 60130 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60132 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60133 fi 60134 fi 60135 fi 60136 60137 if test "x$FOUND_FREETYPE" = xyes; then 60138 60139 # Only process if variable expands to non-empty 60140 60141 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60143 60144 # Input might be given as Windows format, start by converting to 60145 # unix format. 60146 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60147 new_path=`$CYGPATH -u "$path"` 60148 60149 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60150 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60151 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60152 # "foo.exe" is OK but "foo" is an error. 60153 # 60154 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60155 # It is also a way to make sure we got the proper file name for the real test later on. 60156 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60157 if test "x$test_shortpath" = x; then 60158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60159 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60160 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60161 fi 60162 60163 # Call helper function which possibly converts this using DOS-style short mode. 60164 # If so, the updated path is stored in $new_path. 60165 60166 input_path="$new_path" 60167 # Check if we need to convert this using DOS-style short mode. If the path 60168 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60169 # take no chances and rewrite it. 60170 # Note: m4 eats our [], so we need to use [ and ] instead. 60171 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60172 if test "x$has_forbidden_chars" != x; then 60173 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60174 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60175 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60176 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60177 # Going to short mode and back again did indeed matter. Since short mode is 60178 # case insensitive, let's make it lowercase to improve readability. 60179 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60180 # Now convert it back to Unix-style (cygpath) 60181 input_path=`$CYGPATH -u "$shortmode_path"` 60182 new_path="$input_path" 60183 fi 60184 fi 60185 60186 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60187 if test "x$test_cygdrive_prefix" = x; then 60188 # As a simple fix, exclude /usr/bin since it's not a real path. 60189 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60190 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60191 # a path prefixed by /cygdrive for fixpath to work. 60192 new_path="$CYGWIN_ROOT_PATH$input_path" 60193 fi 60194 fi 60195 60196 60197 if test "x$path" != "x$new_path"; then 60198 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60199 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60200 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60201 fi 60202 60203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60204 60205 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60206 has_colon=`$ECHO $path | $GREP ^.:` 60207 new_path="$path" 60208 if test "x$has_colon" = x; then 60209 # Not in mixed or Windows style, start by that. 60210 new_path=`cmd //c echo $path` 60211 fi 60212 60213 60214 input_path="$new_path" 60215 # Check if we need to convert this using DOS-style short mode. If the path 60216 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60217 # take no chances and rewrite it. 60218 # Note: m4 eats our [], so we need to use [ and ] instead. 60219 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60220 if test "x$has_forbidden_chars" != x; then 60221 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60222 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60223 fi 60224 60225 60226 windows_path="$new_path" 60227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60228 unix_path=`$CYGPATH -u "$windows_path"` 60229 new_path="$unix_path" 60230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60232 new_path="$unix_path" 60233 fi 60234 60235 if test "x$path" != "x$new_path"; then 60236 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60238 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60239 fi 60240 60241 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60242 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60243 60244 else 60245 # We're on a unix platform. Hooray! :) 60246 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60247 has_space=`$ECHO "$path" | $GREP " "` 60248 if test "x$has_space" != x; then 60249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60250 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60251 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60252 fi 60253 60254 # Use eval to expand a potential ~ 60255 eval path="$path" 60256 if test ! -f "$path" && test ! -d "$path"; then 60257 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60258 fi 60259 60260 if test -d "$path"; then 60261 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60262 else 60263 dir="`$DIRNAME "$path"`" 60264 base="`$BASENAME "$path"`" 60265 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60266 fi 60267 fi 60268 fi 60269 60270 60271 # Only process if variable expands to non-empty 60272 60273 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60275 60276 # Input might be given as Windows format, start by converting to 60277 # unix format. 60278 path="$POTENTIAL_FREETYPE_LIB_PATH" 60279 new_path=`$CYGPATH -u "$path"` 60280 60281 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60282 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60283 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60284 # "foo.exe" is OK but "foo" is an error. 60285 # 60286 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60287 # It is also a way to make sure we got the proper file name for the real test later on. 60288 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60289 if test "x$test_shortpath" = x; then 60290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60291 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60292 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60293 fi 60294 60295 # Call helper function which possibly converts this using DOS-style short mode. 60296 # If so, the updated path is stored in $new_path. 60297 60298 input_path="$new_path" 60299 # Check if we need to convert this using DOS-style short mode. If the path 60300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60301 # take no chances and rewrite it. 60302 # Note: m4 eats our [], so we need to use [ and ] instead. 60303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60304 if test "x$has_forbidden_chars" != x; then 60305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60306 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60307 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60308 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60309 # Going to short mode and back again did indeed matter. Since short mode is 60310 # case insensitive, let's make it lowercase to improve readability. 60311 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60312 # Now convert it back to Unix-style (cygpath) 60313 input_path=`$CYGPATH -u "$shortmode_path"` 60314 new_path="$input_path" 60315 fi 60316 fi 60317 60318 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60319 if test "x$test_cygdrive_prefix" = x; then 60320 # As a simple fix, exclude /usr/bin since it's not a real path. 60321 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60322 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60323 # a path prefixed by /cygdrive for fixpath to work. 60324 new_path="$CYGWIN_ROOT_PATH$input_path" 60325 fi 60326 fi 60327 60328 60329 if test "x$path" != "x$new_path"; then 60330 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60332 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60333 fi 60334 60335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60336 60337 path="$POTENTIAL_FREETYPE_LIB_PATH" 60338 has_colon=`$ECHO $path | $GREP ^.:` 60339 new_path="$path" 60340 if test "x$has_colon" = x; then 60341 # Not in mixed or Windows style, start by that. 60342 new_path=`cmd //c echo $path` 60343 fi 60344 60345 60346 input_path="$new_path" 60347 # Check if we need to convert this using DOS-style short mode. If the path 60348 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60349 # take no chances and rewrite it. 60350 # Note: m4 eats our [], so we need to use [ and ] instead. 60351 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60352 if test "x$has_forbidden_chars" != x; then 60353 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60354 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60355 fi 60356 60357 60358 windows_path="$new_path" 60359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60360 unix_path=`$CYGPATH -u "$windows_path"` 60361 new_path="$unix_path" 60362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60364 new_path="$unix_path" 60365 fi 60366 60367 if test "x$path" != "x$new_path"; then 60368 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60369 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60370 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60371 fi 60372 60373 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60374 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60375 60376 else 60377 # We're on a unix platform. Hooray! :) 60378 path="$POTENTIAL_FREETYPE_LIB_PATH" 60379 has_space=`$ECHO "$path" | $GREP " "` 60380 if test "x$has_space" != x; then 60381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60382 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60383 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60384 fi 60385 60386 # Use eval to expand a potential ~ 60387 eval path="$path" 60388 if test ! -f "$path" && test ! -d "$path"; then 60389 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60390 fi 60391 60392 if test -d "$path"; then 60393 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60394 else 60395 dir="`$DIRNAME "$path"`" 60396 base="`$BASENAME "$path"`" 60397 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60398 fi 60399 fi 60400 fi 60401 60402 60403 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60405 $as_echo_n "checking for freetype includes... " >&6; } 60406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60407 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60408 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60410 $as_echo_n "checking for freetype libraries... " >&6; } 60411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60412 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60413 fi 60414 60415 else 60416 60417 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60418 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 60419 METHOD="well-known location" 60420 60421 # Let's start with an optimistic view of the world :-) 60422 FOUND_FREETYPE=yes 60423 60424 # First look for the canonical freetype main include file ft2build.h. 60425 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60426 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60427 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60428 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60429 # Fail. 60430 FOUND_FREETYPE=no 60431 fi 60432 fi 60433 60434 if test "x$FOUND_FREETYPE" = xyes; then 60435 # Include file found, let's continue the sanity check. 60436 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60437 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60438 60439 # Reset to default value 60440 FREETYPE_BASE_NAME=freetype 60441 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60442 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60443 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60444 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60445 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60446 # for the .6 version explicitly. 60447 FREETYPE_BASE_NAME=freetype.6 60448 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60449 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60450 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60451 else 60452 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60453 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60454 FOUND_FREETYPE=no 60455 fi 60456 else 60457 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60458 # On Windows, we will need both .lib and .dll file. 60459 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60460 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60461 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60462 FOUND_FREETYPE=no 60463 fi 60464 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60465 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60466 # Found lib in isa dir, use that instead. 60467 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60469 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60470 fi 60471 fi 60472 fi 60473 60474 if test "x$FOUND_FREETYPE" = xyes; then 60475 60476 # Only process if variable expands to non-empty 60477 60478 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60480 60481 # Input might be given as Windows format, start by converting to 60482 # unix format. 60483 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60484 new_path=`$CYGPATH -u "$path"` 60485 60486 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60487 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60488 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60489 # "foo.exe" is OK but "foo" is an error. 60490 # 60491 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60492 # It is also a way to make sure we got the proper file name for the real test later on. 60493 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60494 if test "x$test_shortpath" = x; then 60495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60496 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60497 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60498 fi 60499 60500 # Call helper function which possibly converts this using DOS-style short mode. 60501 # If so, the updated path is stored in $new_path. 60502 60503 input_path="$new_path" 60504 # Check if we need to convert this using DOS-style short mode. If the path 60505 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60506 # take no chances and rewrite it. 60507 # Note: m4 eats our [], so we need to use [ and ] instead. 60508 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60509 if test "x$has_forbidden_chars" != x; then 60510 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60511 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60512 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60513 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60514 # Going to short mode and back again did indeed matter. Since short mode is 60515 # case insensitive, let's make it lowercase to improve readability. 60516 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60517 # Now convert it back to Unix-style (cygpath) 60518 input_path=`$CYGPATH -u "$shortmode_path"` 60519 new_path="$input_path" 60520 fi 60521 fi 60522 60523 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60524 if test "x$test_cygdrive_prefix" = x; then 60525 # As a simple fix, exclude /usr/bin since it's not a real path. 60526 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60527 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60528 # a path prefixed by /cygdrive for fixpath to work. 60529 new_path="$CYGWIN_ROOT_PATH$input_path" 60530 fi 60531 fi 60532 60533 60534 if test "x$path" != "x$new_path"; then 60535 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60537 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60538 fi 60539 60540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60541 60542 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60543 has_colon=`$ECHO $path | $GREP ^.:` 60544 new_path="$path" 60545 if test "x$has_colon" = x; then 60546 # Not in mixed or Windows style, start by that. 60547 new_path=`cmd //c echo $path` 60548 fi 60549 60550 60551 input_path="$new_path" 60552 # Check if we need to convert this using DOS-style short mode. If the path 60553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60554 # take no chances and rewrite it. 60555 # Note: m4 eats our [], so we need to use [ and ] instead. 60556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60557 if test "x$has_forbidden_chars" != x; then 60558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60559 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60560 fi 60561 60562 60563 windows_path="$new_path" 60564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60565 unix_path=`$CYGPATH -u "$windows_path"` 60566 new_path="$unix_path" 60567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60569 new_path="$unix_path" 60570 fi 60571 60572 if test "x$path" != "x$new_path"; then 60573 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60574 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60575 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60576 fi 60577 60578 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60579 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60580 60581 else 60582 # We're on a unix platform. Hooray! :) 60583 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60584 has_space=`$ECHO "$path" | $GREP " "` 60585 if test "x$has_space" != x; then 60586 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60587 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60588 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60589 fi 60590 60591 # Use eval to expand a potential ~ 60592 eval path="$path" 60593 if test ! -f "$path" && test ! -d "$path"; then 60594 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60595 fi 60596 60597 if test -d "$path"; then 60598 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60599 else 60600 dir="`$DIRNAME "$path"`" 60601 base="`$BASENAME "$path"`" 60602 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60603 fi 60604 fi 60605 fi 60606 60607 60608 # Only process if variable expands to non-empty 60609 60610 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60612 60613 # Input might be given as Windows format, start by converting to 60614 # unix format. 60615 path="$POTENTIAL_FREETYPE_LIB_PATH" 60616 new_path=`$CYGPATH -u "$path"` 60617 60618 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60619 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60620 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60621 # "foo.exe" is OK but "foo" is an error. 60622 # 60623 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60624 # It is also a way to make sure we got the proper file name for the real test later on. 60625 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60626 if test "x$test_shortpath" = x; then 60627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60628 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60629 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60630 fi 60631 60632 # Call helper function which possibly converts this using DOS-style short mode. 60633 # If so, the updated path is stored in $new_path. 60634 60635 input_path="$new_path" 60636 # Check if we need to convert this using DOS-style short mode. If the path 60637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60638 # take no chances and rewrite it. 60639 # Note: m4 eats our [], so we need to use [ and ] instead. 60640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60641 if test "x$has_forbidden_chars" != x; then 60642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60643 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60644 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60645 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60646 # Going to short mode and back again did indeed matter. Since short mode is 60647 # case insensitive, let's make it lowercase to improve readability. 60648 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60649 # Now convert it back to Unix-style (cygpath) 60650 input_path=`$CYGPATH -u "$shortmode_path"` 60651 new_path="$input_path" 60652 fi 60653 fi 60654 60655 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60656 if test "x$test_cygdrive_prefix" = x; then 60657 # As a simple fix, exclude /usr/bin since it's not a real path. 60658 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60659 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60660 # a path prefixed by /cygdrive for fixpath to work. 60661 new_path="$CYGWIN_ROOT_PATH$input_path" 60662 fi 60663 fi 60664 60665 60666 if test "x$path" != "x$new_path"; then 60667 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60669 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60670 fi 60671 60672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60673 60674 path="$POTENTIAL_FREETYPE_LIB_PATH" 60675 has_colon=`$ECHO $path | $GREP ^.:` 60676 new_path="$path" 60677 if test "x$has_colon" = x; then 60678 # Not in mixed or Windows style, start by that. 60679 new_path=`cmd //c echo $path` 60680 fi 60681 60682 60683 input_path="$new_path" 60684 # Check if we need to convert this using DOS-style short mode. If the path 60685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60686 # take no chances and rewrite it. 60687 # Note: m4 eats our [], so we need to use [ and ] instead. 60688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60689 if test "x$has_forbidden_chars" != x; then 60690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60691 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60692 fi 60693 60694 60695 windows_path="$new_path" 60696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60697 unix_path=`$CYGPATH -u "$windows_path"` 60698 new_path="$unix_path" 60699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60700 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60701 new_path="$unix_path" 60702 fi 60703 60704 if test "x$path" != "x$new_path"; then 60705 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60706 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60707 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60708 fi 60709 60710 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60711 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60712 60713 else 60714 # We're on a unix platform. Hooray! :) 60715 path="$POTENTIAL_FREETYPE_LIB_PATH" 60716 has_space=`$ECHO "$path" | $GREP " "` 60717 if test "x$has_space" != x; then 60718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60719 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60720 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60721 fi 60722 60723 # Use eval to expand a potential ~ 60724 eval path="$path" 60725 if test ! -f "$path" && test ! -d "$path"; then 60726 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60727 fi 60728 60729 if test -d "$path"; then 60730 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60731 else 60732 dir="`$DIRNAME "$path"`" 60733 base="`$BASENAME "$path"`" 60734 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60735 fi 60736 fi 60737 fi 60738 60739 60740 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60742 $as_echo_n "checking for freetype includes... " >&6; } 60743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60744 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60745 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60747 $as_echo_n "checking for freetype libraries... " >&6; } 60748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60749 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60750 fi 60751 60752 fi 60753 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 60754 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 60755 # Source is available, as a last resort try to build freetype in default location 60756 60757 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 60758 BUILD_FREETYPE=yes 60759 60760 # Check if the freetype sources are acessible.. 60761 if ! test -d $FREETYPE_SRC_PATH; then 60762 { $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 60763 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 60764 BUILD_FREETYPE=no 60765 fi 60766 # ..and contain a vc2010 project file 60767 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 60768 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 60769 { $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 60770 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 60771 BUILD_FREETYPE=no 60772 fi 60773 # Now check if configure found a version of 'msbuild.exe' 60774 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 60775 { $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 60776 $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;} 60777 BUILD_FREETYPE=no 60778 fi 60779 60780 # Ready to go.. 60781 if test "x$BUILD_FREETYPE" = xyes; then 60782 # msbuild requires trailing slashes for output directories 60783 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 60784 freetype_lib_path_unix="$freetype_lib_path" 60785 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 60786 60787 unix_path="$vcxproj_path" 60788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60789 windows_path=`$CYGPATH -m "$unix_path"` 60790 vcxproj_path="$windows_path" 60791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60792 windows_path=`cmd //c echo $unix_path` 60793 vcxproj_path="$windows_path" 60794 fi 60795 60796 60797 unix_path="$freetype_lib_path" 60798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60799 windows_path=`$CYGPATH -m "$unix_path"` 60800 freetype_lib_path="$windows_path" 60801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60802 windows_path=`cmd //c echo $unix_path` 60803 freetype_lib_path="$windows_path" 60804 fi 60805 60806 60807 unix_path="$freetype_obj_path" 60808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60809 windows_path=`$CYGPATH -m "$unix_path"` 60810 freetype_obj_path="$windows_path" 60811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60812 windows_path=`cmd //c echo $unix_path` 60813 freetype_obj_path="$windows_path" 60814 fi 60815 60816 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60817 freetype_platform=x64 60818 else 60819 freetype_platform=win32 60820 fi 60821 60822 # The original freetype project file is for VS 2010 (i.e. 'v100'), 60823 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 60824 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 60825 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 60826 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 60827 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 60828 60829 # First we try to build the freetype.dll 60830 $ECHO -e "@echo off\n"\ 60831 "$MSBUILD $vcxproj_path "\ 60832 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60833 "/p:Configuration=\"Release Multithreaded\" "\ 60834 "/p:Platform=$freetype_platform "\ 60835 "/p:ConfigurationType=DynamicLibrary "\ 60836 "/p:TargetName=freetype "\ 60837 "/p:OutDir=\"$freetype_lib_path\" "\ 60838 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 60839 cmd /c freetype.bat 60840 60841 if test -s "$freetype_lib_path_unix/freetype.dll"; then 60842 # If that succeeds we also build freetype.lib 60843 $ECHO -e "@echo off\n"\ 60844 "$MSBUILD $vcxproj_path "\ 60845 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60846 "/p:Configuration=\"Release Multithreaded\" "\ 60847 "/p:Platform=$freetype_platform "\ 60848 "/p:ConfigurationType=StaticLibrary "\ 60849 "/p:TargetName=freetype "\ 60850 "/p:OutDir=\"$freetype_lib_path\" "\ 60851 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 60852 cmd /c freetype.bat 60853 60854 if test -s "$freetype_lib_path_unix/freetype.lib"; then 60855 # Once we build both, lib and dll, set freetype lib and include path appropriately 60856 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 60857 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 60858 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 60859 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 60860 else 60861 BUILD_FREETYPE=no 60862 fi 60863 else 60864 BUILD_FREETYPE=no 60865 fi 60866 fi 60867 60868 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60869 60870 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60871 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 60872 METHOD="well-known location" 60873 60874 # Let's start with an optimistic view of the world :-) 60875 FOUND_FREETYPE=yes 60876 60877 # First look for the canonical freetype main include file ft2build.h. 60878 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60879 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60880 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60881 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60882 # Fail. 60883 FOUND_FREETYPE=no 60884 fi 60885 fi 60886 60887 if test "x$FOUND_FREETYPE" = xyes; then 60888 # Include file found, let's continue the sanity check. 60889 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60890 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60891 60892 # Reset to default value 60893 FREETYPE_BASE_NAME=freetype 60894 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60895 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60896 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60897 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60898 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60899 # for the .6 version explicitly. 60900 FREETYPE_BASE_NAME=freetype.6 60901 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60902 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60903 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60904 else 60905 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60906 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60907 FOUND_FREETYPE=no 60908 fi 60909 else 60910 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60911 # On Windows, we will need both .lib and .dll file. 60912 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60914 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60915 FOUND_FREETYPE=no 60916 fi 60917 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60918 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60919 # Found lib in isa dir, use that instead. 60920 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60921 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60922 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60923 fi 60924 fi 60925 fi 60926 60927 if test "x$FOUND_FREETYPE" = xyes; then 60928 60929 # Only process if variable expands to non-empty 60930 60931 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60933 60934 # Input might be given as Windows format, start by converting to 60935 # unix format. 60936 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60937 new_path=`$CYGPATH -u "$path"` 60938 60939 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60940 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60941 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60942 # "foo.exe" is OK but "foo" is an error. 60943 # 60944 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60945 # It is also a way to make sure we got the proper file name for the real test later on. 60946 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60947 if test "x$test_shortpath" = x; then 60948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60949 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60950 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60951 fi 60952 60953 # Call helper function which possibly converts this using DOS-style short mode. 60954 # If so, the updated path is stored in $new_path. 60955 60956 input_path="$new_path" 60957 # Check if we need to convert this using DOS-style short mode. If the path 60958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60959 # take no chances and rewrite it. 60960 # Note: m4 eats our [], so we need to use [ and ] instead. 60961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60962 if test "x$has_forbidden_chars" != x; then 60963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60964 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60965 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60966 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60967 # Going to short mode and back again did indeed matter. Since short mode is 60968 # case insensitive, let's make it lowercase to improve readability. 60969 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60970 # Now convert it back to Unix-style (cygpath) 60971 input_path=`$CYGPATH -u "$shortmode_path"` 60972 new_path="$input_path" 60973 fi 60974 fi 60975 60976 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60977 if test "x$test_cygdrive_prefix" = x; then 60978 # As a simple fix, exclude /usr/bin since it's not a real path. 60979 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60980 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60981 # a path prefixed by /cygdrive for fixpath to work. 60982 new_path="$CYGWIN_ROOT_PATH$input_path" 60983 fi 60984 fi 60985 60986 60987 if test "x$path" != "x$new_path"; then 60988 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60990 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60991 fi 60992 60993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60994 60995 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60996 has_colon=`$ECHO $path | $GREP ^.:` 60997 new_path="$path" 60998 if test "x$has_colon" = x; then 60999 # Not in mixed or Windows style, start by that. 61000 new_path=`cmd //c echo $path` 61001 fi 61002 61003 61004 input_path="$new_path" 61005 # Check if we need to convert this using DOS-style short mode. If the path 61006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61007 # take no chances and rewrite it. 61008 # Note: m4 eats our [], so we need to use [ and ] instead. 61009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61010 if test "x$has_forbidden_chars" != x; then 61011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61012 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61013 fi 61014 61015 61016 windows_path="$new_path" 61017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61018 unix_path=`$CYGPATH -u "$windows_path"` 61019 new_path="$unix_path" 61020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61021 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61022 new_path="$unix_path" 61023 fi 61024 61025 if test "x$path" != "x$new_path"; then 61026 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61028 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61029 fi 61030 61031 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61032 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61033 61034 else 61035 # We're on a unix platform. Hooray! :) 61036 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61037 has_space=`$ECHO "$path" | $GREP " "` 61038 if test "x$has_space" != x; then 61039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61040 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61041 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61042 fi 61043 61044 # Use eval to expand a potential ~ 61045 eval path="$path" 61046 if test ! -f "$path" && test ! -d "$path"; then 61047 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61048 fi 61049 61050 if test -d "$path"; then 61051 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61052 else 61053 dir="`$DIRNAME "$path"`" 61054 base="`$BASENAME "$path"`" 61055 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61056 fi 61057 fi 61058 fi 61059 61060 61061 # Only process if variable expands to non-empty 61062 61063 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61065 61066 # Input might be given as Windows format, start by converting to 61067 # unix format. 61068 path="$POTENTIAL_FREETYPE_LIB_PATH" 61069 new_path=`$CYGPATH -u "$path"` 61070 61071 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61072 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61073 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61074 # "foo.exe" is OK but "foo" is an error. 61075 # 61076 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61077 # It is also a way to make sure we got the proper file name for the real test later on. 61078 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61079 if test "x$test_shortpath" = x; then 61080 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61081 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61082 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61083 fi 61084 61085 # Call helper function which possibly converts this using DOS-style short mode. 61086 # If so, the updated path is stored in $new_path. 61087 61088 input_path="$new_path" 61089 # Check if we need to convert this using DOS-style short mode. If the path 61090 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61091 # take no chances and rewrite it. 61092 # Note: m4 eats our [], so we need to use [ and ] instead. 61093 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61094 if test "x$has_forbidden_chars" != x; then 61095 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61096 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61097 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61098 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61099 # Going to short mode and back again did indeed matter. Since short mode is 61100 # case insensitive, let's make it lowercase to improve readability. 61101 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61102 # Now convert it back to Unix-style (cygpath) 61103 input_path=`$CYGPATH -u "$shortmode_path"` 61104 new_path="$input_path" 61105 fi 61106 fi 61107 61108 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61109 if test "x$test_cygdrive_prefix" = x; then 61110 # As a simple fix, exclude /usr/bin since it's not a real path. 61111 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61112 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61113 # a path prefixed by /cygdrive for fixpath to work. 61114 new_path="$CYGWIN_ROOT_PATH$input_path" 61115 fi 61116 fi 61117 61118 61119 if test "x$path" != "x$new_path"; then 61120 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61121 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61122 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61123 fi 61124 61125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61126 61127 path="$POTENTIAL_FREETYPE_LIB_PATH" 61128 has_colon=`$ECHO $path | $GREP ^.:` 61129 new_path="$path" 61130 if test "x$has_colon" = x; then 61131 # Not in mixed or Windows style, start by that. 61132 new_path=`cmd //c echo $path` 61133 fi 61134 61135 61136 input_path="$new_path" 61137 # Check if we need to convert this using DOS-style short mode. If the path 61138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61139 # take no chances and rewrite it. 61140 # Note: m4 eats our [], so we need to use [ and ] instead. 61141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61142 if test "x$has_forbidden_chars" != x; then 61143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61144 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61145 fi 61146 61147 61148 windows_path="$new_path" 61149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61150 unix_path=`$CYGPATH -u "$windows_path"` 61151 new_path="$unix_path" 61152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61153 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61154 new_path="$unix_path" 61155 fi 61156 61157 if test "x$path" != "x$new_path"; then 61158 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61159 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61160 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61161 fi 61162 61163 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61164 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61165 61166 else 61167 # We're on a unix platform. Hooray! :) 61168 path="$POTENTIAL_FREETYPE_LIB_PATH" 61169 has_space=`$ECHO "$path" | $GREP " "` 61170 if test "x$has_space" != x; then 61171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61172 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61173 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61174 fi 61175 61176 # Use eval to expand a potential ~ 61177 eval path="$path" 61178 if test ! -f "$path" && test ! -d "$path"; then 61179 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61180 fi 61181 61182 if test -d "$path"; then 61183 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61184 else 61185 dir="`$DIRNAME "$path"`" 61186 base="`$BASENAME "$path"`" 61187 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61188 fi 61189 fi 61190 fi 61191 61192 61193 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61195 $as_echo_n "checking for freetype includes... " >&6; } 61196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61197 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61198 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61200 $as_echo_n "checking for freetype libraries... " >&6; } 61201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61202 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61203 fi 61204 61205 else 61206 61207 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61208 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61209 METHOD="well-known location" 61210 61211 # Let's start with an optimistic view of the world :-) 61212 FOUND_FREETYPE=yes 61213 61214 # First look for the canonical freetype main include file ft2build.h. 61215 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61216 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61217 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61218 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61219 # Fail. 61220 FOUND_FREETYPE=no 61221 fi 61222 fi 61223 61224 if test "x$FOUND_FREETYPE" = xyes; then 61225 # Include file found, let's continue the sanity check. 61226 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61227 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61228 61229 # Reset to default value 61230 FREETYPE_BASE_NAME=freetype 61231 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61232 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61233 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61234 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61235 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61236 # for the .6 version explicitly. 61237 FREETYPE_BASE_NAME=freetype.6 61238 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61239 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61240 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61241 else 61242 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61243 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61244 FOUND_FREETYPE=no 61245 fi 61246 else 61247 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61248 # On Windows, we will need both .lib and .dll file. 61249 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61250 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61251 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61252 FOUND_FREETYPE=no 61253 fi 61254 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61255 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61256 # Found lib in isa dir, use that instead. 61257 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61258 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61259 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61260 fi 61261 fi 61262 fi 61263 61264 if test "x$FOUND_FREETYPE" = xyes; then 61265 61266 # Only process if variable expands to non-empty 61267 61268 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61270 61271 # Input might be given as Windows format, start by converting to 61272 # unix format. 61273 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61274 new_path=`$CYGPATH -u "$path"` 61275 61276 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61277 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61278 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61279 # "foo.exe" is OK but "foo" is an error. 61280 # 61281 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61282 # It is also a way to make sure we got the proper file name for the real test later on. 61283 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61284 if test "x$test_shortpath" = x; then 61285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61286 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61287 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61288 fi 61289 61290 # Call helper function which possibly converts this using DOS-style short mode. 61291 # If so, the updated path is stored in $new_path. 61292 61293 input_path="$new_path" 61294 # Check if we need to convert this using DOS-style short mode. If the path 61295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61296 # take no chances and rewrite it. 61297 # Note: m4 eats our [], so we need to use [ and ] instead. 61298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61299 if test "x$has_forbidden_chars" != x; then 61300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61301 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61302 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61303 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61304 # Going to short mode and back again did indeed matter. Since short mode is 61305 # case insensitive, let's make it lowercase to improve readability. 61306 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61307 # Now convert it back to Unix-style (cygpath) 61308 input_path=`$CYGPATH -u "$shortmode_path"` 61309 new_path="$input_path" 61310 fi 61311 fi 61312 61313 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61314 if test "x$test_cygdrive_prefix" = x; then 61315 # As a simple fix, exclude /usr/bin since it's not a real path. 61316 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61317 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61318 # a path prefixed by /cygdrive for fixpath to work. 61319 new_path="$CYGWIN_ROOT_PATH$input_path" 61320 fi 61321 fi 61322 61323 61324 if test "x$path" != "x$new_path"; then 61325 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61327 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61328 fi 61329 61330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61331 61332 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61333 has_colon=`$ECHO $path | $GREP ^.:` 61334 new_path="$path" 61335 if test "x$has_colon" = x; then 61336 # Not in mixed or Windows style, start by that. 61337 new_path=`cmd //c echo $path` 61338 fi 61339 61340 61341 input_path="$new_path" 61342 # Check if we need to convert this using DOS-style short mode. If the path 61343 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61344 # take no chances and rewrite it. 61345 # Note: m4 eats our [], so we need to use [ and ] instead. 61346 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61347 if test "x$has_forbidden_chars" != x; then 61348 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61349 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61350 fi 61351 61352 61353 windows_path="$new_path" 61354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61355 unix_path=`$CYGPATH -u "$windows_path"` 61356 new_path="$unix_path" 61357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61359 new_path="$unix_path" 61360 fi 61361 61362 if test "x$path" != "x$new_path"; then 61363 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61365 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61366 fi 61367 61368 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61369 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61370 61371 else 61372 # We're on a unix platform. Hooray! :) 61373 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61374 has_space=`$ECHO "$path" | $GREP " "` 61375 if test "x$has_space" != x; then 61376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61377 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61378 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61379 fi 61380 61381 # Use eval to expand a potential ~ 61382 eval path="$path" 61383 if test ! -f "$path" && test ! -d "$path"; then 61384 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61385 fi 61386 61387 if test -d "$path"; then 61388 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61389 else 61390 dir="`$DIRNAME "$path"`" 61391 base="`$BASENAME "$path"`" 61392 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61393 fi 61394 fi 61395 fi 61396 61397 61398 # Only process if variable expands to non-empty 61399 61400 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61402 61403 # Input might be given as Windows format, start by converting to 61404 # unix format. 61405 path="$POTENTIAL_FREETYPE_LIB_PATH" 61406 new_path=`$CYGPATH -u "$path"` 61407 61408 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61409 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61410 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61411 # "foo.exe" is OK but "foo" is an error. 61412 # 61413 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61414 # It is also a way to make sure we got the proper file name for the real test later on. 61415 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61416 if test "x$test_shortpath" = x; then 61417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61418 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61419 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61420 fi 61421 61422 # Call helper function which possibly converts this using DOS-style short mode. 61423 # If so, the updated path is stored in $new_path. 61424 61425 input_path="$new_path" 61426 # Check if we need to convert this using DOS-style short mode. If the path 61427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61428 # take no chances and rewrite it. 61429 # Note: m4 eats our [], so we need to use [ and ] instead. 61430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61431 if test "x$has_forbidden_chars" != x; then 61432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61433 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61434 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61435 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61436 # Going to short mode and back again did indeed matter. Since short mode is 61437 # case insensitive, let's make it lowercase to improve readability. 61438 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61439 # Now convert it back to Unix-style (cygpath) 61440 input_path=`$CYGPATH -u "$shortmode_path"` 61441 new_path="$input_path" 61442 fi 61443 fi 61444 61445 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61446 if test "x$test_cygdrive_prefix" = x; then 61447 # As a simple fix, exclude /usr/bin since it's not a real path. 61448 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61449 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61450 # a path prefixed by /cygdrive for fixpath to work. 61451 new_path="$CYGWIN_ROOT_PATH$input_path" 61452 fi 61453 fi 61454 61455 61456 if test "x$path" != "x$new_path"; then 61457 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61459 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61460 fi 61461 61462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61463 61464 path="$POTENTIAL_FREETYPE_LIB_PATH" 61465 has_colon=`$ECHO $path | $GREP ^.:` 61466 new_path="$path" 61467 if test "x$has_colon" = x; then 61468 # Not in mixed or Windows style, start by that. 61469 new_path=`cmd //c echo $path` 61470 fi 61471 61472 61473 input_path="$new_path" 61474 # Check if we need to convert this using DOS-style short mode. If the path 61475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61476 # take no chances and rewrite it. 61477 # Note: m4 eats our [], so we need to use [ and ] instead. 61478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61479 if test "x$has_forbidden_chars" != x; then 61480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61482 fi 61483 61484 61485 windows_path="$new_path" 61486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61487 unix_path=`$CYGPATH -u "$windows_path"` 61488 new_path="$unix_path" 61489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61491 new_path="$unix_path" 61492 fi 61493 61494 if test "x$path" != "x$new_path"; then 61495 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61496 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61497 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61498 fi 61499 61500 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61501 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61502 61503 else 61504 # We're on a unix platform. Hooray! :) 61505 path="$POTENTIAL_FREETYPE_LIB_PATH" 61506 has_space=`$ECHO "$path" | $GREP " "` 61507 if test "x$has_space" != x; then 61508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61509 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61510 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61511 fi 61512 61513 # Use eval to expand a potential ~ 61514 eval path="$path" 61515 if test ! -f "$path" && test ! -d "$path"; then 61516 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61517 fi 61518 61519 if test -d "$path"; then 61520 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61521 else 61522 dir="`$DIRNAME "$path"`" 61523 base="`$BASENAME "$path"`" 61524 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61525 fi 61526 fi 61527 fi 61528 61529 61530 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61532 $as_echo_n "checking for freetype includes... " >&6; } 61533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61534 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61535 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61537 $as_echo_n "checking for freetype libraries... " >&6; } 61538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61539 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61540 fi 61541 61542 fi 61543 fi 61544 fi 61545 else 61546 FREETYPE_BASE_DIR="$SYSROOT/usr" 61547 61548 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61549 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61550 METHOD="well-known location" 61551 61552 # Let's start with an optimistic view of the world :-) 61553 FOUND_FREETYPE=yes 61554 61555 # First look for the canonical freetype main include file ft2build.h. 61556 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61557 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61558 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61559 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61560 # Fail. 61561 FOUND_FREETYPE=no 61562 fi 61563 fi 61564 61565 if test "x$FOUND_FREETYPE" = xyes; then 61566 # Include file found, let's continue the sanity check. 61567 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61568 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61569 61570 # Reset to default value 61571 FREETYPE_BASE_NAME=freetype 61572 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61573 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61574 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61575 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61576 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61577 # for the .6 version explicitly. 61578 FREETYPE_BASE_NAME=freetype.6 61579 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61580 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61581 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61582 else 61583 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61584 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61585 FOUND_FREETYPE=no 61586 fi 61587 else 61588 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61589 # On Windows, we will need both .lib and .dll file. 61590 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61591 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61592 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61593 FOUND_FREETYPE=no 61594 fi 61595 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61596 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61597 # Found lib in isa dir, use that instead. 61598 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61600 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61601 fi 61602 fi 61603 fi 61604 61605 if test "x$FOUND_FREETYPE" = xyes; then 61606 61607 # Only process if variable expands to non-empty 61608 61609 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61611 61612 # Input might be given as Windows format, start by converting to 61613 # unix format. 61614 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61615 new_path=`$CYGPATH -u "$path"` 61616 61617 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61618 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61619 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61620 # "foo.exe" is OK but "foo" is an error. 61621 # 61622 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61623 # It is also a way to make sure we got the proper file name for the real test later on. 61624 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61625 if test "x$test_shortpath" = x; then 61626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61627 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61628 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61629 fi 61630 61631 # Call helper function which possibly converts this using DOS-style short mode. 61632 # If so, the updated path is stored in $new_path. 61633 61634 input_path="$new_path" 61635 # Check if we need to convert this using DOS-style short mode. If the path 61636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61637 # take no chances and rewrite it. 61638 # Note: m4 eats our [], so we need to use [ and ] instead. 61639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61640 if test "x$has_forbidden_chars" != x; then 61641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61642 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61643 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61644 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61645 # Going to short mode and back again did indeed matter. Since short mode is 61646 # case insensitive, let's make it lowercase to improve readability. 61647 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61648 # Now convert it back to Unix-style (cygpath) 61649 input_path=`$CYGPATH -u "$shortmode_path"` 61650 new_path="$input_path" 61651 fi 61652 fi 61653 61654 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61655 if test "x$test_cygdrive_prefix" = x; then 61656 # As a simple fix, exclude /usr/bin since it's not a real path. 61657 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61658 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61659 # a path prefixed by /cygdrive for fixpath to work. 61660 new_path="$CYGWIN_ROOT_PATH$input_path" 61661 fi 61662 fi 61663 61664 61665 if test "x$path" != "x$new_path"; then 61666 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61668 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61669 fi 61670 61671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61672 61673 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61674 has_colon=`$ECHO $path | $GREP ^.:` 61675 new_path="$path" 61676 if test "x$has_colon" = x; then 61677 # Not in mixed or Windows style, start by that. 61678 new_path=`cmd //c echo $path` 61679 fi 61680 61681 61682 input_path="$new_path" 61683 # Check if we need to convert this using DOS-style short mode. If the path 61684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61685 # take no chances and rewrite it. 61686 # Note: m4 eats our [], so we need to use [ and ] instead. 61687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61688 if test "x$has_forbidden_chars" != x; then 61689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61690 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61691 fi 61692 61693 61694 windows_path="$new_path" 61695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61696 unix_path=`$CYGPATH -u "$windows_path"` 61697 new_path="$unix_path" 61698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61700 new_path="$unix_path" 61701 fi 61702 61703 if test "x$path" != "x$new_path"; then 61704 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61706 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61707 fi 61708 61709 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61710 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61711 61712 else 61713 # We're on a unix platform. Hooray! :) 61714 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61715 has_space=`$ECHO "$path" | $GREP " "` 61716 if test "x$has_space" != x; then 61717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61718 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61719 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61720 fi 61721 61722 # Use eval to expand a potential ~ 61723 eval path="$path" 61724 if test ! -f "$path" && test ! -d "$path"; then 61725 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61726 fi 61727 61728 if test -d "$path"; then 61729 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61730 else 61731 dir="`$DIRNAME "$path"`" 61732 base="`$BASENAME "$path"`" 61733 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61734 fi 61735 fi 61736 fi 61737 61738 61739 # Only process if variable expands to non-empty 61740 61741 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61743 61744 # Input might be given as Windows format, start by converting to 61745 # unix format. 61746 path="$POTENTIAL_FREETYPE_LIB_PATH" 61747 new_path=`$CYGPATH -u "$path"` 61748 61749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61752 # "foo.exe" is OK but "foo" is an error. 61753 # 61754 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61755 # It is also a way to make sure we got the proper file name for the real test later on. 61756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61757 if test "x$test_shortpath" = x; then 61758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61759 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61760 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61761 fi 61762 61763 # Call helper function which possibly converts this using DOS-style short mode. 61764 # If so, the updated path is stored in $new_path. 61765 61766 input_path="$new_path" 61767 # Check if we need to convert this using DOS-style short mode. If the path 61768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61769 # take no chances and rewrite it. 61770 # Note: m4 eats our [], so we need to use [ and ] instead. 61771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61772 if test "x$has_forbidden_chars" != x; then 61773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61774 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61775 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61776 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61777 # Going to short mode and back again did indeed matter. Since short mode is 61778 # case insensitive, let's make it lowercase to improve readability. 61779 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61780 # Now convert it back to Unix-style (cygpath) 61781 input_path=`$CYGPATH -u "$shortmode_path"` 61782 new_path="$input_path" 61783 fi 61784 fi 61785 61786 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61787 if test "x$test_cygdrive_prefix" = x; then 61788 # As a simple fix, exclude /usr/bin since it's not a real path. 61789 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61790 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61791 # a path prefixed by /cygdrive for fixpath to work. 61792 new_path="$CYGWIN_ROOT_PATH$input_path" 61793 fi 61794 fi 61795 61796 61797 if test "x$path" != "x$new_path"; then 61798 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61800 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61801 fi 61802 61803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61804 61805 path="$POTENTIAL_FREETYPE_LIB_PATH" 61806 has_colon=`$ECHO $path | $GREP ^.:` 61807 new_path="$path" 61808 if test "x$has_colon" = x; then 61809 # Not in mixed or Windows style, start by that. 61810 new_path=`cmd //c echo $path` 61811 fi 61812 61813 61814 input_path="$new_path" 61815 # Check if we need to convert this using DOS-style short mode. If the path 61816 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61817 # take no chances and rewrite it. 61818 # Note: m4 eats our [], so we need to use [ and ] instead. 61819 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61820 if test "x$has_forbidden_chars" != x; then 61821 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61822 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61823 fi 61824 61825 61826 windows_path="$new_path" 61827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61828 unix_path=`$CYGPATH -u "$windows_path"` 61829 new_path="$unix_path" 61830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61832 new_path="$unix_path" 61833 fi 61834 61835 if test "x$path" != "x$new_path"; then 61836 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61838 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61839 fi 61840 61841 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61842 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61843 61844 else 61845 # We're on a unix platform. Hooray! :) 61846 path="$POTENTIAL_FREETYPE_LIB_PATH" 61847 has_space=`$ECHO "$path" | $GREP " "` 61848 if test "x$has_space" != x; then 61849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61850 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61851 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61852 fi 61853 61854 # Use eval to expand a potential ~ 61855 eval path="$path" 61856 if test ! -f "$path" && test ! -d "$path"; then 61857 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61858 fi 61859 61860 if test -d "$path"; then 61861 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61862 else 61863 dir="`$DIRNAME "$path"`" 61864 base="`$BASENAME "$path"`" 61865 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61866 fi 61867 fi 61868 fi 61869 61870 61871 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61873 $as_echo_n "checking for freetype includes... " >&6; } 61874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61875 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61876 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61878 $as_echo_n "checking for freetype libraries... " >&6; } 61879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61880 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61881 fi 61882 61883 61884 if test "x$FOUND_FREETYPE" != xyes; then 61885 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 61886 61887 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61888 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61889 METHOD="well-known location" 61890 61891 # Let's start with an optimistic view of the world :-) 61892 FOUND_FREETYPE=yes 61893 61894 # First look for the canonical freetype main include file ft2build.h. 61895 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61896 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61897 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61898 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61899 # Fail. 61900 FOUND_FREETYPE=no 61901 fi 61902 fi 61903 61904 if test "x$FOUND_FREETYPE" = xyes; then 61905 # Include file found, let's continue the sanity check. 61906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61907 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61908 61909 # Reset to default value 61910 FREETYPE_BASE_NAME=freetype 61911 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61912 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61913 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61914 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61915 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61916 # for the .6 version explicitly. 61917 FREETYPE_BASE_NAME=freetype.6 61918 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61919 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61920 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61921 else 61922 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61923 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61924 FOUND_FREETYPE=no 61925 fi 61926 else 61927 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61928 # On Windows, we will need both .lib and .dll file. 61929 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61930 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61931 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61932 FOUND_FREETYPE=no 61933 fi 61934 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61935 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61936 # Found lib in isa dir, use that instead. 61937 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61939 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61940 fi 61941 fi 61942 fi 61943 61944 if test "x$FOUND_FREETYPE" = xyes; then 61945 61946 # Only process if variable expands to non-empty 61947 61948 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61950 61951 # Input might be given as Windows format, start by converting to 61952 # unix format. 61953 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61954 new_path=`$CYGPATH -u "$path"` 61955 61956 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61957 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61958 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61959 # "foo.exe" is OK but "foo" is an error. 61960 # 61961 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61962 # It is also a way to make sure we got the proper file name for the real test later on. 61963 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61964 if test "x$test_shortpath" = x; then 61965 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61966 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61967 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61968 fi 61969 61970 # Call helper function which possibly converts this using DOS-style short mode. 61971 # If so, the updated path is stored in $new_path. 61972 61973 input_path="$new_path" 61974 # Check if we need to convert this using DOS-style short mode. If the path 61975 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61976 # take no chances and rewrite it. 61977 # Note: m4 eats our [], so we need to use [ and ] instead. 61978 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61979 if test "x$has_forbidden_chars" != x; then 61980 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61981 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61982 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61983 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61984 # Going to short mode and back again did indeed matter. Since short mode is 61985 # case insensitive, let's make it lowercase to improve readability. 61986 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61987 # Now convert it back to Unix-style (cygpath) 61988 input_path=`$CYGPATH -u "$shortmode_path"` 61989 new_path="$input_path" 61990 fi 61991 fi 61992 61993 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61994 if test "x$test_cygdrive_prefix" = x; then 61995 # As a simple fix, exclude /usr/bin since it's not a real path. 61996 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61997 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61998 # a path prefixed by /cygdrive for fixpath to work. 61999 new_path="$CYGWIN_ROOT_PATH$input_path" 62000 fi 62001 fi 62002 62003 62004 if test "x$path" != "x$new_path"; then 62005 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62006 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62007 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62008 fi 62009 62010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62011 62012 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62013 has_colon=`$ECHO $path | $GREP ^.:` 62014 new_path="$path" 62015 if test "x$has_colon" = x; then 62016 # Not in mixed or Windows style, start by that. 62017 new_path=`cmd //c echo $path` 62018 fi 62019 62020 62021 input_path="$new_path" 62022 # Check if we need to convert this using DOS-style short mode. If the path 62023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62024 # take no chances and rewrite it. 62025 # Note: m4 eats our [], so we need to use [ and ] instead. 62026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62027 if test "x$has_forbidden_chars" != x; then 62028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62029 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62030 fi 62031 62032 62033 windows_path="$new_path" 62034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62035 unix_path=`$CYGPATH -u "$windows_path"` 62036 new_path="$unix_path" 62037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62038 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62039 new_path="$unix_path" 62040 fi 62041 62042 if test "x$path" != "x$new_path"; then 62043 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62044 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62045 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62046 fi 62047 62048 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62049 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62050 62051 else 62052 # We're on a unix platform. Hooray! :) 62053 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62054 has_space=`$ECHO "$path" | $GREP " "` 62055 if test "x$has_space" != x; then 62056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62057 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62058 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62059 fi 62060 62061 # Use eval to expand a potential ~ 62062 eval path="$path" 62063 if test ! -f "$path" && test ! -d "$path"; then 62064 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62065 fi 62066 62067 if test -d "$path"; then 62068 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62069 else 62070 dir="`$DIRNAME "$path"`" 62071 base="`$BASENAME "$path"`" 62072 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62073 fi 62074 fi 62075 fi 62076 62077 62078 # Only process if variable expands to non-empty 62079 62080 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62082 62083 # Input might be given as Windows format, start by converting to 62084 # unix format. 62085 path="$POTENTIAL_FREETYPE_LIB_PATH" 62086 new_path=`$CYGPATH -u "$path"` 62087 62088 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62089 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62090 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62091 # "foo.exe" is OK but "foo" is an error. 62092 # 62093 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62094 # It is also a way to make sure we got the proper file name for the real test later on. 62095 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62096 if test "x$test_shortpath" = x; then 62097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62098 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62099 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62100 fi 62101 62102 # Call helper function which possibly converts this using DOS-style short mode. 62103 # If so, the updated path is stored in $new_path. 62104 62105 input_path="$new_path" 62106 # Check if we need to convert this using DOS-style short mode. If the path 62107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62108 # take no chances and rewrite it. 62109 # Note: m4 eats our [], so we need to use [ and ] instead. 62110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62111 if test "x$has_forbidden_chars" != x; then 62112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62113 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62114 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62115 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62116 # Going to short mode and back again did indeed matter. Since short mode is 62117 # case insensitive, let's make it lowercase to improve readability. 62118 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62119 # Now convert it back to Unix-style (cygpath) 62120 input_path=`$CYGPATH -u "$shortmode_path"` 62121 new_path="$input_path" 62122 fi 62123 fi 62124 62125 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62126 if test "x$test_cygdrive_prefix" = x; then 62127 # As a simple fix, exclude /usr/bin since it's not a real path. 62128 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62129 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62130 # a path prefixed by /cygdrive for fixpath to work. 62131 new_path="$CYGWIN_ROOT_PATH$input_path" 62132 fi 62133 fi 62134 62135 62136 if test "x$path" != "x$new_path"; then 62137 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62139 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62140 fi 62141 62142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62143 62144 path="$POTENTIAL_FREETYPE_LIB_PATH" 62145 has_colon=`$ECHO $path | $GREP ^.:` 62146 new_path="$path" 62147 if test "x$has_colon" = x; then 62148 # Not in mixed or Windows style, start by that. 62149 new_path=`cmd //c echo $path` 62150 fi 62151 62152 62153 input_path="$new_path" 62154 # Check if we need to convert this using DOS-style short mode. If the path 62155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62156 # take no chances and rewrite it. 62157 # Note: m4 eats our [], so we need to use [ and ] instead. 62158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62159 if test "x$has_forbidden_chars" != x; then 62160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62161 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62162 fi 62163 62164 62165 windows_path="$new_path" 62166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62167 unix_path=`$CYGPATH -u "$windows_path"` 62168 new_path="$unix_path" 62169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62171 new_path="$unix_path" 62172 fi 62173 62174 if test "x$path" != "x$new_path"; then 62175 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62177 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62178 fi 62179 62180 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62181 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62182 62183 else 62184 # We're on a unix platform. Hooray! :) 62185 path="$POTENTIAL_FREETYPE_LIB_PATH" 62186 has_space=`$ECHO "$path" | $GREP " "` 62187 if test "x$has_space" != x; then 62188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62189 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62190 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62191 fi 62192 62193 # Use eval to expand a potential ~ 62194 eval path="$path" 62195 if test ! -f "$path" && test ! -d "$path"; then 62196 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62197 fi 62198 62199 if test -d "$path"; then 62200 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62201 else 62202 dir="`$DIRNAME "$path"`" 62203 base="`$BASENAME "$path"`" 62204 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62205 fi 62206 fi 62207 fi 62208 62209 62210 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62212 $as_echo_n "checking for freetype includes... " >&6; } 62213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62214 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62215 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62217 $as_echo_n "checking for freetype libraries... " >&6; } 62218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62219 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62220 fi 62221 62222 fi 62223 if test "x$FOUND_FREETYPE" != xyes; then 62224 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 62225 62226 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62227 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62228 METHOD="well-known location" 62229 62230 # Let's start with an optimistic view of the world :-) 62231 FOUND_FREETYPE=yes 62232 62233 # First look for the canonical freetype main include file ft2build.h. 62234 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62235 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62236 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62237 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62238 # Fail. 62239 FOUND_FREETYPE=no 62240 fi 62241 fi 62242 62243 if test "x$FOUND_FREETYPE" = xyes; then 62244 # Include file found, let's continue the sanity check. 62245 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62246 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62247 62248 # Reset to default value 62249 FREETYPE_BASE_NAME=freetype 62250 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62251 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62252 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62253 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62254 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62255 # for the .6 version explicitly. 62256 FREETYPE_BASE_NAME=freetype.6 62257 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62258 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62259 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62260 else 62261 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62262 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62263 FOUND_FREETYPE=no 62264 fi 62265 else 62266 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62267 # On Windows, we will need both .lib and .dll file. 62268 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62269 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62270 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62271 FOUND_FREETYPE=no 62272 fi 62273 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62274 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62275 # Found lib in isa dir, use that instead. 62276 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62278 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62279 fi 62280 fi 62281 fi 62282 62283 if test "x$FOUND_FREETYPE" = xyes; then 62284 62285 # Only process if variable expands to non-empty 62286 62287 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62289 62290 # Input might be given as Windows format, start by converting to 62291 # unix format. 62292 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62293 new_path=`$CYGPATH -u "$path"` 62294 62295 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62296 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62297 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62298 # "foo.exe" is OK but "foo" is an error. 62299 # 62300 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62301 # It is also a way to make sure we got the proper file name for the real test later on. 62302 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62303 if test "x$test_shortpath" = x; then 62304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62305 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62306 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62307 fi 62308 62309 # Call helper function which possibly converts this using DOS-style short mode. 62310 # If so, the updated path is stored in $new_path. 62311 62312 input_path="$new_path" 62313 # Check if we need to convert this using DOS-style short mode. If the path 62314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62315 # take no chances and rewrite it. 62316 # Note: m4 eats our [], so we need to use [ and ] instead. 62317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62318 if test "x$has_forbidden_chars" != x; then 62319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62320 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62321 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62322 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62323 # Going to short mode and back again did indeed matter. Since short mode is 62324 # case insensitive, let's make it lowercase to improve readability. 62325 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62326 # Now convert it back to Unix-style (cygpath) 62327 input_path=`$CYGPATH -u "$shortmode_path"` 62328 new_path="$input_path" 62329 fi 62330 fi 62331 62332 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62333 if test "x$test_cygdrive_prefix" = x; then 62334 # As a simple fix, exclude /usr/bin since it's not a real path. 62335 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62336 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62337 # a path prefixed by /cygdrive for fixpath to work. 62338 new_path="$CYGWIN_ROOT_PATH$input_path" 62339 fi 62340 fi 62341 62342 62343 if test "x$path" != "x$new_path"; then 62344 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62346 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62347 fi 62348 62349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62350 62351 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62352 has_colon=`$ECHO $path | $GREP ^.:` 62353 new_path="$path" 62354 if test "x$has_colon" = x; then 62355 # Not in mixed or Windows style, start by that. 62356 new_path=`cmd //c echo $path` 62357 fi 62358 62359 62360 input_path="$new_path" 62361 # Check if we need to convert this using DOS-style short mode. If the path 62362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62363 # take no chances and rewrite it. 62364 # Note: m4 eats our [], so we need to use [ and ] instead. 62365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62366 if test "x$has_forbidden_chars" != x; then 62367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62368 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62369 fi 62370 62371 62372 windows_path="$new_path" 62373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62374 unix_path=`$CYGPATH -u "$windows_path"` 62375 new_path="$unix_path" 62376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62378 new_path="$unix_path" 62379 fi 62380 62381 if test "x$path" != "x$new_path"; then 62382 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62383 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62384 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62385 fi 62386 62387 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62388 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62389 62390 else 62391 # We're on a unix platform. Hooray! :) 62392 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62393 has_space=`$ECHO "$path" | $GREP " "` 62394 if test "x$has_space" != x; then 62395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62396 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62397 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62398 fi 62399 62400 # Use eval to expand a potential ~ 62401 eval path="$path" 62402 if test ! -f "$path" && test ! -d "$path"; then 62403 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62404 fi 62405 62406 if test -d "$path"; then 62407 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62408 else 62409 dir="`$DIRNAME "$path"`" 62410 base="`$BASENAME "$path"`" 62411 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62412 fi 62413 fi 62414 fi 62415 62416 62417 # Only process if variable expands to non-empty 62418 62419 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62421 62422 # Input might be given as Windows format, start by converting to 62423 # unix format. 62424 path="$POTENTIAL_FREETYPE_LIB_PATH" 62425 new_path=`$CYGPATH -u "$path"` 62426 62427 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62428 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62429 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62430 # "foo.exe" is OK but "foo" is an error. 62431 # 62432 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62433 # It is also a way to make sure we got the proper file name for the real test later on. 62434 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62435 if test "x$test_shortpath" = x; then 62436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62437 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62438 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62439 fi 62440 62441 # Call helper function which possibly converts this using DOS-style short mode. 62442 # If so, the updated path is stored in $new_path. 62443 62444 input_path="$new_path" 62445 # Check if we need to convert this using DOS-style short mode. If the path 62446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62447 # take no chances and rewrite it. 62448 # Note: m4 eats our [], so we need to use [ and ] instead. 62449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62450 if test "x$has_forbidden_chars" != x; then 62451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62452 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62453 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62454 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62455 # Going to short mode and back again did indeed matter. Since short mode is 62456 # case insensitive, let's make it lowercase to improve readability. 62457 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62458 # Now convert it back to Unix-style (cygpath) 62459 input_path=`$CYGPATH -u "$shortmode_path"` 62460 new_path="$input_path" 62461 fi 62462 fi 62463 62464 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62465 if test "x$test_cygdrive_prefix" = x; then 62466 # As a simple fix, exclude /usr/bin since it's not a real path. 62467 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62468 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62469 # a path prefixed by /cygdrive for fixpath to work. 62470 new_path="$CYGWIN_ROOT_PATH$input_path" 62471 fi 62472 fi 62473 62474 62475 if test "x$path" != "x$new_path"; then 62476 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62478 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62479 fi 62480 62481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62482 62483 path="$POTENTIAL_FREETYPE_LIB_PATH" 62484 has_colon=`$ECHO $path | $GREP ^.:` 62485 new_path="$path" 62486 if test "x$has_colon" = x; then 62487 # Not in mixed or Windows style, start by that. 62488 new_path=`cmd //c echo $path` 62489 fi 62490 62491 62492 input_path="$new_path" 62493 # Check if we need to convert this using DOS-style short mode. If the path 62494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62495 # take no chances and rewrite it. 62496 # Note: m4 eats our [], so we need to use [ and ] instead. 62497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62498 if test "x$has_forbidden_chars" != x; then 62499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62500 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62501 fi 62502 62503 62504 windows_path="$new_path" 62505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62506 unix_path=`$CYGPATH -u "$windows_path"` 62507 new_path="$unix_path" 62508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62510 new_path="$unix_path" 62511 fi 62512 62513 if test "x$path" != "x$new_path"; then 62514 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62516 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62517 fi 62518 62519 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62520 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62521 62522 else 62523 # We're on a unix platform. Hooray! :) 62524 path="$POTENTIAL_FREETYPE_LIB_PATH" 62525 has_space=`$ECHO "$path" | $GREP " "` 62526 if test "x$has_space" != x; then 62527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62528 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62529 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62530 fi 62531 62532 # Use eval to expand a potential ~ 62533 eval path="$path" 62534 if test ! -f "$path" && test ! -d "$path"; then 62535 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62536 fi 62537 62538 if test -d "$path"; then 62539 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62540 else 62541 dir="`$DIRNAME "$path"`" 62542 base="`$BASENAME "$path"`" 62543 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62544 fi 62545 fi 62546 fi 62547 62548 62549 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62551 $as_echo_n "checking for freetype includes... " >&6; } 62552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62553 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62554 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62556 $as_echo_n "checking for freetype libraries... " >&6; } 62557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62558 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62559 fi 62560 62561 fi 62562 62563 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 62564 if test "x$FOUND_FREETYPE" != xyes; then 62565 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 62566 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 62567 62568 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62569 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62570 METHOD="well-known location" 62571 62572 # Let's start with an optimistic view of the world :-) 62573 FOUND_FREETYPE=yes 62574 62575 # First look for the canonical freetype main include file ft2build.h. 62576 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62577 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62578 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62579 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62580 # Fail. 62581 FOUND_FREETYPE=no 62582 fi 62583 fi 62584 62585 if test "x$FOUND_FREETYPE" = xyes; then 62586 # Include file found, let's continue the sanity check. 62587 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62588 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62589 62590 # Reset to default value 62591 FREETYPE_BASE_NAME=freetype 62592 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62593 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62594 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62595 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62596 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62597 # for the .6 version explicitly. 62598 FREETYPE_BASE_NAME=freetype.6 62599 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62600 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62601 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62602 else 62603 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62604 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62605 FOUND_FREETYPE=no 62606 fi 62607 else 62608 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62609 # On Windows, we will need both .lib and .dll file. 62610 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62611 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62612 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62613 FOUND_FREETYPE=no 62614 fi 62615 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62616 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62617 # Found lib in isa dir, use that instead. 62618 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62620 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62621 fi 62622 fi 62623 fi 62624 62625 if test "x$FOUND_FREETYPE" = xyes; then 62626 62627 # Only process if variable expands to non-empty 62628 62629 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62631 62632 # Input might be given as Windows format, start by converting to 62633 # unix format. 62634 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62635 new_path=`$CYGPATH -u "$path"` 62636 62637 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62638 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62639 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62640 # "foo.exe" is OK but "foo" is an error. 62641 # 62642 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62643 # It is also a way to make sure we got the proper file name for the real test later on. 62644 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62645 if test "x$test_shortpath" = x; then 62646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62647 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62648 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62649 fi 62650 62651 # Call helper function which possibly converts this using DOS-style short mode. 62652 # If so, the updated path is stored in $new_path. 62653 62654 input_path="$new_path" 62655 # Check if we need to convert this using DOS-style short mode. If the path 62656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62657 # take no chances and rewrite it. 62658 # Note: m4 eats our [], so we need to use [ and ] instead. 62659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62660 if test "x$has_forbidden_chars" != x; then 62661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62662 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62663 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62664 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62665 # Going to short mode and back again did indeed matter. Since short mode is 62666 # case insensitive, let's make it lowercase to improve readability. 62667 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62668 # Now convert it back to Unix-style (cygpath) 62669 input_path=`$CYGPATH -u "$shortmode_path"` 62670 new_path="$input_path" 62671 fi 62672 fi 62673 62674 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62675 if test "x$test_cygdrive_prefix" = x; then 62676 # As a simple fix, exclude /usr/bin since it's not a real path. 62677 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62678 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62679 # a path prefixed by /cygdrive for fixpath to work. 62680 new_path="$CYGWIN_ROOT_PATH$input_path" 62681 fi 62682 fi 62683 62684 62685 if test "x$path" != "x$new_path"; then 62686 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62688 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62689 fi 62690 62691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62692 62693 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62694 has_colon=`$ECHO $path | $GREP ^.:` 62695 new_path="$path" 62696 if test "x$has_colon" = x; then 62697 # Not in mixed or Windows style, start by that. 62698 new_path=`cmd //c echo $path` 62699 fi 62700 62701 62702 input_path="$new_path" 62703 # Check if we need to convert this using DOS-style short mode. If the path 62704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62705 # take no chances and rewrite it. 62706 # Note: m4 eats our [], so we need to use [ and ] instead. 62707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62708 if test "x$has_forbidden_chars" != x; then 62709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62710 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62711 fi 62712 62713 62714 windows_path="$new_path" 62715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62716 unix_path=`$CYGPATH -u "$windows_path"` 62717 new_path="$unix_path" 62718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62720 new_path="$unix_path" 62721 fi 62722 62723 if test "x$path" != "x$new_path"; then 62724 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62726 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62727 fi 62728 62729 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62730 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62731 62732 else 62733 # We're on a unix platform. Hooray! :) 62734 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62735 has_space=`$ECHO "$path" | $GREP " "` 62736 if test "x$has_space" != x; then 62737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62738 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62739 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62740 fi 62741 62742 # Use eval to expand a potential ~ 62743 eval path="$path" 62744 if test ! -f "$path" && test ! -d "$path"; then 62745 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62746 fi 62747 62748 if test -d "$path"; then 62749 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62750 else 62751 dir="`$DIRNAME "$path"`" 62752 base="`$BASENAME "$path"`" 62753 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62754 fi 62755 fi 62756 fi 62757 62758 62759 # Only process if variable expands to non-empty 62760 62761 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62763 62764 # Input might be given as Windows format, start by converting to 62765 # unix format. 62766 path="$POTENTIAL_FREETYPE_LIB_PATH" 62767 new_path=`$CYGPATH -u "$path"` 62768 62769 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62770 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62771 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62772 # "foo.exe" is OK but "foo" is an error. 62773 # 62774 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62775 # It is also a way to make sure we got the proper file name for the real test later on. 62776 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62777 if test "x$test_shortpath" = x; then 62778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62779 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62780 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62781 fi 62782 62783 # Call helper function which possibly converts this using DOS-style short mode. 62784 # If so, the updated path is stored in $new_path. 62785 62786 input_path="$new_path" 62787 # Check if we need to convert this using DOS-style short mode. If the path 62788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62789 # take no chances and rewrite it. 62790 # Note: m4 eats our [], so we need to use [ and ] instead. 62791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62792 if test "x$has_forbidden_chars" != x; then 62793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62794 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62795 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62796 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62797 # Going to short mode and back again did indeed matter. Since short mode is 62798 # case insensitive, let's make it lowercase to improve readability. 62799 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62800 # Now convert it back to Unix-style (cygpath) 62801 input_path=`$CYGPATH -u "$shortmode_path"` 62802 new_path="$input_path" 62803 fi 62804 fi 62805 62806 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62807 if test "x$test_cygdrive_prefix" = x; then 62808 # As a simple fix, exclude /usr/bin since it's not a real path. 62809 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62810 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62811 # a path prefixed by /cygdrive for fixpath to work. 62812 new_path="$CYGWIN_ROOT_PATH$input_path" 62813 fi 62814 fi 62815 62816 62817 if test "x$path" != "x$new_path"; then 62818 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62820 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62821 fi 62822 62823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62824 62825 path="$POTENTIAL_FREETYPE_LIB_PATH" 62826 has_colon=`$ECHO $path | $GREP ^.:` 62827 new_path="$path" 62828 if test "x$has_colon" = x; then 62829 # Not in mixed or Windows style, start by that. 62830 new_path=`cmd //c echo $path` 62831 fi 62832 62833 62834 input_path="$new_path" 62835 # Check if we need to convert this using DOS-style short mode. If the path 62836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62837 # take no chances and rewrite it. 62838 # Note: m4 eats our [], so we need to use [ and ] instead. 62839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62840 if test "x$has_forbidden_chars" != x; then 62841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62843 fi 62844 62845 62846 windows_path="$new_path" 62847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62848 unix_path=`$CYGPATH -u "$windows_path"` 62849 new_path="$unix_path" 62850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62852 new_path="$unix_path" 62853 fi 62854 62855 if test "x$path" != "x$new_path"; then 62856 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62858 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62859 fi 62860 62861 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62862 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62863 62864 else 62865 # We're on a unix platform. Hooray! :) 62866 path="$POTENTIAL_FREETYPE_LIB_PATH" 62867 has_space=`$ECHO "$path" | $GREP " "` 62868 if test "x$has_space" != x; then 62869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62870 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62871 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62872 fi 62873 62874 # Use eval to expand a potential ~ 62875 eval path="$path" 62876 if test ! -f "$path" && test ! -d "$path"; then 62877 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62878 fi 62879 62880 if test -d "$path"; then 62881 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62882 else 62883 dir="`$DIRNAME "$path"`" 62884 base="`$BASENAME "$path"`" 62885 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62886 fi 62887 fi 62888 fi 62889 62890 62891 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62893 $as_echo_n "checking for freetype includes... " >&6; } 62894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62895 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62896 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62898 $as_echo_n "checking for freetype libraries... " >&6; } 62899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62900 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62901 fi 62902 62903 fi 62904 fi 62905 62906 if test "x$FOUND_FREETYPE" != xyes; then 62907 FREETYPE_BASE_DIR="$SYSROOT/usr" 62908 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 62909 62910 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62911 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 62912 METHOD="well-known location" 62913 62914 # Let's start with an optimistic view of the world :-) 62915 FOUND_FREETYPE=yes 62916 62917 # First look for the canonical freetype main include file ft2build.h. 62918 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62919 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62920 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62921 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62922 # Fail. 62923 FOUND_FREETYPE=no 62924 fi 62925 fi 62926 62927 if test "x$FOUND_FREETYPE" = xyes; then 62928 # Include file found, let's continue the sanity check. 62929 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62930 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62931 62932 # Reset to default value 62933 FREETYPE_BASE_NAME=freetype 62934 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62935 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62936 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62937 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62938 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62939 # for the .6 version explicitly. 62940 FREETYPE_BASE_NAME=freetype.6 62941 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62942 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62943 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62944 else 62945 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62946 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62947 FOUND_FREETYPE=no 62948 fi 62949 else 62950 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62951 # On Windows, we will need both .lib and .dll file. 62952 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62953 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62954 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62955 FOUND_FREETYPE=no 62956 fi 62957 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62958 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62959 # Found lib in isa dir, use that instead. 62960 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62962 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62963 fi 62964 fi 62965 fi 62966 62967 if test "x$FOUND_FREETYPE" = xyes; then 62968 62969 # Only process if variable expands to non-empty 62970 62971 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62973 62974 # Input might be given as Windows format, start by converting to 62975 # unix format. 62976 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62977 new_path=`$CYGPATH -u "$path"` 62978 62979 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62980 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62981 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62982 # "foo.exe" is OK but "foo" is an error. 62983 # 62984 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62985 # It is also a way to make sure we got the proper file name for the real test later on. 62986 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62987 if test "x$test_shortpath" = x; then 62988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62989 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62990 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62991 fi 62992 62993 # Call helper function which possibly converts this using DOS-style short mode. 62994 # If so, the updated path is stored in $new_path. 62995 62996 input_path="$new_path" 62997 # Check if we need to convert this using DOS-style short mode. If the path 62998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62999 # take no chances and rewrite it. 63000 # Note: m4 eats our [], so we need to use [ and ] instead. 63001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63002 if test "x$has_forbidden_chars" != x; then 63003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63004 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63005 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63006 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63007 # Going to short mode and back again did indeed matter. Since short mode is 63008 # case insensitive, let's make it lowercase to improve readability. 63009 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63010 # Now convert it back to Unix-style (cygpath) 63011 input_path=`$CYGPATH -u "$shortmode_path"` 63012 new_path="$input_path" 63013 fi 63014 fi 63015 63016 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63017 if test "x$test_cygdrive_prefix" = x; then 63018 # As a simple fix, exclude /usr/bin since it's not a real path. 63019 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63020 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63021 # a path prefixed by /cygdrive for fixpath to work. 63022 new_path="$CYGWIN_ROOT_PATH$input_path" 63023 fi 63024 fi 63025 63026 63027 if test "x$path" != "x$new_path"; then 63028 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63030 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63031 fi 63032 63033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63034 63035 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63036 has_colon=`$ECHO $path | $GREP ^.:` 63037 new_path="$path" 63038 if test "x$has_colon" = x; then 63039 # Not in mixed or Windows style, start by that. 63040 new_path=`cmd //c echo $path` 63041 fi 63042 63043 63044 input_path="$new_path" 63045 # Check if we need to convert this using DOS-style short mode. If the path 63046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63047 # take no chances and rewrite it. 63048 # Note: m4 eats our [], so we need to use [ and ] instead. 63049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63050 if test "x$has_forbidden_chars" != x; then 63051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63052 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63053 fi 63054 63055 63056 windows_path="$new_path" 63057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63058 unix_path=`$CYGPATH -u "$windows_path"` 63059 new_path="$unix_path" 63060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63062 new_path="$unix_path" 63063 fi 63064 63065 if test "x$path" != "x$new_path"; then 63066 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63067 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63068 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63069 fi 63070 63071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63073 63074 else 63075 # We're on a unix platform. Hooray! :) 63076 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63077 has_space=`$ECHO "$path" | $GREP " "` 63078 if test "x$has_space" != x; then 63079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63080 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63081 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63082 fi 63083 63084 # Use eval to expand a potential ~ 63085 eval path="$path" 63086 if test ! -f "$path" && test ! -d "$path"; then 63087 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63088 fi 63089 63090 if test -d "$path"; then 63091 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63092 else 63093 dir="`$DIRNAME "$path"`" 63094 base="`$BASENAME "$path"`" 63095 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63096 fi 63097 fi 63098 fi 63099 63100 63101 # Only process if variable expands to non-empty 63102 63103 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63105 63106 # Input might be given as Windows format, start by converting to 63107 # unix format. 63108 path="$POTENTIAL_FREETYPE_LIB_PATH" 63109 new_path=`$CYGPATH -u "$path"` 63110 63111 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63112 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63113 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63114 # "foo.exe" is OK but "foo" is an error. 63115 # 63116 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63117 # It is also a way to make sure we got the proper file name for the real test later on. 63118 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63119 if test "x$test_shortpath" = x; then 63120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63121 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63122 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63123 fi 63124 63125 # Call helper function which possibly converts this using DOS-style short mode. 63126 # If so, the updated path is stored in $new_path. 63127 63128 input_path="$new_path" 63129 # Check if we need to convert this using DOS-style short mode. If the path 63130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63131 # take no chances and rewrite it. 63132 # Note: m4 eats our [], so we need to use [ and ] instead. 63133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63134 if test "x$has_forbidden_chars" != x; then 63135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63136 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63137 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63138 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63139 # Going to short mode and back again did indeed matter. Since short mode is 63140 # case insensitive, let's make it lowercase to improve readability. 63141 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63142 # Now convert it back to Unix-style (cygpath) 63143 input_path=`$CYGPATH -u "$shortmode_path"` 63144 new_path="$input_path" 63145 fi 63146 fi 63147 63148 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63149 if test "x$test_cygdrive_prefix" = x; then 63150 # As a simple fix, exclude /usr/bin since it's not a real path. 63151 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63152 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63153 # a path prefixed by /cygdrive for fixpath to work. 63154 new_path="$CYGWIN_ROOT_PATH$input_path" 63155 fi 63156 fi 63157 63158 63159 if test "x$path" != "x$new_path"; then 63160 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63162 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63163 fi 63164 63165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63166 63167 path="$POTENTIAL_FREETYPE_LIB_PATH" 63168 has_colon=`$ECHO $path | $GREP ^.:` 63169 new_path="$path" 63170 if test "x$has_colon" = x; then 63171 # Not in mixed or Windows style, start by that. 63172 new_path=`cmd //c echo $path` 63173 fi 63174 63175 63176 input_path="$new_path" 63177 # Check if we need to convert this using DOS-style short mode. If the path 63178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63179 # take no chances and rewrite it. 63180 # Note: m4 eats our [], so we need to use [ and ] instead. 63181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63182 if test "x$has_forbidden_chars" != x; then 63183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63184 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63185 fi 63186 63187 63188 windows_path="$new_path" 63189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63190 unix_path=`$CYGPATH -u "$windows_path"` 63191 new_path="$unix_path" 63192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63194 new_path="$unix_path" 63195 fi 63196 63197 if test "x$path" != "x$new_path"; then 63198 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63199 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63200 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63201 fi 63202 63203 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63204 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63205 63206 else 63207 # We're on a unix platform. Hooray! :) 63208 path="$POTENTIAL_FREETYPE_LIB_PATH" 63209 has_space=`$ECHO "$path" | $GREP " "` 63210 if test "x$has_space" != x; then 63211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63212 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63213 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63214 fi 63215 63216 # Use eval to expand a potential ~ 63217 eval path="$path" 63218 if test ! -f "$path" && test ! -d "$path"; then 63219 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63220 fi 63221 63222 if test -d "$path"; then 63223 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63224 else 63225 dir="`$DIRNAME "$path"`" 63226 base="`$BASENAME "$path"`" 63227 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63228 fi 63229 fi 63230 fi 63231 63232 63233 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63235 $as_echo_n "checking for freetype includes... " >&6; } 63236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63237 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63238 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63240 $as_echo_n "checking for freetype libraries... " >&6; } 63241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63242 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63243 fi 63244 63245 else 63246 63247 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63248 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 63249 METHOD="well-known location" 63250 63251 # Let's start with an optimistic view of the world :-) 63252 FOUND_FREETYPE=yes 63253 63254 # First look for the canonical freetype main include file ft2build.h. 63255 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63256 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63257 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63258 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63259 # Fail. 63260 FOUND_FREETYPE=no 63261 fi 63262 fi 63263 63264 if test "x$FOUND_FREETYPE" = xyes; then 63265 # Include file found, let's continue the sanity check. 63266 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63267 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63268 63269 # Reset to default value 63270 FREETYPE_BASE_NAME=freetype 63271 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63272 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63273 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63274 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63275 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63276 # for the .6 version explicitly. 63277 FREETYPE_BASE_NAME=freetype.6 63278 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63279 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63280 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63281 else 63282 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63283 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63284 FOUND_FREETYPE=no 63285 fi 63286 else 63287 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63288 # On Windows, we will need both .lib and .dll file. 63289 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63290 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63291 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63292 FOUND_FREETYPE=no 63293 fi 63294 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63295 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63296 # Found lib in isa dir, use that instead. 63297 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63298 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63299 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63300 fi 63301 fi 63302 fi 63303 63304 if test "x$FOUND_FREETYPE" = xyes; then 63305 63306 # Only process if variable expands to non-empty 63307 63308 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63310 63311 # Input might be given as Windows format, start by converting to 63312 # unix format. 63313 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63314 new_path=`$CYGPATH -u "$path"` 63315 63316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63319 # "foo.exe" is OK but "foo" is an error. 63320 # 63321 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63322 # It is also a way to make sure we got the proper file name for the real test later on. 63323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63324 if test "x$test_shortpath" = x; then 63325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63326 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63327 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63328 fi 63329 63330 # Call helper function which possibly converts this using DOS-style short mode. 63331 # If so, the updated path is stored in $new_path. 63332 63333 input_path="$new_path" 63334 # Check if we need to convert this using DOS-style short mode. If the path 63335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63336 # take no chances and rewrite it. 63337 # Note: m4 eats our [], so we need to use [ and ] instead. 63338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63339 if test "x$has_forbidden_chars" != x; then 63340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63344 # Going to short mode and back again did indeed matter. Since short mode is 63345 # case insensitive, let's make it lowercase to improve readability. 63346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63347 # Now convert it back to Unix-style (cygpath) 63348 input_path=`$CYGPATH -u "$shortmode_path"` 63349 new_path="$input_path" 63350 fi 63351 fi 63352 63353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63354 if test "x$test_cygdrive_prefix" = x; then 63355 # As a simple fix, exclude /usr/bin since it's not a real path. 63356 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63358 # a path prefixed by /cygdrive for fixpath to work. 63359 new_path="$CYGWIN_ROOT_PATH$input_path" 63360 fi 63361 fi 63362 63363 63364 if test "x$path" != "x$new_path"; then 63365 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63367 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63368 fi 63369 63370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63371 63372 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63373 has_colon=`$ECHO $path | $GREP ^.:` 63374 new_path="$path" 63375 if test "x$has_colon" = x; then 63376 # Not in mixed or Windows style, start by that. 63377 new_path=`cmd //c echo $path` 63378 fi 63379 63380 63381 input_path="$new_path" 63382 # Check if we need to convert this using DOS-style short mode. If the path 63383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63384 # take no chances and rewrite it. 63385 # Note: m4 eats our [], so we need to use [ and ] instead. 63386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63387 if test "x$has_forbidden_chars" != x; then 63388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63389 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63390 fi 63391 63392 63393 windows_path="$new_path" 63394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63395 unix_path=`$CYGPATH -u "$windows_path"` 63396 new_path="$unix_path" 63397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63399 new_path="$unix_path" 63400 fi 63401 63402 if test "x$path" != "x$new_path"; then 63403 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63405 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63406 fi 63407 63408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63410 63411 else 63412 # We're on a unix platform. Hooray! :) 63413 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63414 has_space=`$ECHO "$path" | $GREP " "` 63415 if test "x$has_space" != x; then 63416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63417 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63418 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63419 fi 63420 63421 # Use eval to expand a potential ~ 63422 eval path="$path" 63423 if test ! -f "$path" && test ! -d "$path"; then 63424 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63425 fi 63426 63427 if test -d "$path"; then 63428 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63429 else 63430 dir="`$DIRNAME "$path"`" 63431 base="`$BASENAME "$path"`" 63432 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63433 fi 63434 fi 63435 fi 63436 63437 63438 # Only process if variable expands to non-empty 63439 63440 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63442 63443 # Input might be given as Windows format, start by converting to 63444 # unix format. 63445 path="$POTENTIAL_FREETYPE_LIB_PATH" 63446 new_path=`$CYGPATH -u "$path"` 63447 63448 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63449 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63450 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63451 # "foo.exe" is OK but "foo" is an error. 63452 # 63453 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63454 # It is also a way to make sure we got the proper file name for the real test later on. 63455 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63456 if test "x$test_shortpath" = x; then 63457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63458 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63459 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63460 fi 63461 63462 # Call helper function which possibly converts this using DOS-style short mode. 63463 # If so, the updated path is stored in $new_path. 63464 63465 input_path="$new_path" 63466 # Check if we need to convert this using DOS-style short mode. If the path 63467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63468 # take no chances and rewrite it. 63469 # Note: m4 eats our [], so we need to use [ and ] instead. 63470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63471 if test "x$has_forbidden_chars" != x; then 63472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63473 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63474 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63475 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63476 # Going to short mode and back again did indeed matter. Since short mode is 63477 # case insensitive, let's make it lowercase to improve readability. 63478 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63479 # Now convert it back to Unix-style (cygpath) 63480 input_path=`$CYGPATH -u "$shortmode_path"` 63481 new_path="$input_path" 63482 fi 63483 fi 63484 63485 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63486 if test "x$test_cygdrive_prefix" = x; then 63487 # As a simple fix, exclude /usr/bin since it's not a real path. 63488 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63489 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63490 # a path prefixed by /cygdrive for fixpath to work. 63491 new_path="$CYGWIN_ROOT_PATH$input_path" 63492 fi 63493 fi 63494 63495 63496 if test "x$path" != "x$new_path"; then 63497 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63498 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63499 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63500 fi 63501 63502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63503 63504 path="$POTENTIAL_FREETYPE_LIB_PATH" 63505 has_colon=`$ECHO $path | $GREP ^.:` 63506 new_path="$path" 63507 if test "x$has_colon" = x; then 63508 # Not in mixed or Windows style, start by that. 63509 new_path=`cmd //c echo $path` 63510 fi 63511 63512 63513 input_path="$new_path" 63514 # Check if we need to convert this using DOS-style short mode. If the path 63515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63516 # take no chances and rewrite it. 63517 # Note: m4 eats our [], so we need to use [ and ] instead. 63518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63519 if test "x$has_forbidden_chars" != x; then 63520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63521 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63522 fi 63523 63524 63525 windows_path="$new_path" 63526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63527 unix_path=`$CYGPATH -u "$windows_path"` 63528 new_path="$unix_path" 63529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63530 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63531 new_path="$unix_path" 63532 fi 63533 63534 if test "x$path" != "x$new_path"; then 63535 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63537 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63538 fi 63539 63540 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63541 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63542 63543 else 63544 # We're on a unix platform. Hooray! :) 63545 path="$POTENTIAL_FREETYPE_LIB_PATH" 63546 has_space=`$ECHO "$path" | $GREP " "` 63547 if test "x$has_space" != x; then 63548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63549 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63550 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63551 fi 63552 63553 # Use eval to expand a potential ~ 63554 eval path="$path" 63555 if test ! -f "$path" && test ! -d "$path"; then 63556 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63557 fi 63558 63559 if test -d "$path"; then 63560 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63561 else 63562 dir="`$DIRNAME "$path"`" 63563 base="`$BASENAME "$path"`" 63564 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63565 fi 63566 fi 63567 fi 63568 63569 63570 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63572 $as_echo_n "checking for freetype includes... " >&6; } 63573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63574 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63575 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63577 $as_echo_n "checking for freetype libraries... " >&6; } 63578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63579 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63580 fi 63581 63582 if test "x$FOUND_FREETYPE" != xyes; then 63583 63584 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63585 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 63586 METHOD="well-known location" 63587 63588 # Let's start with an optimistic view of the world :-) 63589 FOUND_FREETYPE=yes 63590 63591 # First look for the canonical freetype main include file ft2build.h. 63592 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63593 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63594 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63595 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63596 # Fail. 63597 FOUND_FREETYPE=no 63598 fi 63599 fi 63600 63601 if test "x$FOUND_FREETYPE" = xyes; then 63602 # Include file found, let's continue the sanity check. 63603 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63604 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63605 63606 # Reset to default value 63607 FREETYPE_BASE_NAME=freetype 63608 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63609 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63610 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63611 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63612 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63613 # for the .6 version explicitly. 63614 FREETYPE_BASE_NAME=freetype.6 63615 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63616 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63617 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63618 else 63619 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63620 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63621 FOUND_FREETYPE=no 63622 fi 63623 else 63624 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63625 # On Windows, we will need both .lib and .dll file. 63626 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63627 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63628 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63629 FOUND_FREETYPE=no 63630 fi 63631 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63632 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63633 # Found lib in isa dir, use that instead. 63634 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63635 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63636 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63637 fi 63638 fi 63639 fi 63640 63641 if test "x$FOUND_FREETYPE" = xyes; then 63642 63643 # Only process if variable expands to non-empty 63644 63645 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63647 63648 # Input might be given as Windows format, start by converting to 63649 # unix format. 63650 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63651 new_path=`$CYGPATH -u "$path"` 63652 63653 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63654 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63655 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63656 # "foo.exe" is OK but "foo" is an error. 63657 # 63658 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63659 # It is also a way to make sure we got the proper file name for the real test later on. 63660 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63661 if test "x$test_shortpath" = x; then 63662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63663 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63664 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63665 fi 63666 63667 # Call helper function which possibly converts this using DOS-style short mode. 63668 # If so, the updated path is stored in $new_path. 63669 63670 input_path="$new_path" 63671 # Check if we need to convert this using DOS-style short mode. If the path 63672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63673 # take no chances and rewrite it. 63674 # Note: m4 eats our [], so we need to use [ and ] instead. 63675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63676 if test "x$has_forbidden_chars" != x; then 63677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63678 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63679 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63680 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63681 # Going to short mode and back again did indeed matter. Since short mode is 63682 # case insensitive, let's make it lowercase to improve readability. 63683 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63684 # Now convert it back to Unix-style (cygpath) 63685 input_path=`$CYGPATH -u "$shortmode_path"` 63686 new_path="$input_path" 63687 fi 63688 fi 63689 63690 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63691 if test "x$test_cygdrive_prefix" = x; then 63692 # As a simple fix, exclude /usr/bin since it's not a real path. 63693 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63694 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63695 # a path prefixed by /cygdrive for fixpath to work. 63696 new_path="$CYGWIN_ROOT_PATH$input_path" 63697 fi 63698 fi 63699 63700 63701 if test "x$path" != "x$new_path"; then 63702 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63704 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63705 fi 63706 63707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63708 63709 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63710 has_colon=`$ECHO $path | $GREP ^.:` 63711 new_path="$path" 63712 if test "x$has_colon" = x; then 63713 # Not in mixed or Windows style, start by that. 63714 new_path=`cmd //c echo $path` 63715 fi 63716 63717 63718 input_path="$new_path" 63719 # Check if we need to convert this using DOS-style short mode. If the path 63720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63721 # take no chances and rewrite it. 63722 # Note: m4 eats our [], so we need to use [ and ] instead. 63723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63724 if test "x$has_forbidden_chars" != x; then 63725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63726 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63727 fi 63728 63729 63730 windows_path="$new_path" 63731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63732 unix_path=`$CYGPATH -u "$windows_path"` 63733 new_path="$unix_path" 63734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63736 new_path="$unix_path" 63737 fi 63738 63739 if test "x$path" != "x$new_path"; then 63740 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63741 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63742 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63743 fi 63744 63745 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63746 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63747 63748 else 63749 # We're on a unix platform. Hooray! :) 63750 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63751 has_space=`$ECHO "$path" | $GREP " "` 63752 if test "x$has_space" != x; then 63753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63754 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63755 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63756 fi 63757 63758 # Use eval to expand a potential ~ 63759 eval path="$path" 63760 if test ! -f "$path" && test ! -d "$path"; then 63761 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63762 fi 63763 63764 if test -d "$path"; then 63765 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63766 else 63767 dir="`$DIRNAME "$path"`" 63768 base="`$BASENAME "$path"`" 63769 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63770 fi 63771 fi 63772 fi 63773 63774 63775 # Only process if variable expands to non-empty 63776 63777 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63779 63780 # Input might be given as Windows format, start by converting to 63781 # unix format. 63782 path="$POTENTIAL_FREETYPE_LIB_PATH" 63783 new_path=`$CYGPATH -u "$path"` 63784 63785 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63786 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63787 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63788 # "foo.exe" is OK but "foo" is an error. 63789 # 63790 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63791 # It is also a way to make sure we got the proper file name for the real test later on. 63792 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63793 if test "x$test_shortpath" = x; then 63794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63795 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63796 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63797 fi 63798 63799 # Call helper function which possibly converts this using DOS-style short mode. 63800 # If so, the updated path is stored in $new_path. 63801 63802 input_path="$new_path" 63803 # Check if we need to convert this using DOS-style short mode. If the path 63804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63805 # take no chances and rewrite it. 63806 # Note: m4 eats our [], so we need to use [ and ] instead. 63807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63808 if test "x$has_forbidden_chars" != x; then 63809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63810 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63811 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63812 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63813 # Going to short mode and back again did indeed matter. Since short mode is 63814 # case insensitive, let's make it lowercase to improve readability. 63815 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63816 # Now convert it back to Unix-style (cygpath) 63817 input_path=`$CYGPATH -u "$shortmode_path"` 63818 new_path="$input_path" 63819 fi 63820 fi 63821 63822 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63823 if test "x$test_cygdrive_prefix" = x; then 63824 # As a simple fix, exclude /usr/bin since it's not a real path. 63825 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63826 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63827 # a path prefixed by /cygdrive for fixpath to work. 63828 new_path="$CYGWIN_ROOT_PATH$input_path" 63829 fi 63830 fi 63831 63832 63833 if test "x$path" != "x$new_path"; then 63834 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63836 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63837 fi 63838 63839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63840 63841 path="$POTENTIAL_FREETYPE_LIB_PATH" 63842 has_colon=`$ECHO $path | $GREP ^.:` 63843 new_path="$path" 63844 if test "x$has_colon" = x; then 63845 # Not in mixed or Windows style, start by that. 63846 new_path=`cmd //c echo $path` 63847 fi 63848 63849 63850 input_path="$new_path" 63851 # Check if we need to convert this using DOS-style short mode. If the path 63852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63853 # take no chances and rewrite it. 63854 # Note: m4 eats our [], so we need to use [ and ] instead. 63855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63856 if test "x$has_forbidden_chars" != x; then 63857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63858 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63859 fi 63860 63861 63862 windows_path="$new_path" 63863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63864 unix_path=`$CYGPATH -u "$windows_path"` 63865 new_path="$unix_path" 63866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63868 new_path="$unix_path" 63869 fi 63870 63871 if test "x$path" != "x$new_path"; then 63872 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63873 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63874 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63875 fi 63876 63877 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63878 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63879 63880 else 63881 # We're on a unix platform. Hooray! :) 63882 path="$POTENTIAL_FREETYPE_LIB_PATH" 63883 has_space=`$ECHO "$path" | $GREP " "` 63884 if test "x$has_space" != x; then 63885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63886 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63887 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63888 fi 63889 63890 # Use eval to expand a potential ~ 63891 eval path="$path" 63892 if test ! -f "$path" && test ! -d "$path"; then 63893 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63894 fi 63895 63896 if test -d "$path"; then 63897 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63898 else 63899 dir="`$DIRNAME "$path"`" 63900 base="`$BASENAME "$path"`" 63901 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63902 fi 63903 fi 63904 fi 63905 63906 63907 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63909 $as_echo_n "checking for freetype includes... " >&6; } 63910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63911 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63912 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63914 $as_echo_n "checking for freetype libraries... " >&6; } 63915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63916 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63917 fi 63918 63919 fi 63920 fi 63921 fi 63922 fi 63923 fi # end check in well-known locations 63924 63925 if test "x$FOUND_FREETYPE" != xyes; then 63926 63927 # Print a helpful message on how to acquire the necessary build dependency. 63928 # freetype is the help tag: freetype, cups, alsa etc 63929 MISSING_DEPENDENCY=freetype 63930 63931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63932 cygwin_help $MISSING_DEPENDENCY 63933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63934 msys_help $MISSING_DEPENDENCY 63935 else 63936 PKGHANDLER_COMMAND= 63937 63938 case $PKGHANDLER in 63939 apt-get) 63940 apt_help $MISSING_DEPENDENCY ;; 63941 yum) 63942 yum_help $MISSING_DEPENDENCY ;; 63943 brew) 63944 brew_help $MISSING_DEPENDENCY ;; 63945 port) 63946 port_help $MISSING_DEPENDENCY ;; 63947 pkgutil) 63948 pkgutil_help $MISSING_DEPENDENCY ;; 63949 pkgadd) 63950 pkgadd_help $MISSING_DEPENDENCY ;; 63951 esac 63952 63953 if test "x$PKGHANDLER_COMMAND" != x; then 63954 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63955 fi 63956 fi 63957 63958 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 63959 fi 63960 fi # end user specified settings 63961 63962 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 63963 if test "x$FREETYPE_CFLAGS" = x; then 63964 63965 # Only process if variable expands to non-empty 63966 63967 if test "x$FREETYPE_INCLUDE_PATH" != x; then 63968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63969 63970 # Input might be given as Windows format, start by converting to 63971 # unix format. 63972 path="$FREETYPE_INCLUDE_PATH" 63973 new_path=`$CYGPATH -u "$path"` 63974 63975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63978 # "foo.exe" is OK but "foo" is an error. 63979 # 63980 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63981 # It is also a way to make sure we got the proper file name for the real test later on. 63982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63983 if test "x$test_shortpath" = x; then 63984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63985 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63986 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 63987 fi 63988 63989 # Call helper function which possibly converts this using DOS-style short mode. 63990 # If so, the updated path is stored in $new_path. 63991 63992 input_path="$new_path" 63993 # Check if we need to convert this using DOS-style short mode. If the path 63994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63995 # take no chances and rewrite it. 63996 # Note: m4 eats our [], so we need to use [ and ] instead. 63997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63998 if test "x$has_forbidden_chars" != x; then 63999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64000 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64001 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64002 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64003 # Going to short mode and back again did indeed matter. Since short mode is 64004 # case insensitive, let's make it lowercase to improve readability. 64005 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64006 # Now convert it back to Unix-style (cygpath) 64007 input_path=`$CYGPATH -u "$shortmode_path"` 64008 new_path="$input_path" 64009 fi 64010 fi 64011 64012 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64013 if test "x$test_cygdrive_prefix" = x; then 64014 # As a simple fix, exclude /usr/bin since it's not a real path. 64015 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64016 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64017 # a path prefixed by /cygdrive for fixpath to work. 64018 new_path="$CYGWIN_ROOT_PATH$input_path" 64019 fi 64020 fi 64021 64022 64023 if test "x$path" != "x$new_path"; then 64024 FREETYPE_INCLUDE_PATH="$new_path" 64025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64026 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64027 fi 64028 64029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64030 64031 path="$FREETYPE_INCLUDE_PATH" 64032 has_colon=`$ECHO $path | $GREP ^.:` 64033 new_path="$path" 64034 if test "x$has_colon" = x; then 64035 # Not in mixed or Windows style, start by that. 64036 new_path=`cmd //c echo $path` 64037 fi 64038 64039 64040 input_path="$new_path" 64041 # Check if we need to convert this using DOS-style short mode. If the path 64042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64043 # take no chances and rewrite it. 64044 # Note: m4 eats our [], so we need to use [ and ] instead. 64045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64046 if test "x$has_forbidden_chars" != x; then 64047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64048 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64049 fi 64050 64051 64052 windows_path="$new_path" 64053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64054 unix_path=`$CYGPATH -u "$windows_path"` 64055 new_path="$unix_path" 64056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64058 new_path="$unix_path" 64059 fi 64060 64061 if test "x$path" != "x$new_path"; then 64062 FREETYPE_INCLUDE_PATH="$new_path" 64063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64064 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64065 fi 64066 64067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64069 64070 else 64071 # We're on a unix platform. Hooray! :) 64072 path="$FREETYPE_INCLUDE_PATH" 64073 has_space=`$ECHO "$path" | $GREP " "` 64074 if test "x$has_space" != x; then 64075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64076 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64077 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64078 fi 64079 64080 # Use eval to expand a potential ~ 64081 eval path="$path" 64082 if test ! -f "$path" && test ! -d "$path"; then 64083 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64084 fi 64085 64086 if test -d "$path"; then 64087 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64088 else 64089 dir="`$DIRNAME "$path"`" 64090 base="`$BASENAME "$path"`" 64091 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64092 fi 64093 fi 64094 fi 64095 64096 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 64097 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 64098 else 64099 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 64100 fi 64101 fi 64102 64103 if test "x$FREETYPE_LIBS" = x; then 64104 64105 # Only process if variable expands to non-empty 64106 64107 if test "x$FREETYPE_LIB_PATH" != x; then 64108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64109 64110 # Input might be given as Windows format, start by converting to 64111 # unix format. 64112 path="$FREETYPE_LIB_PATH" 64113 new_path=`$CYGPATH -u "$path"` 64114 64115 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64116 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64117 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64118 # "foo.exe" is OK but "foo" is an error. 64119 # 64120 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64121 # It is also a way to make sure we got the proper file name for the real test later on. 64122 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64123 if test "x$test_shortpath" = x; then 64124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64125 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64126 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 64127 fi 64128 64129 # Call helper function which possibly converts this using DOS-style short mode. 64130 # If so, the updated path is stored in $new_path. 64131 64132 input_path="$new_path" 64133 # Check if we need to convert this using DOS-style short mode. If the path 64134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64135 # take no chances and rewrite it. 64136 # Note: m4 eats our [], so we need to use [ and ] instead. 64137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64138 if test "x$has_forbidden_chars" != x; then 64139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64140 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64141 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64142 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64143 # Going to short mode and back again did indeed matter. Since short mode is 64144 # case insensitive, let's make it lowercase to improve readability. 64145 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64146 # Now convert it back to Unix-style (cygpath) 64147 input_path=`$CYGPATH -u "$shortmode_path"` 64148 new_path="$input_path" 64149 fi 64150 fi 64151 64152 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64153 if test "x$test_cygdrive_prefix" = x; then 64154 # As a simple fix, exclude /usr/bin since it's not a real path. 64155 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64156 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64157 # a path prefixed by /cygdrive for fixpath to work. 64158 new_path="$CYGWIN_ROOT_PATH$input_path" 64159 fi 64160 fi 64161 64162 64163 if test "x$path" != "x$new_path"; then 64164 FREETYPE_LIB_PATH="$new_path" 64165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64166 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64167 fi 64168 64169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64170 64171 path="$FREETYPE_LIB_PATH" 64172 has_colon=`$ECHO $path | $GREP ^.:` 64173 new_path="$path" 64174 if test "x$has_colon" = x; then 64175 # Not in mixed or Windows style, start by that. 64176 new_path=`cmd //c echo $path` 64177 fi 64178 64179 64180 input_path="$new_path" 64181 # Check if we need to convert this using DOS-style short mode. If the path 64182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64183 # take no chances and rewrite it. 64184 # Note: m4 eats our [], so we need to use [ and ] instead. 64185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64186 if test "x$has_forbidden_chars" != x; then 64187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64188 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64189 fi 64190 64191 64192 windows_path="$new_path" 64193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64194 unix_path=`$CYGPATH -u "$windows_path"` 64195 new_path="$unix_path" 64196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64198 new_path="$unix_path" 64199 fi 64200 64201 if test "x$path" != "x$new_path"; then 64202 FREETYPE_LIB_PATH="$new_path" 64203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64204 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64205 fi 64206 64207 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64208 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64209 64210 else 64211 # We're on a unix platform. Hooray! :) 64212 path="$FREETYPE_LIB_PATH" 64213 has_space=`$ECHO "$path" | $GREP " "` 64214 if test "x$has_space" != x; then 64215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64216 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64217 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64218 fi 64219 64220 # Use eval to expand a potential ~ 64221 eval path="$path" 64222 if test ! -f "$path" && test ! -d "$path"; then 64223 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64224 fi 64225 64226 if test -d "$path"; then 64227 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64228 else 64229 dir="`$DIRNAME "$path"`" 64230 base="`$BASENAME "$path"`" 64231 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64232 fi 64233 fi 64234 fi 64235 64236 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64237 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 64238 else 64239 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 64240 fi 64241 fi 64242 64243 # Try to compile it 64244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 64245 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 64246 ac_ext=cpp 64247 ac_cpp='$CXXCPP $CPPFLAGS' 64248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64251 64252 PREV_CXXCFLAGS="$CXXFLAGS" 64253 PREV_LIBS="$LIBS" 64254 PREV_CXX="$CXX" 64255 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 64256 LIBS="$LIBS $FREETYPE_LIBS" 64257 CXX="$FIXPATH $CXX" 64258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64259 /* end confdefs.h. */ 64260 64261 #include<ft2build.h> 64262 #include FT_FREETYPE_H 64263 int main () { 64264 FT_Init_FreeType(NULL); 64265 return 0; 64266 } 64267 64268 _ACEOF 64269 if ac_fn_cxx_try_link "$LINENO"; then : 64270 64271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64272 $as_echo "yes" >&6; } 64273 64274 else 64275 64276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64277 $as_echo "no" >&6; } 64278 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 64279 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 64280 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 64281 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 64282 64283 64284 # Print a helpful message on how to acquire the necessary build dependency. 64285 # freetype is the help tag: freetype, cups, alsa etc 64286 MISSING_DEPENDENCY=freetype 64287 64288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64289 cygwin_help $MISSING_DEPENDENCY 64290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64291 msys_help $MISSING_DEPENDENCY 64292 else 64293 PKGHANDLER_COMMAND= 64294 64295 case $PKGHANDLER in 64296 apt-get) 64297 apt_help $MISSING_DEPENDENCY ;; 64298 yum) 64299 yum_help $MISSING_DEPENDENCY ;; 64300 brew) 64301 brew_help $MISSING_DEPENDENCY ;; 64302 port) 64303 port_help $MISSING_DEPENDENCY ;; 64304 pkgutil) 64305 pkgutil_help $MISSING_DEPENDENCY ;; 64306 pkgadd) 64307 pkgadd_help $MISSING_DEPENDENCY ;; 64308 esac 64309 64310 if test "x$PKGHANDLER_COMMAND" != x; then 64311 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64312 fi 64313 fi 64314 64315 64316 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 64317 64318 64319 fi 64320 rm -f core conftest.err conftest.$ac_objext \ 64321 conftest$ac_exeext conftest.$ac_ext 64322 CXXCFLAGS="$PREV_CXXFLAGS" 64323 LIBS="$PREV_LIBS" 64324 CXX="$PREV_CXX" 64325 ac_ext=cpp 64326 ac_cpp='$CXXCPP $CPPFLAGS' 64327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64330 64331 64332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 64333 $as_echo_n "checking if we should bundle freetype... " >&6; } 64334 if test "x$BUNDLE_FREETYPE" = xyes; then 64335 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 64336 fi 64337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 64338 $as_echo "$BUNDLE_FREETYPE" >&6; } 64339 64340 fi # end freetype needed 64341 64342 FREETYPE_LICENSE="" 64343 if test "x$with_freetype_license" = "xyes"; then 64344 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 64345 elif test "x$with_freetype_license" != "x"; then 64346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 64347 $as_echo_n "checking for freetype license... " >&6; } 64348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 64349 $as_echo "$with_freetype_license" >&6; } 64350 FREETYPE_LICENSE="$with_freetype_license" 64351 64352 # Only process if variable expands to non-empty 64353 64354 if test "x$FREETYPE_LICENSE" != x; then 64355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64356 64357 # Input might be given as Windows format, start by converting to 64358 # unix format. 64359 path="$FREETYPE_LICENSE" 64360 new_path=`$CYGPATH -u "$path"` 64361 64362 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64363 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64364 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64365 # "foo.exe" is OK but "foo" is an error. 64366 # 64367 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64368 # It is also a way to make sure we got the proper file name for the real test later on. 64369 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64370 if test "x$test_shortpath" = x; then 64371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64372 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64373 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 64374 fi 64375 64376 # Call helper function which possibly converts this using DOS-style short mode. 64377 # If so, the updated path is stored in $new_path. 64378 64379 input_path="$new_path" 64380 # Check if we need to convert this using DOS-style short mode. If the path 64381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64382 # take no chances and rewrite it. 64383 # Note: m4 eats our [], so we need to use [ and ] instead. 64384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64385 if test "x$has_forbidden_chars" != x; then 64386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64390 # Going to short mode and back again did indeed matter. Since short mode is 64391 # case insensitive, let's make it lowercase to improve readability. 64392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64393 # Now convert it back to Unix-style (cygpath) 64394 input_path=`$CYGPATH -u "$shortmode_path"` 64395 new_path="$input_path" 64396 fi 64397 fi 64398 64399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64400 if test "x$test_cygdrive_prefix" = x; then 64401 # As a simple fix, exclude /usr/bin since it's not a real path. 64402 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64404 # a path prefixed by /cygdrive for fixpath to work. 64405 new_path="$CYGWIN_ROOT_PATH$input_path" 64406 fi 64407 fi 64408 64409 64410 if test "x$path" != "x$new_path"; then 64411 FREETYPE_LICENSE="$new_path" 64412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64413 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64414 fi 64415 64416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64417 64418 path="$FREETYPE_LICENSE" 64419 has_colon=`$ECHO $path | $GREP ^.:` 64420 new_path="$path" 64421 if test "x$has_colon" = x; then 64422 # Not in mixed or Windows style, start by that. 64423 new_path=`cmd //c echo $path` 64424 fi 64425 64426 64427 input_path="$new_path" 64428 # Check if we need to convert this using DOS-style short mode. If the path 64429 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64430 # take no chances and rewrite it. 64431 # Note: m4 eats our [], so we need to use [ and ] instead. 64432 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64433 if test "x$has_forbidden_chars" != x; then 64434 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64435 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64436 fi 64437 64438 64439 windows_path="$new_path" 64440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64441 unix_path=`$CYGPATH -u "$windows_path"` 64442 new_path="$unix_path" 64443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64445 new_path="$unix_path" 64446 fi 64447 64448 if test "x$path" != "x$new_path"; then 64449 FREETYPE_LICENSE="$new_path" 64450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64451 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64452 fi 64453 64454 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64455 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64456 64457 else 64458 # We're on a unix platform. Hooray! :) 64459 path="$FREETYPE_LICENSE" 64460 has_space=`$ECHO "$path" | $GREP " "` 64461 if test "x$has_space" != x; then 64462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64463 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64464 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64465 fi 64466 64467 # Use eval to expand a potential ~ 64468 eval path="$path" 64469 if test ! -f "$path" && test ! -d "$path"; then 64470 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 64471 fi 64472 64473 if test -d "$path"; then 64474 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 64475 else 64476 dir="`$DIRNAME "$path"`" 64477 base="`$BASENAME "$path"`" 64478 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 64479 fi 64480 fi 64481 fi 64482 64483 if test ! -f "$FREETYPE_LICENSE"; then 64484 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 64485 fi 64486 fi 64487 64488 64489 64490 64491 64492 64493 64494 64495 # Check whether --with-alsa was given. 64496 if test "${with_alsa+set}" = set; then : 64497 withval=$with_alsa; 64498 fi 64499 64500 64501 # Check whether --with-alsa-include was given. 64502 if test "${with_alsa_include+set}" = set; then : 64503 withval=$with_alsa_include; 64504 fi 64505 64506 64507 # Check whether --with-alsa-lib was given. 64508 if test "${with_alsa_lib+set}" = set; then : 64509 withval=$with_alsa_lib; 64510 fi 64511 64512 64513 if test "x$NEEDS_LIB_ALSA" = xfalse; then 64514 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 64515 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 64516 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 64517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 64518 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 64519 fi 64520 ALSA_CFLAGS= 64521 ALSA_LIBS= 64522 else 64523 ALSA_FOUND=no 64524 64525 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 64526 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 64527 fi 64528 64529 if test "x${with_alsa}" != x; then 64530 ALSA_LIBS="-L${with_alsa}/lib -lasound" 64531 ALSA_CFLAGS="-I${with_alsa}/include" 64532 ALSA_FOUND=yes 64533 fi 64534 if test "x${with_alsa_include}" != x; then 64535 ALSA_CFLAGS="-I${with_alsa_include}" 64536 ALSA_FOUND=yes 64537 fi 64538 if test "x${with_alsa_lib}" != x; then 64539 ALSA_LIBS="-L${with_alsa_lib} -lasound" 64540 ALSA_FOUND=yes 64541 fi 64542 # Do not try pkg-config if we have a sysroot set. 64543 if test "x$SYSROOT" = x; then 64544 if test "x$ALSA_FOUND" = xno; then 64545 64546 pkg_failed=no 64547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 64548 $as_echo_n "checking for ALSA... " >&6; } 64549 64550 if test -n "$ALSA_CFLAGS"; then 64551 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 64552 elif test -n "$PKG_CONFIG"; then 64553 if test -n "$PKG_CONFIG" && \ 64554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64555 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64556 ac_status=$? 64557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64558 test $ac_status = 0; }; then 64559 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 64560 else 64561 pkg_failed=yes 64562 fi 64563 else 64564 pkg_failed=untried 64565 fi 64566 if test -n "$ALSA_LIBS"; then 64567 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 64568 elif test -n "$PKG_CONFIG"; then 64569 if test -n "$PKG_CONFIG" && \ 64570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64571 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64572 ac_status=$? 64573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64574 test $ac_status = 0; }; then 64575 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 64576 else 64577 pkg_failed=yes 64578 fi 64579 else 64580 pkg_failed=untried 64581 fi 64582 64583 64584 64585 if test $pkg_failed = yes; then 64586 64587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64588 _pkg_short_errors_supported=yes 64589 else 64590 _pkg_short_errors_supported=no 64591 fi 64592 if test $_pkg_short_errors_supported = yes; then 64593 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 64594 else 64595 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 64596 fi 64597 # Put the nasty error message in config.log where it belongs 64598 echo "$ALSA_PKG_ERRORS" >&5 64599 64600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64601 $as_echo "no" >&6; } 64602 ALSA_FOUND=no 64603 elif test $pkg_failed = untried; then 64604 ALSA_FOUND=no 64605 else 64606 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 64607 ALSA_LIBS=$pkg_cv_ALSA_LIBS 64608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64609 $as_echo "yes" >&6; } 64610 ALSA_FOUND=yes 64611 fi 64612 fi 64613 fi 64614 if test "x$ALSA_FOUND" = xno; then 64615 for ac_header in alsa/asoundlib.h 64616 do : 64617 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 64618 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 64619 cat >>confdefs.h <<_ACEOF 64620 #define HAVE_ALSA_ASOUNDLIB_H 1 64621 _ACEOF 64622 64623 ALSA_FOUND=yes 64624 ALSA_CFLAGS=-Iignoreme 64625 ALSA_LIBS=-lasound 64626 DEFAULT_ALSA=yes 64627 64628 else 64629 ALSA_FOUND=no 64630 64631 fi 64632 64633 done 64634 64635 fi 64636 if test "x$ALSA_FOUND" = xno; then 64637 64638 # Print a helpful message on how to acquire the necessary build dependency. 64639 # alsa is the help tag: freetype, cups, alsa etc 64640 MISSING_DEPENDENCY=alsa 64641 64642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64643 cygwin_help $MISSING_DEPENDENCY 64644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64645 msys_help $MISSING_DEPENDENCY 64646 else 64647 PKGHANDLER_COMMAND= 64648 64649 case $PKGHANDLER in 64650 apt-get) 64651 apt_help $MISSING_DEPENDENCY ;; 64652 yum) 64653 yum_help $MISSING_DEPENDENCY ;; 64654 brew) 64655 brew_help $MISSING_DEPENDENCY ;; 64656 port) 64657 port_help $MISSING_DEPENDENCY ;; 64658 pkgutil) 64659 pkgutil_help $MISSING_DEPENDENCY ;; 64660 pkgadd) 64661 pkgadd_help $MISSING_DEPENDENCY ;; 64662 esac 64663 64664 if test "x$PKGHANDLER_COMMAND" != x; then 64665 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64666 fi 64667 fi 64668 64669 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 64670 fi 64671 fi 64672 64673 64674 64675 64676 64677 64678 # Check whether --with-libffi was given. 64679 if test "${with_libffi+set}" = set; then : 64680 withval=$with_libffi; 64681 fi 64682 64683 64684 # Check whether --with-libffi-include was given. 64685 if test "${with_libffi_include+set}" = set; then : 64686 withval=$with_libffi_include; 64687 fi 64688 64689 64690 # Check whether --with-libffi-lib was given. 64691 if test "${with_libffi_lib+set}" = set; then : 64692 withval=$with_libffi_lib; 64693 fi 64694 64695 # Check whether --enable-libffi-bundling was given. 64696 if test "${enable_libffi_bundling+set}" = set; then : 64697 enableval=$enable_libffi_bundling; 64698 fi 64699 64700 64701 if test "x$NEEDS_LIB_FFI" = xfalse; then 64702 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 64703 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 64704 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 64705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 64706 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 64707 fi 64708 LIBFFI_CFLAGS= 64709 LIBFFI_LIBS= 64710 else 64711 LIBFFI_FOUND=no 64712 64713 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 64714 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 64715 fi 64716 64717 if test "x${with_libffi}" != x; then 64718 LIBFFI_LIB_PATH="${with_libffi}/lib" 64719 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 64720 LIBFFI_CFLAGS="-I${with_libffi}/include" 64721 LIBFFI_FOUND=yes 64722 fi 64723 if test "x${with_libffi_include}" != x; then 64724 LIBFFI_CFLAGS="-I${with_libffi_include}" 64725 LIBFFI_FOUND=yes 64726 fi 64727 if test "x${with_libffi_lib}" != x; then 64728 LIBFFI_LIB_PATH="${with_libffi_lib}" 64729 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 64730 LIBFFI_FOUND=yes 64731 fi 64732 # Do not try pkg-config if we have a sysroot set. 64733 if test "x$SYSROOT" = x; then 64734 if test "x$LIBFFI_FOUND" = xno; then 64735 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 64736 64737 pkg_failed=no 64738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 64739 $as_echo_n "checking for LIBFFI... " >&6; } 64740 64741 if test -n "$LIBFFI_CFLAGS"; then 64742 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 64743 elif test -n "$PKG_CONFIG"; then 64744 if test -n "$PKG_CONFIG" && \ 64745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64746 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64747 ac_status=$? 64748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64749 test $ac_status = 0; }; then 64750 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 64751 else 64752 pkg_failed=yes 64753 fi 64754 else 64755 pkg_failed=untried 64756 fi 64757 if test -n "$LIBFFI_LIBS"; then 64758 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 64759 elif test -n "$PKG_CONFIG"; then 64760 if test -n "$PKG_CONFIG" && \ 64761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64762 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64763 ac_status=$? 64764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64765 test $ac_status = 0; }; then 64766 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 64767 else 64768 pkg_failed=yes 64769 fi 64770 else 64771 pkg_failed=untried 64772 fi 64773 64774 64775 64776 if test $pkg_failed = yes; then 64777 64778 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64779 _pkg_short_errors_supported=yes 64780 else 64781 _pkg_short_errors_supported=no 64782 fi 64783 if test $_pkg_short_errors_supported = yes; then 64784 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 64785 else 64786 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 64787 fi 64788 # Put the nasty error message in config.log where it belongs 64789 echo "$LIBFFI_PKG_ERRORS" >&5 64790 64791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64792 $as_echo "no" >&6; } 64793 LIBFFI_FOUND=no 64794 elif test $pkg_failed = untried; then 64795 LIBFFI_FOUND=no 64796 else 64797 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 64798 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 64799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64800 $as_echo "yes" >&6; } 64801 LIBFFI_FOUND=yes 64802 fi 64803 fi 64804 fi 64805 if test "x$LIBFFI_FOUND" = xno; then 64806 for ac_header in ffi.h 64807 do : 64808 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 64809 if test "x$ac_cv_header_ffi_h" = xyes; then : 64810 cat >>confdefs.h <<_ACEOF 64811 #define HAVE_FFI_H 1 64812 _ACEOF 64813 64814 LIBFFI_FOUND=yes 64815 LIBFFI_CFLAGS= 64816 LIBFFI_LIBS=-lffi 64817 64818 else 64819 LIBFFI_FOUND=no 64820 64821 fi 64822 64823 done 64824 64825 fi 64826 if test "x$LIBFFI_FOUND" = xno; then 64827 64828 # Print a helpful message on how to acquire the necessary build dependency. 64829 # ffi is the help tag: freetype, cups, alsa etc 64830 MISSING_DEPENDENCY=ffi 64831 64832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64833 cygwin_help $MISSING_DEPENDENCY 64834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64835 msys_help $MISSING_DEPENDENCY 64836 else 64837 PKGHANDLER_COMMAND= 64838 64839 case $PKGHANDLER in 64840 apt-get) 64841 apt_help $MISSING_DEPENDENCY ;; 64842 yum) 64843 yum_help $MISSING_DEPENDENCY ;; 64844 brew) 64845 brew_help $MISSING_DEPENDENCY ;; 64846 port) 64847 port_help $MISSING_DEPENDENCY ;; 64848 pkgutil) 64849 pkgutil_help $MISSING_DEPENDENCY ;; 64850 pkgadd) 64851 pkgadd_help $MISSING_DEPENDENCY ;; 64852 esac 64853 64854 if test "x$PKGHANDLER_COMMAND" != x; then 64855 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64856 fi 64857 fi 64858 64859 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 64860 fi 64861 64862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 64863 $as_echo_n "checking if libffi works... " >&6; } 64864 ac_ext=c 64865 ac_cpp='$CPP $CPPFLAGS' 64866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64868 ac_compiler_gnu=$ac_cv_c_compiler_gnu 64869 64870 OLD_CFLAGS="$CFLAGS" 64871 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 64872 OLD_LIBS="$LIBS" 64873 LIBS="$LIBS $LIBFFI_LIBS" 64874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64875 /* end confdefs.h. */ 64876 #include <ffi.h> 64877 int 64878 main () 64879 { 64880 64881 ffi_call(NULL, NULL, NULL, NULL); 64882 return 0; 64883 64884 ; 64885 return 0; 64886 } 64887 _ACEOF 64888 if ac_fn_c_try_link "$LINENO"; then : 64889 LIBFFI_WORKS=yes 64890 else 64891 LIBFFI_WORKS=no 64892 64893 fi 64894 rm -f core conftest.err conftest.$ac_objext \ 64895 conftest$ac_exeext conftest.$ac_ext 64896 CFLAGS="$OLD_CFLAGS" 64897 LIBS="$OLD_LIBS" 64898 ac_ext=cpp 64899 ac_cpp='$CXXCPP $CPPFLAGS' 64900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64903 64904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 64905 $as_echo "$LIBFFI_WORKS" >&6; } 64906 64907 if test "x$LIBFFI_WORKS" = xno; then 64908 64909 # Print a helpful message on how to acquire the necessary build dependency. 64910 # ffi is the help tag: freetype, cups, alsa etc 64911 MISSING_DEPENDENCY=ffi 64912 64913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64914 cygwin_help $MISSING_DEPENDENCY 64915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64916 msys_help $MISSING_DEPENDENCY 64917 else 64918 PKGHANDLER_COMMAND= 64919 64920 case $PKGHANDLER in 64921 apt-get) 64922 apt_help $MISSING_DEPENDENCY ;; 64923 yum) 64924 yum_help $MISSING_DEPENDENCY ;; 64925 brew) 64926 brew_help $MISSING_DEPENDENCY ;; 64927 port) 64928 port_help $MISSING_DEPENDENCY ;; 64929 pkgutil) 64930 pkgutil_help $MISSING_DEPENDENCY ;; 64931 pkgadd) 64932 pkgadd_help $MISSING_DEPENDENCY ;; 64933 esac 64934 64935 if test "x$PKGHANDLER_COMMAND" != x; then 64936 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64937 fi 64938 fi 64939 64940 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 64941 fi 64942 64943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 64944 $as_echo_n "checking if libffi should be bundled... " >&6; } 64945 if test "x$enable_libffi_bundling" = "x"; then 64946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64947 $as_echo "no" >&6; } 64948 ENABLE_LIBFFI_BUNDLING=false 64949 elif test "x$enable_libffi_bundling" = "xno"; then 64950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64951 $as_echo "no, forced" >&6; } 64952 ENABLE_LIBFFI_BUNDLING=false 64953 elif test "x$enable_libffi_bundling" = "xyes"; then 64954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64955 $as_echo "yes, forced" >&6; } 64956 ENABLE_LIBFFI_BUNDLING=true 64957 else 64958 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 64959 fi 64960 64961 # Find the libffi.so.X to bundle 64962 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 64963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 64964 $as_echo_n "checking for libffi lib file location... " >&6; } 64965 if test "x${LIBFFI_LIB_PATH}" != x; then 64966 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 64967 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 64968 else 64969 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 64970 fi 64971 else 64972 # If we don't have an explicit path, look in a few obvious places 64973 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 64974 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64975 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64976 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 64977 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 64978 else 64979 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64980 fi 64981 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 64982 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 64983 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 64984 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 64985 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 64986 else 64987 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64988 fi 64989 else 64990 # Fallback on the default /usr/lib dir 64991 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64992 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64993 else 64994 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64995 fi 64996 fi 64997 fi 64998 # Make sure the wildcard is evaluated 64999 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 65000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 65001 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 65002 fi 65003 fi 65004 65005 65006 65007 65008 65009 65010 65011 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65012 # Extract the first word of "llvm-config", so it can be a program name with args. 65013 set dummy llvm-config; ac_word=$2 65014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65015 $as_echo_n "checking for $ac_word... " >&6; } 65016 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 65017 $as_echo_n "(cached) " >&6 65018 else 65019 if test -n "$LLVM_CONFIG"; then 65020 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 65021 else 65022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65023 for as_dir in $PATH 65024 do 65025 IFS=$as_save_IFS 65026 test -z "$as_dir" && as_dir=. 65027 for ac_exec_ext in '' $ac_executable_extensions; do 65028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65029 ac_cv_prog_LLVM_CONFIG="llvm-config" 65030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65031 break 2 65032 fi 65033 done 65034 done 65035 IFS=$as_save_IFS 65036 65037 fi 65038 fi 65039 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 65040 if test -n "$LLVM_CONFIG"; then 65041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 65042 $as_echo "$LLVM_CONFIG" >&6; } 65043 else 65044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65045 $as_echo "no" >&6; } 65046 fi 65047 65048 65049 65050 if test "x$LLVM_CONFIG" != xllvm-config; then 65051 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 65052 fi 65053 65054 llvm_components="jit mcjit engine nativecodegen native" 65055 unset LLVM_CFLAGS 65056 for flag in $("$LLVM_CONFIG" --cxxflags); do 65057 if echo "${flag}" | grep -q '^-[ID]'; then 65058 if test "${flag}" != "-D_DEBUG" ; then 65059 if test "${LLVM_CFLAGS}" != "" ; then 65060 LLVM_CFLAGS="${LLVM_CFLAGS} " 65061 fi 65062 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 65063 fi 65064 fi 65065 done 65066 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 65067 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 65068 65069 unset LLVM_LDFLAGS 65070 for flag in $("${LLVM_CONFIG}" --ldflags); do 65071 if echo "${flag}" | grep -q '^-L'; then 65072 if test "${LLVM_LDFLAGS}" != ""; then 65073 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 65074 fi 65075 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 65076 fi 65077 done 65078 65079 unset LLVM_LIBS 65080 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 65081 if echo "${flag}" | grep -q '^-l'; then 65082 if test "${LLVM_LIBS}" != ""; then 65083 LLVM_LIBS="${LLVM_LIBS} " 65084 fi 65085 LLVM_LIBS="${LLVM_LIBS}${flag}" 65086 fi 65087 done 65088 65089 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 65090 # always properly detect -ltinfo 65091 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 65092 65093 65094 65095 65096 fi 65097 65098 65099 65100 # Check whether --with-libjpeg was given. 65101 if test "${with_libjpeg+set}" = set; then : 65102 withval=$with_libjpeg; 65103 fi 65104 65105 65106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 65107 $as_echo_n "checking for which libjpeg to use... " >&6; } 65108 # default is bundled 65109 DEFAULT_LIBJPEG=bundled 65110 # if user didn't specify, use DEFAULT_LIBJPEG 65111 if test "x${with_libjpeg}" = "x"; then 65112 with_libjpeg=${DEFAULT_LIBJPEG} 65113 fi 65114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 65115 $as_echo "${with_libjpeg}" >&6; } 65116 65117 if test "x${with_libjpeg}" = "xbundled"; then 65118 USE_EXTERNAL_LIBJPEG=false 65119 elif test "x${with_libjpeg}" = "xsystem"; then 65120 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 65121 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 65122 65123 else 65124 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 65125 fi 65126 65127 65128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 65129 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 65130 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 65131 $as_echo_n "(cached) " >&6 65132 else 65133 ac_check_lib_save_LIBS=$LIBS 65134 LIBS="-ljpeg $LIBS" 65135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65136 /* end confdefs.h. */ 65137 65138 /* Override any GCC internal prototype to avoid an error. 65139 Use char because int might match the return type of a GCC 65140 builtin and then its argument prototype would still apply. */ 65141 #ifdef __cplusplus 65142 extern "C" 65143 #endif 65144 char jpeg_CreateDecompress (); 65145 int 65146 main () 65147 { 65148 return jpeg_CreateDecompress (); 65149 ; 65150 return 0; 65151 } 65152 _ACEOF 65153 if ac_fn_cxx_try_link "$LINENO"; then : 65154 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 65155 else 65156 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 65157 fi 65158 rm -f core conftest.err conftest.$ac_objext \ 65159 conftest$ac_exeext conftest.$ac_ext 65160 LIBS=$ac_check_lib_save_LIBS 65161 fi 65162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 65163 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 65164 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 65165 cat >>confdefs.h <<_ACEOF 65166 #define HAVE_LIBJPEG 1 65167 _ACEOF 65168 65169 LIBS="-ljpeg $LIBS" 65170 65171 else 65172 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 65173 fi 65174 65175 65176 USE_EXTERNAL_LIBJPEG=true 65177 else 65178 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 65179 fi 65180 65181 65182 65183 65184 65185 # Check whether --with-giflib was given. 65186 if test "${with_giflib+set}" = set; then : 65187 withval=$with_giflib; 65188 fi 65189 65190 65191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 65192 $as_echo_n "checking for which giflib to use... " >&6; } 65193 # default is bundled 65194 DEFAULT_GIFLIB=bundled 65195 # if user didn't specify, use DEFAULT_GIFLIB 65196 if test "x${with_giflib}" = "x"; then 65197 with_giflib=${DEFAULT_GIFLIB} 65198 fi 65199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 65200 $as_echo "${with_giflib}" >&6; } 65201 65202 if test "x${with_giflib}" = "xbundled"; then 65203 USE_EXTERNAL_LIBGIF=false 65204 elif test "x${with_giflib}" = "xsystem"; then 65205 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 65206 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 65207 65208 else 65209 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 65210 fi 65211 65212 65213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 65214 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 65215 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 65216 $as_echo_n "(cached) " >&6 65217 else 65218 ac_check_lib_save_LIBS=$LIBS 65219 LIBS="-lgif $LIBS" 65220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65221 /* end confdefs.h. */ 65222 65223 /* Override any GCC internal prototype to avoid an error. 65224 Use char because int might match the return type of a GCC 65225 builtin and then its argument prototype would still apply. */ 65226 #ifdef __cplusplus 65227 extern "C" 65228 #endif 65229 char DGifGetCode (); 65230 int 65231 main () 65232 { 65233 return DGifGetCode (); 65234 ; 65235 return 0; 65236 } 65237 _ACEOF 65238 if ac_fn_cxx_try_link "$LINENO"; then : 65239 ac_cv_lib_gif_DGifGetCode=yes 65240 else 65241 ac_cv_lib_gif_DGifGetCode=no 65242 fi 65243 rm -f core conftest.err conftest.$ac_objext \ 65244 conftest$ac_exeext conftest.$ac_ext 65245 LIBS=$ac_check_lib_save_LIBS 65246 fi 65247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 65248 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 65249 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 65250 cat >>confdefs.h <<_ACEOF 65251 #define HAVE_LIBGIF 1 65252 _ACEOF 65253 65254 LIBS="-lgif $LIBS" 65255 65256 else 65257 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 65258 fi 65259 65260 65261 USE_EXTERNAL_LIBGIF=true 65262 else 65263 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 65264 fi 65265 65266 65267 65268 65269 65270 # Check whether --with-libpng was given. 65271 if test "${with_libpng+set}" = set; then : 65272 withval=$with_libpng; 65273 fi 65274 65275 65276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 65277 $as_echo_n "checking for which libpng to use... " >&6; } 65278 65279 # default is bundled 65280 DEFAULT_LIBPNG=bundled 65281 # if user didn't specify, use DEFAULT_LIBPNG 65282 if test "x${with_libpng}" = "x"; then 65283 with_libpng=${DEFAULT_LIBPNG} 65284 fi 65285 65286 if test "x${with_libpng}" = "xbundled"; then 65287 USE_EXTERNAL_LIBPNG=false 65288 PNG_CFLAGS="" 65289 PNG_LIBS="" 65290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65291 $as_echo "bundled" >&6; } 65292 elif test "x${with_libpng}" = "xsystem"; then 65293 65294 pkg_failed=no 65295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 65296 $as_echo_n "checking for PNG... " >&6; } 65297 65298 if test -n "$PNG_CFLAGS"; then 65299 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 65300 elif test -n "$PKG_CONFIG"; then 65301 if test -n "$PKG_CONFIG" && \ 65302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65303 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65304 ac_status=$? 65305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65306 test $ac_status = 0; }; then 65307 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 65308 else 65309 pkg_failed=yes 65310 fi 65311 else 65312 pkg_failed=untried 65313 fi 65314 if test -n "$PNG_LIBS"; then 65315 pkg_cv_PNG_LIBS="$PNG_LIBS" 65316 elif test -n "$PKG_CONFIG"; then 65317 if test -n "$PKG_CONFIG" && \ 65318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65319 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65320 ac_status=$? 65321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65322 test $ac_status = 0; }; then 65323 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 65324 else 65325 pkg_failed=yes 65326 fi 65327 else 65328 pkg_failed=untried 65329 fi 65330 65331 65332 65333 if test $pkg_failed = yes; then 65334 65335 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65336 _pkg_short_errors_supported=yes 65337 else 65338 _pkg_short_errors_supported=no 65339 fi 65340 if test $_pkg_short_errors_supported = yes; then 65341 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 65342 else 65343 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 65344 fi 65345 # Put the nasty error message in config.log where it belongs 65346 echo "$PNG_PKG_ERRORS" >&5 65347 65348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65349 $as_echo "no" >&6; } 65350 LIBPNG_FOUND=no 65351 elif test $pkg_failed = untried; then 65352 LIBPNG_FOUND=no 65353 else 65354 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 65355 PNG_LIBS=$pkg_cv_PNG_LIBS 65356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65357 $as_echo "yes" >&6; } 65358 LIBPNG_FOUND=yes 65359 fi 65360 if test "x${LIBPNG_FOUND}" = "xyes"; then 65361 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 65362 USE_EXTERNAL_LIBPNG=true 65363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65364 $as_echo "system" >&6; } 65365 else 65366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65367 $as_echo "system not found" >&6; } 65368 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 65369 fi 65370 else 65371 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 65372 fi 65373 65374 65375 65376 65377 65378 65379 65380 # Check whether --with-zlib was given. 65381 if test "${with_zlib+set}" = set; then : 65382 withval=$with_zlib; 65383 fi 65384 65385 65386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 65387 $as_echo_n "checking for compress in -lz... " >&6; } 65388 if ${ac_cv_lib_z_compress+:} false; then : 65389 $as_echo_n "(cached) " >&6 65390 else 65391 ac_check_lib_save_LIBS=$LIBS 65392 LIBS="-lz $LIBS" 65393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65394 /* end confdefs.h. */ 65395 65396 /* Override any GCC internal prototype to avoid an error. 65397 Use char because int might match the return type of a GCC 65398 builtin and then its argument prototype would still apply. */ 65399 #ifdef __cplusplus 65400 extern "C" 65401 #endif 65402 char compress (); 65403 int 65404 main () 65405 { 65406 return compress (); 65407 ; 65408 return 0; 65409 } 65410 _ACEOF 65411 if ac_fn_cxx_try_link "$LINENO"; then : 65412 ac_cv_lib_z_compress=yes 65413 else 65414 ac_cv_lib_z_compress=no 65415 fi 65416 rm -f core conftest.err conftest.$ac_objext \ 65417 conftest$ac_exeext conftest.$ac_ext 65418 LIBS=$ac_check_lib_save_LIBS 65419 fi 65420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 65421 $as_echo "$ac_cv_lib_z_compress" >&6; } 65422 if test "x$ac_cv_lib_z_compress" = xyes; then : 65423 ZLIB_FOUND=yes 65424 else 65425 ZLIB_FOUND=no 65426 fi 65427 65428 65429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 65430 $as_echo_n "checking for which zlib to use... " >&6; } 65431 65432 DEFAULT_ZLIB=system 65433 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65434 # On windows default is bundled...on others default is system 65435 DEFAULT_ZLIB=bundled 65436 fi 65437 65438 if test "x${ZLIB_FOUND}" != "xyes"; then 65439 # If we don't find any system...set default to bundled 65440 DEFAULT_ZLIB=bundled 65441 fi 65442 65443 # If user didn't specify, use DEFAULT_ZLIB 65444 if test "x${with_zlib}" = "x"; then 65445 with_zlib=${DEFAULT_ZLIB} 65446 fi 65447 65448 if test "x${with_zlib}" = "xbundled"; then 65449 USE_EXTERNAL_LIBZ=false 65450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65451 $as_echo "bundled" >&6; } 65452 elif test "x${with_zlib}" = "xsystem"; then 65453 if test "x${ZLIB_FOUND}" = "xyes"; then 65454 USE_EXTERNAL_LIBZ=true 65455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65456 $as_echo "system" >&6; } 65457 else 65458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65459 $as_echo "system not found" >&6; } 65460 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 65461 fi 65462 else 65463 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 65464 fi 65465 65466 65467 65468 65469 65470 # Check whether --with-lcms was given. 65471 if test "${with_lcms+set}" = set; then : 65472 withval=$with_lcms; 65473 fi 65474 65475 65476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 65477 $as_echo_n "checking for which lcms to use... " >&6; } 65478 65479 DEFAULT_LCMS=bundled 65480 # If user didn't specify, use DEFAULT_LCMS 65481 if test "x${with_lcms}" = "x"; then 65482 with_lcms=${DEFAULT_LCMS} 65483 fi 65484 65485 if test "x${with_lcms}" = "xbundled"; then 65486 USE_EXTERNAL_LCMS=false 65487 LCMS_CFLAGS="" 65488 LCMS_LIBS="" 65489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65490 $as_echo "bundled" >&6; } 65491 elif test "x${with_lcms}" = "xsystem"; then 65492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65493 $as_echo "system" >&6; } 65494 65495 pkg_failed=no 65496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 65497 $as_echo_n "checking for LCMS... " >&6; } 65498 65499 if test -n "$LCMS_CFLAGS"; then 65500 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 65501 elif test -n "$PKG_CONFIG"; then 65502 if test -n "$PKG_CONFIG" && \ 65503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65504 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65505 ac_status=$? 65506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65507 test $ac_status = 0; }; then 65508 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 65509 else 65510 pkg_failed=yes 65511 fi 65512 else 65513 pkg_failed=untried 65514 fi 65515 if test -n "$LCMS_LIBS"; then 65516 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 65517 elif test -n "$PKG_CONFIG"; then 65518 if test -n "$PKG_CONFIG" && \ 65519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65520 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65521 ac_status=$? 65522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65523 test $ac_status = 0; }; then 65524 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 65525 else 65526 pkg_failed=yes 65527 fi 65528 else 65529 pkg_failed=untried 65530 fi 65531 65532 65533 65534 if test $pkg_failed = yes; then 65535 65536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65537 _pkg_short_errors_supported=yes 65538 else 65539 _pkg_short_errors_supported=no 65540 fi 65541 if test $_pkg_short_errors_supported = yes; then 65542 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 65543 else 65544 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 65545 fi 65546 # Put the nasty error message in config.log where it belongs 65547 echo "$LCMS_PKG_ERRORS" >&5 65548 65549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65550 $as_echo "no" >&6; } 65551 LCMS_FOUND=no 65552 elif test $pkg_failed = untried; then 65553 LCMS_FOUND=no 65554 else 65555 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 65556 LCMS_LIBS=$pkg_cv_LCMS_LIBS 65557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65558 $as_echo "yes" >&6; } 65559 LCMS_FOUND=yes 65560 fi 65561 if test "x${LCMS_FOUND}" = "xyes"; then 65562 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 65563 USE_EXTERNAL_LCMS=true 65564 else 65565 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 65566 fi 65567 else 65568 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 65569 fi 65570 65571 65572 65573 65574 65575 65576 65577 65578 65579 65580 65581 65582 65583 # Setup libm (the maths library) 65584 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 65585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 65586 $as_echo_n "checking for cos in -lm... " >&6; } 65587 if ${ac_cv_lib_m_cos+:} false; then : 65588 $as_echo_n "(cached) " >&6 65589 else 65590 ac_check_lib_save_LIBS=$LIBS 65591 LIBS="-lm $LIBS" 65592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65593 /* end confdefs.h. */ 65594 65595 /* Override any GCC internal prototype to avoid an error. 65596 Use char because int might match the return type of a GCC 65597 builtin and then its argument prototype would still apply. */ 65598 #ifdef __cplusplus 65599 extern "C" 65600 #endif 65601 char cos (); 65602 int 65603 main () 65604 { 65605 return cos (); 65606 ; 65607 return 0; 65608 } 65609 _ACEOF 65610 if ac_fn_cxx_try_link "$LINENO"; then : 65611 ac_cv_lib_m_cos=yes 65612 else 65613 ac_cv_lib_m_cos=no 65614 fi 65615 rm -f core conftest.err conftest.$ac_objext \ 65616 conftest$ac_exeext conftest.$ac_ext 65617 LIBS=$ac_check_lib_save_LIBS 65618 fi 65619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 65620 $as_echo "$ac_cv_lib_m_cos" >&6; } 65621 if test "x$ac_cv_lib_m_cos" = xyes; then : 65622 cat >>confdefs.h <<_ACEOF 65623 #define HAVE_LIBM 1 65624 _ACEOF 65625 65626 LIBS="-lm $LIBS" 65627 65628 else 65629 65630 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 65631 $as_echo "$as_me: Maths library was not found" >&6;} 65632 65633 fi 65634 65635 LIBM="-lm" 65636 else 65637 LIBM="" 65638 fi 65639 65640 65641 # Setup libdl (for dynamic library loading) 65642 save_LIBS="$LIBS" 65643 LIBS="" 65644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 65645 $as_echo_n "checking for dlopen in -ldl... " >&6; } 65646 if ${ac_cv_lib_dl_dlopen+:} false; then : 65647 $as_echo_n "(cached) " >&6 65648 else 65649 ac_check_lib_save_LIBS=$LIBS 65650 LIBS="-ldl $LIBS" 65651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65652 /* end confdefs.h. */ 65653 65654 /* Override any GCC internal prototype to avoid an error. 65655 Use char because int might match the return type of a GCC 65656 builtin and then its argument prototype would still apply. */ 65657 #ifdef __cplusplus 65658 extern "C" 65659 #endif 65660 char dlopen (); 65661 int 65662 main () 65663 { 65664 return dlopen (); 65665 ; 65666 return 0; 65667 } 65668 _ACEOF 65669 if ac_fn_cxx_try_link "$LINENO"; then : 65670 ac_cv_lib_dl_dlopen=yes 65671 else 65672 ac_cv_lib_dl_dlopen=no 65673 fi 65674 rm -f core conftest.err conftest.$ac_objext \ 65675 conftest$ac_exeext conftest.$ac_ext 65676 LIBS=$ac_check_lib_save_LIBS 65677 fi 65678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 65679 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 65680 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 65681 cat >>confdefs.h <<_ACEOF 65682 #define HAVE_LIBDL 1 65683 _ACEOF 65684 65685 LIBS="-ldl $LIBS" 65686 65687 fi 65688 65689 LIBDL="$LIBS" 65690 65691 LIBS="$save_LIBS" 65692 65693 # Deprecated libraries, keep the flags for backwards compatibility 65694 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 65695 65696 65697 # Check whether --with-dxsdk was given. 65698 if test "${with_dxsdk+set}" = set; then : 65699 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 65700 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 65701 fi 65702 65703 65704 65705 65706 # Check whether --with-dxsdk-lib was given. 65707 if test "${with_dxsdk_lib+set}" = set; then : 65708 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 65709 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 65710 fi 65711 65712 65713 65714 65715 # Check whether --with-dxsdk-include was given. 65716 if test "${with_dxsdk_include+set}" = set; then : 65717 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 65718 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 65719 fi 65720 65721 65722 fi 65723 65724 # Control if libzip can use mmap. Available for purposes of overriding. 65725 LIBZIP_CAN_USE_MMAP=true 65726 65727 65728 65729 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 65730 # Find the root of the Solaris Studio installation from the compiler path 65731 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 65732 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 65733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 65734 $as_echo_n "checking for libstlport.so.1... " >&6; } 65735 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 65736 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 65737 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 65738 fi 65739 if test -f "$STLPORT_LIB"; then 65740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 65741 $as_echo "yes, $STLPORT_LIB" >&6; } 65742 65743 # Only process if variable expands to non-empty 65744 65745 if test "x$STLPORT_LIB" != x; then 65746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65747 65748 # Input might be given as Windows format, start by converting to 65749 # unix format. 65750 path="$STLPORT_LIB" 65751 new_path=`$CYGPATH -u "$path"` 65752 65753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65756 # "foo.exe" is OK but "foo" is an error. 65757 # 65758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65759 # It is also a way to make sure we got the proper file name for the real test later on. 65760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65761 if test "x$test_shortpath" = x; then 65762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65763 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65764 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 65765 fi 65766 65767 # Call helper function which possibly converts this using DOS-style short mode. 65768 # If so, the updated path is stored in $new_path. 65769 65770 input_path="$new_path" 65771 # Check if we need to convert this using DOS-style short mode. If the path 65772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65773 # take no chances and rewrite it. 65774 # Note: m4 eats our [], so we need to use [ and ] instead. 65775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65776 if test "x$has_forbidden_chars" != x; then 65777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65781 # Going to short mode and back again did indeed matter. Since short mode is 65782 # case insensitive, let's make it lowercase to improve readability. 65783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65784 # Now convert it back to Unix-style (cygpath) 65785 input_path=`$CYGPATH -u "$shortmode_path"` 65786 new_path="$input_path" 65787 fi 65788 fi 65789 65790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65791 if test "x$test_cygdrive_prefix" = x; then 65792 # As a simple fix, exclude /usr/bin since it's not a real path. 65793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65795 # a path prefixed by /cygdrive for fixpath to work. 65796 new_path="$CYGWIN_ROOT_PATH$input_path" 65797 fi 65798 fi 65799 65800 65801 if test "x$path" != "x$new_path"; then 65802 STLPORT_LIB="$new_path" 65803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65804 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65805 fi 65806 65807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65808 65809 path="$STLPORT_LIB" 65810 has_colon=`$ECHO $path | $GREP ^.:` 65811 new_path="$path" 65812 if test "x$has_colon" = x; then 65813 # Not in mixed or Windows style, start by that. 65814 new_path=`cmd //c echo $path` 65815 fi 65816 65817 65818 input_path="$new_path" 65819 # Check if we need to convert this using DOS-style short mode. If the path 65820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65821 # take no chances and rewrite it. 65822 # Note: m4 eats our [], so we need to use [ and ] instead. 65823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65824 if test "x$has_forbidden_chars" != x; then 65825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65827 fi 65828 65829 65830 windows_path="$new_path" 65831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65832 unix_path=`$CYGPATH -u "$windows_path"` 65833 new_path="$unix_path" 65834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65836 new_path="$unix_path" 65837 fi 65838 65839 if test "x$path" != "x$new_path"; then 65840 STLPORT_LIB="$new_path" 65841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65842 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65843 fi 65844 65845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65847 65848 else 65849 # We're on a unix platform. Hooray! :) 65850 path="$STLPORT_LIB" 65851 has_space=`$ECHO "$path" | $GREP " "` 65852 if test "x$has_space" != x; then 65853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65854 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65856 fi 65857 65858 # Use eval to expand a potential ~ 65859 eval path="$path" 65860 if test ! -f "$path" && test ! -d "$path"; then 65861 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 65862 fi 65863 65864 if test -d "$path"; then 65865 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 65866 else 65867 dir="`$DIRNAME "$path"`" 65868 base="`$BASENAME "$path"`" 65869 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 65870 fi 65871 fi 65872 fi 65873 65874 else 65875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 65876 $as_echo "no, not found at $STLPORT_LIB" >&6; } 65877 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 65878 fi 65879 65880 fi 65881 65882 65883 65884 65885 65886 65887 65888 65889 65890 65891 65892 65893 65894 65895 # Hotspot setup depends on lib checks. 65896 65897 65898 # The user can in some cases supply additional jvm features. For the custom 65899 # variant, this defines the entire variant. 65900 65901 # Check whether --with-jvm-features was given. 65902 if test "${with_jvm_features+set}" = set; then : 65903 withval=$with_jvm_features; 65904 fi 65905 65906 if test "x$with_jvm_features" != x; then 65907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 65908 $as_echo_n "checking additional JVM features... " >&6; } 65909 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 65910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 65911 $as_echo "$JVM_FEATURES" >&6; } 65912 fi 65913 65914 # Override hotspot cpu definitions for ARM platforms 65915 if test "x$OPENJDK_TARGET_CPU" = xarm; then 65916 HOTSPOT_TARGET_CPU=arm_32 65917 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 65918 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65919 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65920 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 65921 HOTSPOT_TARGET_CPU=arm_64 65922 HOTSPOT_TARGET_CPU_ARCH=arm 65923 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65924 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65925 fi 65926 65927 # Verify that dependencies are met for explicitly set features. 65928 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 65929 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 65930 fi 65931 65932 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 65933 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 65934 fi 65935 65936 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 65937 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 65938 fi 65939 65940 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65941 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 65942 fi 65943 65944 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65945 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 65946 fi 65947 65948 # Turn on additional features based on other parts of configure 65949 if test "x$INCLUDE_DTRACE" = "xtrue"; then 65950 JVM_FEATURES="$JVM_FEATURES dtrace" 65951 else 65952 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 65953 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 65954 fi 65955 fi 65956 65957 if test "x$STATIC_BUILD" = "xtrue"; then 65958 JVM_FEATURES="$JVM_FEATURES static-build" 65959 else 65960 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 65961 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 65962 fi 65963 fi 65964 65965 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65966 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 65967 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 65968 fi 65969 fi 65970 65971 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65972 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 65973 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 65974 fi 65975 fi 65976 65977 # Only enable jvmci on x86_64, sparcv9 and aarch64. 65978 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 65979 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 65980 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 65981 JVM_FEATURES_jvmci="jvmci" 65982 else 65983 JVM_FEATURES_jvmci="" 65984 fi 65985 65986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 65987 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 65988 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 65989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65990 $as_echo "yes, forced" >&6; } 65991 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 65992 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 65993 fi 65994 INCLUDE_GRAAL="true" 65995 else 65996 # By default enable graal build on linux-x64 or where AOT is available. 65997 # graal build requires jvmci. 65998 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 65999 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 66000 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 66001 test "x$ENABLE_AOT" = "xtrue") ; then 66002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66003 $as_echo "yes" >&6; } 66004 JVM_FEATURES_graal="graal" 66005 INCLUDE_GRAAL="true" 66006 else 66007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66008 $as_echo "no" >&6; } 66009 JVM_FEATURES_graal="" 66010 INCLUDE_GRAAL="false" 66011 fi 66012 fi 66013 66014 66015 66016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 66017 $as_echo_n "checking if aot should be enabled... " >&6; } 66018 if test "x$ENABLE_AOT" = "xtrue"; then 66019 if test "x$enable_aot" = "xyes"; then 66020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66021 $as_echo "yes, forced" >&6; } 66022 else 66023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66024 $as_echo "yes" >&6; } 66025 fi 66026 JVM_FEATURES_aot="aot" 66027 else 66028 if test "x$enable_aot" = "xno"; then 66029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66030 $as_echo "no, forced" >&6; } 66031 else 66032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66033 $as_echo "no" >&6; } 66034 fi 66035 JVM_FEATURES_aot="" 66036 fi 66037 66038 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 66039 # Default to use link time optimizations on minimal on arm 66040 JVM_FEATURES_link_time_opt="link-time-opt" 66041 else 66042 JVM_FEATURES_link_time_opt="" 66043 fi 66044 66045 # All variants but minimal (and custom) get these features 66046 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 66047 if test "x$ENABLE_CDS" = "xtrue"; then 66048 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 66049 fi 66050 66051 # Enable features depending on variant. 66052 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 66053 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 66054 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 66055 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 66056 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 66057 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 66058 JVM_FEATURES_custom="$JVM_FEATURES" 66059 66060 66061 66062 66063 66064 66065 66066 66067 66068 # Used for verification of Makefiles by check-jvm-feature 66069 66070 66071 # We don't support --with-jvm-interpreter anymore, use zero instead. 66072 66073 66074 # Check whether --with-jvm-interpreter was given. 66075 if test "${with_jvm_interpreter+set}" = set; then : 66076 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 66077 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 66078 fi 66079 66080 66081 66082 66083 ############################################################################### 66084 # 66085 # We need to do some final tweaking, when everything else is done. 66086 # 66087 ############################################################################### 66088 66089 66090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 66091 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 66092 66093 if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then 66094 ENABLE_INTREE_EC=true 66095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66096 $as_echo "yes" >&6; } 66097 else 66098 ENABLE_INTREE_EC=false 66099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66100 $as_echo "no" >&6; } 66101 fi 66102 66103 66104 66105 66106 # Check whether --enable-jtreg-failure-handler was given. 66107 if test "${enable_jtreg_failure_handler+set}" = set; then : 66108 enableval=$enable_jtreg_failure_handler; 66109 fi 66110 66111 66112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 66113 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 66114 66115 if test "x$enable_jtreg_failure_handler" = "xyes"; then 66116 if test "x$JT_HOME" = "x"; then 66117 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 66118 else 66119 BUILD_FAILURE_HANDLER=true 66120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66121 $as_echo "yes, forced" >&6; } 66122 fi 66123 elif test "x$enable_jtreg_failure_handler" = "xno"; then 66124 BUILD_FAILURE_HANDLER=false 66125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66126 $as_echo "no, forced" >&6; } 66127 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 66128 || test "x$enable_jtreg_failure_handler" = "x"; then 66129 if test "x$JT_HOME" = "x"; then 66130 BUILD_FAILURE_HANDLER=false 66131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 66132 $as_echo "no, missing jtreg" >&6; } 66133 else 66134 BUILD_FAILURE_HANDLER=true 66135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 66136 $as_echo "yes, jtreg present" >&6; } 66137 fi 66138 else 66139 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 66140 fi 66141 66142 66143 66144 66145 # Check whether --enable-generate-classlist was given. 66146 if test "${enable_generate_classlist+set}" = set; then : 66147 enableval=$enable_generate_classlist; 66148 fi 66149 66150 66151 # Check if it's likely that it's possible to generate the classlist. Depending 66152 # on exact jvm configuration it could be possible anyway. 66153 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 66154 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 66155 else 66156 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 66157 fi 66158 66159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 66160 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 66161 if test "x$enable_generate_classlist" = "xyes"; then 66162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66163 $as_echo "yes, forced" >&6; } 66164 ENABLE_GENERATE_CLASSLIST="true" 66165 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 66166 { $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 66167 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 66168 fi 66169 elif test "x$enable_generate_classlist" = "xno"; then 66170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66171 $as_echo "no, forced" >&6; } 66172 ENABLE_GENERATE_CLASSLIST="false" 66173 elif test "x$enable_generate_classlist" = "x"; then 66174 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 66175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66176 $as_echo "yes" >&6; } 66177 ENABLE_GENERATE_CLASSLIST="true" 66178 else 66179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66180 $as_echo "no" >&6; } 66181 ENABLE_GENERATE_CLASSLIST="false" 66182 fi 66183 else 66184 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 66185 fi 66186 66187 66188 66189 66190 ############################################################################### 66191 # 66192 # Configure parts of the build that only affect the build performance, 66193 # not the result. 66194 # 66195 ############################################################################### 66196 66197 66198 # How many cores do we have on this build system? 66199 66200 # Check whether --with-num-cores was given. 66201 if test "${with_num_cores+set}" = set; then : 66202 withval=$with_num_cores; 66203 fi 66204 66205 if test "x$with_num_cores" = x; then 66206 # The number of cores were not specified, try to probe them. 66207 66208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 66209 $as_echo_n "checking for number of cores... " >&6; } 66210 NUM_CORES=1 66211 FOUND_CORES=no 66212 66213 if test -f /proc/cpuinfo; then 66214 # Looks like a Linux (or cygwin) system 66215 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 66216 FOUND_CORES=yes 66217 elif test -x /usr/sbin/psrinfo; then 66218 # Looks like a Solaris system 66219 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 66220 FOUND_CORES=yes 66221 elif test -x /usr/sbin/sysctl; then 66222 # Looks like a MacOSX system 66223 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 66224 FOUND_CORES=yes 66225 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 66226 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 66227 FOUND_CORES=yes 66228 elif test -n "$NUMBER_OF_PROCESSORS"; then 66229 # On windows, look in the env 66230 NUM_CORES=$NUMBER_OF_PROCESSORS 66231 FOUND_CORES=yes 66232 fi 66233 66234 if test "x$FOUND_CORES" = xyes; then 66235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 66236 $as_echo "$NUM_CORES" >&6; } 66237 else 66238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 66239 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 66240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 66241 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 66242 fi 66243 66244 else 66245 NUM_CORES=$with_num_cores 66246 fi 66247 66248 66249 66250 # How much memory do we have on this build system? 66251 66252 # Check whether --with-memory-size was given. 66253 if test "${with_memory_size+set}" = set; then : 66254 withval=$with_memory_size; 66255 fi 66256 66257 if test "x$with_memory_size" = x; then 66258 # The memory size was not specified, try to probe it. 66259 66260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 66261 $as_echo_n "checking for memory size... " >&6; } 66262 # Default to 1024 MB 66263 MEMORY_SIZE=1024 66264 FOUND_MEM=no 66265 66266 if test -f /proc/meminfo; then 66267 # Looks like a Linux (or cygwin) system 66268 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 66269 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 66270 FOUND_MEM=yes 66271 elif test -x /usr/sbin/prtconf; then 66272 # Looks like a Solaris or AIX system 66273 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 66274 FOUND_MEM=yes 66275 elif test -x /usr/sbin/sysctl; then 66276 # Looks like a MacOSX system 66277 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 66278 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66279 FOUND_MEM=yes 66280 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 66281 # Windows, but without cygwin 66282 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 66283 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66284 FOUND_MEM=yes 66285 fi 66286 66287 if test "x$FOUND_MEM" = xyes; then 66288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 66289 $as_echo "$MEMORY_SIZE MB" >&6; } 66290 else 66291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 66292 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 66293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 66294 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 66295 fi 66296 66297 else 66298 MEMORY_SIZE=$with_memory_size 66299 fi 66300 66301 66302 66303 # Provide a decent default number of parallel jobs for make depending on 66304 # number of cores, amount of memory and machine architecture. 66305 66306 # Check whether --with-jobs was given. 66307 if test "${with_jobs+set}" = set; then : 66308 withval=$with_jobs; 66309 fi 66310 66311 if test "x$with_jobs" = x; then 66312 # Number of jobs was not specified, calculate. 66313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 66314 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 66315 # Approximate memory in GB. 66316 memory_gb=`expr $MEMORY_SIZE / 1024` 66317 # Pick the lowest of memory in gb and number of cores. 66318 if test "$memory_gb" -lt "$NUM_CORES"; then 66319 JOBS="$memory_gb" 66320 else 66321 JOBS="$NUM_CORES" 66322 fi 66323 if test "$JOBS" -eq "0"; then 66324 JOBS=1 66325 fi 66326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 66327 $as_echo "$JOBS" >&6; } 66328 else 66329 JOBS=$with_jobs 66330 fi 66331 66332 66333 66334 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 66335 66336 # Check whether --with-test-jobs was given. 66337 if test "${with_test_jobs+set}" = set; then : 66338 withval=$with_test_jobs; 66339 fi 66340 66341 if test "x$with_test_jobs" = x; then 66342 TEST_JOBS=0 66343 else 66344 TEST_JOBS=$with_test_jobs 66345 fi 66346 66347 66348 66349 # Setup arguments for the boot jdk (after cores and memory have been setup) 66350 66351 ############################################################################## 66352 # 66353 # Specify jvm options for anything that is run with the Boot JDK. 66354 # Not all JVM:s accept the same arguments on the command line. 66355 # 66356 66357 # Check whether --with-boot-jdk-jvmargs was given. 66358 if test "${with_boot_jdk_jvmargs+set}" = set; then : 66359 withval=$with_boot_jdk_jvmargs; 66360 fi 66361 66362 66363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 66364 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 66365 66366 # Disable special log output when a debug build is used as Boot JDK... 66367 66368 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 66369 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 66370 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 66371 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66372 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66373 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66374 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 66375 JVM_ARG_OK=true 66376 else 66377 $ECHO "Arg failed:" >&5 66378 $ECHO "$OUTPUT" >&5 66379 JVM_ARG_OK=false 66380 fi 66381 66382 66383 # Force en-US environment 66384 66385 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 66386 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 66387 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 66388 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66389 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66390 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66391 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 66392 JVM_ARG_OK=true 66393 else 66394 $ECHO "Arg failed:" >&5 66395 $ECHO "$OUTPUT" >&5 66396 JVM_ARG_OK=false 66397 fi 66398 66399 66400 if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then 66401 # Use our own CDS archive 66402 66403 $ECHO "Check if jvm arg is ok: $boot_jdk_cds_args -Xshare:auto" >&5 66404 $ECHO "Command: $JAVA $boot_jdk_cds_args -Xshare:auto -version" >&5 66405 OUTPUT=`$JAVA $boot_jdk_cds_args -Xshare:auto -version 2>&1` 66406 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66407 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66408 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66409 boot_jdk_jvmargs="$boot_jdk_jvmargs $boot_jdk_cds_args -Xshare:auto" 66410 JVM_ARG_OK=true 66411 else 66412 $ECHO "Arg failed:" >&5 66413 $ECHO "$OUTPUT" >&5 66414 JVM_ARG_OK=false 66415 fi 66416 66417 else 66418 # Otherwise optimistically use the system-wide one, if one is present 66419 66420 $ECHO "Check if jvm arg is ok: -Xshare:auto" >&5 66421 $ECHO "Command: $JAVA -Xshare:auto -version" >&5 66422 OUTPUT=`$JAVA -Xshare:auto -version 2>&1` 66423 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66424 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66425 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66426 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xshare:auto" 66427 JVM_ARG_OK=true 66428 else 66429 $ECHO "Arg failed:" >&5 66430 $ECHO "$OUTPUT" >&5 66431 JVM_ARG_OK=false 66432 fi 66433 66434 fi 66435 66436 # Apply user provided options. 66437 66438 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 66439 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 66440 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 66441 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66442 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66443 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66444 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 66445 JVM_ARG_OK=true 66446 else 66447 $ECHO "Arg failed:" >&5 66448 $ECHO "$OUTPUT" >&5 66449 JVM_ARG_OK=false 66450 fi 66451 66452 66453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 66454 $as_echo "$boot_jdk_jvmargs" >&6; } 66455 66456 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 66457 JAVA_FLAGS=$boot_jdk_jvmargs 66458 66459 66460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 66461 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 66462 66463 # Starting amount of heap memory. 66464 66465 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 66466 $ECHO "Command: $JAVA -Xms64M -version" >&5 66467 OUTPUT=`$JAVA -Xms64M -version 2>&1` 66468 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66469 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66470 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66471 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 66472 JVM_ARG_OK=true 66473 else 66474 $ECHO "Arg failed:" >&5 66475 $ECHO "$OUTPUT" >&5 66476 JVM_ARG_OK=false 66477 fi 66478 66479 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 66480 66481 # Maximum amount of heap memory and stack size. 66482 JVM_HEAP_LIMIT_32="1024" 66483 # Running a 64 bit JVM allows for and requires a bigger heap 66484 JVM_HEAP_LIMIT_64="1600" 66485 STACK_SIZE_32=768 66486 STACK_SIZE_64=1536 66487 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 66488 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 66489 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 66490 fi 66491 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 66492 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 66493 fi 66494 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 66495 JVM_HEAP_LIMIT_32=512 66496 JVM_HEAP_LIMIT_64=512 66497 fi 66498 66499 if test "x$BOOT_JDK_BITS" = "x32"; then 66500 STACK_SIZE=$STACK_SIZE_32 66501 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 66502 else 66503 STACK_SIZE=$STACK_SIZE_64 66504 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 66505 fi 66506 66507 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 66508 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 66509 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 66510 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66511 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66512 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66513 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 66514 JVM_ARG_OK=true 66515 else 66516 $ECHO "Arg failed:" >&5 66517 $ECHO "$OUTPUT" >&5 66518 JVM_ARG_OK=false 66519 fi 66520 66521 66522 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 66523 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 66524 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 66525 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66526 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66527 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66528 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 66529 JVM_ARG_OK=true 66530 else 66531 $ECHO "Arg failed:" >&5 66532 $ECHO "$OUTPUT" >&5 66533 JVM_ARG_OK=false 66534 fi 66535 66536 66537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 66538 $as_echo "$boot_jdk_jvmargs_big" >&6; } 66539 66540 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 66541 66542 66543 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 66544 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 66545 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 66546 else 66547 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 66548 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 66549 fi 66550 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 66551 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 66552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 66553 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 66554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 66555 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 66556 66557 66558 # By default, the main javac compilations use big 66559 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 66560 66561 66562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 66563 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 66564 66565 # Use serial gc for small short lived tools if possible 66566 66567 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 66568 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 66569 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 66570 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66571 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66572 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66573 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 66574 JVM_ARG_OK=true 66575 else 66576 $ECHO "Arg failed:" >&5 66577 $ECHO "$OUTPUT" >&5 66578 JVM_ARG_OK=false 66579 fi 66580 66581 66582 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 66583 $ECHO "Command: $JAVA -Xms32M -version" >&5 66584 OUTPUT=`$JAVA -Xms32M -version 2>&1` 66585 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66586 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66587 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66588 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 66589 JVM_ARG_OK=true 66590 else 66591 $ECHO "Arg failed:" >&5 66592 $ECHO "$OUTPUT" >&5 66593 JVM_ARG_OK=false 66594 fi 66595 66596 66597 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 66598 $ECHO "Command: $JAVA -Xmx512M -version" >&5 66599 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 66600 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66601 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66602 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66603 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 66604 JVM_ARG_OK=true 66605 else 66606 $ECHO "Arg failed:" >&5 66607 $ECHO "$OUTPUT" >&5 66608 JVM_ARG_OK=false 66609 fi 66610 66611 66612 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 66613 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 66614 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 66615 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66616 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66617 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66618 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 66619 JVM_ARG_OK=true 66620 else 66621 $ECHO "Arg failed:" >&5 66622 $ECHO "$OUTPUT" >&5 66623 JVM_ARG_OK=false 66624 fi 66625 66626 66627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 66628 $as_echo "$boot_jdk_jvmargs_small" >&6; } 66629 66630 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 66631 66632 66633 JAVA_TOOL_FLAGS_SMALL="" 66634 for f in $JAVA_FLAGS_SMALL; do 66635 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 66636 done 66637 66638 66639 66640 # Setup smart javac (after cores and memory have been setup) 66641 66642 66643 # Check whether --with-sjavac-server-java was given. 66644 if test "${with_sjavac_server_java+set}" = set; then : 66645 withval=$with_sjavac_server_java; 66646 fi 66647 66648 66649 if test "x$with_sjavac_server_java" != x; then 66650 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 66651 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 66652 if test "x$FOUND_VERSION" = x; then 66653 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 66654 fi 66655 else 66656 SJAVAC_SERVER_JAVA="$JAVA" 66657 fi 66658 66659 66660 if test "$MEMORY_SIZE" -gt "3000"; then 66661 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 66662 JVM_64BIT=true 66663 fi 66664 fi 66665 66666 MX_VALUE=`expr $MEMORY_SIZE / 2` 66667 if test "$JVM_64BIT" = true; then 66668 # Set ms lower than mx since more than one instance of the server might 66669 # get launched at the same time before they figure out which instance won. 66670 MS_VALUE=512 66671 if test "$MX_VALUE" -gt "2048"; then 66672 MX_VALUE=2048 66673 fi 66674 else 66675 MS_VALUE=256 66676 if test "$MX_VALUE" -gt "1500"; then 66677 MX_VALUE=1500 66678 fi 66679 fi 66680 if test "$MX_VALUE" -lt "512"; then 66681 MX_VALUE=512 66682 fi 66683 66684 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 66685 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 66686 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 66687 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66688 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66689 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66690 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 66691 JVM_ARG_OK=true 66692 else 66693 $ECHO "Arg failed:" >&5 66694 $ECHO "$OUTPUT" >&5 66695 JVM_ARG_OK=false 66696 fi 66697 66698 66699 66700 # Check whether --enable-sjavac was given. 66701 if test "${enable_sjavac+set}" = set; then : 66702 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 66703 else 66704 ENABLE_SJAVAC="no" 66705 fi 66706 66707 if test "x$JVM_ARG_OK" = "xfalse"; then 66708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 66709 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 66710 ENABLE_SJAVAC="no" 66711 fi 66712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 66713 $as_echo_n "checking whether to use sjavac... " >&6; } 66714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 66715 $as_echo "$ENABLE_SJAVAC" >&6; } 66716 66717 66718 # Check whether --enable-javac-server was given. 66719 if test "${enable_javac_server+set}" = set; then : 66720 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 66721 else 66722 ENABLE_JAVAC_SERVER="yes" 66723 fi 66724 66725 if test "x$JVM_ARG_OK" = "xfalse"; then 66726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 66727 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 66728 ENABLE_JAVAC_SERVER="no" 66729 fi 66730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 66731 $as_echo_n "checking whether to use javac server... " >&6; } 66732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 66733 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 66734 66735 66736 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 66737 # When using a server javac, the small client instances do not need much 66738 # resources. 66739 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 66740 fi 66741 66742 66743 # Setup use of icecc if requested 66744 66745 # Check whether --enable-icecc was given. 66746 if test "${enable_icecc+set}" = set; then : 66747 enableval=$enable_icecc; 66748 fi 66749 66750 66751 if test "x${enable_icecc}" = "xyes"; then 66752 66753 66754 66755 # Publish this variable in the help. 66756 66757 66758 if [ -z "${ICECC_CMD+x}" ]; then 66759 # The variable is not set by user, try to locate tool using the code snippet 66760 for ac_prog in icecc 66761 do 66762 # Extract the first word of "$ac_prog", so it can be a program name with args. 66763 set dummy $ac_prog; ac_word=$2 66764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66765 $as_echo_n "checking for $ac_word... " >&6; } 66766 if ${ac_cv_path_ICECC_CMD+:} false; then : 66767 $as_echo_n "(cached) " >&6 66768 else 66769 case $ICECC_CMD in 66770 [\\/]* | ?:[\\/]*) 66771 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66772 ;; 66773 *) 66774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66775 for as_dir in $PATH 66776 do 66777 IFS=$as_save_IFS 66778 test -z "$as_dir" && as_dir=. 66779 for ac_exec_ext in '' $ac_executable_extensions; do 66780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66781 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66783 break 2 66784 fi 66785 done 66786 done 66787 IFS=$as_save_IFS 66788 66789 ;; 66790 esac 66791 fi 66792 ICECC_CMD=$ac_cv_path_ICECC_CMD 66793 if test -n "$ICECC_CMD"; then 66794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66795 $as_echo "$ICECC_CMD" >&6; } 66796 else 66797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66798 $as_echo "no" >&6; } 66799 fi 66800 66801 66802 test -n "$ICECC_CMD" && break 66803 done 66804 66805 else 66806 # The variable is set, but is it from the command line or the environment? 66807 66808 # Try to remove the string !ICECC_CMD! from our list. 66809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 66810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66811 # If it failed, the variable was not from the command line. Ignore it, 66812 # but warn the user (except for BASH, which is always set by the calling BASH). 66813 if test "xICECC_CMD" != xBASH; then 66814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 66815 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 66816 fi 66817 # Try to locate tool using the code snippet 66818 for ac_prog in icecc 66819 do 66820 # Extract the first word of "$ac_prog", so it can be a program name with args. 66821 set dummy $ac_prog; ac_word=$2 66822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66823 $as_echo_n "checking for $ac_word... " >&6; } 66824 if ${ac_cv_path_ICECC_CMD+:} false; then : 66825 $as_echo_n "(cached) " >&6 66826 else 66827 case $ICECC_CMD in 66828 [\\/]* | ?:[\\/]*) 66829 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66830 ;; 66831 *) 66832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66833 for as_dir in $PATH 66834 do 66835 IFS=$as_save_IFS 66836 test -z "$as_dir" && as_dir=. 66837 for ac_exec_ext in '' $ac_executable_extensions; do 66838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66839 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66841 break 2 66842 fi 66843 done 66844 done 66845 IFS=$as_save_IFS 66846 66847 ;; 66848 esac 66849 fi 66850 ICECC_CMD=$ac_cv_path_ICECC_CMD 66851 if test -n "$ICECC_CMD"; then 66852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66853 $as_echo "$ICECC_CMD" >&6; } 66854 else 66855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66856 $as_echo "no" >&6; } 66857 fi 66858 66859 66860 test -n "$ICECC_CMD" && break 66861 done 66862 66863 else 66864 # If it succeeded, then it was overridden by the user. We will use it 66865 # for the tool. 66866 66867 # First remove it from the list of overridden variables, so we can test 66868 # for unknown variables in the end. 66869 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66870 66871 # Check if we try to supply an empty value 66872 if test "x$ICECC_CMD" = x; then 66873 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 66874 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 66875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66876 $as_echo_n "checking for ICECC_CMD... " >&6; } 66877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66878 $as_echo "disabled" >&6; } 66879 else 66880 # Check if the provided tool contains a complete path. 66881 tool_specified="$ICECC_CMD" 66882 tool_basename="${tool_specified##*/}" 66883 if test "x$tool_basename" = "x$tool_specified"; then 66884 # A command without a complete path is provided, search $PATH. 66885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 66886 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 66887 # Extract the first word of "$tool_basename", so it can be a program name with args. 66888 set dummy $tool_basename; ac_word=$2 66889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66890 $as_echo_n "checking for $ac_word... " >&6; } 66891 if ${ac_cv_path_ICECC_CMD+:} false; then : 66892 $as_echo_n "(cached) " >&6 66893 else 66894 case $ICECC_CMD in 66895 [\\/]* | ?:[\\/]*) 66896 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66897 ;; 66898 *) 66899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66900 for as_dir in $PATH 66901 do 66902 IFS=$as_save_IFS 66903 test -z "$as_dir" && as_dir=. 66904 for ac_exec_ext in '' $ac_executable_extensions; do 66905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66906 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66908 break 2 66909 fi 66910 done 66911 done 66912 IFS=$as_save_IFS 66913 66914 ;; 66915 esac 66916 fi 66917 ICECC_CMD=$ac_cv_path_ICECC_CMD 66918 if test -n "$ICECC_CMD"; then 66919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66920 $as_echo "$ICECC_CMD" >&6; } 66921 else 66922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66923 $as_echo "no" >&6; } 66924 fi 66925 66926 66927 if test "x$ICECC_CMD" = x; then 66928 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66929 fi 66930 else 66931 # Otherwise we believe it is a complete path. Use it as it is. 66932 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 66933 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 66934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66935 $as_echo_n "checking for ICECC_CMD... " >&6; } 66936 if test ! -x "$tool_specified"; then 66937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66938 $as_echo "not found" >&6; } 66939 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 66940 fi 66941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66942 $as_echo "$tool_specified" >&6; } 66943 fi 66944 fi 66945 fi 66946 66947 fi 66948 66949 66950 66951 if test "x$ICECC_CMD" = x; then 66952 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 66953 fi 66954 66955 66956 old_path="$PATH" 66957 66958 # Look for icecc-create-env in some known places 66959 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 66960 66961 66962 66963 # Publish this variable in the help. 66964 66965 66966 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 66967 # The variable is not set by user, try to locate tool using the code snippet 66968 for ac_prog in icecc-create-env 66969 do 66970 # Extract the first word of "$ac_prog", so it can be a program name with args. 66971 set dummy $ac_prog; ac_word=$2 66972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66973 $as_echo_n "checking for $ac_word... " >&6; } 66974 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66975 $as_echo_n "(cached) " >&6 66976 else 66977 case $ICECC_CREATE_ENV in 66978 [\\/]* | ?:[\\/]*) 66979 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66980 ;; 66981 *) 66982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66983 for as_dir in $PATH 66984 do 66985 IFS=$as_save_IFS 66986 test -z "$as_dir" && as_dir=. 66987 for ac_exec_ext in '' $ac_executable_extensions; do 66988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66989 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66991 break 2 66992 fi 66993 done 66994 done 66995 IFS=$as_save_IFS 66996 66997 ;; 66998 esac 66999 fi 67000 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 67001 if test -n "$ICECC_CREATE_ENV"; then 67002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 67003 $as_echo "$ICECC_CREATE_ENV" >&6; } 67004 else 67005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67006 $as_echo "no" >&6; } 67007 fi 67008 67009 67010 test -n "$ICECC_CREATE_ENV" && break 67011 done 67012 67013 else 67014 # The variable is set, but is it from the command line or the environment? 67015 67016 # Try to remove the string !ICECC_CREATE_ENV! from our list. 67017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 67018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67019 # If it failed, the variable was not from the command line. Ignore it, 67020 # but warn the user (except for BASH, which is always set by the calling BASH). 67021 if test "xICECC_CREATE_ENV" != xBASH; then 67022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 67023 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 67024 fi 67025 # Try to locate tool using the code snippet 67026 for ac_prog in icecc-create-env 67027 do 67028 # Extract the first word of "$ac_prog", so it can be a program name with args. 67029 set dummy $ac_prog; ac_word=$2 67030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67031 $as_echo_n "checking for $ac_word... " >&6; } 67032 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 67033 $as_echo_n "(cached) " >&6 67034 else 67035 case $ICECC_CREATE_ENV in 67036 [\\/]* | ?:[\\/]*) 67037 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 67038 ;; 67039 *) 67040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67041 for as_dir in $PATH 67042 do 67043 IFS=$as_save_IFS 67044 test -z "$as_dir" && as_dir=. 67045 for ac_exec_ext in '' $ac_executable_extensions; do 67046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67047 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 67048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67049 break 2 67050 fi 67051 done 67052 done 67053 IFS=$as_save_IFS 67054 67055 ;; 67056 esac 67057 fi 67058 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 67059 if test -n "$ICECC_CREATE_ENV"; then 67060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 67061 $as_echo "$ICECC_CREATE_ENV" >&6; } 67062 else 67063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67064 $as_echo "no" >&6; } 67065 fi 67066 67067 67068 test -n "$ICECC_CREATE_ENV" && break 67069 done 67070 67071 else 67072 # If it succeeded, then it was overridden by the user. We will use it 67073 # for the tool. 67074 67075 # First remove it from the list of overridden variables, so we can test 67076 # for unknown variables in the end. 67077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67078 67079 # Check if we try to supply an empty value 67080 if test "x$ICECC_CREATE_ENV" = x; then 67081 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 67082 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 67083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 67084 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 67085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67086 $as_echo "disabled" >&6; } 67087 else 67088 # Check if the provided tool contains a complete path. 67089 tool_specified="$ICECC_CREATE_ENV" 67090 tool_basename="${tool_specified##*/}" 67091 if test "x$tool_basename" = "x$tool_specified"; then 67092 # A command without a complete path is provided, search $PATH. 67093 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 67094 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 67095 # Extract the first word of "$tool_basename", so it can be a program name with args. 67096 set dummy $tool_basename; ac_word=$2 67097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67098 $as_echo_n "checking for $ac_word... " >&6; } 67099 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 67100 $as_echo_n "(cached) " >&6 67101 else 67102 case $ICECC_CREATE_ENV in 67103 [\\/]* | ?:[\\/]*) 67104 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 67105 ;; 67106 *) 67107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67108 for as_dir in $PATH 67109 do 67110 IFS=$as_save_IFS 67111 test -z "$as_dir" && as_dir=. 67112 for ac_exec_ext in '' $ac_executable_extensions; do 67113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67114 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 67115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67116 break 2 67117 fi 67118 done 67119 done 67120 IFS=$as_save_IFS 67121 67122 ;; 67123 esac 67124 fi 67125 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 67126 if test -n "$ICECC_CREATE_ENV"; then 67127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 67128 $as_echo "$ICECC_CREATE_ENV" >&6; } 67129 else 67130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67131 $as_echo "no" >&6; } 67132 fi 67133 67134 67135 if test "x$ICECC_CREATE_ENV" = x; then 67136 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67137 fi 67138 else 67139 # Otherwise we believe it is a complete path. Use it as it is. 67140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 67141 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 67142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 67143 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 67144 if test ! -x "$tool_specified"; then 67145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67146 $as_echo "not found" >&6; } 67147 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 67148 fi 67149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67150 $as_echo "$tool_specified" >&6; } 67151 fi 67152 fi 67153 fi 67154 67155 fi 67156 67157 67158 67159 if test "x$ICECC_CREATE_ENV" = x; then 67160 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 67161 fi 67162 67163 67164 # Use icecc-create-env to create a minimal compilation environment that can 67165 # be sent to the other hosts in the icecream cluster. 67166 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 67167 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 67168 # Older versions of icecc does not have the --gcc parameter 67169 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 67170 icecc_gcc_arg="--gcc" 67171 fi 67172 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 67173 67174 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67175 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 67176 ${icecc_create_env_log} 2>&1 ) 67177 if test "$?" != "0"; then 67178 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67179 $as_echo "$as_me: icecc-create-env output:" >&6;} 67180 cat \ 67181 ${icecc_create_env_log} 67182 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67183 fi 67184 67185 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 67186 # For clang, the icecc compilerwrapper is needed. It usually resides next 67187 # to icecc-create-env. 67188 67189 67190 67191 # Publish this variable in the help. 67192 67193 67194 if [ -z "${ICECC_WRAPPER+x}" ]; then 67195 # The variable is not set by user, try to locate tool using the code snippet 67196 for ac_prog in compilerwrapper 67197 do 67198 # Extract the first word of "$ac_prog", so it can be a program name with args. 67199 set dummy $ac_prog; ac_word=$2 67200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67201 $as_echo_n "checking for $ac_word... " >&6; } 67202 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67203 $as_echo_n "(cached) " >&6 67204 else 67205 case $ICECC_WRAPPER in 67206 [\\/]* | ?:[\\/]*) 67207 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67208 ;; 67209 *) 67210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67211 for as_dir in $PATH 67212 do 67213 IFS=$as_save_IFS 67214 test -z "$as_dir" && as_dir=. 67215 for ac_exec_ext in '' $ac_executable_extensions; do 67216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67217 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67219 break 2 67220 fi 67221 done 67222 done 67223 IFS=$as_save_IFS 67224 67225 ;; 67226 esac 67227 fi 67228 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67229 if test -n "$ICECC_WRAPPER"; then 67230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67231 $as_echo "$ICECC_WRAPPER" >&6; } 67232 else 67233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67234 $as_echo "no" >&6; } 67235 fi 67236 67237 67238 test -n "$ICECC_WRAPPER" && break 67239 done 67240 67241 else 67242 # The variable is set, but is it from the command line or the environment? 67243 67244 # Try to remove the string !ICECC_WRAPPER! from our list. 67245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 67246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67247 # If it failed, the variable was not from the command line. Ignore it, 67248 # but warn the user (except for BASH, which is always set by the calling BASH). 67249 if test "xICECC_WRAPPER" != xBASH; then 67250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 67251 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 67252 fi 67253 # Try to locate tool using the code snippet 67254 for ac_prog in compilerwrapper 67255 do 67256 # Extract the first word of "$ac_prog", so it can be a program name with args. 67257 set dummy $ac_prog; ac_word=$2 67258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67259 $as_echo_n "checking for $ac_word... " >&6; } 67260 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67261 $as_echo_n "(cached) " >&6 67262 else 67263 case $ICECC_WRAPPER in 67264 [\\/]* | ?:[\\/]*) 67265 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67266 ;; 67267 *) 67268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67269 for as_dir in $PATH 67270 do 67271 IFS=$as_save_IFS 67272 test -z "$as_dir" && as_dir=. 67273 for ac_exec_ext in '' $ac_executable_extensions; do 67274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67275 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67277 break 2 67278 fi 67279 done 67280 done 67281 IFS=$as_save_IFS 67282 67283 ;; 67284 esac 67285 fi 67286 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67287 if test -n "$ICECC_WRAPPER"; then 67288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67289 $as_echo "$ICECC_WRAPPER" >&6; } 67290 else 67291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67292 $as_echo "no" >&6; } 67293 fi 67294 67295 67296 test -n "$ICECC_WRAPPER" && break 67297 done 67298 67299 else 67300 # If it succeeded, then it was overridden by the user. We will use it 67301 # for the tool. 67302 67303 # First remove it from the list of overridden variables, so we can test 67304 # for unknown variables in the end. 67305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67306 67307 # Check if we try to supply an empty value 67308 if test "x$ICECC_WRAPPER" = x; then 67309 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 67310 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 67311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67312 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67314 $as_echo "disabled" >&6; } 67315 else 67316 # Check if the provided tool contains a complete path. 67317 tool_specified="$ICECC_WRAPPER" 67318 tool_basename="${tool_specified##*/}" 67319 if test "x$tool_basename" = "x$tool_specified"; then 67320 # A command without a complete path is provided, search $PATH. 67321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 67322 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 67323 # Extract the first word of "$tool_basename", so it can be a program name with args. 67324 set dummy $tool_basename; ac_word=$2 67325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67326 $as_echo_n "checking for $ac_word... " >&6; } 67327 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67328 $as_echo_n "(cached) " >&6 67329 else 67330 case $ICECC_WRAPPER in 67331 [\\/]* | ?:[\\/]*) 67332 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67333 ;; 67334 *) 67335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67336 for as_dir in $PATH 67337 do 67338 IFS=$as_save_IFS 67339 test -z "$as_dir" && as_dir=. 67340 for ac_exec_ext in '' $ac_executable_extensions; do 67341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67342 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67344 break 2 67345 fi 67346 done 67347 done 67348 IFS=$as_save_IFS 67349 67350 ;; 67351 esac 67352 fi 67353 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67354 if test -n "$ICECC_WRAPPER"; then 67355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67356 $as_echo "$ICECC_WRAPPER" >&6; } 67357 else 67358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67359 $as_echo "no" >&6; } 67360 fi 67361 67362 67363 if test "x$ICECC_WRAPPER" = x; then 67364 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67365 fi 67366 else 67367 # Otherwise we believe it is a complete path. Use it as it is. 67368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 67369 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 67370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67371 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67372 if test ! -x "$tool_specified"; then 67373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67374 $as_echo "not found" >&6; } 67375 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 67376 fi 67377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67378 $as_echo "$tool_specified" >&6; } 67379 fi 67380 fi 67381 fi 67382 67383 fi 67384 67385 67386 67387 if test "x$ICECC_WRAPPER" = x; then 67388 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 67389 fi 67390 67391 67392 67393 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67394 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 67395 if test "$?" != "0"; then 67396 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67397 $as_echo "$as_me: icecc-create-env output:" >&6;} 67398 cat ${icecc_create_env_log} 67399 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67400 fi 67401 67402 else 67403 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 67404 fi 67405 PATH="$old_path" 67406 # The bundle with the compiler gets a name based on checksums. Parse log file 67407 # to find it. 67408 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 67409 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67410 if test ! -f ${ICECC_ENV_BUNDLE}; then 67411 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67412 fi 67413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 67414 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 67415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67416 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67417 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 67418 67419 if test "x${COMPILE_TYPE}" = "xcross"; then 67420 # If cross compiling, create a separate env package for the build compiler 67421 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 67422 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 67423 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 67424 67425 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67426 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 67427 ${icecc_create_env_log_build} 2>&1 ) 67428 if test "$?" != "0"; then 67429 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67430 $as_echo "$as_me: icecc-create-env output:" >&6;} 67431 cat \ 67432 ${icecc_create_env_log_build} 67433 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67434 fi 67435 67436 elif test "x${BUILD_CC##*/}" = "xclang"; then 67437 67438 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67439 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 67440 if test "$?" != "0"; then 67441 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67442 $as_echo "$as_me: icecc-create-env output:" >&6;} 67443 cat ${icecc_create_env_log_build} 67444 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67445 fi 67446 67447 else 67448 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 67449 fi 67450 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 67451 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67452 if test ! -f ${ICECC_ENV_BUNDLE}; then 67453 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67454 fi 67455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 67456 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 67457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67458 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67459 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 67460 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 67461 else 67462 BUILD_ICECC="${ICECC}" 67463 fi 67464 67465 67466 fi 67467 67468 67469 # Can the C/C++ compiler use precompiled headers? 67470 67471 67472 ############################################################################### 67473 # 67474 # Can the C/C++ compiler use precompiled headers? 67475 # 67476 # Check whether --enable-precompiled-headers was given. 67477 if test "${enable_precompiled_headers+set}" = set; then : 67478 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 67479 else 67480 ENABLE_PRECOMPH=yes 67481 fi 67482 67483 67484 USE_PRECOMPILED_HEADER=true 67485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 67486 $as_echo_n "checking If precompiled header is enabled... " >&6; } 67487 if test "x$ENABLE_PRECOMPH" = xno; then 67488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67489 $as_echo "no, forced" >&6; } 67490 USE_PRECOMPILED_HEADER=false 67491 elif test "x$ICECC" != "x"; then 67492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 67493 $as_echo "no, does not work effectively with icecc" >&6; } 67494 USE_PRECOMPILED_HEADER=false 67495 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 67496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 67497 $as_echo "no, does not work with Solaris Studio" >&6; } 67498 USE_PRECOMPILED_HEADER=false 67499 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 67500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 67501 $as_echo "no, does not work with xlc" >&6; } 67502 USE_PRECOMPILED_HEADER=false 67503 else 67504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67505 $as_echo "yes" >&6; } 67506 fi 67507 67508 if test "x$ENABLE_PRECOMPH" = xyes; then 67509 # Check that the compiler actually supports precomp headers. 67510 if test "x$TOOLCHAIN_TYPE" = xgcc; then 67511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 67512 $as_echo_n "checking that precompiled headers work... " >&6; } 67513 echo "int alfa();" > conftest.h 67514 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 67515 if test ! -f conftest.hpp.gch; then 67516 USE_PRECOMPILED_HEADER=false 67517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67518 $as_echo "no" >&6; } 67519 else 67520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67521 $as_echo "yes" >&6; } 67522 fi 67523 $RM conftest.h conftest.hpp.gch 67524 fi 67525 fi 67526 67527 67528 67529 67530 # Setup use of ccache, if available 67531 67532 # Check whether --enable-ccache was given. 67533 if test "${enable_ccache+set}" = set; then : 67534 enableval=$enable_ccache; 67535 fi 67536 67537 67538 CCACHE_STATUS= 67539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 67540 $as_echo_n "checking is ccache enabled... " >&6; } 67541 if test "x$enable_ccache" = xyes; then 67542 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 67543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67544 $as_echo "yes" >&6; } 67545 OLD_PATH="$PATH" 67546 if test "x$TOOLCHAIN_PATH" != x; then 67547 PATH=$TOOLCHAIN_PATH:$PATH 67548 fi 67549 67550 67551 67552 # Publish this variable in the help. 67553 67554 67555 if [ -z "${CCACHE+x}" ]; then 67556 # The variable is not set by user, try to locate tool using the code snippet 67557 for ac_prog in ccache 67558 do 67559 # Extract the first word of "$ac_prog", so it can be a program name with args. 67560 set dummy $ac_prog; ac_word=$2 67561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67562 $as_echo_n "checking for $ac_word... " >&6; } 67563 if ${ac_cv_path_CCACHE+:} false; then : 67564 $as_echo_n "(cached) " >&6 67565 else 67566 case $CCACHE in 67567 [\\/]* | ?:[\\/]*) 67568 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67569 ;; 67570 *) 67571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67572 for as_dir in $PATH 67573 do 67574 IFS=$as_save_IFS 67575 test -z "$as_dir" && as_dir=. 67576 for ac_exec_ext in '' $ac_executable_extensions; do 67577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67578 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67580 break 2 67581 fi 67582 done 67583 done 67584 IFS=$as_save_IFS 67585 67586 ;; 67587 esac 67588 fi 67589 CCACHE=$ac_cv_path_CCACHE 67590 if test -n "$CCACHE"; then 67591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67592 $as_echo "$CCACHE" >&6; } 67593 else 67594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67595 $as_echo "no" >&6; } 67596 fi 67597 67598 67599 test -n "$CCACHE" && break 67600 done 67601 67602 else 67603 # The variable is set, but is it from the command line or the environment? 67604 67605 # Try to remove the string !CCACHE! from our list. 67606 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 67607 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67608 # If it failed, the variable was not from the command line. Ignore it, 67609 # but warn the user (except for BASH, which is always set by the calling BASH). 67610 if test "xCCACHE" != xBASH; then 67611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 67612 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 67613 fi 67614 # Try to locate tool using the code snippet 67615 for ac_prog in ccache 67616 do 67617 # Extract the first word of "$ac_prog", so it can be a program name with args. 67618 set dummy $ac_prog; ac_word=$2 67619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67620 $as_echo_n "checking for $ac_word... " >&6; } 67621 if ${ac_cv_path_CCACHE+:} false; then : 67622 $as_echo_n "(cached) " >&6 67623 else 67624 case $CCACHE in 67625 [\\/]* | ?:[\\/]*) 67626 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67627 ;; 67628 *) 67629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67630 for as_dir in $PATH 67631 do 67632 IFS=$as_save_IFS 67633 test -z "$as_dir" && as_dir=. 67634 for ac_exec_ext in '' $ac_executable_extensions; do 67635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67636 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67638 break 2 67639 fi 67640 done 67641 done 67642 IFS=$as_save_IFS 67643 67644 ;; 67645 esac 67646 fi 67647 CCACHE=$ac_cv_path_CCACHE 67648 if test -n "$CCACHE"; then 67649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67650 $as_echo "$CCACHE" >&6; } 67651 else 67652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67653 $as_echo "no" >&6; } 67654 fi 67655 67656 67657 test -n "$CCACHE" && break 67658 done 67659 67660 else 67661 # If it succeeded, then it was overridden by the user. We will use it 67662 # for the tool. 67663 67664 # First remove it from the list of overridden variables, so we can test 67665 # for unknown variables in the end. 67666 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67667 67668 # Check if we try to supply an empty value 67669 if test "x$CCACHE" = x; then 67670 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 67671 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 67672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67673 $as_echo_n "checking for CCACHE... " >&6; } 67674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67675 $as_echo "disabled" >&6; } 67676 else 67677 # Check if the provided tool contains a complete path. 67678 tool_specified="$CCACHE" 67679 tool_basename="${tool_specified##*/}" 67680 if test "x$tool_basename" = "x$tool_specified"; then 67681 # A command without a complete path is provided, search $PATH. 67682 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 67683 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 67684 # Extract the first word of "$tool_basename", so it can be a program name with args. 67685 set dummy $tool_basename; ac_word=$2 67686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67687 $as_echo_n "checking for $ac_word... " >&6; } 67688 if ${ac_cv_path_CCACHE+:} false; then : 67689 $as_echo_n "(cached) " >&6 67690 else 67691 case $CCACHE in 67692 [\\/]* | ?:[\\/]*) 67693 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67694 ;; 67695 *) 67696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67697 for as_dir in $PATH 67698 do 67699 IFS=$as_save_IFS 67700 test -z "$as_dir" && as_dir=. 67701 for ac_exec_ext in '' $ac_executable_extensions; do 67702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67703 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67705 break 2 67706 fi 67707 done 67708 done 67709 IFS=$as_save_IFS 67710 67711 ;; 67712 esac 67713 fi 67714 CCACHE=$ac_cv_path_CCACHE 67715 if test -n "$CCACHE"; then 67716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67717 $as_echo "$CCACHE" >&6; } 67718 else 67719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67720 $as_echo "no" >&6; } 67721 fi 67722 67723 67724 if test "x$CCACHE" = x; then 67725 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67726 fi 67727 else 67728 # Otherwise we believe it is a complete path. Use it as it is. 67729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 67730 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 67731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67732 $as_echo_n "checking for CCACHE... " >&6; } 67733 if test ! -x "$tool_specified"; then 67734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67735 $as_echo "not found" >&6; } 67736 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 67737 fi 67738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67739 $as_echo "$tool_specified" >&6; } 67740 fi 67741 fi 67742 fi 67743 67744 fi 67745 67746 67747 67748 if test "x$CCACHE" = x; then 67749 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 67750 fi 67751 67752 67753 PATH="$OLD_PATH" 67754 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 67755 CCACHE_STATUS="Active ($CCACHE_VERSION)" 67756 else 67757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67758 $as_echo "no" >&6; } 67759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 67760 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 67761 fi 67762 elif test "x$enable_ccache" = xno; then 67763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 67764 $as_echo "no, explicitly disabled" >&6; } 67765 CCACHE_STATUS="Disabled" 67766 elif test "x$enable_ccache" = x; then 67767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67768 $as_echo "no" >&6; } 67769 else 67770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 67771 $as_echo "unknown" >&6; } 67772 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 67773 fi 67774 67775 67776 67777 # Check whether --with-ccache-dir was given. 67778 if test "${with_ccache_dir+set}" = set; then : 67779 withval=$with_ccache_dir; 67780 fi 67781 67782 67783 if test "x$with_ccache_dir" != x; then 67784 # When using a non home ccache directory, assume the use is to share ccache files 67785 # with other users. Thus change the umask. 67786 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 67787 if test "x$CCACHE" = x; then 67788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 67789 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 67790 fi 67791 fi 67792 67793 if test "x$CCACHE" != x; then 67794 67795 if test "x$CCACHE" != x; then 67796 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 67797 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67798 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 67799 if test "x$HAS_BAD_CCACHE" != "x"; then 67800 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 67801 fi 67802 fi 67803 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 67804 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67805 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 67806 if test "x$HAS_BAD_CCACHE" != "x"; then 67807 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 67808 fi 67809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 67810 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 67811 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 67812 PUSHED_FLAGS="$CXXFLAGS" 67813 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 67814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67815 /* end confdefs.h. */ 67816 67817 int 67818 main () 67819 { 67820 67821 ; 67822 return 0; 67823 } 67824 _ACEOF 67825 if ac_fn_cxx_try_compile "$LINENO"; then : 67826 CC_KNOWS_CCACHE_TRICK=yes 67827 else 67828 CC_KNOWS_CCACHE_TRICK=no 67829 fi 67830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67831 CXXFLAGS="$PUSHED_FLAGS" 67832 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 67833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67834 $as_echo "yes" >&6; } 67835 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 67836 67837 CCACHE_SLOPPINESS=pch_defines,time_macros 67838 else 67839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67840 $as_echo "no" >&6; } 67841 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 67842 fi 67843 fi 67844 67845 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 67846 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 67847 67848 if test "x$SET_CCACHE_DIR" != x; then 67849 mkdir -p $CCACHE_DIR > /dev/null 2>&1 67850 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 67851 fi 67852 fi 67853 67854 fi 67855 67856 67857 ############################################################################### 67858 # 67859 # And now the finish... 67860 # 67861 ############################################################################### 67862 67863 # Check for some common pitfalls 67864 67865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 67866 file_to_test="$TOPDIR/LICENSE" 67867 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 67868 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 67869 fi 67870 fi 67871 67872 67873 # Did user specify any unknown variables? 67874 67875 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 67876 # Replace the separating ! with spaces before presenting for end user. 67877 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 67878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 67879 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 67880 fi 67881 67882 67883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 67884 $as_echo_n "checking if build directory is on local disk... " >&6; } 67885 67886 # df -l lists only local disks; if the given directory is not found then 67887 # a non-zero exit code is given 67888 if test "x$DF" = x; then 67889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 67890 # msys does not have df; use Windows "net use" instead. 67891 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 67892 if test "x$IS_NETWORK_DISK" = x; then 67893 OUTPUT_DIR_IS_LOCAL="yes" 67894 else 67895 OUTPUT_DIR_IS_LOCAL="no" 67896 fi 67897 else 67898 # No df here, say it's local 67899 OUTPUT_DIR_IS_LOCAL="yes" 67900 fi 67901 else 67902 # JDK-8189619 67903 # df on AIX does not understand -l. On modern AIXes it understands "-T local" which 67904 # is the same. On older AIXes we just continue to live with a "not local build" warning. 67905 if test "x$OPENJDK_TARGET_OS" = xaix; then 67906 DF_LOCAL_ONLY_OPTION='-T local' 67907 else 67908 DF_LOCAL_ONLY_OPTION='-l' 67909 fi 67910 if $DF $DF_LOCAL_ONLY_OPTION $OUTPUTDIR > /dev/null 2>&1; then 67911 OUTPUT_DIR_IS_LOCAL="yes" 67912 else 67913 OUTPUT_DIR_IS_LOCAL="no" 67914 fi 67915 fi 67916 67917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 67918 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 67919 67920 67921 67922 # Check if the user has any old-style ALT_ variables set. 67923 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 67924 67925 # Before generating output files, test if they exist. If they do, this is a reconfigure. 67926 # Since we can't properly handle the dependencies for this, warn the user about the situation 67927 if test -e $OUTPUTDIR/spec.gmk; then 67928 IS_RECONFIGURE=yes 67929 else 67930 IS_RECONFIGURE=no 67931 fi 67932 67933 67934 # At the end, call the custom hook. (Dummy macro if no custom sources available) 67935 67936 67937 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 67938 67939 # Keep feature lists sorted and free of duplicates 67940 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 67941 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 67942 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 67943 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 67944 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 67945 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 67946 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 67947 67948 # Validate features 67949 for variant in $JVM_VARIANTS; do 67950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 67951 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 67952 features_var_name=JVM_FEATURES_$variant 67953 JVM_FEATURES_TO_TEST=${!features_var_name} 67954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 67955 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 67956 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 67957 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 67958 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 67959 if test "x$INVALID_FEATURES" != x; then 67960 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 67961 fi 67962 done 67963 67964 67965 # We're messing a bit with internal autoconf variables to put the config.status 67966 # in the output directory instead of the current directory. 67967 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 67968 67969 # Create the actual output files. Now the main work of configure is done. 67970 cat >confcache <<\_ACEOF 67971 # This file is a shell script that caches the results of configure 67972 # tests run on this system so they can be shared between configure 67973 # scripts and configure runs, see configure's option --config-cache. 67974 # It is not useful on other systems. If it contains results you don't 67975 # want to keep, you may remove or edit it. 67976 # 67977 # config.status only pays attention to the cache file if you give it 67978 # the --recheck option to rerun configure. 67979 # 67980 # `ac_cv_env_foo' variables (set or unset) will be overridden when 67981 # loading this file, other *unset* `ac_cv_foo' will be assigned the 67982 # following values. 67983 67984 _ACEOF 67985 67986 # The following way of writing the cache mishandles newlines in values, 67987 # but we know of no workaround that is simple, portable, and efficient. 67988 # So, we kill variables containing newlines. 67989 # Ultrix sh set writes to stderr and can't be redirected directly, 67990 # and sets the high bit in the cache file unless we assign to the vars. 67991 ( 67992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 67993 eval ac_val=\$$ac_var 67994 case $ac_val in #( 67995 *${as_nl}*) 67996 case $ac_var in #( 67997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 67998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 67999 esac 68000 case $ac_var in #( 68001 _ | IFS | as_nl) ;; #( 68002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 68003 *) { eval $ac_var=; unset $ac_var;} ;; 68004 esac ;; 68005 esac 68006 done 68007 68008 (set) 2>&1 | 68009 case $as_nl`(ac_space=' '; set) 2>&1` in #( 68010 *${as_nl}ac_space=\ *) 68011 # `set' does not quote correctly, so add quotes: double-quote 68012 # substitution turns \\\\ into \\, and sed turns \\ into \. 68013 sed -n \ 68014 "s/'/'\\\\''/g; 68015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 68016 ;; #( 68017 *) 68018 # `set' quotes correctly as required by POSIX, so do not add quotes. 68019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 68020 ;; 68021 esac | 68022 sort 68023 ) | 68024 sed ' 68025 /^ac_cv_env_/b end 68026 t clear 68027 :clear 68028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 68029 t end 68030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 68031 :end' >>confcache 68032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 68033 if test -w "$cache_file"; then 68034 if test "x$cache_file" != "x/dev/null"; then 68035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 68036 $as_echo "$as_me: updating cache $cache_file" >&6;} 68037 if test ! -f "$cache_file" || test -h "$cache_file"; then 68038 cat confcache >"$cache_file" 68039 else 68040 case $cache_file in #( 68041 */* | ?:*) 68042 mv -f confcache "$cache_file"$$ && 68043 mv -f "$cache_file"$$ "$cache_file" ;; #( 68044 *) 68045 mv -f confcache "$cache_file" ;; 68046 esac 68047 fi 68048 fi 68049 else 68050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 68051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 68052 fi 68053 fi 68054 rm -f confcache 68055 68056 test "x$prefix" = xNONE && prefix=$ac_default_prefix 68057 # Let make expand exec_prefix. 68058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 68059 68060 # Transform confdefs.h into DEFS. 68061 # Protect against shell expansion while executing Makefile rules. 68062 # Protect against Makefile macro expansion. 68063 # 68064 # If the first sed substitution is executed (which looks for macros that 68065 # take arguments), then branch to the quote section. Otherwise, 68066 # look for a macro that doesn't take arguments. 68067 ac_script=' 68068 :mline 68069 /\\$/{ 68070 N 68071 s,\\\n,, 68072 b mline 68073 } 68074 t clear 68075 :clear 68076 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 68077 t quote 68078 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 68079 t quote 68080 b any 68081 :quote 68082 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 68083 s/\[/\\&/g 68084 s/\]/\\&/g 68085 s/\$/$$/g 68086 H 68087 :any 68088 ${ 68089 g 68090 s/^\n// 68091 s/\n/ /g 68092 p 68093 } 68094 ' 68095 DEFS=`sed -n "$ac_script" confdefs.h` 68096 68097 68098 ac_libobjs= 68099 ac_ltlibobjs= 68100 U= 68101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 68102 # 1. Remove the extension, and $U if already installed. 68103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 68104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 68105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 68106 # will be set to the directory where LIBOBJS objects are built. 68107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 68108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 68109 done 68110 LIBOBJS=$ac_libobjs 68111 68112 LTLIBOBJS=$ac_ltlibobjs 68113 68114 68115 68116 : "${CONFIG_STATUS=./config.status}" 68117 ac_write_fail=0 68118 ac_clean_files_save=$ac_clean_files 68119 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 68120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 68121 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 68122 as_write_fail=0 68123 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 68124 #! $SHELL 68125 # Generated by $as_me. 68126 # Run this file to recreate the current configuration. 68127 # Compiler output produced by configure, useful for debugging 68128 # configure, is in config.log if it exists. 68129 68130 debug=false 68131 ac_cs_recheck=false 68132 ac_cs_silent=false 68133 68134 SHELL=\${CONFIG_SHELL-$SHELL} 68135 export SHELL 68136 _ASEOF 68137 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 68138 ## -------------------- ## 68139 ## M4sh Initialization. ## 68140 ## -------------------- ## 68141 68142 # Be more Bourne compatible 68143 DUALCASE=1; export DUALCASE # for MKS sh 68144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 68145 emulate sh 68146 NULLCMD=: 68147 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 68148 # is contrary to our usage. Disable this feature. 68149 alias -g '${1+"$@"}'='"$@"' 68150 setopt NO_GLOB_SUBST 68151 else 68152 case `(set -o) 2>/dev/null` in #( 68153 *posix*) : 68154 set -o posix ;; #( 68155 *) : 68156 ;; 68157 esac 68158 fi 68159 68160 68161 as_nl=' 68162 ' 68163 export as_nl 68164 # Printing a long string crashes Solaris 7 /usr/bin/printf. 68165 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 68166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 68167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 68168 # Prefer a ksh shell builtin over an external printf program on Solaris, 68169 # but without wasting forks for bash or zsh. 68170 if test -z "$BASH_VERSION$ZSH_VERSION" \ 68171 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 68172 as_echo='print -r --' 68173 as_echo_n='print -rn --' 68174 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 68175 as_echo='printf %s\n' 68176 as_echo_n='printf %s' 68177 else 68178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 68179 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 68180 as_echo_n='/usr/ucb/echo -n' 68181 else 68182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 68183 as_echo_n_body='eval 68184 arg=$1; 68185 case $arg in #( 68186 *"$as_nl"*) 68187 expr "X$arg" : "X\\(.*\\)$as_nl"; 68188 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68189 esac; 68190 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68191 ' 68192 export as_echo_n_body 68193 as_echo_n='sh -c $as_echo_n_body as_echo' 68194 fi 68195 export as_echo_body 68196 as_echo='sh -c $as_echo_body as_echo' 68197 fi 68198 68199 # The user is always right. 68200 if test "${PATH_SEPARATOR+set}" != set; then 68201 PATH_SEPARATOR=: 68202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 68203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 68204 PATH_SEPARATOR=';' 68205 } 68206 fi 68207 68208 68209 # IFS 68210 # We need space, tab and new line, in precisely that order. Quoting is 68211 # there to prevent editors from complaining about space-tab. 68212 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 68213 # splitting by setting IFS to empty value.) 68214 IFS=" "" $as_nl" 68215 68216 # Find who we are. Look in the path if we contain no directory separator. 68217 as_myself= 68218 case $0 in #(( 68219 *[\\/]* ) as_myself=$0 ;; 68220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68221 for as_dir in $PATH 68222 do 68223 IFS=$as_save_IFS 68224 test -z "$as_dir" && as_dir=. 68225 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 68226 done 68227 IFS=$as_save_IFS 68228 68229 ;; 68230 esac 68231 # We did not find ourselves, most probably we were run as `sh COMMAND' 68232 # in which case we are not to be found in the path. 68233 if test "x$as_myself" = x; then 68234 as_myself=$0 68235 fi 68236 if test ! -f "$as_myself"; then 68237 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 68238 exit 1 68239 fi 68240 68241 # Unset variables that we do not need and which cause bugs (e.g. in 68242 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 68243 # suppresses any "Segmentation fault" message there. '((' could 68244 # trigger a bug in pdksh 5.2.14. 68245 for as_var in BASH_ENV ENV MAIL MAILPATH 68246 do eval test x\${$as_var+set} = xset \ 68247 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68248 done 68249 PS1='$ ' 68250 PS2='> ' 68251 PS4='+ ' 68252 68253 # NLS nuisances. 68254 LC_ALL=C 68255 export LC_ALL 68256 LANGUAGE=C 68257 export LANGUAGE 68258 68259 # CDPATH. 68260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 68261 68262 68263 # as_fn_error STATUS ERROR [LINENO LOG_FD] 68264 # ---------------------------------------- 68265 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 68266 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 68267 # script with STATUS, using 1 if that was 0. 68268 as_fn_error () 68269 { 68270 as_status=$1; test $as_status -eq 0 && as_status=1 68271 if test "$4"; then 68272 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 68273 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 68274 fi 68275 $as_echo "$as_me: error: $2" >&2 68276 as_fn_exit $as_status 68277 } # as_fn_error 68278 68279 68280 # as_fn_set_status STATUS 68281 # ----------------------- 68282 # Set $? to STATUS, without forking. 68283 as_fn_set_status () 68284 { 68285 return $1 68286 } # as_fn_set_status 68287 68288 # as_fn_exit STATUS 68289 # ----------------- 68290 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 68291 as_fn_exit () 68292 { 68293 set +e 68294 as_fn_set_status $1 68295 exit $1 68296 } # as_fn_exit 68297 68298 # as_fn_unset VAR 68299 # --------------- 68300 # Portably unset VAR. 68301 as_fn_unset () 68302 { 68303 { eval $1=; unset $1;} 68304 } 68305 as_unset=as_fn_unset 68306 # as_fn_append VAR VALUE 68307 # ---------------------- 68308 # Append the text in VALUE to the end of the definition contained in VAR. Take 68309 # advantage of any shell optimizations that allow amortized linear growth over 68310 # repeated appends, instead of the typical quadratic growth present in naive 68311 # implementations. 68312 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 68313 eval 'as_fn_append () 68314 { 68315 eval $1+=\$2 68316 }' 68317 else 68318 as_fn_append () 68319 { 68320 eval $1=\$$1\$2 68321 } 68322 fi # as_fn_append 68323 68324 # as_fn_arith ARG... 68325 # ------------------ 68326 # Perform arithmetic evaluation on the ARGs, and store the result in the 68327 # global $as_val. Take advantage of shells that can avoid forks. The arguments 68328 # must be portable across $(()) and expr. 68329 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 68330 eval 'as_fn_arith () 68331 { 68332 as_val=$(( $* )) 68333 }' 68334 else 68335 as_fn_arith () 68336 { 68337 as_val=`expr "$@" || test $? -eq 1` 68338 } 68339 fi # as_fn_arith 68340 68341 68342 if expr a : '\(a\)' >/dev/null 2>&1 && 68343 test "X`expr 00001 : '.*\(...\)'`" = X001; then 68344 as_expr=expr 68345 else 68346 as_expr=false 68347 fi 68348 68349 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 68350 as_basename=basename 68351 else 68352 as_basename=false 68353 fi 68354 68355 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 68356 as_dirname=dirname 68357 else 68358 as_dirname=false 68359 fi 68360 68361 as_me=`$as_basename -- "$0" || 68362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68363 X"$0" : 'X\(//\)$' \| \ 68364 X"$0" : 'X\(/\)' \| . 2>/dev/null || 68365 $as_echo X/"$0" | 68366 sed '/^.*\/\([^/][^/]*\)\/*$/{ 68367 s//\1/ 68368 q 68369 } 68370 /^X\/\(\/\/\)$/{ 68371 s//\1/ 68372 q 68373 } 68374 /^X\/\(\/\).*/{ 68375 s//\1/ 68376 q 68377 } 68378 s/.*/./; q'` 68379 68380 # Avoid depending upon Character Ranges. 68381 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 68382 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 68383 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 68384 as_cr_digits='0123456789' 68385 as_cr_alnum=$as_cr_Letters$as_cr_digits 68386 68387 ECHO_C= ECHO_N= ECHO_T= 68388 case `echo -n x` in #((((( 68389 -n*) 68390 case `echo 'xy\c'` in 68391 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 68392 xy) ECHO_C='\c';; 68393 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 68394 ECHO_T=' ';; 68395 esac;; 68396 *) 68397 ECHO_N='-n';; 68398 esac 68399 68400 rm -f conf$$ conf$$.exe conf$$.file 68401 if test -d conf$$.dir; then 68402 rm -f conf$$.dir/conf$$.file 68403 else 68404 rm -f conf$$.dir 68405 mkdir conf$$.dir 2>/dev/null 68406 fi 68407 if (echo >conf$$.file) 2>/dev/null; then 68408 if ln -s conf$$.file conf$$ 2>/dev/null; then 68409 as_ln_s='ln -s' 68410 # ... but there are two gotchas: 68411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 68412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 68413 # In both cases, we have to default to `cp -pR'. 68414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 68415 as_ln_s='cp -pR' 68416 elif ln conf$$.file conf$$ 2>/dev/null; then 68417 as_ln_s=ln 68418 else 68419 as_ln_s='cp -pR' 68420 fi 68421 else 68422 as_ln_s='cp -pR' 68423 fi 68424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 68425 rmdir conf$$.dir 2>/dev/null 68426 68427 68428 # as_fn_mkdir_p 68429 # ------------- 68430 # Create "$as_dir" as a directory, including parents if necessary. 68431 as_fn_mkdir_p () 68432 { 68433 68434 case $as_dir in #( 68435 -*) as_dir=./$as_dir;; 68436 esac 68437 test -d "$as_dir" || eval $as_mkdir_p || { 68438 as_dirs= 68439 while :; do 68440 case $as_dir in #( 68441 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 68442 *) as_qdir=$as_dir;; 68443 esac 68444 as_dirs="'$as_qdir' $as_dirs" 68445 as_dir=`$as_dirname -- "$as_dir" || 68446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68447 X"$as_dir" : 'X\(//\)[^/]' \| \ 68448 X"$as_dir" : 'X\(//\)$' \| \ 68449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 68450 $as_echo X"$as_dir" | 68451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68452 s//\1/ 68453 q 68454 } 68455 /^X\(\/\/\)[^/].*/{ 68456 s//\1/ 68457 q 68458 } 68459 /^X\(\/\/\)$/{ 68460 s//\1/ 68461 q 68462 } 68463 /^X\(\/\).*/{ 68464 s//\1/ 68465 q 68466 } 68467 s/.*/./; q'` 68468 test -d "$as_dir" && break 68469 done 68470 test -z "$as_dirs" || eval "mkdir $as_dirs" 68471 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 68472 68473 68474 } # as_fn_mkdir_p 68475 if mkdir -p . 2>/dev/null; then 68476 as_mkdir_p='mkdir -p "$as_dir"' 68477 else 68478 test -d ./-p && rmdir ./-p 68479 as_mkdir_p=false 68480 fi 68481 68482 68483 # as_fn_executable_p FILE 68484 # ----------------------- 68485 # Test if FILE is an executable regular file. 68486 as_fn_executable_p () 68487 { 68488 test -f "$1" && test -x "$1" 68489 } # as_fn_executable_p 68490 as_test_x='test -x' 68491 as_executable_p=as_fn_executable_p 68492 68493 # Sed expression to map a string onto a valid CPP name. 68494 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 68495 68496 # Sed expression to map a string onto a valid variable name. 68497 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 68498 68499 68500 exec 6>&1 68501 ## ----------------------------------- ## 68502 ## Main body of $CONFIG_STATUS script. ## 68503 ## ----------------------------------- ## 68504 _ASEOF 68505 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 68506 68507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68508 # Save the log message, to keep $0 and so on meaningful, and to 68509 # report actual input values of CONFIG_FILES etc. instead of their 68510 # values after options handling. 68511 ac_log=" 68512 This file was extended by OpenJDK $as_me jdk9, which was 68513 generated by GNU Autoconf 2.69. Invocation command line was 68514 68515 CONFIG_FILES = $CONFIG_FILES 68516 CONFIG_HEADERS = $CONFIG_HEADERS 68517 CONFIG_LINKS = $CONFIG_LINKS 68518 CONFIG_COMMANDS = $CONFIG_COMMANDS 68519 $ $0 $@ 68520 68521 on `(hostname || uname -n) 2>/dev/null | sed 1q` 68522 " 68523 68524 _ACEOF 68525 68526 case $ac_config_files in *" 68527 "*) set x $ac_config_files; shift; ac_config_files=$*;; 68528 esac 68529 68530 68531 68532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68533 # Files that config.status was made for. 68534 config_files="$ac_config_files" 68535 68536 _ACEOF 68537 68538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68539 ac_cs_usage="\ 68540 \`$as_me' instantiates files and other configuration actions 68541 from templates according to the current configuration. Unless the files 68542 and actions are specified as TAGs, all are instantiated by default. 68543 68544 Usage: $0 [OPTION]... [TAG]... 68545 68546 -h, --help print this help, then exit 68547 -V, --version print version number and configuration settings, then exit 68548 --config print configuration, then exit 68549 -q, --quiet, --silent 68550 do not print progress messages 68551 -d, --debug don't remove temporary files 68552 --recheck update $as_me by reconfiguring in the same conditions 68553 --file=FILE[:TEMPLATE] 68554 instantiate the configuration file FILE 68555 68556 Configuration files: 68557 $config_files 68558 68559 Report bugs to <build-dev@openjdk.java.net>. 68560 OpenJDK home page: <http://openjdk.java.net>." 68561 68562 _ACEOF 68563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68564 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 68565 ac_cs_version="\\ 68566 OpenJDK config.status jdk9 68567 configured by $0, generated by GNU Autoconf 2.69, 68568 with options \\"\$ac_cs_config\\" 68569 68570 Copyright (C) 2012 Free Software Foundation, Inc. 68571 This config.status script is free software; the Free Software Foundation 68572 gives unlimited permission to copy, distribute and modify it." 68573 68574 ac_pwd='$ac_pwd' 68575 srcdir='$srcdir' 68576 AWK='$AWK' 68577 test -n "\$AWK" || AWK=awk 68578 _ACEOF 68579 68580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68581 # The default lists apply if the user does not specify any file. 68582 ac_need_defaults=: 68583 while test $# != 0 68584 do 68585 case $1 in 68586 --*=?*) 68587 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 68589 ac_shift=: 68590 ;; 68591 --*=) 68592 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68593 ac_optarg= 68594 ac_shift=: 68595 ;; 68596 *) 68597 ac_option=$1 68598 ac_optarg=$2 68599 ac_shift=shift 68600 ;; 68601 esac 68602 68603 case $ac_option in 68604 # Handling of the options. 68605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 68606 ac_cs_recheck=: ;; 68607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 68608 $as_echo "$ac_cs_version"; exit ;; 68609 --config | --confi | --conf | --con | --co | --c ) 68610 $as_echo "$ac_cs_config"; exit ;; 68611 --debug | --debu | --deb | --de | --d | -d ) 68612 debug=: ;; 68613 --file | --fil | --fi | --f ) 68614 $ac_shift 68615 case $ac_optarg in 68616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 68617 '') as_fn_error $? "missing file argument" ;; 68618 esac 68619 as_fn_append CONFIG_FILES " '$ac_optarg'" 68620 ac_need_defaults=false;; 68621 --he | --h | --help | --hel | -h ) 68622 $as_echo "$ac_cs_usage"; exit ;; 68623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 68624 | -silent | --silent | --silen | --sile | --sil | --si | --s) 68625 ac_cs_silent=: ;; 68626 68627 # This is an error. 68628 -*) as_fn_error $? "unrecognized option: \`$1' 68629 Try \`$0 --help' for more information." ;; 68630 68631 *) as_fn_append ac_config_targets " $1" 68632 ac_need_defaults=false ;; 68633 68634 esac 68635 shift 68636 done 68637 68638 ac_configure_extra_args= 68639 68640 if $ac_cs_silent; then 68641 exec 6>/dev/null 68642 ac_configure_extra_args="$ac_configure_extra_args --silent" 68643 fi 68644 68645 _ACEOF 68646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68647 if \$ac_cs_recheck; then 68648 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 68649 shift 68650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 68651 CONFIG_SHELL='$SHELL' 68652 export CONFIG_SHELL 68653 exec "\$@" 68654 fi 68655 68656 _ACEOF 68657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68658 exec 5>>config.log 68659 { 68660 echo 68661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 68662 ## Running $as_me. ## 68663 _ASBOX 68664 $as_echo "$ac_log" 68665 } >&5 68666 68667 _ACEOF 68668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68669 _ACEOF 68670 68671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68672 68673 # Handling of arguments. 68674 for ac_config_target in $ac_config_targets 68675 do 68676 case $ac_config_target in 68677 "$OUTPUTDIR/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 68678 "$OUTPUTDIR/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 68679 "$OUTPUTDIR/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 68680 "$OUTPUTDIR/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 68681 "$OUTPUTDIR/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 68682 68683 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 68684 esac 68685 done 68686 68687 68688 # If the user did not use the arguments to specify the items to instantiate, 68689 # then the envvar interface is used. Set only those that are not. 68690 # We use the long form for the default assignment because of an extremely 68691 # bizarre bug on SunOS 4.1.3. 68692 if $ac_need_defaults; then 68693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 68694 fi 68695 68696 # Have a temporary directory for convenience. Make it in the build tree 68697 # simply because there is no reason against having it here, and in addition, 68698 # creating and moving files from /tmp can sometimes cause problems. 68699 # Hook for its removal unless debugging. 68700 # Note that there is a small window in which the directory will not be cleaned: 68701 # after its creation but before its name has been assigned to `$tmp'. 68702 $debug || 68703 { 68704 tmp= ac_tmp= 68705 trap 'exit_status=$? 68706 : "${ac_tmp:=$tmp}" 68707 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 68708 ' 0 68709 trap 'as_fn_exit 1' 1 2 13 15 68710 } 68711 # Create a (secure) tmp directory for tmp files. 68712 68713 { 68714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 68715 test -d "$tmp" 68716 } || 68717 { 68718 tmp=./conf$$-$RANDOM 68719 (umask 077 && mkdir "$tmp") 68720 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 68721 ac_tmp=$tmp 68722 68723 # Set up the scripts for CONFIG_FILES section. 68724 # No need to generate them if there are no CONFIG_FILES. 68725 # This happens for instance with `./config.status config.h'. 68726 if test -n "$CONFIG_FILES"; then 68727 68728 68729 ac_cr=`echo X | tr X '\015'` 68730 # On cygwin, bash can eat \r inside `` if the user requested igncr. 68731 # But we know of no other shell where ac_cr would be empty at this 68732 # point, so we can use a bashism as a fallback. 68733 if test "x$ac_cr" = x; then 68734 eval ac_cr=\$\'\\r\' 68735 fi 68736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 68737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 68738 ac_cs_awk_cr='\\r' 68739 else 68740 ac_cs_awk_cr=$ac_cr 68741 fi 68742 68743 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 68744 _ACEOF 68745 68746 68747 { 68748 echo "cat >conf$$subs.awk <<_ACEOF" && 68749 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 68750 echo "_ACEOF" 68751 } >conf$$subs.sh || 68752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68753 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 68754 ac_delim='%!_!# ' 68755 for ac_last_try in false false false false false :; do 68756 . ./conf$$subs.sh || 68757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68758 68759 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 68760 if test $ac_delim_n = $ac_delim_num; then 68761 break 68762 elif $ac_last_try; then 68763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68764 else 68765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 68766 fi 68767 done 68768 rm -f conf$$subs.sh 68769 68770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68771 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 68772 _ACEOF 68773 sed -n ' 68774 h 68775 s/^/S["/; s/!.*/"]=/ 68776 p 68777 g 68778 s/^[^!]*!// 68779 :repl 68780 t repl 68781 s/'"$ac_delim"'$// 68782 t delim 68783 :nl 68784 h 68785 s/\(.\{148\}\)..*/\1/ 68786 t more1 68787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 68788 p 68789 n 68790 b repl 68791 :more1 68792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68793 p 68794 g 68795 s/.\{148\}// 68796 t nl 68797 :delim 68798 h 68799 s/\(.\{148\}\)..*/\1/ 68800 t more2 68801 s/["\\]/\\&/g; s/^/"/; s/$/"/ 68802 p 68803 b 68804 :more2 68805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68806 p 68807 g 68808 s/.\{148\}// 68809 t delim 68810 ' <conf$$subs.awk | sed ' 68811 /^[^""]/{ 68812 N 68813 s/\n// 68814 } 68815 ' >>$CONFIG_STATUS || ac_write_fail=1 68816 rm -f conf$$subs.awk 68817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68818 _ACAWK 68819 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 68820 for (key in S) S_is_set[key] = 1 68821 FS = "" 68822 68823 } 68824 { 68825 line = $ 0 68826 nfields = split(line, field, "@") 68827 substed = 0 68828 len = length(field[1]) 68829 for (i = 2; i < nfields; i++) { 68830 key = field[i] 68831 keylen = length(key) 68832 if (S_is_set[key]) { 68833 value = S[key] 68834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 68835 len += length(value) + length(field[++i]) 68836 substed = 1 68837 } else 68838 len += 1 + keylen 68839 } 68840 68841 print line 68842 } 68843 68844 _ACAWK 68845 _ACEOF 68846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 68848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 68849 else 68850 cat 68851 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 68852 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 68853 _ACEOF 68854 68855 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 68856 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 68857 # trailing colons and then remove the whole line if VPATH becomes empty 68858 # (actually we leave an empty line to preserve line numbers). 68859 if test "x$srcdir" = x.; then 68860 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 68861 h 68862 s/// 68863 s/^/:/ 68864 s/[ ]*$/:/ 68865 s/:\$(srcdir):/:/g 68866 s/:\${srcdir}:/:/g 68867 s/:@srcdir@:/:/g 68868 s/^:*// 68869 s/:*$// 68870 x 68871 s/\(=[ ]*\).*/\1/ 68872 G 68873 s/\n// 68874 s/^[^=]*=[ ]*$// 68875 }' 68876 fi 68877 68878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68879 fi # test -n "$CONFIG_FILES" 68880 68881 68882 eval set X " :F $CONFIG_FILES " 68883 shift 68884 for ac_tag 68885 do 68886 case $ac_tag in 68887 :[FHLC]) ac_mode=$ac_tag; continue;; 68888 esac 68889 case $ac_mode$ac_tag in 68890 :[FHL]*:*);; 68891 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 68892 :[FH]-) ac_tag=-:-;; 68893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 68894 esac 68895 ac_save_IFS=$IFS 68896 IFS=: 68897 set x $ac_tag 68898 IFS=$ac_save_IFS 68899 shift 68900 ac_file=$1 68901 shift 68902 68903 case $ac_mode in 68904 :L) ac_source=$1;; 68905 :[FH]) 68906 ac_file_inputs= 68907 for ac_f 68908 do 68909 case $ac_f in 68910 -) ac_f="$ac_tmp/stdin";; 68911 *) # Look for the file first in the build tree, then in the source tree 68912 # (if the path is not absolute). The absolute path cannot be DOS-style, 68913 # because $ac_f cannot contain `:'. 68914 test -f "$ac_f" || 68915 case $ac_f in 68916 [\\/$]*) false;; 68917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 68918 esac || 68919 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 68920 esac 68921 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 68922 as_fn_append ac_file_inputs " '$ac_f'" 68923 done 68924 68925 # Let's still pretend it is `configure' which instantiates (i.e., don't 68926 # use $as_me), people would be surprised to read: 68927 # /* config.h. Generated by config.status. */ 68928 configure_input='Generated from '` 68929 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 68930 `' by configure.' 68931 if test x"$ac_file" != x-; then 68932 configure_input="$ac_file. $configure_input" 68933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 68934 $as_echo "$as_me: creating $ac_file" >&6;} 68935 fi 68936 # Neutralize special characters interpreted by sed in replacement strings. 68937 case $configure_input in #( 68938 *\&* | *\|* | *\\* ) 68939 ac_sed_conf_input=`$as_echo "$configure_input" | 68940 sed 's/[\\\\&|]/\\\\&/g'`;; #( 68941 *) ac_sed_conf_input=$configure_input;; 68942 esac 68943 68944 case $ac_tag in 68945 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 68946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 68947 esac 68948 ;; 68949 esac 68950 68951 ac_dir=`$as_dirname -- "$ac_file" || 68952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68953 X"$ac_file" : 'X\(//\)[^/]' \| \ 68954 X"$ac_file" : 'X\(//\)$' \| \ 68955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 68956 $as_echo X"$ac_file" | 68957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68958 s//\1/ 68959 q 68960 } 68961 /^X\(\/\/\)[^/].*/{ 68962 s//\1/ 68963 q 68964 } 68965 /^X\(\/\/\)$/{ 68966 s//\1/ 68967 q 68968 } 68969 /^X\(\/\).*/{ 68970 s//\1/ 68971 q 68972 } 68973 s/.*/./; q'` 68974 as_dir="$ac_dir"; as_fn_mkdir_p 68975 ac_builddir=. 68976 68977 case "$ac_dir" in 68978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 68979 *) 68980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 68981 # A ".." for each directory in $ac_dir_suffix. 68982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 68983 case $ac_top_builddir_sub in 68984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 68985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 68986 esac ;; 68987 esac 68988 ac_abs_top_builddir=$ac_pwd 68989 ac_abs_builddir=$ac_pwd$ac_dir_suffix 68990 # for backward compatibility: 68991 ac_top_builddir=$ac_top_build_prefix 68992 68993 case $srcdir in 68994 .) # We are building in place. 68995 ac_srcdir=. 68996 ac_top_srcdir=$ac_top_builddir_sub 68997 ac_abs_top_srcdir=$ac_pwd ;; 68998 [\\/]* | ?:[\\/]* ) # Absolute name. 68999 ac_srcdir=$srcdir$ac_dir_suffix; 69000 ac_top_srcdir=$srcdir 69001 ac_abs_top_srcdir=$srcdir ;; 69002 *) # Relative name. 69003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 69004 ac_top_srcdir=$ac_top_build_prefix$srcdir 69005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 69006 esac 69007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 69008 69009 69010 case $ac_mode in 69011 :F) 69012 # 69013 # CONFIG_FILE 69014 # 69015 69016 _ACEOF 69017 69018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69019 # If the template does not know about datarootdir, expand it. 69020 # FIXME: This hack should be removed a few years after 2.60. 69021 ac_datarootdir_hack=; ac_datarootdir_seen= 69022 ac_sed_dataroot=' 69023 /datarootdir/ { 69024 p 69025 q 69026 } 69027 /@datadir@/p 69028 /@docdir@/p 69029 /@infodir@/p 69030 /@localedir@/p 69031 /@mandir@/p' 69032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 69033 *datarootdir*) ac_datarootdir_seen=yes;; 69034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 69035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 69036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 69037 _ACEOF 69038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69039 ac_datarootdir_hack=' 69040 s&@datadir@&$datadir&g 69041 s&@docdir@&$docdir&g 69042 s&@infodir@&$infodir&g 69043 s&@localedir@&$localedir&g 69044 s&@mandir@&$mandir&g 69045 s&\\\${datarootdir}&$datarootdir&g' ;; 69046 esac 69047 _ACEOF 69048 69049 # Neutralize VPATH when `$srcdir' = `.'. 69050 # Shell code in configure.ac might set extrasub. 69051 # FIXME: do we really want to maintain this feature? 69052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69053 ac_sed_extra="$ac_vpsub 69054 $extrasub 69055 _ACEOF 69056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69057 :t 69058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 69059 s|@configure_input@|$ac_sed_conf_input|;t t 69060 s&@top_builddir@&$ac_top_builddir_sub&;t t 69061 s&@top_build_prefix@&$ac_top_build_prefix&;t t 69062 s&@srcdir@&$ac_srcdir&;t t 69063 s&@abs_srcdir@&$ac_abs_srcdir&;t t 69064 s&@top_srcdir@&$ac_top_srcdir&;t t 69065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 69066 s&@builddir@&$ac_builddir&;t t 69067 s&@abs_builddir@&$ac_abs_builddir&;t t 69068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 69069 $ac_datarootdir_hack 69070 " 69071 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 69072 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 69073 69074 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 69075 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 69076 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 69077 "$ac_tmp/out"`; test -z "$ac_out"; } && 69078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 69079 which seems to be undefined. Please make sure it is defined" >&5 69080 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 69081 which seems to be undefined. Please make sure it is defined" >&2;} 69082 69083 rm -f "$ac_tmp/stdin" 69084 case $ac_file in 69085 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 69086 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 69087 esac \ 69088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 69089 ;; 69090 69091 69092 69093 esac 69094 69095 done # for ac_tag 69096 69097 69098 as_fn_exit 0 69099 _ACEOF 69100 ac_clean_files=$ac_clean_files_save 69101 69102 test $ac_write_fail = 0 || 69103 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 69104 69105 69106 # configure is writing to config.log, and then calls config.status. 69107 # config.status does its own redirection, appending to config.log. 69108 # Unfortunately, on DOS this fails, as config.log is still kept open 69109 # by configure, so config.status won't be able to write to it; its 69110 # output is simply discarded. So we exec the FD to /dev/null, 69111 # effectively closing config.log, so it can be properly (re)opened and 69112 # appended to by config.status. When coming back to configure, we 69113 # need to make the FD available again. 69114 if test "$no_create" != yes; then 69115 ac_cs_success=: 69116 ac_config_status_args= 69117 test "$silent" = yes && 69118 ac_config_status_args="$ac_config_status_args --quiet" 69119 exec 5>/dev/null 69120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 69121 exec 5>>config.log 69122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 69123 # would make configure fail if this is the last instruction. 69124 $ac_cs_success || as_fn_exit 1 69125 fi 69126 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 69127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 69128 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 69129 fi 69130 69131 69132 # After AC_OUTPUT, we need to do final work 69133 69134 69135 # Try to move config.log (generated by autoconf) to the configure-support directory. 69136 if test -e ./config.log; then 69137 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 69138 fi 69139 69140 # Rotate our log file (configure.log) 69141 if test -e "$OUTPUTDIR/configure.log.old"; then 69142 $RM -f "$OUTPUTDIR/configure.log.old" 69143 fi 69144 if test -e "$OUTPUTDIR/configure.log"; then 69145 $MV -f "$OUTPUTDIR/configure.log" "$OUTPUTDIR/configure.log.old" 2> /dev/null 69146 fi 69147 69148 # Move configure.log from current directory to the build output root 69149 if test -e ./configure.log; then 69150 $MV -f ./configure.log "$OUTPUTDIR/configure.log" 2> /dev/null 69151 fi 69152 69153 # Make the compare script executable 69154 $CHMOD +x $OUTPUTDIR/compare.sh 69155 69156 69157 # Finally output some useful information to the user 69158 69159 # Finally output some useful information to the user 69160 69161 printf "\n" 69162 printf "====================================================\n" 69163 if test "x$no_create" != "xyes"; then 69164 if test "x$IS_RECONFIGURE" != "xyes"; then 69165 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR" 69166 else 69167 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR" 69168 fi 69169 else 69170 if test "x$IS_RECONFIGURE" != "xyes"; then 69171 printf "A configuration has been successfully checked but not created\n" 69172 else 69173 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR" 69174 fi 69175 fi 69176 if test "x$CONFIGURE_COMMAND_LINE" != x; then 69177 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 69178 else 69179 printf "using default settings.\n" 69180 fi 69181 69182 printf "\n" 69183 printf "Configuration summary:\n" 69184 printf "* Debug level: $DEBUG_LEVEL\n" 69185 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 69186 printf "* JDK variant: $JDK_VARIANT\n" 69187 printf "* JVM variants: $JVM_VARIANTS\n" 69188 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 69189 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 69190 69191 printf "\n" 69192 printf "Tools summary:\n" 69193 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 69194 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 69195 fi 69196 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 69197 if test "x$TOOLCHAIN_VERSION" != "x"; then 69198 print_version=" $TOOLCHAIN_VERSION" 69199 fi 69200 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 69201 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 69202 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 69203 69204 printf "\n" 69205 printf "Build performance summary:\n" 69206 printf "* Cores to use: $JOBS\n" 69207 printf "* Memory limit: $MEMORY_SIZE MB\n" 69208 if test "x$CCACHE_STATUS" != "x"; then 69209 printf "* ccache status: $CCACHE_STATUS\n" 69210 fi 69211 printf "\n" 69212 69213 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 69214 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 69215 printf "will result in longer build times.\n" 69216 printf "\n" 69217 fi 69218 69219 if test "x$FOUND_ALT_VARIABLES" != "x"; then 69220 printf "WARNING: You have old-style ALT_ environment variables set.\n" 69221 printf "These are not respected, and will be ignored. It is recommended\n" 69222 printf "that you clean your environment. The following variables are set:\n" 69223 printf "$FOUND_ALT_VARIABLES\n" 69224 printf "\n" 69225 fi 69226 69227 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 69228 printf "WARNING: Your build output directory is not on a local disk.\n" 69229 printf "This will severely degrade build performance!\n" 69230 printf "It is recommended that you create an output directory on a local disk,\n" 69231 printf "and run the configure script again from that directory.\n" 69232 printf "\n" 69233 fi 69234 69235 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 69236 printf "WARNING: The result of this configuration has overridden an older\n" 69237 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 69238 printf "proper build. Failure to do so might result in strange build problems.\n" 69239 printf "\n" 69240 fi 69241 69242 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 69243 printf "WARNING: The result of this configuration was not saved.\n" 69244 printf "You should run without '--no-create | -n' to create the configuration.\n" 69245 printf "\n" 69246 fi 69247 69248 69249 69250 # Locate config.log. 69251 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 69252 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 69253 elif test -e "./config.log"; then 69254 CONFIG_LOG_PATH="." 69255 fi 69256 69257 if test -e "$CONFIG_LOG_PATH/config.log"; then 69258 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 69259 if test $? -eq 0; then 69260 printf "The following warnings were produced. Repeated here for convenience:\n" 69261 # We must quote sed expression (using []) to stop m4 from eating the []. 69262 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 69263 printf "\n" 69264 fi 69265 fi 69266